:root {
  --bg: #10153a;
  --bg-2: #161c47;
  --card: #1b2252;
  --card-2: #222a60;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef0fa;
  --muted: #a7aed3;
  --dim: #7680b3;
  --accent: #f2a65a;
  --accent-2: #ffcf7a;
  --ok: #6fd3a3;
  --bad: #ff8a7a;
  --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 9%, #fff9 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 42%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 36%, #fff7 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 74%, #fff5 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 64% 66%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 82%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 48% 92%, #fff4 50%, transparent 51%),
    radial-gradient(ellipse 80% 60% at 50% -10%, #2a3478 0%, transparent 70%),
    var(--bg);
  background-size: 420px 420px, 380px 380px, 520px 520px, 460px 460px, 400px 400px, 560px 560px, 480px 480px, 440px 440px, 100% 100%, 100% 100%;
}

a { color: var(--accent-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* header */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font: 700 18px/1 var(--serif); letter-spacing: .32em; color: #fff; text-decoration: none; white-space: nowrap; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav a:hover { color: #fff; }
.nav a.btn { color: #151a3c; }
.nav a.btn.ghost { color: var(--text); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #151a3c; font-weight: 700; text-decoration: none;
  border: 0; border-radius: 999px; padding: 13px 24px; font-size: 16px; cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .15s;
  box-shadow: 0 8px 30px -10px #f2a65a99;
}
.btn:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.sm { padding: 9px 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--card); }
.btn.danger { background: #3a2033; color: var(--bad); box-shadow: none; border: 1px solid #ff8a7a44; }

/* hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--accent-2); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
.slots { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.slots .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px #6fd3a322; }
.slots.full .dot { background: var(--bad); box-shadow: 0 0 0 4px #ff8a7a22; }
.badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--muted); font-size: 14px; }
.badges span::before { content: "✓ "; color: var(--accent); font-weight: 700; }

.phones { display: flex; justify-content: center; gap: 14px; }
.phone {
  width: 31%; max-width: 190px; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden;
  border: 1px solid #ffffff22; background: #000; box-shadow: 0 30px 60px -25px #000c;
}
.phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone:nth-child(2) { transform: translateY(-22px) scale(1.06); }

@media (max-width: 880px) {
  .hero { padding-top: 36px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .phone:nth-child(2) { transform: translateY(-10px) scale(1.04); }
}

/* sections */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 820px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card { background: linear-gradient(180deg, var(--card), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step-n { font: 700 14px/1 var(--serif); color: var(--accent); letter-spacing: .2em; margin-bottom: 14px; }
.card p:last-child { margin-bottom: 0; }

.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #f2a65a1f; color: var(--accent); font-size: 19px; }
.feature h3 { margin-bottom: 4px; font-size: 1.05rem; }
.feature p { color: var(--muted); font-size: .95rem; }

/* order form */
.order { background: linear-gradient(180deg, transparent, #0c1030 30%, #0c1030 70%, transparent); }
.order .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .order .wrap { grid-template-columns: 1fr; } }
.price { font: 700 3.2rem/1 var(--serif); color: #fff; margin: 10px 0 4px; }
.price small { font: 400 1rem var(--sans); color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 22px 0; }
.checklist li { padding: 7px 0 7px 28px; position: relative; color: var(--muted); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

form.card { padding: 28px; }
.field { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
label .opt { color: var(--dim); font-weight: 400; }
input[type=text], input[type=email], textarea, select {
  width: 100%; background: #0e1335; color: var(--text); border: 1px solid #ffffff1f;
  border-radius: 12px; padding: 13px 14px; font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #f2a65a33; }
.q-input { font-family: var(--serif) !important; font-size: 1.15rem !important; }
.hint { font-size: 13px; color: var(--dim); margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { background: #ffffff0d; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.chip:hover { color: #fff; border-color: #f2a65a66; }
.row2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
.form-error { background: #ff8a7a14; border: 1px solid #ff8a7a55; color: var(--bad); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; display: none; }
.form-error.show { display: block; }
.secure { font-size: 13px; color: var(--dim); text-align: center; margin-top: 12px; }
.counter { float: right; font-weight: 400; color: var(--dim); font-size: 12px; }

.soldout { text-align: center; padding: 40px 28px; }

/* rules + faq */
.rules li { margin-bottom: 6px; color: var(--muted); }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font: 700 1.08rem/1.4 var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; }

footer { border-top: 1px solid var(--line); padding: 34px 0 48px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer a { color: var(--muted); text-decoration: none; margin-right: 18px; }

/* order status page */
.status-page { padding: 56px 0 80px; }
.status-card { max-width: 680px; margin: 0 auto; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: #ffffff14; color: var(--muted); }
.pill.paid { background: #f2a65a22; color: var(--accent-2); }
.pill.delivered { background: #6fd3a322; color: var(--ok); }
.pill.refunded, .pill.expired { background: #ff8a7a1c; color: var(--bad); }
.question { font: italic 1.6rem/1.3 var(--serif); color: #fff; border-left: 3px solid var(--accent); padding-left: 16px; margin: 22px 0; }
.countdown { font: 700 clamp(2.4rem, 8vw, 3.6rem)/1 var(--serif); font-variant-numeric: tabular-nums; color: #fff; margin: 8px 0; }
.timeline { list-style: none; padding: 0; margin: 28px 0 0; }
.timeline li { position: relative; padding: 0 0 18px 28px; color: var(--dim); }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--dim); }
.timeline li.done { color: var(--text); }
.timeline li.done::before { background: var(--accent); border-color: var(--accent); }
.player { width: 100%; max-width: 360px; aspect-ratio: 9/16; display: block; margin: 20px auto; border-radius: 18px; background: #000; border: 1px solid #ffffff22; }
.center { text-align: center; }
.spinner { width: 28px; height: 28px; border: 3px solid #ffffff22; border-top-color: var(--accent); border-radius: 50%; animation: spin 0.9s linear infinite; margin: 18px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* legal */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }

/* admin */
.admin table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin th, .admin td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin th { color: var(--dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.admin .q { font-family: var(--serif); font-size: 15px; color: #fff; }
.admin .late { color: var(--bad); font-weight: 700; }
.admin .actions { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-scroll { overflow-x: auto; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

@media (max-width: 720px) { .nav a#nav-account { display: inline; } }
.auth-card { max-width: 440px; margin: 0 auto; }
.order-list { list-style: none; padding: 0; margin: 0; }
.order-list li { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.order-list a { color: #fff; text-decoration: none; font-family: var(--serif); }
.order-list a:hover { color: var(--accent-2); }
.locked { opacity: .8; }
