/* =====================================================================
   BNB Machine 2.0 — Design system
   Dark glass UI · BNB gold + violet + cyan accents · lightweight motion
   ===================================================================== */
:root {
  --bg: #06080f;
  --bg-2: #0b0f1d;
  --surface: rgba(18, 24, 44, 0.62);
  --surface-2: rgba(26, 33, 60, 0.7);
  --surface-solid: #10162a;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e9edf8;
  --text-2: #b9c0d8;
  --muted: #8a92ae;
  --gold: #f3ba2f;
  --gold-2: #ffd978;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --success: #22c55e;
  --danger: #f43f5e;
  --warning: #f59e0b;
  --info: #38bdf8;
  --grad-brand: linear-gradient(135deg, #f3ba2f 0%, #f59e0b 35%, #8b5cf6 100%);
  --grad-cool: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 100%);
  --grad-gold: linear-gradient(135deg, #ffd978 0%, #f3ba2f 50%, #e8960c 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.6);
  --glow-gold: 0 0 0 1px rgba(243, 186, 47, 0.35), 0 8px 30px -8px rgba(243, 186, 47, 0.45);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sidebar-w: 256px;
  --ribbon-h: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(14px, 0.25vw + 13.2px, 15.5px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, .display { font-family: var(--font-display); letter-spacing: -0.02em; color: var(--text); }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold); }
.mono { font-family: var(--font-mono); font-size: 0.92em; }
.text-muted-2 { color: var(--muted) !important; }
.text-gold { color: var(--gold) !important; }
.text-grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-grad-cool { background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; color: transparent; }
.small-caps { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.lucide-icon { width: 1.15em; height: 1.15em; stroke-width: 1.9; vertical-align: -0.2em; flex-shrink: 0; }
.icon-xs { width: 0.85em; height: 0.85em; }
.icon-sm { width: 1em; height: 1em; }
.icon-lg { width: 1.6em; height: 1.6em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--gold); color: #111; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
::selection { background: rgba(243, 186, 47, 0.35); }

/* ---------- Background ---------- */
.bg-aurora {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(700px 500px at -5% 20%, rgba(243, 186, 47, 0.10), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(34, 211, 238, 0.08), transparent 60%),
    var(--bg);
}
.bg-aurora::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.bg-aurora-admin { background: radial-gradient(900px 600px at 90% -10%, rgba(34, 211, 238, 0.12), transparent 60%), radial-gradient(700px 500px at 0% 30%, rgba(139, 92, 246, 0.12), transparent 60%), var(--bg); }

/* ---------- Glass ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow);
}
.card-neo {
  position: relative;
  background: linear-gradient(180deg, rgba(26, 33, 60, 0.6), rgba(14, 19, 36, 0.6));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card-neo.hoverable:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: 0 18px 50px -18px rgba(0,0,0,.8); }
.card-neo.glow-border::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(243,186,47,.55), rgba(139,92,246,.35) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.card-title-neo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin: 0 0 16px; }
.card-title-neo .lucide-icon { color: var(--gold); }
.card-title-neo .ms-auto { font-family: var(--font-body); font-size: .85rem; font-weight: 500; }
.section-gap { margin-bottom: 24px; }

/* ---------- Buttons ---------- */
.btn-neo {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: .92rem; line-height: 1.2; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, opacity .2s;
  text-decoration: none; white-space: nowrap; user-select: none;
}
.btn-neo:active { transform: translateY(1px) scale(.99); }
.btn-neo:disabled, .btn-neo.disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-neo-primary { background: var(--grad-gold); color: #1a1405; box-shadow: 0 6px 24px -8px rgba(243,186,47,.6); }
.btn-neo-primary:hover { color: #1a1405; box-shadow: var(--glow-gold); }
.btn-neo-violet { background: var(--grad-cool); color: #fff; }
.btn-neo-violet:hover { color: #fff; box-shadow: 0 0 0 1px rgba(139,92,246,.5), 0 8px 30px -8px rgba(139,92,246,.6); }
.btn-neo-ghost { background: rgba(255,255,255,.05); color: var(--text); border-color: var(--border-strong); }
.btn-neo-ghost:hover { background: rgba(255,255,255,.09); color: #fff; }
.btn-neo-danger { background: rgba(244,63,94,.14); color: #fda4af; border-color: rgba(244,63,94,.35); }
.btn-neo-danger:hover { background: rgba(244,63,94,.24); color: #fff; }
.btn-neo-success { background: rgba(34,197,94,.14); color: #86efac; border-color: rgba(34,197,94,.35); }
.btn-neo-success:hover { background: rgba(34,197,94,.24); color: #fff; }
.btn-neo-warning { background: rgba(245,158,11,.16); color: #fcd34d; border-color: rgba(245,158,11,.4); }
.btn-neo-sm { padding: 7px 12px; font-size: .82rem; border-radius: 10px; }
.btn-neo-lg { padding: 14px 26px; font-size: 1rem; border-radius: 14px; }
.btn-link-neo { background: none; border: 0; color: var(--gold-2); font-size: .82rem; padding: 0; cursor: pointer; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--text-2); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.09); color: #fff; border-color: var(--border-strong); }
.icon-btn-sm { width: 28px; height: 28px; border-radius: 8px; }
.icon-btn-primary { background: var(--grad-gold); color: #1a1405; border: 0; }
.btn-neo.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn-neo.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,.25); border-top-color: #1a1405; animation: spin .7s linear infinite;
}
.btn-neo-ghost.is-loading::after { border-color: rgba(255,255,255,.2); border-top-color: #fff; }

/* ---------- Forms ---------- */
.form-label { color: var(--text-2); font-size: .85rem; font-weight: 500; margin-bottom: 6px; }
.form-control, .form-select {
  background: rgba(8, 11, 22, .65) !important; border: 1px solid var(--border-strong); color: var(--text) !important;
  border-radius: 12px; padding: 11px 14px; transition: border-color .2s, box-shadow .2s;
}
.form-control::placeholder { color: #5d6684; }
.form-control:focus, .form-select:focus { border-color: rgba(243,186,47,.6); box-shadow: 0 0 0 3px rgba(243,186,47,.15); }
.form-control.is-invalid { border-color: rgba(244,63,94,.7); }
.invalid-feedback { color: #fda4af; }
.form-check-input { background-color: rgba(8,11,22,.8); border-color: var(--border-strong); }
.form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }
.input-group-text { background: rgba(255,255,255,.04); border-color: var(--border-strong); color: var(--muted); border-radius: 12px; }
.form-hint { color: var(--muted); font-size: .8rem; margin-top: 6px; }

/* ---------- Badges ---------- */
.badge-status {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; border: 1px solid; white-space: nowrap;
}
.badge-success { color: #86efac; background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.3); }
.badge-warning { color: #fcd34d; background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.3); }
.badge-danger { color: #fda4af; background: rgba(244,63,94,.12); border-color: rgba(244,63,94,.3); }
.badge-info { color: #7dd3fc; background: rgba(56,189,248,.12); border-color: rgba(56,189,248,.3); }
.badge-violet { color: #c4b5fd; background: rgba(139,92,246,.14); border-color: rgba(139,92,246,.35); }
.badge-gold { color: #1a1405; background: var(--grad-gold); border-color: transparent; box-shadow: 0 0 18px -4px rgba(243,186,47,.7); }
.badge-muted { color: var(--muted); background: rgba(255,255,255,.04); border-color: var(--border); }
.badge-status.badge-success::before, .badge-status.badge-warning::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-status.pulse::before { animation: pulse-dot 1.6s ease-in-out infinite; }

/* ---------- Ribbon / bars ---------- */
.testnet-ribbon {
  position: sticky; top: 0; z-index: 1100; text-align: center; font-size: .76rem; font-weight: 600; letter-spacing: .06em;
  padding: 6px 12px; color: #1a1405; background: var(--grad-gold);
  height: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ribbon-admin { background: linear-gradient(90deg, #8b5cf6, #22d3ee); color: #fff; }
.ribbon-danger { background: linear-gradient(90deg, #f43f5e, #f59e0b); color: #fff; }
.wrong-network-bar, .wallet-mismatch-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 24px 0; padding: 10px 14px; border-radius: 12px;
  background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.35); color: #fde68a; font-size: .88rem;
}
.wallet-mismatch-bar { background: rgba(139,92,246,.12); border-color: rgba(139,92,246,.35); color: #ddd6fe; }

/* ---------- App shell ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; top: 0; bottom: 0; left: 0; width: var(--sidebar-w); z-index: 1050;
  display: flex; flex-direction: column; padding: 20px 14px;
  background: rgba(8, 11, 22, .82); border-right: 1px solid var(--border);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: transform .3s ease;
}
body:has(.testnet-ribbon) .sidebar { top: 30px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 22px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad-gold); color: #1a1405; box-shadow: 0 0 24px -6px rgba(243,186,47,.7); }
.brand-mark-admin { background: var(--grad-cool); color: #fff; box-shadow: 0 0 24px -6px rgba(139,92,246,.7); }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1; }
.brand-text span { color: var(--gold); margin-left: 2px; }
.brand-text small { display: block; font-size: .62rem; letter-spacing: .3em; color: var(--muted); margin-top: 4px; font-weight: 600; }
.side-nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; }
.side-group { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #59617f; font-weight: 700; padding: 14px 12px 6px; }
.side-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: var(--text-2); font-weight: 500; font-size: .92rem; transition: background .2s, color .2s; position: relative;
}
.side-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.side-link.active { background: linear-gradient(90deg, rgba(243,186,47,.16), rgba(243,186,47,.02)); color: #fff; }
.side-link.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.side-link.active .lucide-icon { color: var(--gold); }
.sidebar-admin .side-link.active { background: linear-gradient(90deg, rgba(34,211,238,.14), transparent); }
.sidebar-admin .side-link.active::before { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.sidebar-admin .side-link.active .lucide-icon { color: var(--cyan); }
.side-count { margin-left: auto; background: var(--danger); color: #fff; font-size: .7rem; padding: 1px 7px; border-radius: 999px; }
.side-footer { border-top: 1px solid var(--border); padding-top: 14px; display: grid; gap: 6px; }
.net-pill { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); padding: 6px 12px; }
.net-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #475069; }
.net-pill.ok .dot { background: var(--success); box-shadow: 0 0 10px var(--success); }
.net-pill.bad .dot { background: var(--warning); box-shadow: 0 0 10px var(--warning); }
.main-col { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; gap: 14px;
  padding: 14px 24px; background: rgba(6,8,15,.72); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
body:has(.testnet-ribbon) .topbar { top: 30px; }
.topbar-title h1 { font-size: 1.25rem; margin: 0; font-weight: 600; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad-cool); color: #fff; font-weight: 700; font-size: .85rem; }
.avatar:hover { color: #fff; }
.page-content { padding: 24px; flex: 1; width: 100%; max-width: 1480px; margin: 0 auto; outline: none; }
.app-footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #59617f; font-size: .78rem; padding: 32px 0 8px; border-top: 1px solid var(--border); margin-top: 40px; }
.sidebar-backdrop { display: none; }

/* Wallet chip */
.wallet-connected { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--border-strong); font-size: .85rem; }
.wallet-net-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }
.wallet-net-dot.bad { background: var(--warning); box-shadow: 0 0 10px var(--warning); }
.wallet-bal { color: var(--gold-2); font-weight: 600; font-family: var(--font-mono); font-size: .8rem; }

/* Notifications */
.notif-dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .66rem; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.notif-menu { width: min(380px, 92vw); padding: 0; overflow: hidden; background: rgba(14,19,36,.96) !important; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
.notif-item:hover { background: rgba(255,255,255,.04); color: var(--text); }
.notif-item.unread { background: rgba(243,186,47,.05); }
.notif-item.unread .notif-title::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-left: 8px; vertical-align: middle; }
.notif-ic { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(139,92,246,.14); color: #c4b5fd; }
.notif-title { font-weight: 600; font-size: .86rem; }
.notif-body { color: var(--muted); font-size: .8rem; }
.notif-time { color: #59617f; font-size: .72rem; }
.notif-foot { display: block; text-align: center; padding: 10px; font-size: .84rem; }

/* Bottom nav (mobile) */
.bottom-nav { display: none; }

/* ---------- Stat cards ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-card { padding: 18px; display: flex; flex-direction: column; gap: 6px; min-height: 128px; overflow: hidden; }
.stat-card .stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.stat-icon.gold { background: rgba(243,186,47,.14); color: var(--gold); }
.stat-icon.violet { background: rgba(139,92,246,.15); color: #c4b5fd; }
.stat-icon.cyan { background: rgba(34,211,238,.13); color: #67e8f9; }
.stat-icon.green { background: rgba(34,197,94,.13); color: #86efac; }
.stat-icon.red { background: rgba(244,63,94,.13); color: #fda4af; }
.stat-label { color: var(--muted); font-size: .78rem; font-weight: 500; }
.stat-value { font-family: var(--font-display); font-size: clamp(1.35rem, 1.2vw + 1rem, 1.85rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; word-break: break-word; }
.stat-sub { color: var(--muted); font-size: .76rem; }
.stat-card::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(243,186,47,.10), transparent 70%); pointer-events: none; }

/* ---------- Progress ---------- */
.progress-neo { position: relative; height: 10px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.progress-neo .bar {
  height: 100%; width: 0; border-radius: inherit; background: var(--grad-brand);
  transition: width 1.2s cubic-bezier(.22,1,.36,1); position: relative; overflow: hidden;
}
.progress-neo .bar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: translateX(-100%); animation: shimmer 2.4s ease-in-out infinite;
}
.progress-neo.sm { height: 6px; }
.progress-neo.lg { height: 14px; }
.progress-neo .bar.success { background: linear-gradient(90deg, #16a34a, #4ade80); }
.progress-neo .bar.muted { background: #3a4360; }
.progress-neo .bar.danger { background: linear-gradient(90deg, #be123c, #f43f5e); }
.progress-meta { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: 6px; }

/* ---------- Pool cards ---------- */
.pool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pool-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.pool-card .pool-head { display: flex; align-items: center; justify-content: space-between; }
.pool-code { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pool-round { font-size: .75rem; color: var(--muted); }
.pool-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.pool-fact .k { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pool-fact .v { font-weight: 600; font-family: var(--font-display); font-size: 1rem; }
.pool-card .pool-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.pool-card.is-full { opacity: .82; }
.pool-card.flash { animation: flash-border 1s ease; }
.winners-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 600; color: var(--gold-2); background: rgba(243,186,47,.1); border: 1px solid rgba(243,186,47,.25); padding: 3px 9px; border-radius: 999px; }

/* Live pool hero */
.pool-hero { padding: 28px; overflow: hidden; }
.pool-hero .big-code { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5rem); font-weight: 700; line-height: .9; }
.ring { --p: 0; width: 180px; height: 180px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), #8b5cf6 calc(var(--p) * 1%), rgba(255,255,255,.06) 0); transition: --p 1s; }
.ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--surface-solid); }
.ring > * { position: relative; text-align: center; }
.ring .ring-val { font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 12px; overflow: hidden; }
.qty-stepper button { width: 42px; height: 44px; background: rgba(255,255,255,.04); border: 0; color: var(--text); font-size: 1.2rem; }
.qty-stepper button:hover { background: rgba(255,255,255,.1); }
.qty-stepper input { width: 64px; height: 44px; text-align: center; background: transparent; border: 0; color: var(--text); font-weight: 700; font-family: var(--font-display); font-size: 1.1rem; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ticket-chip { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: .78rem; padding: 4px 9px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid var(--border); margin: 0 6px 6px 0; }
.ticket-chip.win { background: rgba(243,186,47,.14); border-color: rgba(243,186,47,.45); color: var(--gold-2); }
.ticket-chip.lost { opacity: .55; }
.verify-box { font-family: var(--font-mono); font-size: .75rem; background: rgba(0,0,0,.25); border: 1px solid var(--border); border-radius: 12px; padding: 12px; word-break: break-all; color: var(--text-2); }

/* ---------- Qualification timeline ---------- */
.q-timeline { display: grid; gap: 14px; }
.q-stage { display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.025); border: 1px solid var(--border); position: relative; }
.q-stage .q-num { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; background: rgba(255,255,255,.05); border: 1px solid var(--border-strong); }
.q-stage.qualified .q-num { background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.45); color: #86efac; }
.q-stage.current { border-color: rgba(243,186,47,.4); background: rgba(243,186,47,.05); box-shadow: 0 0 30px -12px rgba(243,186,47,.5); }
.q-stage.current .q-num { background: var(--grad-gold); color: #1a1405; border-color: transparent; }
.q-stage.failed .q-num, .q-stage.blocked .q-num { background: rgba(244,63,94,.1); border-color: rgba(244,63,94,.35); color: #fda4af; }
.q-stage.blocked { opacity: .6; }
.q-stage h5 { font-size: .98rem; margin: 0 0 6px; }
.q-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .78rem; color: var(--muted); margin-top: 6px; }
.q-levels { text-align: right; }
.q-levels .lv { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }

/* Countdown */
.countdown { display: flex; gap: 10px; }
.countdown .cd { min-width: 64px; text-align: center; padding: 10px 6px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--border); }
.countdown .cd b { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown .cd span { font-size: .64rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.countdown.compact .cd { min-width: 46px; padding: 6px 4px; }
.countdown.compact .cd b { font-size: 1.1rem; }
.countdown.urgent .cd b { color: #fda4af; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--border); background: rgba(8,11,22,.4); }
.table-neo { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 640px; }
.table-neo th { text-align: left; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 14px; background: rgba(255,255,255,.025); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table-neo td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-2); }
.table-neo tr:last-child td { border-bottom: 0; }
/* Narrow tables (e.g. three side by side): no minimum width, tighter cells */
.table-neo.table-compact { min-width: 0; }
.table-neo.table-compact th, .table-neo.table-compact td { padding: 10px 10px; }
/* The signed-in member's own row in a list */
.table-neo tr.row-me td { background: rgba(243,186,47,.09); color: var(--text); }
.table-neo tr.row-me td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.table-neo tbody tr.row-me:hover { background: rgba(243,186,47,.12); }
.table-neo tr.row-me .me-tag { font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #1a1405; background: var(--gold); border-radius: 6px; padding: 1px 5px; margin-left: 2px; vertical-align: 1px; }
.table-neo tr.row-me .me-name { display: inline-block; max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.rank-me-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; font-size: .84rem;
  color: var(--text); background: rgba(243,186,47,.08); border: 1px solid rgba(243,186,47,.3); }
.rank-me-bar .lucide-icon, .rank-me-bar svg { color: var(--gold); }
.rank-me-bar a { color: var(--gold); font-weight: 600; white-space: nowrap; }
/* Top 10 Pool */
.top-place-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: .78rem; font-weight: 700;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: var(--text); }
.top-split { display: grid; gap: 8px; }
.top-split-row { display: grid; grid-template-columns: 28px 1fr auto 34px; align-items: center; gap: 10px; font-size: .86rem; }
.top-split-row > :nth-child(3) { text-align: right; min-width: 84px; }
.top-split-row > :nth-child(4) { text-align: right; }
.top-split-row > span:first-child { text-align: center; }
.table-neo tbody tr { transition: background .15s; }
.table-neo tbody tr:hover { background: rgba(255,255,255,.025); }
.table-neo .num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: .82rem; color: var(--text); }
.table-neo .strong { color: var(--text); font-weight: 600; }
.amount-pos { color: #86efac !important; }
.amount-neg { color: #fda4af !important; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pills a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-2); font-size: .84rem; font-weight: 500; background: rgba(255,255,255,.03); }
.filter-pills a.active, .filter-pills a:hover { background: rgba(243,186,47,.14); border-color: rgba(243,186,47,.45); color: #fff; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pager-item { min-width: 38px; height: 38px; padding: 0 10px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); color: var(--text-2); background: rgba(255,255,255,.03); }
.pager-item.active { background: var(--grad-gold); color: #1a1405; border-color: transparent; font-weight: 700; }
.pager-item.disabled { opacity: .35; }
.link-glow { color: #a5b4fc; }
.link-glow:hover { color: #c7d2fe; }

/* ---------- Alerts / toasts ---------- */
.alert-neo { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 14px; margin-bottom: 18px; border: 1px solid; font-size: .9rem; }
.alert-neo-success { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.35); color: #bbf7d0; }
.alert-neo-danger { background: rgba(244,63,94,.1); border-color: rgba(244,63,94,.35); color: #fecdd3; }
.alert-neo-warning { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.35); color: #fde68a; }
.alert-neo-info { background: rgba(56,189,248,.08); border-color: rgba(56,189,248,.3); color: #bae6fd; }
.toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.toast-neo { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(14,19,36,.96); border: 1px solid var(--border-strong); box-shadow: var(--shadow); animation: toast-in .35s cubic-bezier(.22,1,.36,1); font-size: .88rem; }
.toast-neo.out { animation: toast-out .3s ease forwards; }
.toast-neo .t-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.toast-neo.success .t-ic { background: rgba(34,197,94,.16); color: #86efac; }
.toast-neo.error .t-ic { background: rgba(244,63,94,.16); color: #fda4af; }
.toast-neo.info .t-ic { background: rgba(56,189,248,.14); color: #7dd3fc; }
.toast-neo.warning .t-ic { background: rgba(245,158,11,.16); color: #fcd34d; }
.glass-modal { background: rgba(14,19,36,.97); border: 1px solid var(--border-strong); border-radius: 20px; color: var(--text); }

/* ---------- Skeleton / empty ---------- */
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: skeleton 1.4s ease-in-out infinite; border-radius: 8px; }
.skeleton-line { height: 12px; margin-bottom: 10px; }
.skeleton-card { height: 230px; border-radius: var(--radius); }
.empty-state { text-align: center; padding: 42px 20px; color: var(--muted); }
.empty-state .lucide-icon { width: 46px; height: 46px; color: #3d4663; margin-bottom: 12px; }
.empty-state h4 { font-size: 1.05rem; color: var(--text-2); margin-bottom: 6px; }

/* ---------- Misc components ---------- */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: .9rem; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }   /* break long hashes/addresses, never ordinary words */
.copy-field { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--border); font-family: var(--font-mono); font-size: .82rem; }
.copy-field span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insight { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--border); margin-bottom: 10px; font-size: .88rem; }
.insight .i-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; background: rgba(139,92,246,.14); color: #c4b5fd; }
.insight.tone-danger .i-ic { background: rgba(244,63,94,.14); color: #fda4af; }
.insight.tone-success .i-ic { background: rgba(34,197,94,.14); color: #86efac; }
.insight.tone-gold .i-ic, .insight.tone-primary .i-ic, .insight.tone-warning .i-ic { background: rgba(243,186,47,.14); color: var(--gold); }
.level-row { display: grid; grid-template-columns: 72px 1fr 1fr 1fr 1fr; gap: 10px; align-items: center; }
.lock-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .85rem; }
.lock-chip.on { color: #86efac; }
.lock-chip.off { color: #6b7391; }
.chart-box { position: relative; height: 240px; }
.chart-box.sm { height: 180px; }
.success-burst { position: relative; width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: rgba(34,197,94,.14); color: #86efac; animation: pop .5s cubic-bezier(.22,1.6,.36,1); }
.success-burst::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(34,197,94,.4); animation: ring-out 1.2s ease-out infinite; }
.success-burst .lucide-icon { width: 40px; height: 40px; }
.divider-label { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .78rem; margin: 18px 0; }
.divider-label::before, .divider-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- AI assistant ---------- */
.ai-fab { position: fixed; right: 22px; bottom: 22px; z-index: 1200; width: 58px; height: 58px; border-radius: 18px; border: 0; color: #1a1405; background: var(--grad-gold); display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(243,186,47,.7); cursor: pointer; transition: transform .2s; }
.ai-fab:hover { transform: translateY(-2px) scale(1.04); }
.ai-fab .lucide-icon { width: 26px; height: 26px; position: relative; }
.ai-fab-glow { position: absolute; inset: -6px; border-radius: 22px; background: conic-gradient(from 0deg, #f3ba2f, #8b5cf6, #22d3ee, #f3ba2f); filter: blur(12px); opacity: .45; z-index: -1; animation: spin 6s linear infinite; }
.ai-panel { position: fixed; right: 22px; bottom: 92px; z-index: 1210; width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 140px)); display: flex; flex-direction: column; overflow: hidden; background: rgba(12,16,32,.94) !important; transform: translateY(16px) scale(.98); opacity: 0; pointer-events: none; transition: all .25s cubic-bezier(.22,1,.36,1); }
.ai-panel.open { transform: none; opacity: 1; pointer-events: auto; }
.ai-panel.page-mode { position: relative; right: auto; bottom: auto; width: 100%; height: min(72vh, 760px); transform: none; opacity: 1; pointer-events: auto; z-index: 1; }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.ai-head small { display: block; color: var(--muted); font-size: .74rem; }
.ai-avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-cool); color: #fff; }
.ai-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ai-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .88rem; white-space: pre-wrap; word-wrap: break-word; animation: msg-in .25s ease; }
.ai-msg-bot { background: rgba(255,255,255,.05); border: 1px solid var(--border); border-bottom-left-radius: 6px; align-self: flex-start; }
.ai-msg-user { background: rgba(243,186,47,.16); border: 1px solid rgba(243,186,47,.3); border-bottom-right-radius: 6px; align-self: flex-end; }
.ai-msg .ai-actions { margin-top: 10px; }
.ai-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.ai-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.ai-typing span:nth-child(2) { animation-delay: .15s; }
.ai-typing span:nth-child(3) { animation-delay: .3s; }
.ai-suggest { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.ai-suggest button { flex-shrink: 0; font-size: .76rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(255,255,255,.03); color: var(--text-2); }
.ai-suggest button:hover { border-color: rgba(243,186,47,.45); color: #fff; }
.ai-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.ai-input input { flex: 1; min-width: 0; background: rgba(0,0,0,.3); border: 1px solid var(--border-strong); border-radius: 12px; color: var(--text); padding: 10px 14px; }
.ai-input input:focus { outline: none; border-color: rgba(243,186,47,.5); }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-side { position: relative; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border-right: 1px solid var(--border); }
.auth-side .orb { position: absolute; width: 520px; height: 520px; right: -160px; top: 20%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(243,186,47,.55), rgba(139,92,246,.35) 45%, transparent 70%); filter: blur(10px); animation: float 10s ease-in-out infinite; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 480px; padding: 34px; }
.auth-card h2 { font-size: 1.7rem; margin-bottom: 6px; }

/* ---------- Landing ---------- */
.landing-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1100; display: flex; align-items: center; gap: 18px; padding: 14px clamp(16px, 4vw, 48px); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
body:has(.testnet-ribbon) .landing-nav { top: 30px; }
.landing-nav.scrolled { background: rgba(6,8,15,.82); border-color: var(--border); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.landing-nav .links { display: flex; gap: 24px; margin-left: 28px; }
.landing-nav .links a { color: var(--text-2); font-size: .9rem; font-weight: 500; }
.landing-nav .links a:hover { color: #fff; }
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 140px clamp(16px, 4vw, 48px) 80px; overflow: hidden; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-orb { position: absolute; z-index: 0; width: min(640px, 90vw); aspect-ratio: 1; right: -8%; top: 50%; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255,217,120,.9), rgba(243,186,47,.55) 22%, rgba(139,92,246,.45) 50%, rgba(34,211,238,.15) 68%, transparent 72%);
  filter: blur(4px); animation: float 12s ease-in-out infinite; opacity: .85; }
.hero-orb::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); animation: spin 30s linear infinite; border-top-color: rgba(243,186,47,.7); }
.hero-inner { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; width: 100%; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.02; font-weight: 700; margin: 18px 0; max-width: 820px; }
.hero p.lead { font-size: clamp(1rem, 1.2vw + .6rem, 1.25rem); color: var(--text-2); max-width: 620px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--border-strong); font-size: .82rem; color: var(--text-2); }
.hero-badge b { background: var(--grad-gold); color: #1a1405; padding: 3px 10px; border-radius: 999px; font-size: .72rem; letter-spacing: .06em; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 48px; max-width: 860px; }
.hero-stat { padding: 16px 18px; }
.hero-stat .v { font-family: var(--font-display); font-size: clamp(1.4rem, 2vw, 2rem); font-weight: 700; }
.hero-stat .k { color: var(--muted); font-size: .78rem; }
.l-section { padding: 96px clamp(16px, 4vw, 48px); position: relative; }
.l-inner { max-width: 1240px; margin: 0 auto; }
.l-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 12px; }
.l-title { font-size: clamp(1.9rem, 3.4vw, 3rem); font-weight: 700; line-height: 1.08; margin-bottom: 14px; }
.l-sub { color: var(--text-2); max-width: 640px; font-size: 1.05rem; }
.step-card { padding: 26px; height: 100%; }
.step-num { font-family: var(--font-display); font-size: .82rem; color: var(--gold); font-weight: 700; letter-spacing: .1em; }
.feature-ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 16px; background: rgba(243,186,47,.12); color: var(--gold); }
.feature-ic.v { background: rgba(139,92,246,.14); color: #c4b5fd; }
.feature-ic.c { background: rgba(34,211,238,.12); color: #67e8f9; }
.feature-ic .lucide-icon { width: 26px; height: 26px; }
.alloc-bar { display: flex; height: 54px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.alloc-bar > div { display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: #1a1405; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 4px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-family: var(--font-display); font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--gold); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-2); padding: 0 4px 20px; margin: 0; }
.notice-card { padding: 32px; border: 1px solid rgba(245,158,11,.35); background: linear-gradient(135deg, rgba(245,158,11,.08), rgba(139,92,246,.06)); }
.l-footer { padding: 48px clamp(16px, 4vw, 48px) 32px; border-top: 1px solid var(--border); color: var(--muted); font-size: .86rem; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Animations ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes float { 0%, 100% { transform: translateY(-50%) translateX(0); } 50% { transform: translateY(calc(-50% - 18px)) translateX(-10px); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ring-out { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
@keyframes flash-border { 0% { box-shadow: 0 0 0 0 rgba(243,186,47,.6); } 100% { box-shadow: 0 0 0 14px rgba(243,186,47,0); } }
.auth-side .orb { transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); top: 0 !important; }
  /* the open menu covers the testnet ribbon (1100) and the bottom bar (1150), so the logo and Sign out are visible */
  body.sidebar-open .sidebar { transform: none; z-index: 1210; background: rgba(8, 11, 22, .98); padding-top: calc(20px + env(safe-area-inset-top)); padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,.6); }
  body.sidebar-open .ai-fab, body.sidebar-open .notif-offer { display: none !important; }
  .main-col { margin-left: 0; }
  .page-content { padding: 18px 16px 100px; }
  .topbar { padding: 12px 16px; }
  .wrong-network-bar, .wallet-mismatch-bar { margin: 0 16px; }
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1150; justify-content: space-around;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); background: rgba(8,11,22,.94); border-top: 1px solid var(--border);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
  .bottom-nav button { background: none; border: 0; font: inherit; }
  .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; color: var(--muted); padding: 4px 10px; border-radius: 10px; }
  .bottom-nav a.active { color: var(--gold); }
  .bottom-nav a .lucide-icon, .bottom-nav button .lucide-icon { width: 22px; height: 22px; }
  .ai-fab { bottom: 84px; right: 16px; width: 52px; height: 52px; }
  .ai-panel { bottom: 146px; right: 16px; height: min(560px, calc(100vh - 200px)); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .landing-nav .links { display: none; }
  .hero-orb { opacity: .45; right: -30%; }
  .q-stage { grid-template-columns: 44px 1fr; }
  .q-stage .q-num { width: 44px; height: 44px; }
  .q-levels { grid-column: 2; text-align: left; }
  .level-row { grid-template-columns: 60px 1fr 1fr; }
  .level-row .hide-sm { display: none; }
}
@media (max-width: 575.98px) {
  .stat-grid { gap: 10px; }
  .stat-card { padding: 14px; min-height: 112px; }
  .card-neo { padding: 16px; }
  .topbar-title h1 { font-size: 1.05rem; }
  .countdown .cd { min-width: 52px; }
  .countdown .cd b { font-size: 1.25rem; }
  .ring { width: 150px; height: 150px; }
  .pool-hero { padding: 20px; }
  .hero-stats { gap: 10px; }
  .toast-stack { right: 16px; left: 16px; bottom: 150px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
}

/* ---------- Achievements ---------- */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.badge-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 10px; border-radius: 14px; background: rgba(255,255,255,.02); border: 1px dashed var(--border-strong); opacity: .55; transition: transform .2s; }
.badge-tile.earned { opacity: 1; border-style: solid; border-color: rgba(243,186,47,.35); background: linear-gradient(180deg, rgba(243,186,47,.08), rgba(139,92,246,.05)); }
.badge-tile.earned:hover { transform: translateY(-2px); }
.badge-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.05); color: var(--muted); }
.badge-tile.earned .badge-ic { background: var(--grad-gold); color: #1a1405; box-shadow: 0 0 18px -6px rgba(243,186,47,.8); }
.badge-name { font-weight: 600; font-size: .82rem; }
.badge-desc { font-size: .7rem; color: var(--muted); line-height: 1.3; }

/* ---------- Earnings: price scenarios & planner ---------- */
.btn-neo-ghost.active { color: #f3ba2f; border-color: rgba(243,186,47,.55); background: rgba(243,186,47,.08); }
.planner-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.planner-case { cursor: pointer; text-align: left; width: 100%; color: inherit; font: inherit; }
.planner-case.active { border-color: rgba(243,186,47,.6); box-shadow: 0 0 0 1px rgba(243,186,47,.35), 0 10px 30px -18px rgba(243,186,47,.6); }
.planner-case .case-value { font-size: 1.55rem; font-weight: 700; line-height: 1.1; }
.planner-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 18px; }
.planner-controls output { font-variant-numeric: tabular-nums; font-weight: 600; color: #f3ba2f; }
.planner-warn { color: #fcd34d; }

/* ---------- Wallet picker (EIP-6963: several wallets installed) ---------- */
.wallet-picker { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(3, 6, 15, .72); backdrop-filter: blur(6px); }
.wallet-picker-card { width: 100%; max-width: 380px; }
.wallet-picker-item { display: flex; align-items: center; gap: 12px; justify-content: flex-start; text-align: left; }
.wallet-picker-item img { border-radius: 6px; flex-shrink: 0; }

/* ---------- "Turn on notifications" offer ---------- */
.notif-offer { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 16px; border-radius: 14px; animation: notifIn .35s ease; }
@keyframes notifIn { from { opacity: 0; transform: translateY(-6px); } }
.notif-offer .lucide-icon { color: #f3ba2f; flex-shrink: 0; }
@media (max-width: 576px) { .notif-offer { flex-wrap: wrap; gap: 8px 10px; padding: 10px 12px; font-size: .9rem; } .notif-offer > .flex-grow-1 { flex: 1 1 calc(100% - 40px); } .notif-offer-sub { display: none !important; } .notif-offer .btn-neo { flex: 1 1 0; justify-content: center; } }

/* ---------- Telegram invite ---------- */
.tg-card { border-color: rgba(42,171,238,.35); background: linear-gradient(135deg, rgba(42,171,238,.10), transparent 60%); }
.tg-ic { color: #2aabee; }
.tg-ic svg { width: 26px; height: 26px; }

/* ---------- Responsive hardening (phones 320–420px) ---------- */
/* Decorative glows/orbs must never create sideways scrolling. */
html, body { overflow-x: clip; }
/* Flex/grid children may shrink below their content width; long buttons wrap instead of overflowing. */
.auth-main, .auth-card { min-width: 0; }
@media (max-width: 480px) {
  .auth-card { padding: 24px 20px; }
  .auth-card .btn-neo-lg, .auth-card .btn-neo { white-space: normal; text-align: center; }
}
@media (max-width: 420px) {
  .landing-nav { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .landing-nav .brand-text { font-size: 1rem; }
  .landing-nav .brand-text small { display: none; }
  .landing-nav .brand-mark { width: 38px; height: 38px; }
  .landing-nav .btn-neo-sm { padding: 7px 10px; font-size: .82rem; }
  .landing-nav .ms-auto.gap-2 { gap: 6px !important; }
  .topbar-actions { gap: 6px; }
  .topbar h1, .topbar .page-title { font-size: 1.05rem; }
}

/* Long hashes / addresses never push past their card on narrow phones */
.mono { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 359px) { .landing-nav .nav-home { display: none; } }
/* Single-column grids never grow wider than their column (charts / long text) */
.d-grid { grid-template-columns: minmax(0, 1fr); }
.chart-box { min-width: 0; max-width: 100%; }
.chart-box canvas { max-width: 100%; }
/* AI button glow stays inside the screen edge */
@media (max-width: 576px) { .ai-fab-glow { inset: 0; } }

/* Earnings Planner: step-by-step action plan */
.plan-steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 14px; }
.plan-steps > li { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; line-height: 1.55; min-width: 0; }
.plan-steps > li > div { min-width: 0; }
.plan-num { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: #1a1300; background: linear-gradient(135deg, #f8d26a, #f3ba2f); }
.plan-sub { margin: 6px 0 6px; padding-left: 18px; display: grid; gap: 2px; }
.plan-result { border-top: 1px solid var(--border); padding-top: 14px; }
.plan-result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 16px; }
.plan-result-grid > div { min-width: 0; }
.plan-result-grid span:first-child { display: block; font-size: .78rem; color: var(--text-2); }
.plan-result-grid b { font-size: 1.1rem; }

/* My Goal: lock bar in the planner + progress page */
.goal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 16px; padding: 14px 16px; border-radius: 14px; border: 1px dashed rgba(243,186,47,.45); background: rgba(243,186,47,.06); }
.goal-bar > div { min-width: 200px; }
.planner-locked .planner-case { opacity: .55; cursor: not-allowed; }
.planner-locked .form-range:disabled { opacity: .7; }
.goal-hero { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.goal-big { font-family: var(--font-display); font-size: clamp(1.6rem, 2vw + 1rem, 2.3rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; overflow-wrap: anywhere; }
.goal-of { font-size: .55em; color: var(--text-2); font-weight: 600; letter-spacing: 0; }
.goal-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 20px; }
.goal-actions { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.goal-actions li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--border); font-size: .92rem; }
.goal-actions li > .flex-grow-1 { min-width: 0; }
.goal-action-ic { flex: 0 0 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(243,186,47,.12); color: #f3ba2f; }
.goal-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.goal-metric { min-width: 0; }
.goal-metric-val { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.goal-stage { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.goal-stage:last-of-type { border-bottom: 0; }
.goal-stage-dot { flex: 0 0 12px; height: 12px; border-radius: 50%; background: #3a4360; }
.goal-stage-dot.qualified { background: #4ade80; box-shadow: 0 0 10px rgba(74,222,128,.5); }
.goal-stage-dot.pending { background: #f3ba2f; }
.goal-stage-dot.failed, .goal-stage-dot.blocked { background: #f43f5e; }
.goal-row-now td { background: rgba(243,186,47,.07); }
@media (max-width: 576px) {
  .goal-actions li { flex-wrap: wrap; }
  .goal-actions li .btn-neo { margin-left: 44px; }
  .goal-bar .btn-neo { flex: 1 1 auto; justify-content: center; }
}
.goal-actions li > .flex-grow-1 { flex: 1 1 0; }
@media (max-width: 576px) { .goal-actions li > .flex-grow-1 { flex: 1 1 calc(100% - 44px); } }

/* Wallet: play balance vs earnings */
.balance-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.balance-box { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,.025); min-width: 0; }
.balance-box.earn { border-color: rgba(243,186,47,.35); background: rgba(243,186,47,.06); }
.balance-val { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.balance-val small { font-size: .55em; color: var(--text-2); }
.rank-claim-box { border-radius: 14px; border: 1px dashed rgba(139,92,246,.45); background: rgba(139,92,246,.07); }
.rank-badge { font-weight: 700; }

/* Community Rank Pool page */
.rank-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.rank-card { min-width: 0; }
.rank-card.rank-1 { border-color: rgba(34,211,238,.3); }
.rank-card.rank-2 { border-color: rgba(243,186,47,.4); }
.rank-card.rank-3 { border-color: rgba(139,92,246,.5); box-shadow: 0 0 0 1px rgba(139,92,246,.15), 0 10px 40px -18px rgba(139,92,246,.6); }
.rank-stars { font-size: 1.05rem; letter-spacing: -2px; }
.rank-levels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.rank-levels > div { text-align: center; padding: 8px 4px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--border); }
.rank-levels span { display: block; font-size: .72rem; color: var(--text-2); }
.rank-levels b { font-family: var(--font-display); font-size: 1.1rem; }
@media (max-width: 480px) { .balance-val { font-size: 1.2rem; } .balance-box { padding: 10px 12px; } }

/* Dashboard: account card */
.acct-card { display: grid; grid-template-columns: minmax(240px, 1fr) 2.2fr; gap: 18px 28px; align-items: center;
  background: radial-gradient(120% 140% at 0% 0%, rgba(243,186,47,.12), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(139,92,246,.14), transparent 55%), var(--card, rgba(255,255,255,.03));
  border-color: rgba(243,186,47,.28); }
.acct-id { display: flex; gap: 16px; align-items: center; min-width: 0; }
.acct-avatar { flex: 0 0 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; color: #1a1300;
  background: linear-gradient(135deg, #ffe08a, #f3ba2f 55%, #e59a10); box-shadow: 0 10px 30px -10px rgba(243,186,47,.7), inset 0 1px 0 rgba(255,255,255,.5); }
.acct-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.min-w-0 { min-width: 0; }
.acct-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 18px; margin: 0; }
.acct-facts > div { min-width: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--border); }
.acct-facts dt { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.acct-facts dd { margin: 0; font-size: .9rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; overflow-wrap: anywhere; }
@media (max-width: 1199px) { .acct-card { grid-template-columns: 1fr; } }
@media (max-width: 991px) { .acct-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .acct-facts { gap: 8px; } .acct-facts > div { padding: 8px 10px; } .acct-facts dd { font-size: .85rem; } .acct-avatar { flex-basis: 54px; height: 54px; font-size: 1.2rem; } .acct-name { font-size: 1.15rem; } }
@media (max-width: 340px) { .acct-facts { grid-template-columns: 1fr; } }

/* Live "wins & achievers" feed */
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: livePulse 1.8s infinite; display: inline-block; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.act-list { list-style: none; margin: 0; padding: 0 4px 0 0; display: grid; gap: 6px; max-height: 560px; overflow-y: auto; scrollbar-width: thin; }
@media (max-width: 576px) { .act-list { max-height: 440px; } .act-item { padding: 9px 10px; gap: 10px; } .act-ic { flex-basis: 30px; width: 30px; height: 30px; } .act-line { font-size: .86rem; } }
.act-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,.015); transition: background .6s, border-color .6s, box-shadow .6s; }
.act-ic { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.act-win .act-ic { background: rgba(243,186,47,.14); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(243,186,47,.3); }
.act-rank .act-ic { background: rgba(139,92,246,.14); color: #a78bfa; box-shadow: inset 0 0 0 1px rgba(139,92,246,.3); }
.act-rank-1 .act-ic { background: rgba(56,189,248,.12); color: #7dd3fc; box-shadow: inset 0 0 0 1px rgba(56,189,248,.3); }
.act-rank-2 .act-ic { background: rgba(243,186,47,.14); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(243,186,47,.3); }
.rank-1-text { color: #7dd3fc; } .rank-2-text { color: var(--gold); } .rank-3-text { color: #a78bfa; }
.act-body { min-width: 0; flex: 1; }
.act-line { color: var(--text); font-size: .9rem; line-height: 1.35; }
.act-sub { color: var(--muted); font-size: .76rem; margin-top: 2px; }
.act-sub a { color: var(--text-2); }
.act-me { border-color: rgba(243,186,47,.45); background: rgba(243,186,47,.07); }
.act-new { animation: actIn .55s cubic-bezier(.2,.8,.2,1); border-color: rgba(243,186,47,.6); box-shadow: 0 0 22px -6px rgba(243,186,47,.55); background: rgba(243,186,47,.08); }
@keyframes actIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .live-dot, .act-new { animation: none; } }

/* ---- Mobile polish: top-bar wallet chip, wallet warning bars, account card ---- */
.wallet-connected [data-wallet-address] { white-space: nowrap; }
.wrong-network-bar .bar-text, .wallet-mismatch-bar .bar-text { flex: 1 1 220px; min-width: 0; line-height: 1.45; }
.wrong-network-bar > .lucide-icon, .wrong-network-bar > svg, .wallet-mismatch-bar > .lucide-icon, .wallet-mismatch-bar > svg { flex: 0 0 auto; }
.acct-actions { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 576px) {
  /* chip: one line, address + dot only (copy / disconnect live on the Wallet page) */
  .wallet-connected { gap: 6px; padding: 6px 10px; font-size: .78rem; }
  .wallet-connected [data-copy-wallet], .wallet-connected [data-wallet-disconnect] { display: none !important; }
  .topbar-title h1 { font-size: 1rem; }
  /* warning bars: icon + text on top, a full-width button under them */
  .wrong-network-bar, .wallet-mismatch-bar { align-items: flex-start; padding: 12px; gap: 8px 10px; font-size: .84rem; }
  .wrong-network-bar .btn-neo, .wallet-mismatch-bar .btn-neo { flex: 1 1 100%; justify-content: center; }
  /* account card: label / value rows; facts with buttons span the full width, buttons on the right */
  .acct-card { gap: 16px; }
  .acct-facts > .acct-wide { grid-column: 1 / -1; }
  .acct-facts > .acct-wide dd { flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
  .acct-facts > .acct-wide dd .acct-actions { margin-left: auto; flex: 0 0 auto; }
  .acct-facts dt { font-size: .66rem; }
}

/* ---- Dialogs above everything (bottom bar 1150, AI button 1200, open menu 1210) and usable on phones ---- */
.modal { z-index: 1300; }
.modal-content.glass-modal { background: #0e1324; }   /* solid: the page must not show through a dialog */
.modal-backdrop.show { opacity: .7; }
.modal-backdrop { z-index: 1290; }
body.modal-open .ai-fab, body.modal-open .notif-offer, body.modal-open .bottom-nav { display: none !important; }
@media (max-width: 576px) {
  .modal-dialog { margin: 12px; min-height: calc(100% - 24px); }
  .glass-modal { max-height: calc(100dvh - 24px); display: flex; flex-direction: column; }
  .glass-modal .modal-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 18px 8px; }
  .glass-modal .modal-header { padding: 16px 18px 6px; }
  .glass-modal .modal-footer { padding: 10px 18px calc(14px + env(safe-area-inset-bottom)); gap: 8px; flex-wrap: nowrap; }
  .glass-modal .modal-footer .btn-neo { flex: 1 1 0; justify-content: center; margin: 0; }
}

/* Winner announcement */
.win-list { display: grid; gap: 6px; }
.win-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,.02); }
.win-row .win-name { font-weight: 700; color: var(--text); }
.win-row.me { border-color: rgba(243,186,47,.55); background: rgba(243,186,47,.1); box-shadow: 0 0 22px -8px rgba(243,186,47,.6); }

/* Dashboard: Community Rank Pool card */
.rank-dash { display: grid; gap: 14px; }
.rank-dash-head { display: flex; align-items: center; gap: 12px; }
.rank-dash-ic { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--gold); background: rgba(243,186,47,.12); box-shadow: inset 0 0 0 1px rgba(243,186,47,.3); }
.rank-dash-title { font-family: var(--font-display); font-weight: 700; color: var(--text); }
.rank-dash-goal { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--border); }
.rank-dash-levels { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 10px; }
.rank-lv { font-size: .78rem; color: var(--muted); display: grid; gap: 6px; }
.rank-lv b { color: var(--text); font-size: .9rem; }
.rank-lv b small { color: var(--muted); font-weight: 500; }
.rank-lv.done b { color: var(--success); }
.rank-dash-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 12px; border-top: 1px solid var(--border); }
@media (max-width: 576px) {
  .rank-dash-head .rank-badge, .rank-dash-head .badge-status { font-size: .62rem; }
  .rank-dash-levels { gap: 8px; }
  .rank-dash-foot .btn-neo { padding: 7px 12px; }
}

/* Overview stat cards */
.stat-addr { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-card .stat-top { gap: 10px; }
.stat-card .stat-label { min-width: 0; line-height: 1.3; }
.stat-card .stat-icon { flex: 0 0 auto; }
@media (max-width: 576px) {
  .stat-card { padding: 12px; gap: 4px; min-height: 104px; }
  .stat-card .stat-top { align-items: flex-start; margin-bottom: 2px; }
  .stat-card .stat-label { font-size: .72rem; }
  .stat-card .stat-icon { width: 30px; height: 30px; border-radius: 9px; }
  .stat-card .stat-icon .lucide-icon, .stat-card .stat-icon svg { width: 16px; height: 16px; }
  .stat-card .stat-value { font-size: 1.3rem; }
  .stat-card .stat-value.fs-5 { font-size: 1.02rem !important; }
  .stat-card .stat-sub { font-size: .7rem; line-height: 1.35; }
  .stat-card .stat-line { display: block; }
  .stat-card .stat-sep { display: none; }
  .ai-fab { width: 50px; height: 50px; border-radius: 16px; right: 14px; }
}

/* Machine AI: formatted replies and the daily usage meter */
.ai-msg.ai-rich { white-space: normal; }
.ai-rich p { margin: 0 0 6px; }
.ai-rich p:last-child { margin-bottom: 0; }
.ai-rich ul { margin: 2px 0 6px; padding-left: 18px; }
.ai-rich li { margin: 2px 0; }
.ai-rich b { color: var(--text); }
.ai-usage { padding: 0 16px 8px; font-size: .72rem; color: var(--muted); display: grid; gap: 5px; }
.ai-usage b { color: var(--text-2); }
.progress-neo .bar.danger { background: linear-gradient(90deg, #f59e0b, #f43f5e); }

/* Languages */
html[lang="hi"] body { font-family: 'Inter', 'Noto Sans Devanagari', system-ui, sans-serif; }
html[lang="hi"] { --font-display: 'Space Grotesk', 'Noto Sans Devanagari', 'Inter', system-ui, sans-serif; }
.lang-btn { width: auto; padding: 0 10px; gap: 6px; display: inline-flex; align-items: center; }
.lang-btn .lang-code { font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.lang-menu { min-width: 200px; padding: 6px; background: rgba(14,19,36,.97) !important; }
.lang-menu .dropdown-item { border-radius: 8px; color: var(--text-2); display: flex; align-items: baseline; }
.lang-menu .dropdown-item.active, .lang-menu .dropdown-item:active { background: rgba(243,186,47,.14); color: var(--text); }
.auth-card { position: relative; }
.auth-lang { position: absolute; top: 14px; right: 14px; }
@media (max-width: 576px) { .lang-btn .lang-code { display: none; } .lang-btn { padding: 0 8px; } }


/* BNB / USDT switch above the pool cards */
.cur-toggle { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; margin-bottom: .9rem; }
.cur-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--border, rgba(255,255,255,.08)); }
.cur-seg button { border: 0; background: transparent; color: var(--text-muted, #8a92ae); font-size: .78rem; font-weight: 700; letter-spacing: .02em; padding: .3rem .85rem; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; }
.cur-seg button.active { background: linear-gradient(135deg, #f3ba2f, #e8a412); color: #1a1405; }
.cur-seg button:focus-visible { outline: 2px solid #f3ba2f; outline-offset: 2px; }

/* Sign in with wallet / wallet apps */
.auth-or { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; color: var(--text-muted, #8a92ae); font-size: .8rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.08); }
.wallet-app-ic { width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: .8rem; flex-shrink: 0; }

/* Highlighted announcement on the dashboard */
.ann-banner { position: relative; display: flex; gap: 1rem; align-items: flex-start; padding: 1.15rem 3rem 1.15rem 1.25rem;
  border: 1px solid rgba(243,186,47,.55); background: linear-gradient(135deg, rgba(243,186,47,.14), rgba(243,186,47,.03) 55%, rgba(139,92,246,.06));
  box-shadow: 0 0 0 1px rgba(243,186,47,.12), 0 10px 30px -12px rgba(243,186,47,.35); transition: opacity .25s, transform .25s; }
.ann-banner.closing { opacity: 0; transform: translateY(-6px); }
.ann-ic { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f3ba2f, #e8a412); color: #1a1405; box-shadow: 0 6px 18px -6px rgba(243,186,47,.7); }
.ann-main { min-width: 0; flex: 1; }
.ann-meta { display: flex; align-items: center; gap: .6rem; font-size: .72rem; color: var(--text-muted, #8a92ae); margin-bottom: .2rem; }
.ann-tag { text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: #f3ba2f; }
.ann-title { font-size: 1.05rem; font-weight: 800; margin: 0 0 .35rem; line-height: 1.35; }
.ann-body { font-size: .9rem; line-height: 1.6; color: var(--text-2, #c6cbe0); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ann-banner.open .ann-body { display: block; -webkit-line-clamp: unset; }
.ann-body a { color: #f3ba2f; text-decoration: underline; text-underline-offset: 2px; }
.ann-more { margin-top: .35rem; padding: 0; border: 0; background: none; color: #f3ba2f; font-weight: 700; font-size: .82rem; cursor: pointer; }
.ann-close { position: absolute; top: .7rem; right: .7rem; }
@media (max-width: 575.98px) { .ann-banner { padding: 1rem 2.6rem 1rem 1rem; gap: .75rem; } .ann-ic { width: 36px; height: 36px; border-radius: 10px; } .ann-title { font-size: .98rem; } }

.card-title-neo + .cur-toggle, .d-flex > .cur-toggle { margin-bottom: 0; }
.goal-total-row td { border-top: 1px solid rgba(243,186,47,.35); background: rgba(243,186,47,.06); padding-top: .8rem; padding-bottom: .8rem; }

/* ---------------- Daily greeting popup (5 designs) ---------------- */
.greet-overlay { position: fixed; inset: 0; z-index: 1400; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(3,6,15,.72); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.greet-overlay.show { opacity: 1; }
.greet-card { --c1: #f3ba2f; --c2: #e8a412; --glow: rgba(243,186,47,.45);
  position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 22px; padding: 1.6rem 1.5rem 1.3rem;
  background: radial-gradient(120% 70% at 50% -10%, color-mix(in srgb, var(--c1) 30%, transparent), transparent 60%), #0e1324;
  border: 1px solid color-mix(in srgb, var(--c1) 55%, transparent); box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 25px 60px -20px var(--glow);
  transform: translateY(18px) scale(.96); transition: transform .45s cubic-bezier(.2,1.3,.4,1); text-align: center; }
.greet-overlay.show .greet-card { transform: none; }
.greet-t2 { --c1: #ff9f43; --c2: #ff5e8a; --glow: rgba(255,120,110,.45); }
.greet-t3 { --c1: #22d3ee; --c2: #3b82f6; --glow: rgba(34,211,238,.4); }
.greet-t4 { --c1: #34d399; --c2: #14b8a6; --glow: rgba(52,211,153,.4); }
.greet-t5 { --c1: #a78bfa; --c2: #ec4899; --glow: rgba(167,139,250,.45); }
.greet-close { position: absolute; top: .75rem; right: .75rem; width: 32px; height: 32px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: #c6cbe0; cursor: pointer; z-index: 2; }
.greet-sparks i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--c1); opacity: 0; animation: greet-spark 2.4s ease-out infinite; }
.greet-sparks i:nth-child(1) { left: 12%; top: 18%; animation-delay: .1s; } .greet-sparks i:nth-child(2) { left: 85%; top: 14%; animation-delay: .5s; background: var(--c2); }
.greet-sparks i:nth-child(3) { left: 22%; top: 40%; animation-delay: .9s; } .greet-sparks i:nth-child(4) { left: 78%; top: 36%; animation-delay: 1.3s; background: var(--c2); }
.greet-sparks i:nth-child(5) { left: 50%; top: 6%; animation-delay: 1.7s; } .greet-sparks i:nth-child(6) { left: 92%; top: 48%; animation-delay: 2s; }
@keyframes greet-spark { 0% { opacity: 0; transform: translateY(8px) scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-22px) scale(1.2); } }
.greet-hero { display: flex; justify-content: center; margin-bottom: .9rem; min-height: 96px; align-items: center; }
.greet-ring { --p: 0; width: 104px; height: 104px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(closest-side, #0e1324 78%, transparent 80% 100%), conic-gradient(var(--c1) calc(var(--p) * 1%), rgba(255,255,255,.08) 0);
  animation: greet-pop .6s .25s both cubic-bezier(.2,1.4,.4,1); }
.greet-ring b { font-size: 1.55rem; font-weight: 900; line-height: 1; } .greet-ring span { font-size: .72rem; color: #8a92ae; text-transform: uppercase; letter-spacing: .06em; margin-top: .2rem; }
.greet-sun { font-size: 4rem; line-height: 1; filter: drop-shadow(0 0 18px var(--glow)); animation: greet-float 3s ease-in-out infinite; }
.greet-badge-ic { width: 84px; height: 84px; border-radius: 24px; display: flex; align-items: center; justify-content: center; color: #1a1405;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 12px 30px -8px var(--glow); animation: greet-pop .6s .2s both cubic-bezier(.2,1.4,.4,1); }
.greet-badge-ic svg, .greet-badge-ic i { width: 40px; height: 40px; }
.greet-countdown { display: flex; flex-direction: column; align-items: center; padding: .8rem 1.4rem; border-radius: 18px; background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.3); }
.greet-countdown [data-text] { font-family: var(--font-mono, ui-monospace, monospace); font-size: 1.8rem; font-weight: 800; color: var(--c1); letter-spacing: .02em; }
.greet-countdown small { color: #8a92ae; font-size: .75rem; margin-top: .15rem; }
.greet-seats { display: grid; grid-template-columns: repeat(5, 40px); gap: 8px; }
.greet-seats span { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; border: 1px dashed rgba(255,255,255,.18); color: #5d6684;
  animation: greet-pop .45s both; animation-delay: calc(var(--i) * 60ms + .2s); }
.greet-seats span.on { border-style: solid; border-color: transparent; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #05241a; }
.greet-ladder { display: flex; gap: 8px; align-items: flex-end; }
.greet-ladder span { width: 42px; border-radius: 10px 10px 4px 4px; display: flex; align-items: flex-start; justify-content: center; padding-top: 6px; font-weight: 800; font-size: .85rem;
  background: rgba(255,255,255,.06); color: #8a92ae; animation: greet-pop .45s both; }
.greet-ladder span:nth-child(1) { height: 36px; } .greet-ladder span:nth-child(2) { height: 48px; animation-delay: .08s; } .greet-ladder span:nth-child(3) { height: 60px; animation-delay: .16s; }
.greet-ladder span:nth-child(4) { height: 72px; animation-delay: .24s; } .greet-ladder span:nth-child(5) { height: 84px; animation-delay: .32s; }
.greet-ladder span.done { background: linear-gradient(180deg, var(--c1), var(--c2)); color: #1b0d2b; } .greet-ladder span.miss { opacity: .35; text-decoration: line-through; }
@keyframes greet-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes greet-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.greet-hello { margin: 0 0 .15rem; color: #c6cbe0; font-weight: 600; }
.greet-headline { margin: 0 0 1rem; font-size: 1.45rem; font-weight: 900; line-height: 1.25;
  background: linear-gradient(90deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.greet-mission { text-align: left; padding: .9rem 1rem; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid color-mix(in srgb, var(--c1) 35%, transparent); margin-bottom: 1rem; font-size: .92rem; }
.greet-mission b { color: var(--c1); }
.greet-mission-tag { display: inline-block; font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #120c02; background: linear-gradient(90deg, var(--c1), var(--c2)); padding: .15rem .55rem; border-radius: 999px; margin-bottom: .45rem; }
.greet-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); margin: .6rem 0 .35rem; overflow: hidden; }
.greet-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c1), var(--c2)); animation: greet-grow 1s .35s both ease-out; }
@keyframes greet-grow { from { width: 0 !important; } }
.greet-mission-sub { font-size: .82rem; color: #a6adc6; }
.greet-plan-title { text-align: left; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8a92ae; margin-bottom: .4rem; }
.greet-plan { text-align: left; margin: 0 0 1.1rem; padding: 0; list-style: none; counter-reset: gp; }
.greet-plan li { counter-increment: gp; position: relative; padding: .45rem 0 .45rem 2.1rem; font-size: .9rem; line-height: 1.45; animation: greet-in .4s both; animation-delay: calc(var(--i) * 90ms + .3s); }
.greet-plan li::before { content: counter(gp); position: absolute; left: 0; top: .4rem; width: 1.5rem; height: 1.5rem; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 900; color: #120c02; background: linear-gradient(135deg, var(--c1), var(--c2)); }
@keyframes greet-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.greet-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.greet-actions .btn-neo-primary { background: linear-gradient(135deg, var(--c1), var(--c2)); border-color: transparent; color: #120c02; }
@media (max-width: 575.98px) { .greet-card { padding: 1.4rem 1.1rem 1.1rem; border-radius: 18px; } .greet-headline { font-size: 1.25rem; } .greet-actions .btn-neo { flex: 1 1 100%; }
  .greet-seats { grid-template-columns: repeat(5, 34px); gap: 6px; } .greet-seats span { width: 34px; height: 34px; } }
@media (prefers-reduced-motion: reduce) { .greet-card, .greet-ring, .greet-sun, .greet-seats span, .greet-ladder span, .greet-plan li, .greet-bar span, .greet-sparks i { animation: none !important; transition: none !important; } }

.greet-title { margin: 0 0 1rem; font-size: 1.45rem; font-weight: 900; line-height: 1.25; }
.greet-title .greet-headline { margin: 0; font-size: inherit; }
.greet-emoji { display: inline-block; animation: greet-float 2.6s ease-in-out infinite; }
body.greet-open .notif-offer, body.greet-open .ai-fab { display: none !important; }
.greet-hero { min-height: 84px; margin-bottom: .7rem; }
@media (max-height: 760px) { .greet-card { padding-top: 1.2rem; } .greet-hero { transform: scale(.88); margin-bottom: .3rem; } .greet-plan li { padding-top: .3rem; padding-bottom: .3rem; } }
@media (max-width: 575.98px) { .greet-title { font-size: 1.25rem; } }

/* ---------- Game Zone & DeFi Hub ---------- */
.accent-gold   { --ac: 243,186,47;  --ac-2: #ffd978; }
.accent-violet { --ac: 139,92,246;  --ac-2: #c4b5fd; }
.accent-cyan   { --ac: 34,211,238;  --ac-2: #67e8f9; }
.accent-green  { --ac: 34,197,94;   --ac-2: #86efac; }
.accent-pink   { --ac: 236,72,153;  --ac-2: #f9a8d4; }
.zone-h { font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.zone-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; color: var(--ac-2, var(--gold));
  background: radial-gradient(circle at 30% 25%, rgba(var(--ac, 243,186,47), .35), rgba(var(--ac, 243,186,47), .08)); border: 1px solid rgba(var(--ac, 243,186,47), .35);
  box-shadow: 0 0 24px -6px rgba(var(--ac, 243,186,47), .55); }
.zone-ic .lucide-icon { width: 24px; height: 24px; }
.zone-ic.sm { width: 38px; height: 38px; border-radius: 12px; }
.zone-ic.sm .lucide-icon { width: 19px; height: 19px; }
.zone-ic.lg { width: 74px; height: 74px; border-radius: 22px; }
.zone-ic.lg .lucide-icon { width: 36px; height: 36px; }
.zone-status { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.zone-status .lucide-icon { width: 12px; height: 12px; }
.zone-status.live { color: #4ade80; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35); }
.zone-status.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; animation: zonePulse 1.6s ease-in-out infinite; }
.zone-status.soon { color: var(--ac-2); background: rgba(var(--ac), .12); border: 1px solid rgba(var(--ac), .35); }
.zone-status.locked { color: var(--muted); background: rgba(255,255,255,.05); border: 1px solid var(--border-strong); }
.zone-live-dot { width: 10px; height: 10px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 12px #4ade80; animation: zonePulse 1.6s ease-in-out infinite; }
@keyframes zonePulse { 50% { opacity: .35; } }

.zone-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: clamp(22px, 4vw, 40px); }
.zone-hero-defi { grid-template-columns: 1fr; }
.zone-hero-glow { position: absolute; inset: -40% -10% auto auto; width: 70%; height: 180%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(139,92,246,.22), transparent 70%), radial-gradient(closest-side at 70% 60%, rgba(243,186,47,.16), transparent 70%); }
.zone-hero-defi .zone-hero-glow { background: radial-gradient(closest-side, rgba(34,211,238,.2), transparent 70%), radial-gradient(closest-side at 70% 60%, rgba(34,197,94,.12), transparent 70%); }
.zone-hero-body { position: relative; }
.zone-hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.zone-hero-stats div { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; }
.zone-hero-stats b { display: block; font-size: 1.35rem; font-family: 'Space Grotesk', sans-serif; }
.zone-hero-stats span { font-size: .74rem; color: var(--muted); }
.zone-hero-art { position: relative; height: 240px; }
.zone-hero-art .core { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 104px; height: 104px; border-radius: 30px; display: grid; place-items: center;
  background: var(--grad-brand); color: #1a1405; box-shadow: 0 20px 60px -12px rgba(243,186,47,.65), inset 0 2px 0 rgba(255,255,255,.4); }
.zone-hero-art .core .lucide-icon { width: 52px; height: 52px; }
.zone-hero-art .orb { position: absolute; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(18,24,44,.85); border: 1px solid var(--border-strong);
  box-shadow: 0 10px 30px -10px #000; animation: zoneFloat 6s ease-in-out infinite; }
.zone-hero-art .orb .lucide-icon { width: 26px; height: 26px; }
.zone-hero-art .o1 { left: 8%; top: 10%; color: #c4b5fd; }
.zone-hero-art .o2 { right: 6%; top: 4%; color: #67e8f9; animation-delay: -1.5s; }
.zone-hero-art .o3 { left: 14%; bottom: 6%; color: var(--gold-2); animation-delay: -3s; }
.zone-hero-art .o4 { right: 12%; bottom: 10%; color: #f9a8d4; animation-delay: -4.5s; }
.zone-hero-art::before { content: ''; position: absolute; inset: 50% auto auto 50%; width: 220px; height: 220px; transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed rgba(255,255,255,.12); }
@keyframes zoneFloat { 50% { transform: translateY(-10px); } }

.zone-live { display: flex; align-items: center; gap: 20px; padding: 22px; border-radius: 22px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, rgba(var(--ac), .14), rgba(18,24,44,.7) 55%); border: 1px solid rgba(var(--ac), .4); box-shadow: 0 20px 50px -30px rgba(var(--ac), .8); }
.zone-live h3 { font-size: 1.35rem; margin: 8px 0 4px; }
.zone-live p { color: var(--text-2); margin-bottom: 10px; max-width: 720px; }
.zone-live-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .84rem; color: var(--muted); }
.zone-live-stats b { color: var(--text); font-family: 'Space Grotesk', sans-serif; font-size: 1rem; }
.zone-live-cta { flex: none; }

.zone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.zone-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, rgba(var(--ac), .10), rgba(18,24,44,.72) 45%); border: 1px solid rgba(var(--ac), .28); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.zone-card:hover { transform: translateY(-3px); border-color: rgba(var(--ac), .55); box-shadow: 0 24px 50px -30px rgba(var(--ac), .9); }
.zone-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--ac), .25), transparent); pointer-events: none; }
.zone-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.zone-card h3 { font-size: 1.12rem; margin: 4px 0 0; }
.zone-card p { color: var(--text-2); font-size: .9rem; margin: 0; flex-grow: 1; }
.zone-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.zone-countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.zone-countdown span { text-align: center; background: rgba(0,0,0,.25); border: 1px solid rgba(var(--ac), .25); border-radius: 12px; padding: 6px 0; }
.zone-countdown b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; color: var(--ac-2); font-variant-numeric: tabular-nums; }
.zone-countdown small { font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.zone-date-soon { font-size: .82rem; color: var(--ac-2); display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: rgba(var(--ac), .08); border: 1px dashed rgba(var(--ac), .35); }
.zone-locked { background: repeating-linear-gradient(135deg, rgba(255,255,255,.015) 0 10px, transparent 10px 20px), linear-gradient(160deg, rgba(var(--ac), .07), rgba(18,24,44,.8) 45%); }
.zone-locked .zone-ic { filter: grayscale(.6); opacity: .8; }
.zone-locked .progress-neo .bar { background: linear-gradient(90deg, rgba(var(--ac), .7), var(--ac-2)); }

.zone-vote { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: border-color .2s ease, background .2s ease; }
.zone-vote.is-mine { border-color: rgba(var(--ac), .55); background: linear-gradient(120deg, rgba(var(--ac), .12), var(--surface)); }
.zone-vote .progress-neo .bar { background: linear-gradient(90deg, rgba(var(--ac), .8), var(--ac-2)); transition: width .6s cubic-bezier(.22,1,.36,1); }
.zone-vote .btn-neo, .zone-card .btn-neo { white-space: nowrap; }
.btn-neo.is-on { color: #4ade80; border-color: rgba(34,197,94,.4); }

.solv-ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(#22c55e calc(var(--p) * 1%), rgba(255,255,255,.07) 0); box-shadow: 0 0 40px -10px rgba(34,197,94,.6); }
.solv-ring > div { width: 104px; height: 104px; border-radius: 50%; background: var(--surface-solid); display: grid; place-content: center; text-align: center; }
.solv-ring b { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; line-height: 1; }
.solv-ring span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.solv-ring.idle { box-shadow: none; }
.zone-price { font-family: 'Space Grotesk', sans-serif; font-size: 2.2rem; font-weight: 700; }
.zone-academy { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; align-items: start; }
.zone-lesson { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 16px; }
.zone-lesson summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; font-weight: 600; }
.zone-lesson summary::-webkit-details-marker { display: none; }
.zone-lesson .chev { transition: transform .2s ease; color: var(--muted); }
.zone-lesson[open] .chev { transform: rotate(180deg); }
.zone-lesson p { color: var(--text-2); font-size: .9rem; padding: 0 0 14px 50px; margin: 0; }
@media (max-width: 991px) { .zone-hero { grid-template-columns: 1fr; } .zone-hero-art { display: none; } }
@media (max-width: 575px) { .zone-hero-stats { grid-template-columns: repeat(2, 1fr); } .zone-live { flex-direction: column; align-items: flex-start; } .zone-vote { flex-wrap: wrap; } .zone-academy { grid-template-columns: 1fr; } .zone-lesson p { padding-left: 0; } }
@media (prefers-reduced-motion: reduce) { .zone-status.live::before, .zone-live-dot, .zone-hero-art .orb { animation: none; } .zone-card:hover { transform: none; } }
