:root {
  --bg: #070B14;
  --bg-2: #0A1020;
  --surface: #0D1424;
  --surface-2: #121B2F;
  --surface-3: #18233B;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #EEF2FA;
  --muted: #9AA6BF;
  --gold: #F2C14E;
  --gold-2: #C9962E;
  --gold-soft: rgba(242, 193, 78, .14);
  --blue: #2AABEE;
  --blue-2: #3B82F6;
  --ok: #34D399;
  --warn: #FBBF24;
  --bad: #F87171;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(59, 130, 246, .12), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(242, 193, 78, .07), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gold-text {
  background: linear-gradient(120deg, #FFE29A, var(--gold) 45%, var(--gold-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: #111; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }

/* Buttons */
.btn {
  --b: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; border: 1px solid var(--b);
  font: 700 .95rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  color: var(--text); background: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-gold { color: #1A1300; background: linear-gradient(135deg, #FFE29A, var(--gold) 50%, var(--gold-2)); box-shadow: 0 10px 30px -10px rgba(242, 193, 78, .6); }
.btn-gold:hover { box-shadow: 0 14px 34px -10px rgba(242, 193, 78, .8); }
.btn-blue { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; box-shadow: 0 10px 30px -12px rgba(42, 171, 238, .7); }
.btn-ghost { --b: var(--line-2); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { --b: rgba(242, 193, 78, .5); background: var(--gold-soft); }
.btn-sm { padding: .6em 1em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 20, .72); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-word { font-weight: 800; letter-spacing: .22em; font-size: 1rem; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .93rem; transition: color .2s; }
.site-nav a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; width: 44px; height: 40px; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.nav-toggle .bar { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:last-of-type { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 64px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 10%, transparent 70%);
  opacity: .5;
}
.hero-glow { position: absolute; width: 520px; height: 520px; right: 6%; top: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(242, 193, 78, .22), transparent 65%); filter: blur(20px); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .9rem; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .03); color: var(--muted); font-size: .85rem; font-weight: 600; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }
.hero h1 { margin-top: 1.1rem; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 36em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8rem 0; }
.hero-ctas.center { justify-content: center; }
.trust-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.trust-chips li { font-size: .85rem; color: var(--muted); padding: .45rem .8rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }

/* Phone */
.phone-wrap { display: flex; flex-direction: column; align-items: center; }
.phone {
  position: relative; width: min(370px, 100%); height: 640px;
  border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #1d2740, #0b101c);
  box-shadow: var(--shadow), 0 0 0 1px var(--line-2), inset 0 0 0 2px rgba(255, 255, 255, .04), 0 0 80px -20px rgba(242, 193, 78, .35);
  display: flex; flex-direction: column;
}
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 96px; height: 24px; border-radius: 20px; background: #000; z-index: 3; }
.tg-header {
  display: flex; align-items: center; gap: 10px;
  padding: 44px 14px 10px; border-radius: 34px 34px 0 0;
  background: #17212B; border-bottom: 1px solid rgba(0, 0, 0, .3);
}
.tg-back { font-size: 1.6rem; color: var(--blue); line-height: 1; }
.tg-avatar { width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #1d2a48, #0a0f1c); display: grid; place-items: center; border: 1px solid rgba(242, 193, 78, .4); flex: none; }
.tg-avatar svg { width: 22px; height: 22px; }
.tg-title { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.tg-title strong { font-size: .95rem; }
.tg-title small { color: #7f91a4; font-size: .78rem; }
.tg-restart { background: none; border: 0; color: #7f91a4; font-size: 1.25rem; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; }
.tg-restart:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.tg-chat {
  flex: 1; overflow-y: auto; padding: 14px 10px; display: flex; flex-direction: column; gap: 8px;
  background-color: #0E1621;
  background-image: radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 18px 18px;
  scrollbar-width: thin; scrollbar-color: #2b3a4d transparent;
}
.tg-input { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px 16px; background: #17212B; color: #6c7883; font-size: .9rem; border-radius: 0 0 34px 34px; }
.tg-send { color: var(--blue); }
.msg { max-width: 86%; padding: 8px 11px 6px; border-radius: 14px; font-size: .86rem; line-height: 1.45; animation: pop .25s ease both; word-wrap: break-word; }
.msg p { margin: 0 0 .35em; }
.msg p:last-child { margin: 0; }
.msg.bot { background: #182533; align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: #2B5278; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg .time { display: block; text-align: right; font-size: .68rem; color: rgba(255, 255, 255, .45); margin-top: 2px; }
.msg code { font-family: var(--mono); font-size: .78rem; background: rgba(0, 0, 0, .25); padding: 1px 5px; border-radius: 5px; word-break: break-all; }
.msg .mini-qr { width: 110px; height: 110px; margin: 6px 0; border-radius: 8px; background: #fff; padding: 6px; }
.kb { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; max-width: 86%; align-self: flex-start; width: 86%; animation: pop .25s ease both; }
.kb button {
  grid-column: span var(--span, 1);
  background: rgba(24, 37, 51, .92); border: 0; color: #fff; font: 600 .8rem/1.2 var(--font);
  padding: 9px 6px; border-radius: 8px; cursor: pointer; transition: background .15s;
}
.kb button:hover { background: #22364b; }
.kb button.full { grid-column: span 2; }
.kb.used button { opacity: .45; pointer-events: none; }
.typing { align-self: flex-start; background: #182533; padding: 10px 14px; border-radius: 14px; display: flex; gap: 4px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #7f91a4; animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; transform: translateY(-2px); } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.phone-caption { margin-top: 14px; color: var(--muted); font-size: .82rem; }

/* Draw strip */
.draw-strip { border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(13, 20, 36, .9), rgba(10, 16, 32, .9)); }
.strip-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 28px; padding: 26px 0; align-items: center; }
.strip-label { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.strip-label strong { color: var(--text); font-family: var(--mono); }
.progress { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blue-2), var(--blue) 40%, var(--gold)); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.strip-stat { display: flex; flex-direction: column; border-left: 1px solid var(--line); padding-left: 22px; }
.strip-stat small { color: var(--muted); font-size: .8rem; }
.strip-stat strong { font-size: 1.25rem; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(13, 20, 36, .65) 15%, rgba(13, 20, 36, .65) 85%, transparent); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.kicker { color: var(--gold); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; margin-bottom: .8rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.step:hover { border-color: rgba(242, 193, 78, .35); transform: translateY(-3px); }
.step-num { position: absolute; top: 22px; right: 22px; font-family: var(--mono); color: rgba(255, 255, 255, .2); font-weight: 700; }
.step-icon { width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.4rem; border-radius: 14px; background: var(--gold-soft); border: 1px solid rgba(242, 193, 78, .25); margin-bottom: 18px; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-rev .split-visual { order: 0; }
.split-visual { display: flex; justify-content: center; }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); font-size: .95rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: #1A1300; background: var(--gold); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
label { font-size: .82rem; font-weight: 600; color: var(--muted); }
input, textarea {
  width: 100%; font: 500 .95rem/1.4 var(--font); color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .75em .9em;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 193, 78, .18); }
textarea { resize: vertical; min-height: 84px; }
.ticket-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin-top: 1.5rem; }
.ticket-form .field { margin: 0; }

/* Ticket */
.ticket-stage { perspective: 1200px; width: 100%; display: flex; justify-content: center; padding: 20px; }
.ticket {
  --w: 440px;
  position: relative; width: min(var(--w), 100%); border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(242, 193, 78, .22), transparent 60%),
    radial-gradient(300px 200px at 0% 100%, rgba(59, 130, 246, .22), transparent 60%),
    linear-gradient(150deg, #141E36, #0A0F1D);
  border: 1px solid rgba(242, 193, 78, .45);
  box-shadow: var(--shadow), 0 0 60px -20px rgba(242, 193, 78, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: rotateY(-8deg) rotateX(6deg);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.ticket-stage:hover .ticket { transform: rotateY(0) rotateX(0); }
.ticket::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .08) 50%, transparent 65%); pointer-events: none; }
.ticket-top { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 0; gap: 10px; }
.ticket-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .22em; font-size: .9rem; }
.ticket-brand svg { width: 26px; height: 26px; }
.ticket-body { padding: 26px 24px 22px; text-align: center; }
.ticket small { display: block; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; }
.ticket-code { font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: .08em; margin-top: 6px;
  background: linear-gradient(180deg, #FFF3CF, var(--gold) 55%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ticket-code.flash { animation: flash .5s ease; }
@keyframes flash { from { filter: brightness(2) blur(2px); transform: scale(.96); } }
.ticket-perf { position: relative; height: 0; border-top: 2px dashed rgba(255, 255, 255, .14); margin: 0 18px; }
.ticket-perf::before, .ticket-perf::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.ticket-perf::before { left: -32px; } .ticket-perf::after { right: -32px; }
.section-alt .ticket-perf::before, .section-alt .ticket-perf::after { background: #0B1222; }
.ticket-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 24px 22px; }
.ticket-foot strong { display: block; font-size: .98rem; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-foot div:last-child { text-align: right; }
.ticket-sm { --w: 100%; transform: none; margin: 12px 0; box-shadow: none; }
.ticket-sm .ticket-code { font-size: 2rem; }
.ticket-sm .ticket-perf::before, .ticket-sm .ticket-perf::after { background: var(--surface-2); }
.ticket-xs { --w: 100%; transform: none; border-radius: 12px; box-shadow: none; margin: 6px 0 2px; }
.ticket-xs .ticket-top { padding: 10px 12px 0; }
.ticket-xs .ticket-brand { font-size: .62rem; gap: 5px; }
.ticket-xs .ticket-brand svg { width: 16px; height: 16px; }
.ticket-xs .badge { font-size: .58rem; padding: 3px 6px; }
.ticket-xs .ticket-body { padding: 10px 12px 8px; }
.ticket-xs .ticket-code { font-size: 1.5rem; }
.ticket-xs small { font-size: .55rem; }
.ticket-xs .ticket-perf { margin: 0 10px; }
.ticket-xs .ticket-perf::before, .ticket-xs .ticket-perf::after { width: 14px; height: 14px; top: -8px; background: #182533; }
.ticket-xs .ticket-perf::before { left: -17px; } .ticket-xs .ticket-perf::after { right: -17px; }
.ticket-xs .ticket-foot { padding: 8px 12px 10px; gap: 6px; }
.ticket-xs .ticket-foot strong { font-size: .72rem; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.badge-ok { color: var(--ok); background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .35); }
.badge-pending { color: var(--warn); background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .35); }
.badge-bad { color: var(--bad); background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .35); }

/* Payments */
.pay-card { width: min(480px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--bg-2); border-radius: 14px; margin-bottom: 18px; }
.tabs button { border: 0; background: none; color: var(--muted); font: 700 .88rem/1 var(--font); padding: 11px; border-radius: 10px; cursor: pointer; transition: background .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px rgba(242, 193, 78, .35); }
.pay-panel { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; }
.qr { width: 150px; height: 150px; padding: 10px; background: #fff; border-radius: 14px; }
.qr svg { width: 100%; height: 100%; }
.pay-info small { color: var(--muted); font-size: .78rem; }
.pay-amount { font-size: 1.9rem; font-weight: 800; margin-bottom: 8px; }
.pay-amount span:last-child { font-size: 1rem; color: var(--gold); }
.addr-row { display: flex; gap: 8px; align-items: center; margin: 4px 0 12px; }
.addr-row code { flex: 1; min-width: 0; font-size: .78rem; padding: 9px 10px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-note { font-size: .8rem; color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Admin */
.admin { display: grid; grid-template-columns: 300px 1fr 1fr; grid-template-areas: "settings queue queue" "settings draw tools"; gap: 18px; }
.admin-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.admin-settings { grid-area: settings; }
.admin-queue { grid-area: queue; }
.admin-draw { grid-area: draw; display: flex; flex-direction: column; }
.admin-tools { grid-area: tools; display: flex; flex-direction: column; gap: 14px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.count { font-size: .75rem; background: var(--gold-soft); color: var(--gold); border-radius: 99px; padding: 2px 9px; }
.admin-mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.admin-mini-stats div { background: var(--bg-2); border-radius: 12px; padding: 10px; }
.admin-mini-stats small { color: var(--muted); font-size: .7rem; display: block; }
.admin-mini-stats strong { font-family: var(--mono); font-size: .95rem; }
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 560px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; padding: 12px 14px; background: var(--bg-2); }
.table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.table td .u { display: flex; flex-direction: column; line-height: 1.3; }
.table td .u small { color: var(--muted); }
.table td code { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.icon-btn { border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); border-radius: 9px; padding: 6px 10px; font: 700 .78rem/1 var(--font); cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap; }
.icon-btn.ok:hover { border-color: var(--ok); background: rgba(52, 211, 153, .12); }
.icon-btn.no:hover { border-color: var(--bad); background: rgba(248, 113, 113, .12); }
.row-out { animation: rowOut .35s ease forwards; }
@keyframes rowOut { to { opacity: 0; transform: translateX(20px); } }
.empty { color: var(--muted); text-align: center; padding: 18px; margin: 0; font-size: .9rem; }
.draw-display {
  margin: 8px 0 10px; padding: 22px 10px; text-align: center; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: .08em;
  border-radius: 16px; background: radial-gradient(circle at 50% 0%, rgba(242, 193, 78, .18), transparent 70%), var(--bg-2); border: 1px solid rgba(242, 193, 78, .3); color: var(--gold);
}
.draw-display.rolling { color: var(--muted); }
.draw-display.won { animation: won .6s ease; text-shadow: 0 0 24px rgba(242, 193, 78, .6); }
@keyframes won { 30% { transform: scale(1.06); } }
.draw-winner { text-align: center; color: var(--muted); font-size: .9rem; min-height: 1.5em; margin-bottom: 14px; }
.draw-winner strong { color: var(--text); }
.admin-draw .btn { margin-top: auto; }
.broadcast { display: flex; flex-direction: column; gap: 8px; }

/* Channel post */
.channel-post { width: min(440px, 100%); background: var(--surface-2); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.cp-head { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cp-head small { display: block; color: var(--muted); font-size: .78rem; }
.cp-body { padding: 16px 18px 6px; font-size: .93rem; }
.cp-code { font-weight: 800; font-size: 1.05rem; }
.cp-meta { display: flex; gap: 16px; justify-content: flex-end; padding: 8px 18px 14px; color: var(--muted); font-size: .78rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature > span { font-size: 1.5rem; display: inline-block; margin-bottom: 12px; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(242, 193, 78, .35); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.4rem; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* CTA */
.cta { padding: 0 0 100px; }
.cta-inner {
  text-align: center; padding: clamp(48px, 7vw, 80px) 24px; border-radius: 32px; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 50% 0%, rgba(242, 193, 78, .2), transparent 70%), radial-gradient(600px 300px at 50% 120%, rgba(42, 171, 238, .2), transparent 70%), var(--surface);
  border: 1px solid rgba(242, 193, 78, .25);
}
.cta-crown { width: 64px; height: 64px; margin: 0 auto 18px; filter: drop-shadow(0 8px 24px rgba(242, 193, 78, .5)); }
.cta-inner h2 { max-width: 18em; margin-inline: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.footer-inner p { margin: 0; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 200;
  background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text); padding: 12px 18px; border-radius: 14px;
  box-shadow: var(--shadow); font-size: .9rem; font-weight: 600; max-width: calc(100% - 32px); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.toast.show { transform: translate(-50%, 0); }
.toast.ok { border-color: rgba(52, 211, 153, .5); }
.toast.bad { border-color: rgba(248, 113, 113, .5); }

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-ctas, .trust-chips { justify-content: center; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-rev .split-visual { order: 2; }
  .admin { grid-template-columns: 1fr 1fr; grid-template-areas: "queue queue" "settings draw" "settings tools"; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .strip-grid { grid-template-columns: repeat(3, 1fr); }
  .strip-progress { grid-column: 1 / -1; }
  .strip-stat:nth-child(2) { border-left: 0; padding-left: 0; }
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 20px; background: rgba(7, 11, 20, .97); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav .btn { margin-top: 14px; }
}
@media (max-width: 720px) {
  .steps, .features { grid-template-columns: 1fr; }
  .admin { grid-template-columns: 1fr; grid-template-areas: "queue" "settings" "draw" "tools"; }
  .ticket-form { grid-template-columns: 1fr 1fr; }
  .ticket-form .btn { grid-column: 1 / -1; }
  .pay-panel { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pay-info { width: 100%; }
  .pay-note { justify-content: center; }
  .strip-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .strip-stat { border-left: 0; padding-left: 0; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .phone { height: 600px; }
  .ticket { transform: none; }
  .ticket-stage { padding: 0; }
}
@media (max-width: 420px) {
  .ticket-top { flex-direction: column; align-items: flex-start; }
  .ticket-xs .ticket-top { flex-direction: row; align-items: center; }
  .hero-ctas .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
