.payment-recovery { display:flex; gap:10px; text-align:left; align-items:flex-start; font-size:12px; line-height:1.6; color:var(--muted); margin:16px 0; }
.payment-recovery input { flex:none; width:18px; height:18px; margin-top:2px; }
#paywall-status { font-size:13px; color:#ffb8c7; overflow-wrap:anywhere; }
#paywall .modal-card { max-height:90dvh; overflow:auto; }
#dev-panel, #dev-toggle { display:none !important; }
.av-billing-trigger {
  position: fixed;
  z-index: 8;
  right: 18px;
  bottom: 18px;
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(188, 165, 255, .38);
  border-radius: 999px;
  color: #eee8ff;
  background: rgba(14, 8, 38, .76);
  box-shadow: 0 8px 30px rgba(6, 2, 20, .3), inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  font: 600 12px 'Space Grotesk', sans-serif;
  letter-spacing: .025em;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
body.app-mode .av-billing-trigger { display: inline-flex; }
.av-billing-trigger:hover { border-color: rgba(34,230,255,.72); background: rgba(27, 15, 61, .9); }
.av-billing-trigger:active { transform: translateY(1px); }
.av-billing-trigger:focus-visible,
.av-billing-dialog button:focus-visible,
.av-billing-dialog input:focus-visible {
  outline: 2px solid #65e8ff;
  outline-offset: 3px;
}
.av-billing-trigger-mark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #78e8ef;
  box-shadow: 0 0 12px rgba(84, 229, 244, .68);
}

.av-billing-dialog {
  width: min(590px, calc(100vw - 28px));
  max-width: none;
  max-height: min(84dvh, 760px);
  padding: 0;
  overflow: auto;
  color: #f4f0ff;
  border: 1px solid rgba(166, 137, 255, .38);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(112, 71, 182, .2), transparent 45%),
    rgba(12, 7, 31, .97);
  box-shadow: 0 30px 100px rgba(0,0,0,.62), inset 0 1px rgba(255,255,255,.07);
  backdrop-filter: blur(22px);
  font-family: 'Sora', system-ui, sans-serif;
}
.av-billing-dialog::backdrop { background: rgba(3, 1, 13, .72); backdrop-filter: blur(5px); }
.av-billing-shell { padding: 25px 26px 24px; }
.av-billing-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.av-billing-kicker {
  margin: 0 0 7px;
  color: #8de8f1;
  font: 700 10px 'Space Grotesk', sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.av-billing-head h2 { margin: 0; font: 700 clamp(21px, 5vw, 27px) 'Space Grotesk', sans-serif; }
.av-billing-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 50%;
  color: #d2c9e9;
  background: rgba(255,255,255,.04);
  font: 400 22px/1 'Sora', sans-serif;
  cursor: pointer;
}
.av-billing-close:hover { color: white; border-color: rgba(34,230,255,.55); }
.av-billing-section { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.09); }
.av-billing-section:last-of-type { border-bottom: 0; }
.av-billing-section h3 {
  margin: 0 0 7px;
  color: #e9e2fa;
  font: 600 14px 'Space Grotesk', sans-serif;
}
.av-billing-copy, .av-billing-note {
  margin: 0;
  color: #b9adcf;
  font-size: 12.5px;
  line-height: 1.65;
}
.av-billing-plan {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 15px 16px;
  border: 1px solid rgba(190, 158, 255, .2);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(139,92,246,.13), rgba(34,230,255,.035));
}
.av-billing-plan strong { display: block; color: #f3edff; font: 600 13px 'Space Grotesk', sans-serif; }
.av-billing-plan small { display: block; margin-top: 4px; color: #aa9fbe; font-size: 11px; line-height: 1.45; }
.av-billing-plan-price { color: #e6c9ff; font: 600 12px 'Space Grotesk', sans-serif; white-space: nowrap; }
.av-billing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(130, 219, 233, .4);
  border-radius: 11px;
  color: #dffaff;
  background: rgba(44, 151, 166, .14);
  font: 600 11.5px 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.av-billing-button:hover { background: rgba(44, 151, 166, .25); border-color: rgba(130,219,233,.75); }
.av-billing-button:disabled { opacity: .55; cursor: wait; }
.av-billing-button-secondary { color: #ded2f5; border-color: rgba(181,159,221,.32); background: rgba(255,255,255,.045); }
.av-billing-worlds { display: grid; gap: 8px; margin-top: 13px; }
.av-billing-world {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
}
.av-billing-world-copy { flex: 1; min-width: 0; }
.av-billing-world-copy strong { display: block; overflow: hidden; color: #ece6f8; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.av-billing-world-copy small { display: block; margin-top: 3px; color: #a99dbd; font-size: 10.5px; }
.av-billing-world-state { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #9c80ec; }
.av-billing-world-state[data-paid="true"] { background: #75dadd; box-shadow: 0 0 9px rgba(117,218,221,.4); }
.av-billing-recovery-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 13px; }
.av-billing-warning {
  margin: 12px 0 0;
  padding: 11px 13px;
  border-left: 2px solid #d5aa73;
  border-radius: 0 9px 9px 0;
  color: #d2bda1;
  background: rgba(213,170,115,.07);
  font-size: 11px;
  line-height: 1.55;
}
.av-billing-restore { display: grid; gap: 8px; margin-top: 13px; }
.av-billing-restore label { color: #c7bbdc; font-size: 11px; }
.av-billing-input {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid rgba(181,159,221,.32);
  border-radius: 11px;
  color: #f4f0ff;
  background: rgba(2,1,14,.5);
  font: 13px 'Space Grotesk', sans-serif;
}
.av-billing-input::placeholder { color: #807493; }
.av-billing-status {
  min-height: 0;
  margin: 0;
  padding: 0;
  color: #bcebed;
  font-size: 12px;
  line-height: 1.55;
}
.av-billing-status:not(:empty) {
  margin-top: 15px;
  padding: 11px 13px;
  border: 1px solid rgba(94,215,220,.22);
  border-radius: 11px;
  background: rgba(42,157,168,.09);
}
.av-billing-status[data-kind="error"] { color: #f3c0c4; border-color: rgba(238,130,145,.25); background: rgba(160,54,73,.1); }
.av-billing-status[data-kind="pending"] { color: #e8d4aa; border-color: rgba(230,193,117,.24); background: rgba(166,120,45,.09); }
.av-billing-dialog[open] { animation: av-billing-in .22s ease-out; }
@keyframes av-billing-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 640px) {
  .av-billing-trigger { right: 12px; bottom: 132px; min-height: 37px; padding: 0 12px; font-size: 11px; }
  .av-billing-shell { padding: 20px 17px 18px; }
  .av-billing-plan { grid-template-columns: 1fr; gap: 10px; }
  .av-billing-plan .av-billing-button { width: 100%; }
  .av-billing-world { align-items: flex-start; flex-wrap: wrap; }
  .av-billing-world .av-billing-button { margin-left: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .av-billing-dialog[open] { animation: none; }
  .av-billing-trigger, .av-billing-button { transition: none; }
}
