:root {
  --bg: #0a0c10;
  --panel: #12161d;
  --panel-2: #181d26;
  --line: #252c38;
  --text: #eef1f6;
  --muted: #8b95a7;
  --accent: #ffcc33;
  --accent-ink: #1a1400;
  --good: #3ddc84;
  --bad: #ff6b6b;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
a { color: var(--accent); }
main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px 48px; }
.wide main, main.wide { max-width: 1100px; }

header.top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; width: 100%; margin: 0 auto; padding: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); font-size: 16px; font-weight: 900; }
.brand b { color: var(--accent); }

h1 { font-size: clamp(32px, 8vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 32px 0 12px; }
h2 { font-size: 22px; letter-spacing: -0.01em; margin: 36px 0 12px; }
h3 { font-size: 16px; margin: 0 0 6px; }
p.lead { color: var(--muted); font-size: 18px; margin: 0 0 28px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.btn {
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 800; font-size: 17px;
  padding: 14px 22px; border-radius: 12px; min-height: 52px;
  transition: transform .05s, filter .15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn.big { font-size: 20px; padding: 18px 30px; min-height: 62px; width: 100%; max-width: 360px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 600; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 9px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.block { width: 100%; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stack > * + * { margin-top: 12px; }

.steps { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 28px 0; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps .num { color: var(--accent); font-weight: 900; font-size: 14px; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--panel); padding: 6px; border-radius: 12px; border: 1px solid var(--line); margin: 16px 0; }
.tabs button { appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; padding: 12px; border-radius: 8px; cursor: pointer; }
.tabs button.on { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }

label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; min-height: 48px;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
input.invalid { border-color: var(--bad); }

.row { display: grid; grid-template-columns: 96px 1fr 44px; gap: 8px; align-items: start; }
.row + .row { margin-top: 8px; }
.row .err { grid-column: 1 / -1; color: var(--bad); font-size: 13px; margin-top: -2px; }
.row .x { appearance: none; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 10px; height: 48px; cursor: pointer; font-size: 20px; }
.row .thumb { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.row .thumb img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }

.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px 16px; text-align: center; cursor: pointer; }
.drop:hover { border-color: var(--accent); }

.slab { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-top: 1px solid var(--line); align-items: center; }
.slab:first-child { border-top: 0; }
.slab .title { font-weight: 700; }
.slab .meta { color: var(--muted); font-size: 14px; }
.slab .price { text-align: right; font-weight: 800; white-space: nowrap; }
.slab .price.offer { color: var(--good); font-size: 18px; }
.slab .price.no { color: var(--muted); font-weight: 500; font-size: 14px; max-width: 140px; }
.slab .pick { display: flex; align-items: center; gap: 10px; }
.slab .pick input { width: 22px; height: 22px; min-height: 0; accent-color: var(--accent); }

.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

.totalbar { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 18px 0 12px; }
.totalbar .inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.totalbar .amt { font-size: 26px; font-weight: 900; color: var(--accent); }

.countdown { display: inline-flex; gap: 8px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.countdown b { font-variant-numeric: tabular-nums; }

.notice { background: rgba(255, 204, 51, .08); border: 1px solid rgba(255, 204, 51, .35); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.error { background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .4); color: #ffd0d0; border-radius: 12px; padding: 12px 14px; }
.ok { background: rgba(61, 220, 132, .1); border: 1px solid rgba(61, 220, 132, .4); border-radius: 12px; padding: 14px; }

.choices { display: grid; gap: 8px; }
.choices label { display: flex; gap: 10px; align-items: center; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 0; cursor: pointer; font-size: 16px; }
.choices input { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); }
.grid2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } }

details.faq { border-top: 1px solid var(--line); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
details.faq summary::after { content: "+"; float: right; color: var(--muted); }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--muted); margin: 8px 0 0; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 24px 16px; text-align: center; }
footer a { color: var(--muted); }
.hidden { display: none !important; }
.cf-turnstile, #ts-quote, #ts-sell { min-height: 65px; margin: 12px 0; }

.tiers { display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.tiers > div { display: flex; justify-content: flex-end; gap: 10px; }
.tiers .lbl { color: var(--muted); font-weight: 600; font-size: 13px; }
.totalbar .amt .tiers > div { justify-content: flex-start; font-size: 20px; }
.totalbar .amt .tiers .lbl { min-width: 52px; }
.slab .price.no { white-space: normal; text-align: right; }
.countdown { display: inline-block; border-radius: 12px; line-height: 1.5; }
.countdown b { white-space: nowrap; }
