/* ============================================================
   GainWheel — Creative Design System  ·  "Luxe Casino Crypto"
   Prototype (no backend wired)
   ============================================================ */

:root {
  /* base */
  --bg:        #07060f;
  --bg-2:      #0c0a1a;
  --surface:   #120f24;
  --surface-2: #181433;
  --ink:       #050410;

  --border:    rgba(255,255,255,.09);
  --border-2:  rgba(255,255,255,.16);

  --text:      #f3f0ff;
  --muted:     #9b96bf;
  --faint:     #635d8a;

  /* brand */
  --gold:      #ffcf4d;
  --gold-2:    #ffe39a;
  --gold-deep: #c98a16;
  --teal:      #2ff0c0;
  --teal-2:    #19d6a6;
  --violet:    #9d6bff;
  --pink:      #ff5fa2;
  --blue:      #4fb0ff;
  --red:       #ff5d6c;

  /* gradients */
  --grad-gold:  linear-gradient(135deg,#ffe39a 0%,#ffcf4d 45%,#e0a52a 100%);
  --grad-teal:  linear-gradient(135deg,#2ff0c0 0%,#19d6a6 100%);
  --grad-aura:  linear-gradient(120deg,#ffcf4d,#ff5fa2,#9d6bff,#2ff0c0,#ffcf4d);
  --grad-text:  linear-gradient(100deg,#ffe39a,#ff8fc4 45%,#a98bff 70%,#7af0d6);

  --shadow:    0 30px 70px rgba(0,0,0,.55);
  --shadow-sm: 0 10px 30px rgba(0,0,0,.4);
  --glow-gold: 0 0 36px rgba(255,207,77,.45);
  --glow-teal: 0 0 36px rgba(47,240,192,.4);

  --radius:    22px;
  --radius-sm: 14px;
  --maxw:      1200px;

  --font:    "Inter","Segoe UI",system-ui,-apple-system,sans-serif;
  --display: "Space Grotesk","Inter",system-ui,sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Animated aurora mesh background ---------- */
body::before {
  content:""; position: fixed; inset: -20%; z-index: -3;
  background:
    radial-gradient(40% 50% at 18% 12%, rgba(157,107,255,.30), transparent 60%),
    radial-gradient(45% 45% at 85% 8%,  rgba(47,240,192,.22), transparent 60%),
    radial-gradient(40% 50% at 75% 85%, rgba(255,95,162,.22), transparent 60%),
    radial-gradient(50% 50% at 25% 90%, rgba(255,207,77,.16), transparent 60%);
  filter: blur(20px);
  animation: aura 22s ease-in-out infinite alternate;
}
@keyframes aura {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(2%, -2%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.04); }
}
/* subtle grain + grid overlay */
body::after {
  content:""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Typography ---------- */
h1,h2,h3 { font-family: var(--display); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
}
.text-grad-gold  { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-grad-teal  { background: var(--grad-teal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-aura {
  background: var(--grad-text); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }
.muted { color: var(--muted); }
.glow-text { text-shadow: 0 0 24px rgba(255,207,77,.5); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, filter .2s;
  white-space: nowrap; overflow: hidden;
}
.btn::after { /* sheen */
  content:""; position:absolute; top:0; left:-130%; width:60%; height:100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn:hover::after { left: 130%; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(.98); }
.btn-gold  { background: var(--grad-gold); color: #2a1d00; box-shadow: var(--glow-gold); }
.btn-gold:hover { filter: brightness(1.05); box-shadow: 0 0 50px rgba(255,207,77,.6); }
.btn-teal, .btn-green { background: var(--grad-teal); color: #042417; box-shadow: var(--glow-teal); }
.btn-ghost { background: rgba(255,255,255,.05); color: var(--text); border: 1px solid var(--border-2); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-block { width: 100%; }
.btn-sm    { padding: 9px 17px; font-size: .85rem; }

/* ---------- Gradient-border (animated) ---------- */
.gradient-border { position: relative; border-radius: var(--radius); }
.gradient-border::before {
  content:""; position:absolute; inset:0; border-radius: inherit; padding:1px;
  background: var(--grad-aura); background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: borderflow 8s linear infinite; opacity:.7;
}
@keyframes borderflow { to { background-position: 300% center; } }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(7,6,15,.6);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 1.22rem; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; position: relative;
  background: conic-gradient(from 0deg,#ffcf4d,#2ff0c0,#9d6bff,#ff5fa2,#ffcf4d);
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(255,207,77,.4);
  animation: spinmark 9s linear infinite;
}
@keyframes spinmark { to { transform: rotate(360deg); } }
.brand-mark::after { content:""; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.brand-mark + * , .brand > span:last-child { } /* keep text upright */
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: .94rem; transition: color .15s; position: relative; }
.nav-links a::after { content:""; position:absolute; left:0; bottom:-6px; height:2px; width:0; background: var(--grad-gold); transition: width .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; color: var(--text); font-size: 1.5rem; }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, rgba(24,20,51,.85), rgba(12,10,26,.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.glass { background: rgba(255,255,255,.045); border: 1px solid var(--border); border-radius: var(--radius); backdrop-filter: blur(10px); }
.card-hover { transition: transform .25s, border-color .25s, box-shadow .25s; }
.card-hover:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: var(--shadow); }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: 999px; font-size: .77rem; font-weight: 700; background: rgba(255,255,255,.06); border: 1px solid var(--border); }
.chip-teal  { color: var(--teal); background: rgba(47,240,192,.1); border-color: rgba(47,240,192,.28); }
.chip-gold  { color: var(--gold); background: rgba(255,207,77,.1); border-color: rgba(255,207,77,.28); }
.chip-violet{ color: var(--violet); background: rgba(157,107,255,.13); border-color: rgba(157,107,255,.3); }
/* aliases (back-compat with earlier markup) */
.chip-green { color: var(--teal); background: rgba(47,240,192,.1); border-color: rgba(47,240,192,.28); }
.chip-purple{ color: var(--violet); background: rgba(157,107,255,.13); border-color: rgba(157,107,255,.3); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ opacity:1; } 50%{ opacity:.4; } }

/* ---------- Sections ---------- */
section { padding: 92px 0; position: relative; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin: 16px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

/* ---------- Live wins ticker ---------- */
.ticker { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,.025); overflow: hidden; padding: 12px 0; }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: marquee 28s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; font-weight: 600; white-space: nowrap; }
.ticker-item b { color: var(--text); }
.ticker-item .amt { color: var(--teal); font-weight: 800; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Hero ---------- */
.hero { padding: 74px 0 56px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 20px 0 22px; }
.hero p.lead { font-size: 1.16rem; color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--display); font-size: 1.9rem; font-weight: 700; }
.hero-stats .lbl { color: var(--muted); font-size: .85rem; }

/* floating coins */
.coin { position: absolute; width: 46px; height: 46px; border-radius: 50%; display:grid; place-items:center; font-size:1.2rem;
  background: radial-gradient(circle at 34% 30%, #ffe9a8, #ffcf4d 55%, #c98a16);
  box-shadow: 0 10px 26px rgba(0,0,0,.5), inset 0 -4px 8px rgba(0,0,0,.25), inset 0 3px 6px rgba(255,255,255,.5);
  color:#7a5200; z-index:1; animation: float 6s ease-in-out infinite; }
.coin.c2 { width:34px; height:34px; font-size:.95rem; animation-duration:7.5s; }
.coin.c3 { width:56px; height:56px; font-size:1.5rem; animation-duration:5.5s; }
@keyframes float { 0%,100%{ transform: translateY(0) rotate(-6deg); } 50%{ transform: translateY(-22px) rotate(6deg); } }

/* ---------- The Wheel (casino marquee w/ bulbs) ---------- */
.wheel-stage { display: grid; place-items: center; position: relative; }
.wheel-wrap { position: relative; width: 380px; height: 380px; max-width: 82vw; aspect-ratio: 1; }
.wheel-glow { position: absolute; inset: -50px; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(255,207,77,.32), rgba(157,107,255,.18) 45%, transparent 68%);
  filter: blur(26px); animation: pulseGlow 4s ease-in-out infinite; }
@keyframes pulseGlow { 0%,100%{ opacity:.7; transform: scale(1);} 50%{ opacity:1; transform: scale(1.06);} }

/* bulb ring */
.wheel-bulbs { position: absolute; inset: -6px; border-radius: 50%; z-index: 3;
  background: radial-gradient(circle at 50% 50%, transparent 49%, #241c12 49% 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.05); }
.bulb { position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold-2); margin: -4.5px; box-shadow: 0 0 8px var(--gold), 0 0 14px rgba(255,207,77,.7);
  animation: bulbBlink 1.2s steps(1) infinite; }
@keyframes bulbBlink { 0%,100%{ opacity:1; } 50%{ opacity:.25; } }

.wheel { position: relative; width: 100%; height: 100%; border-radius: 50%; z-index: 2;
  background: conic-gradient(
    #ffcf4d 0deg 45deg, #181433 45deg 90deg,
    #2ff0c0 90deg 135deg, #181433 135deg 180deg,
    #9d6bff 180deg 225deg, #181433 225deg 270deg,
    #ff5fa2 270deg 315deg, #181433 315deg 360deg);
  border: 12px solid #0b0918;
  box-shadow: 0 0 0 6px rgba(255,255,255,.04), 0 30px 80px rgba(0,0,0,.65), inset 0 0 70px rgba(0,0,0,.45);
  transition: transform 4.8s cubic-bezier(.15,.7,.12,1); }
/* spokes */
.wheel::before { content:""; position:absolute; inset:0; border-radius:50%;
  background:
    repeating-conic-gradient(from 22.5deg, transparent 0 44deg, rgba(0,0,0,.25) 44deg 45deg);
  mix-blend-mode: multiply; }
.wheel-hub { position: absolute; inset: 0; margin: auto; width: 80px; height: 80px; border-radius: 50%; z-index: 5;
  background: radial-gradient(circle at 34% 30%, #ffe9a8, #ffcf4d 55%, #c98a16);
  display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: .8rem; color: #3a2800;
  box-shadow: 0 10px 28px rgba(0,0,0,.55), inset 0 -3px 8px rgba(0,0,0,.3), 0 0 30px rgba(255,207,77,.5); }
.wheel-hub::after { content:""; position:absolute; inset:-7px; border-radius:50%; border:2px dashed rgba(255,255,255,.4); animation: spinmark 12s linear infinite; }
.wheel-pointer { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); z-index: 6;
  width: 0; height: 0; border-left: 17px solid transparent; border-right: 17px solid transparent;
  border-top: 32px solid var(--gold); filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
.wheel.spinning { filter: saturate(1.3) brightness(1.08); }

/* ---------- Bento / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-2 > *, .grid-3 > *, .grid-4 > *, .bento > * { min-width: 0; }  /* prevent wide children from blowing out the track */
.bento .b-lg { grid-column: span 2; grid-row: span 2; }
.bento .b-wide { grid-column: span 2; }

.step { text-align: left; overflow: hidden; }
.step .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 16px;
  background: linear-gradient(160deg, rgba(255,207,77,.18), rgba(157,107,255,.12)); border: 1px solid rgba(255,207,77,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }
.step .stepnum { font-size: .76rem; font-weight: 800; color: var(--gold); letter-spacing: .14em; }

/* ---------- Plan cards ---------- */
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; background: linear-gradient(180deg, rgba(24,20,51,.85), rgba(12,10,26,.92)); transition: transform .25s, border-color .25s, box-shadow .25s; overflow: hidden; }
.plan::before { content:""; position:absolute; inset:0 0 auto 0; height:3px; background: var(--grad-aura); background-size:300%; opacity:.5; }
.plan:hover { transform: translateY(-8px); border-color: var(--border-2); box-shadow: var(--shadow); }
.plan.featured { border-color: rgba(255,207,77,.5); box-shadow: 0 0 0 1px rgba(255,207,77,.3), 0 0 60px rgba(255,207,77,.18); }
.plan-flag { position: absolute; top: 16px; right: -34px; background: var(--grad-gold); color: #2a1d00; font-size: .68rem; font-weight: 800; letter-spacing:.08em; padding: 5px 40px; transform: rotate(45deg); }
.plan .name { font-family: var(--display); font-size: 1.35rem; font-weight: 700; }
.plan .rate { font-family: var(--display); font-size: 2.8rem; font-weight: 700; }
.plan .rate span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 6px 0 8px; }
.plan li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; }
.plan li::before { content: "✦"; color: var(--teal); font-weight: 900; }

/* ---------- Dashboard ---------- */
.app { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.sidebar { background: rgba(12,10,26,.7); backdrop-filter: blur(12px); border-right: 1px solid var(--border); padding: 24px 16px; position: sticky; top: 0; height: 100vh; }
.side-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 26px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: .94rem; transition: .15s; }
.side-nav a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.side-nav a.active { background: linear-gradient(100deg, rgba(255,207,77,.16), rgba(157,107,255,.12)); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(255,207,77,.2); }
.side-nav .ic { width: 20px; text-align: center; }
.app { min-width: 0; }
.main { padding: 30px 34px; min-width: 0; }  /* min-width:0 lets the grid column shrink so .scroll-x tables scroll instead of widening the page */
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.topbar h1 { font-size: 1.55rem; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grad-teal); display: grid; place-items: center; font-weight: 800; color: #042417; box-shadow: var(--glow-teal); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stat { padding: 22px; overflow: hidden; }
.stat::after { content:""; position:absolute; right:-30px; top:-30px; width:90px; height:90px; border-radius:50%; background: radial-gradient(circle, rgba(255,207,77,.18), transparent 70%); }
.stat .label { color: var(--muted); font-size: .82rem; font-weight: 600; margin-bottom: 8px; display:flex; align-items:center; gap:8px; }
.stat .value { font-family: var(--display); font-size: 1.85rem; font-weight: 700; }
.stat .delta { font-size: .82rem; font-weight: 700; margin-top: 6px; }
.up { color: var(--teal); } .down { color: var(--red); }

.bar { height: 9px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--grad-gold); box-shadow: 0 0 14px rgba(255,207,77,.6); }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.table td { padding: 14px; border-bottom: 1px solid var(--border); font-size: .92rem; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(255,255,255,.03); }
.table tr:last-child td { border-bottom: none; }

/* ---------- QR code ---------- */
.qr { width: 180px; max-width: 64vw; aspect-ratio: 1; border-radius: 16px; background:#fff;
  position: relative; padding: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.4); flex-shrink: 0; }
.qr-img { width: 100%; height: 100%; display: block; image-rendering: pixelated; border-radius: 6px; }
/* faux pattern + finder eyes only show when the real image fails (offline fallback) */
.qr .qr-eye { display: none; position: absolute; width: 40px; height: 40px; background:#fff; border: 7px solid #0b0918; border-radius: 8px; }
.qr .qr-eye.tl { top: 12px; left: 12px; } .qr .qr-eye.tr { top: 12px; right: 12px; } .qr .qr-eye.bl { bottom: 12px; left: 12px; }
.qr .qr-eye::after { content:""; position:absolute; inset:6px; background:#0b0918; border-radius:3px; }
.qr.qr-fallback { background-image: radial-gradient(#0b0918 36%, transparent 40%); background-size: 13px 13px; background-position: 10px 10px; }
.qr.qr-fallback .qr-eye { display: block; }

/* pay row: QR + address; stacks & centers on phones */
.pay-row { display: flex; gap: 18px; align-items: flex-start; }
.pay-row .pay-info { flex: 1; min-width: 0; }
@media (max-width: 560px) {
  .pay-row { flex-direction: column; align-items: center; text-align: center; }
  .pay-row .pay-info { width: 100%; }
  .pay-row .copy-row { text-align: left; }
}

.copy-row { display:flex; align-items:center; gap:8px; padding:12px 14px; border-radius:12px; background: rgba(7,6,15,.6); border:1px solid var(--border-2); }
.copy-row code { flex:1; min-width:0; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size:.86rem; color: var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.copy-row .btn { flex-shrink: 0; }

/* ---------- Step indicator ---------- */
.steps-bar { display:flex; align-items:center; gap:0; margin-bottom: 26px; flex-wrap: wrap; }
.steps-bar .s { display:flex; align-items:center; gap:10px; color: var(--muted); font-weight:600; font-size:.9rem; }
.steps-bar .s .n { width:30px; height:30px; border-radius:50%; display:grid; place-items:center; font-weight:800; font-size:.85rem;
  background: rgba(255,255,255,.06); border:1px solid var(--border-2); color: var(--muted); }
.steps-bar .s.active .n { background: var(--grad-gold); color:#2a1d00; border:none; box-shadow: var(--glow-gold); }
.steps-bar .s.active { color: var(--text); }
.steps-bar .line { flex:1; min-width: 24px; height:2px; background: var(--border-2); margin: 0 14px; }
@media (max-width: 620px) {
  .steps-bar { gap: 8px 14px; }
  .steps-bar .line { display: none; }
  .steps-bar .s { font-size: .82rem; gap: 8px; }
  .steps-bar .s .n { width: 26px; height: 26px; font-size: .8rem; }
}

/* amount quick chips */
.amt-chips { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.amt-chips button { padding:8px 14px; border-radius:999px; background:rgba(255,255,255,.05); border:1px solid var(--border-2); color:var(--text); font-weight:700; font-size:.84rem; transition:.15s; }
.amt-chips button:hover { background:rgba(255,207,77,.14); border-color: rgba(255,207,77,.4); color: var(--gold); }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 8px; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; padding: 13px 15px; border-radius: 12px; font-size: .95rem; background: rgba(7,6,15,.6); border: 1px solid var(--border-2); color: var(--text); transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,207,77,.18); }
.input-wrap { position: relative; }
.input-wrap .prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.input-wrap .input { padding-left: 34px; }

/* ---------- Lottery ---------- */
.lotto-ball { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: #2a1d00;
  background: radial-gradient(circle at 32% 28%, #fff3cf, #ffcf4d 60%, #d49a1c);
  box-shadow: 0 10px 22px rgba(0,0,0,.45), inset 0 -4px 8px rgba(0,0,0,.2), inset 0 3px 6px rgba(255,255,255,.5);
  animation: bob 3s ease-in-out infinite; }
.lotto-ball:nth-child(2){ animation-delay:.2s;} .lotto-ball:nth-child(3){ animation-delay:.4s;}
.lotto-ball:nth-child(4){ animation-delay:.6s;} .lotto-ball:nth-child(5){ animation-delay:.8s;} .lotto-ball:nth-child(6){ animation-delay:1s;}
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-8px);} }
.lotto-balls { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.jackpot { font-family: var(--display); font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 700; }
.countdown { display: flex; gap: 12px; justify-content: center; }
.cd-box { background: rgba(24,20,51,.7); border: 1px solid var(--border); border-radius: 16px; padding: 14px 18px; text-align: center; min-width: 80px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.cd-box .n { font-family: var(--display); font-size: 2rem; font-weight: 700; }
.cd-box .u { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 450px; }
.auth-tabs { display: flex; background: rgba(7,6,15,.6); border-radius: 14px; padding: 5px; margin-bottom: 24px; }
.auth-tabs button { flex: 1; padding: 11px; border-radius: 10px; background: none; color: var(--muted); font-weight: 700; transition:.2s; }
.auth-tabs button.active { background: linear-gradient(100deg, rgba(255,207,77,.18), rgba(157,107,255,.14)); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,207,77,.2); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 60px 0 34px; margin-top: 40px; background: rgba(7,6,15,.5); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 16px; }
.footer a { display: block; color: var(--muted); padding: 6px 0; font-size: .92rem; transition: color .15s; }
.footer a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; flex-wrap: wrap; gap: 12px; }

/* ---------- Utilities ---------- */
.flex { display: flex; } .between { justify-content: space-between; } .center { align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8{margin-top:8px;} .mt-16{margin-top:16px;} .mt-24{margin-top:24px;} .mb-16{margin-bottom:16px;}
.tc { text-align: center; } .wrap { flex-wrap: wrap; }
.pill-note { display:inline-flex; gap:8px; align-items:center; padding:8px 14px; border-radius:999px; background:rgba(157,107,255,.1); border:1px solid rgba(157,107,255,.28); color:var(--violet); font-size:.85rem; font-weight:600; }

/* reveal on load */
.reveal { opacity: 0; transform: translateY(18px); animation: reveal .7s ease forwards; }
.reveal.d1{animation-delay:.08s;} .reveal.d2{animation-delay:.16s;} .reveal.d3{animation-delay:.24s;} .reveal.d4{animation-delay:.32s;}
@keyframes reveal { to { opacity:1; transform:none; } }

/* ---------- Mobile app bar + off-canvas drawer ---------- */
.app-bar { display: none; }            /* shown only on mobile */
.app-overlay {
  position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.6);
  backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .3s;
}
.app-overlay.show { opacity: 1; visibility: visible; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; min-width: 0; max-width: 100%; }
.scroll-x .table { min-width: 560px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .wheel-stage { order: -1; }
  .grid-4, .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .bento .b-lg, .bento .b-wide { grid-column: auto; grid-row: auto; }
  .stat-grid, .stat-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  /* app shell becomes single column with off-canvas sidebar */
  .app { grid-template-columns: 1fr; }
  .app-bar {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 65; height: 62px; padding: 0 16px;
    background: rgba(7,6,15,.82); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }
  .app-bar .hamb { background: none; color: var(--text); font-size: 1.5rem; padding: 6px; }
  .sidebar {
    display: block; position: fixed; left: 0; top: 0; height: 100dvh; width: 264px;
    z-index: 80; transform: translateX(-105%); transition: transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow: var(--shadow);
  }
  .sidebar.open { transform: translateX(0); }
  .main { padding: 18px 16px; }
}
@media (max-width: 620px) {
  section { padding: 64px 0; }
  .grid-4, .bento { grid-template-columns: 1fr; }
  .stat-grid, .stat-grid.cols-3 { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .main { padding: 16px 14px; }
  .topbar { flex-wrap: wrap; gap: 12px; }
  .topbar h1 { font-size: 1.3rem; }
  .countdown { gap: 8px; }
  .cd-box { min-width: 64px; padding: 12px 12px; }
  .lotto-ball { width: 48px; height: 48px; font-size: 1rem; }
  .coin { display: none; }                 /* reduce clutter on small screens */
  .btn { padding: 12px 18px; }
  .plan-flag { font-size: .62rem; padding: 4px 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
