:root {
  --bg: #040b2a;
  --bg2: #0a1747;
  --card: #0d1d5c;
  --line: #233a8f;
  --text: #f3f5ff;
  --muted: #b3bde6;
  --accent: #2457e6;
  --accent2: #f5c242;
  --ok: #22c55e;
  --bad: #f87171;
  --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, #1a3fc4 0%, transparent 60%), var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex; flex-direction: column;
  line-height: 1.55;
}
a { color: var(--accent2); }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; position: sticky; top: 0; z-index: 5;
  background: rgba(4, 11, 42, .88); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; display: flex; align-items: center; gap: 8px; }
.logo { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #120a24; font-weight: 900; }
.toplink { color: var(--muted); text-decoration: none; font-size: 14px; }
main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 18px 16px 40px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 18px; }

.hero { text-align: center; padding: 34px 6px 10px; }
.hero h1 { font-size: 30px; line-height: 1.2; margin: 0 0 14px; }
.hero h1 span { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 17px; margin: 0 0 26px; }
.choices { display: grid; gap: 14px; margin-top: 10px; }
.choice {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; color: var(--text); font: inherit;
}
.choice:hover, .choice:focus-visible { border-color: var(--accent); outline: none; }
.choice b { display: block; font-size: 18px; margin-bottom: 4px; }
.choice small { color: var(--muted); font-size: 14px; }
.perks { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.perk { font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
h2 { font-size: 22px; margin: 6px 0 14px; }
h3 { font-size: 17px; margin: 0 0 10px; }
.muted { color: var(--muted); }
.steps { display: flex; gap: 6px; margin-bottom: 14px; }
.steps i { flex: 1; height: 5px; border-radius: 4px; background: var(--line); }
.steps i.on { background: linear-gradient(90deg, var(--accent), var(--accent2)); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--bg2); color: var(--text); border-radius: 999px; padding: 9px 14px; cursor: pointer; font: inherit; font-size: 15px; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 15px; }
label small { font-weight: 400; color: var(--muted); }
input, textarea, select {
  width: 100%; font: inherit; color: var(--text); background: var(--bg2);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
textarea { min-height: 120px; resize: vertical; }
textarea.lyrics { min-height: 340px; font-family: inherit; line-height: 1.6; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); border-color: transparent; }

.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  width: 100%; border: 0; border-radius: 14px; padding: 15px 18px; margin-top: 16px;
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none;
  background: linear-gradient(135deg, var(--accent), #1638b0); color: #fff;
}
.btn.gold { background: linear-gradient(135deg, var(--accent2), #d99a0b); color: #0a1330; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn[disabled] { opacity: .55; cursor: wait; }
.row { display: flex; gap: 10px; }
.row .btn { flex: 1; }

.alert { border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-size: 15px; }
.alert.err { background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.45); }
.alert.info { background: rgba(36,87,230,.18); border: 1px solid rgba(36,87,230,.55); }
.alert.ok { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.45); }

.pay { background: var(--bg2); border-radius: 12px; padding: 14px; margin: 10px 0; }
.pay .price { font-size: 30px; font-weight: 800; color: var(--accent2); }
.paynum { white-space: pre-line; font-size: 17px; font-weight: 700; }

.status { text-align: center; padding: 26px 10px; }
.status .big { font-size: 44px; }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

.version { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 12px 0; }
.version.chosen { border-color: var(--accent2); }
.version audio { width: 100%; margin: 8px 0; }
.version .row .btn { margin-top: 6px; padding: 12px; font-size: 15px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--accent2); color: #0a1330; }
.list a { display: block; color: var(--text); text-decoration: none; }
.spinner { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
.loyalty { border-color: rgba(245,179,1,.55); }
.status.done { border-color: rgba(34,197,94,.55); }
.eq { display: flex; justify-content: center; align-items: flex-end; gap: 6px; height: 54px; margin-bottom: 10px; }
.eq i { width: 9px; height: 100%; border-radius: 5px; background: linear-gradient(180deg, var(--accent2), var(--accent)); transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .15s; } .eq i:nth-child(3) { animation-delay: .3s; }
.eq i:nth-child(4) { animation-delay: .45s; } .eq i:nth-child(5) { animation-delay: .6s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .eq i { animation: none; transform: scaleY(.6); } }
.topbar { gap: 10px; }
img.logo { width: 38px; height: 38px; border-radius: 50%; background: none; box-shadow: 0 0 0 1px rgba(245,194,66,.5); }
.foot a { color: var(--muted); }
.how ol, .cond { line-height: 1.7; }
.how ol { padding-left: 20px; margin-bottom: 0; }
.cond h3 { margin-top: 16px; }
.cond p { margin-top: 4px; color: var(--muted); }
#samples { margin: 26px 0; }
.wa-float { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 20; width: 54px; height: 54px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.receipt summary { cursor: pointer; }
.receipt-body { margin-top: 12px; }
.r-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.r-head img { border-radius: 50%; }
.receipt table { width: 100%; border-collapse: collapse; font-size: 15px; }
.receipt td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.receipt td:first-child { color: var(--muted); width: 42%; }
@media print {
  body.printing-receipt * { visibility: hidden; }
  body.printing-receipt #receipt, body.printing-receipt #receipt * { visibility: visible; }
  body.printing-receipt #receipt { position: absolute; inset: 0 auto auto 0; width: 100%; background: #fff; color: #000; border: 0; }
  body.printing-receipt #receipt td:first-child, body.printing-receipt .muted { color: #444; }
  body.printing-receipt .no-print, body.printing-receipt summary { display: none; }
}
.install-top { margin-left: auto; background: linear-gradient(135deg, var(--accent2), #d99a0b); color: #0a1330; border: 0; border-radius: 999px; padding: 7px 12px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; background: var(--card); border: 1px solid var(--line); border-radius: 20px 20px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); }
.sheet ol { padding-left: 20px; line-height: 1.8; }
.progress { height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 10px; }
.progress b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .2s; }
.dots { display: flex; gap: 6px; margin: 10px 0 12px; }
.dots .dot { flex: 1; height: 10px; border-radius: 6px; background: var(--line); }
.dots .dot.on { background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.code { font-size: 18px; letter-spacing: 2px; color: var(--accent2); }
.brand { white-space: nowrap; font-size: 18px; }
.toplink { white-space: nowrap; }
main { padding-bottom: 90px; }
@media (max-width: 360px) { .brand { font-size: 16px; } .install-top { padding: 6px 10px; } }
.install-top { white-space: nowrap; }

#plans { margin: 26px 0; }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.plan-head b { font-size: 19px; }
.price-sm { font-weight: 800; color: var(--accent2); font-size: 20px; }
.price-sm small { font-weight: 400; color: var(--muted); font-size: 13px; }
.plan.off { opacity: .75; }
.badge.soon { background: var(--line); color: var(--text); font-size: 12px; vertical-align: middle; }

.methods { display: grid; gap: 10px; margin-top: 12px; }
.method { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.method .btn { margin-top: 8px; padding: 12px; }
.num-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.num-row .paynum { font-size: 16px; }
