/* 256JACKPOT - hand-written CSS, no build step required. */
:root {
  --bg: #0b1620;
  --bg-2: #0f1d29;
  --surface: #13232f;
  --surface-2: #192e3d;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eaf0f5;
  --muted: #8fa3b3;
  --gold: #e9b949;
  --gold-2: #c8962b;
  --orange: #fe7f2d;
  --navy: #233d4d;
  --green: #22c55e;
  --red: #ef4444;
  --blue: #60a5fa;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 600px at 50% -200px, #1b3346 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text); font: 15px/1.55 var(--font); min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 460px; }
.mid { max-width: 820px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3 { grid-template-columns: 1fr; } }
.mt { margin-top: 24px; } .mb0 { margin-bottom: 0; } .tr { text-align: right; } .tc { text-align: center; }
.nowrap { white-space: nowrap; } .mono { font-variant-numeric: tabular-nums; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(11, 22, 32, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand img { height: 36px; width: auto; }
.brand span b { color: var(--gold); }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 500; }
.nav a:hover, .nav a.on { color: var(--text); background: var(--surface); text-decoration: none; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.pill .lbl { color: var(--muted); font-weight: 500; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.pill.gold { border-color: rgba(233, 185, 73, .35); color: var(--gold); }
@media (max-width: 860px) { .nav, .hide-sm { display: none !important; } }

/* Mobile bottom nav */
.bottomnav { display: none; }
@media (max-width: 860px) {
  body.has-bottomnav { padding-bottom: 72px; }
  .bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: rgba(15, 29, 41, .97); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: .7rem; padding: 6px 0; }
  .bottomnav a.on { color: var(--gold); }
  .bottomnav svg { width: 22px; height: 22px; }
}

/* Buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: 12px; padding: 11px 18px; font: 600 .95rem var(--font); color: #1a1205; background: linear-gradient(180deg, #f5cd6a, var(--gold) 45%, var(--gold-2)); box-shadow: 0 6px 18px rgba(233, 185, 73, .22); transition: transform .08s, filter .15s; text-decoration: none !important; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.3); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.btn.ghost:hover { background: var(--surface); }
.btn.orange { background: linear-gradient(180deg, #ff9a52, var(--orange)); color: #fff; box-shadow: 0 6px 18px rgba(254, 127, 45, .25); }
.btn.danger { background: #3a1518; color: #fca5a5; border: 1px solid rgba(239, 68, 68, .35); box-shadow: none; }
.btn.sm { padding: 7px 12px; font-size: .85rem; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.lg { padding: 14px 24px; font-size: 1.05rem; }
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
input[type=text], input[type=tel], input[type=number], input[type=password], input[type=date], input[type=search], select, textarea {
  width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 11px; padding: 11px 13px; font: 15px var(--font); outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233, 185, 73, .15); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; accent-color: var(--gold); }
.err { color: #fca5a5; font-size: .85rem; margin-top: 5px; }
.hint { color: var(--muted); font-size: .82rem; margin-top: 5px; }
.code-input { text-align: center; letter-spacing: .5em; font: 700 1.6rem var(--display) !important; }
.voucher-input { text-transform: uppercase; letter-spacing: .12em; font-family: var(--display) !important; font-weight: 600 !important; }

/* Cards */
.card { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-h h2, .card-h h3 { margin: 0; }
.stat .k { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.stat .v { font: 700 1.5rem var(--display); margin-top: 4px; }
.stat .v.gold { color: var(--gold); }

/* Alerts */
.alert { border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; border: 1px solid; font-size: .93rem; }
.alert.success { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .35); color: #bbf7d0; }
.alert.error { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .35); color: #fecaca; }
.alert.info { background: rgba(96, 165, 250, .1); border-color: rgba(96, 165, 250, .35); color: #bfdbfe; }
.alert.warn { background: rgba(233, 185, 73, .1); border-color: rgba(233, 185, 73, .35); color: #fde68a; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.t th { text-align: left; color: var(--muted); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; padding: 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
table.t td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:hover td { background: rgba(255, 255, 255, .02); }
.cr { color: var(--green); font-weight: 600; } .dr { color: #fca5a5; font-weight: 600; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge.green { color: #86efac; border-color: rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .08); }
.badge.red { color: #fca5a5; border-color: rgba(239, 68, 68, .35); background: rgba(239, 68, 68, .08); }
.badge.gold { color: var(--gold); border-color: rgba(233, 185, 73, .4); background: rgba(233, 185, 73, .08); }
.badge.blue { color: #93c5fd; border-color: rgba(96, 165, 250, .35); background: rgba(96, 165, 250, .08); }
.digits { font: 700 1rem var(--display); letter-spacing: .2em; }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; }
.pager { margin-top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.pager a, .pager span { padding: 6px 11px; border-radius: 9px; border: 1px solid var(--line); color: var(--text); font-size: .85rem; }
.pager .on { background: var(--gold); color: #1a1205; border-color: var(--gold); }
.pager .off { color: var(--muted); }

/* Jackpot meter */
.jp { text-align: center; padding: 24px 18px; border-radius: 18px; background: radial-gradient(500px 200px at 50% 0%, rgba(233, 185, 73, .2), transparent 70%), linear-gradient(180deg, #172b3a, #0f1d29); border: 1px solid rgba(233, 185, 73, .3); }
.jp .lbl { text-transform: uppercase; letter-spacing: .25em; font-size: .78rem; color: var(--gold); font-weight: 700; }
.jp .amt { font: 800 clamp(2rem, 6vw, 3.4rem) var(--display); color: #fff; text-shadow: 0 0 28px rgba(233, 185, 73, .35); margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--gold)); border-radius: 99px; transition: width .6s ease; }

/* Slot machine */
.machine { position: relative; border-radius: 22px; padding: 22px; background: linear-gradient(180deg, #1a2f3f, #0c1822); border: 2px solid rgba(233, 185, 73, .35); box-shadow: 0 0 0 6px rgba(233, 185, 73, .06), var(--shadow); }
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 2.5vw, 18px); }
.reel { position: relative; height: clamp(120px, 26vw, 190px); border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, #050b10, #13222e 50%, #050b10); border: 1px solid rgba(233, 185, 73, .25); box-shadow: inset 0 10px 24px rgba(0, 0, 0, .7), inset 0 -10px 24px rgba(0, 0, 0, .7); }
.reel .strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.reel .cell { height: clamp(120px, 26vw, 190px); display: flex; align-items: center; justify-content: center; font: 800 clamp(3.2rem, 11vw, 6rem) var(--display); color: #f3f6f9; }
.reel.win .cell { color: var(--green); text-shadow: 0 0 26px rgba(34, 197, 94, .55); }
.reel.jackpot .cell { color: var(--gold); text-shadow: 0 0 34px rgba(233, 185, 73, .8); }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 28%, transparent 72%, rgba(0, 0, 0, .55)); pointer-events: none; }
.payline { position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; background: rgba(254, 127, 45, .22); pointer-events: none; z-index: 2; }
.result { min-height: 56px; margin-top: 16px; text-align: center; font: 700 1.2rem var(--display); }
.result.win { color: var(--green); } .result.jackpot { color: var(--gold); font-size: 1.6rem; } .result.lose { color: var(--muted); font-weight: 600; } .result.err { color: #fca5a5; }
.spin-btn { width: 100%; font-size: 1.25rem; padding: 18px; border-radius: 16px; letter-spacing: .08em; text-transform: uppercase; font-family: var(--display); font-weight: 800; }
.machine.flash { animation: flash .9s ease 2; }
@keyframes flash { 50% { box-shadow: 0 0 0 6px rgba(233, 185, 73, .35), 0 0 60px rgba(233, 185, 73, .5); } }
.paytable { width: 100%; font-size: .88rem; border-collapse: collapse; }
.paytable td { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.paytable td:last-child { text-align: right; font-weight: 700; color: var(--gold); }

/* Auth / hero */
.auth { padding: 48px 0; }
.auth .card { padding: 28px; }
.hero { padding: 56px 0 32px; text-align: center; }
.hero p.lead { color: var(--muted); font-size: 1.1rem; max-width: 620px; margin: 0 auto 26px; }
.hero .logo-xl { height: 120px; margin-bottom: 18px; filter: drop-shadow(0 10px 30px rgba(233, 185, 73, .25)); }
.steps { counter-reset: s; }
.steps .card { position: relative; padding-top: 44px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: 14px; left: 20px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #1a1205; font: 800 .9rem/26px var(--display); text-align: center; }
.prose h2 { margin-top: 1.6em; } .prose ul { padding-left: 1.2em; } .prose li { margin-bottom: .35em; }

footer.foot { border-top: 1px solid var(--line); margin-top: 56px; padding: 26px 0; color: var(--muted); font-size: .86rem; }
footer.foot .row a { color: var(--muted); }
.age { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--red); color: var(--red); font: 800 .78rem/26px var(--display); justify-content: center; }

/* Tabs */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button, .tabs a { background: none; border: 0; color: var(--muted); padding: 10px 14px; font: 600 .92rem var(--font); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs .on { color: var(--gold); border-bottom-color: var(--gold); text-decoration: none; }
.tabpane { display: none; } .tabpane.on { display: block; }

/* Admin */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: #0a141c; border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { padding: 4px 8px 18px; }
.side a.item { display: flex; align-items: center; justify-content: space-between; color: var(--muted); padding: 9px 12px; border-radius: 10px; font-weight: 500; font-size: .92rem; }
.side a.item:hover, .side a.item.on { background: var(--surface); color: var(--text); text-decoration: none; }
.side .sec { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #5f7484; margin: 16px 12px 6px; }
.main { padding: 22px; min-width: 0; }
.main-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.main-h h1 { font-size: 1.5rem; margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters input, .filters select { width: auto; min-width: 150px; padding: 8px 11px; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.chart .bars { height: 130px; width: 100%; display: flex; align-items: flex-end; gap: 2px; }
.chart .bars i { flex: 1; border-radius: 3px 3px 0 0; min-height: 1px; }
.chart .lb { font-size: .65rem; color: var(--muted); white-space: nowrap; }
.legend { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
details.inline summary { cursor: pointer; color: var(--gold); font-weight: 600; font-size: .85rem; list-style: none; }
details.inline[open] { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-top: 6px; }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 4px; }
  .side .sec { display: none; }
}
@media (max-width: 480px) {
  .brand span { display: none; }
  .pill .lbl { display: none; }
  .topbar .container { gap: 10px; }
  .machine { padding: 14px; }
}

/* ---- Onboarding (ported from the original 3-step React flow) ---- */
.ob { position: relative; min-height: calc(100vh - 64px); display: flex; flex-direction: column; overflow: hidden; }
.ob-track { flex: 1; display: flex; transition: transform .5s cubic-bezier(.22,.8,.3,1); will-change: transform; }
.ob-slide { flex: 0 0 100%; min-width: 0; padding: 18px 0 8px; }
.ob-hero { position: relative; border-radius: 18px; overflow: hidden; min-height: 230px; display: flex; align-items: center; background-size: cover; background-position: right center; border: 1px solid rgba(233,185,73,.25); }
.ob-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,10,14,.92) 0%, rgba(5,10,14,.65) 45%, rgba(5,10,14,0) 85%); }
.ob-hero > div { position: relative; padding: 26px; max-width: 560px; }
.ob-hero h1 { font-size: clamp(1.9rem, 5.5vw, 3.2rem); font-weight: 800; line-height: 1.05; text-transform: uppercase; margin: 0 0 10px; }
.ob-hero h1 .hl { background: linear-gradient(90deg, var(--orange), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ob-hero p { color: rgba(255,255,255,.82); margin: 0; }
.ob-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.ob-feat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 10px; text-align: center; }
.ob-feat b { display: block; font: 800 .95rem var(--display); color: var(--gold); letter-spacing: .04em; }
.ob-feat span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.ob-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.ob-step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.ob-step i { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #1a1205; font: 800 .85rem/28px var(--display); justify-content: center; font-style: normal; margin-bottom: 8px; }
.ob-step b { display: block; font: 800 1rem var(--display); text-transform: uppercase; }
.ob-step span { color: var(--muted); font-size: .85rem; }
.ob-big { font: 800 clamp(2.4rem, 8vw, 4rem) var(--display); color: var(--gold); line-height: 1; text-shadow: 0 0 30px rgba(233,185,73,.35); }
.ob-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ob-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.ob-list li b { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.ob-list li span { color: var(--muted); font-size: .82rem; }
.ob-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 22px; }
.ob-dots { display: flex; gap: 8px; }
.ob-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(255,255,255,.2); cursor: pointer; padding: 0; transition: width .3s, background .3s; }
.ob-dots button.on { width: 28px; background: var(--gold); }
@media (max-width: 640px) {
  .ob-feats, .ob-steps { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .ob-step { padding: 10px; } .ob-step span { font-size: .72rem; } .ob-step b { font-size: .8rem; }
  .ob-list { grid-template-columns: 1fr; }
  .ob-hero { min-height: 200px; } .ob-hero > div { padding: 18px; }
}
