/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Orbitron:wght@400;700;900&display=swap');

:root {
  --bg-primary:    #080c18;
  --bg-secondary:  #0d1224;
  --bg-card:       rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --border:        rgba(255,255,255,0.08);
  --border-glow:   rgba(139,92,246,0.4);
  --text-primary:  #f0f4ff;
  --text-secondary:#8892b0;
  --text-muted:    #4a5568;
  --accent-purple: #8b5cf6;
  --accent-cyan:   #06b6d4;
  --accent-gold:   #f59e0b;
  --accent-green:  #10b981;
  --accent-red:    #ef4444;
  --accent-pink:   #ec4899;
  --sidebar-w:     240px;
  --radius:        12px;
  --radius-lg:     18px;
  --shadow-glow:   0 0 30px rgba(139,92,246,0.15);
  --font-display:  'Orbitron', sans-serif;
  --font-body:     'Space Grotesk', sans-serif;
  --transition:    0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Layout ──────────────────────────────────────────── */
.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: 60px 1fr;
  min-height: 100vh;
}

.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 16px 0;
  overflow-y: auto;
  height: calc(100vh - 60px);
  position: sticky;
  top: 60px;
}

.main-content {
  background: var(--bg-primary);
  overflow-y: auto;
  min-height: calc(100vh - 60px);
}

/* ─── Topbar ────────────────────────────────────────────── */
.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  text-decoration: none;
}

.topbar-center {
  display: flex;
  align-items: center;
  gap: 12px;
}

.jackpot-ticker {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
}

.jackpot-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  padding: 4px 10px;
  border-radius: 20px;
  color: var(--accent-gold);
  font-weight: 600;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.balance-display {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.9rem;
}

.balance-display .currency-icon {
  color: var(--accent-gold);
  font-size: 1rem;
}

/* ─── Sidebar nav ─────────────────────────────────────── */
.sidebar-section {
  padding: 8px 12px;
  margin-bottom: 4px;
}

.sidebar-section-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0 12px;
  margin-bottom: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}

.sidebar-link:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: linear-gradient(90deg, rgba(139,92,246,0.2), transparent);
  color: var(--accent-purple);
  border-left: 2px solid var(--accent-purple);
}

.sidebar-link .icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.hot-badge {
  margin-left: auto;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 6px;
}

/* ─── Cards & Glassmorphism ───────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(10px);
}

.card-glow {
  box-shadow: 0 0 0 1px var(--border-glow), var(--shadow-glow);
}

.card:hover { border-color: rgba(255,255,255,0.12); }

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), #6d28d9);
  color: #fff;
  box-shadow: 0 4px 15px rgba(139,92,246,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(139,92,246,0.45); }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-card-hover); border-color: rgba(255,255,255,0.15); }

.btn-success {
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: #fff;
}
.btn-danger { background: linear-gradient(135deg, var(--accent-red), #dc2626); color: #fff; }
.btn-gold   { background: linear-gradient(135deg, var(--accent-gold), #d97706); color: #000; }

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ─── Forms ───────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }

.form-input, .form-select {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}
.form-input::placeholder { color: var(--text-muted); }

/* ─── Tables ──────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th { padding: 10px 14px; text-align: left; color: var(--text-muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); }
td { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.03); }
tr:hover td { background: var(--bg-card); }
.text-green { color: var(--accent-green); }
.text-red   { color: var(--accent-red); }
.text-gold  { color: var(--accent-gold); }
.text-cyan  { color: var(--accent-cyan); }
.text-purple { color: var(--accent-purple); }
.text-muted { color: var(--text-muted); }

/* ─── Badges ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge-green  { background: rgba(16,185,129,0.15); color: var(--accent-green); border: 1px solid rgba(16,185,129,0.3); }
.badge-red    { background: rgba(239,68,68,0.15);  color: var(--accent-red);   border: 1px solid rgba(239,68,68,0.3); }
.badge-gold   { background: rgba(245,158,11,0.15); color: var(--accent-gold);  border: 1px solid rgba(245,158,11,0.3); }
.badge-purple { background: rgba(139,92,246,0.15); color: var(--accent-purple); border: 1px solid rgba(139,92,246,0.3); }
.badge-cyan   { background: rgba(6,182,212,0.15);  color: var(--accent-cyan);  border: 1px solid rgba(6,182,212,0.3); }

/* ─── Game Grid ───────────────────────────────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s ease;
  position: relative;
  cursor: pointer;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-purple);
  box-shadow: 0 12px 30px rgba(139,92,246,0.2);
}

.game-card-thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  position: relative;
  overflow: hidden;
}
.game-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.6));
}

.game-card-info {
  padding: 10px 12px;
}
.game-card-name { font-weight: 600; font-size: 0.9rem; }
.game-card-edge { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.hot-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
  letter-spacing: 0.5px;
}

/* ─── Stats bar ───────────────────────────────────────── */
.stats-bar {
  display: flex;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 20px 0;
}
.stat-item {
  flex: 1;
  padding: 14px 20px;
  background: var(--bg-secondary);
  text-align: center;
}
.stat-value { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--accent-cyan); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* ─── Live feed ticker ────────────────────────────────── */
.live-feed {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  overflow: hidden;
  white-space: nowrap;
}

.feed-inner {
  display: inline-flex;
  gap: 32px;
  animation: scrollLeft 30s linear infinite;
}

@keyframes scrollLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.feed-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}
.feed-item .username { color: var(--accent-cyan); font-weight: 600; }
.feed-item .amount   { color: var(--accent-green); font-weight: 700; }
.feed-item .game     { color: var(--text-muted); }

/* ─── Game Canvas Area ────────────────────────────────── */
.game-layout {
  display: grid;
  grid-template-columns: 220px 1fr 260px;
  gap: 0;
  height: calc(100vh - 60px);
}

.game-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 12px;
}

.game-main {
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.game-right {
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  overflow-y: auto;
}

/* ─── Bet Controls ────────────────────────────────────── */
.bet-controls {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.bet-amount-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  gap: 6px;
  align-items: center;
  margin-bottom: 12px;
}

.quick-btn {
  padding: 6px 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.quick-btn:hover { border-color: var(--accent-purple); color: var(--accent-purple); }

/* ─── Currency Selector ───────────────────────────────── */
.currency-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 12px;
}

.currency-tab {
  flex: 1;
  padding: 6px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.currency-tab.active {
  background: var(--accent-purple);
  color: #fff;
}

/* ─── Live bets panel ─────────────────────────────────── */
.bets-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bets-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.bets-tab {
  flex: 1;
  padding: 12px 6px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.bets-tab.active { color: var(--accent-purple); border-color: var(--accent-purple); }

.bets-list { flex: 1; overflow-y: auto; }

.bet-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 0.8rem;
}
.bet-row:hover { background: var(--bg-card); }

/* ─── Modals ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 90%;
  max-width: 460px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  transform: translateY(20px);
  transition: transform 0.2s;
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; padding: 4px; }
.modal-close:hover { color: var(--text-primary); }

/* ─── Toast notifications ─────────────────────────────── */
.toast-container {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  min-width: 260px;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  pointer-events: auto;
}
.toast-win   { border-color: var(--accent-green); }
.toast-loss  { border-color: var(--accent-red); }
.toast-info  { border-color: var(--accent-cyan); }

@keyframes toastIn  { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateX(100%); } }

/* ─── VIP Tiers ───────────────────────────────────────── */
.vip-card {
  border: 1px solid;
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--bg-card);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.vip-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--vip-color, var(--accent-purple)) 0%, transparent 60%);
  opacity: 0.05;
  pointer-events: none;
}
.vip-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.3); }
.vip-card .vip-tier { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.vip-card .vip-icon { font-size: 2.5rem; margin-bottom: 12px; }

/* ─── Progress bar ────────────────────────────────────── */
.progress-bar {
  height: 6px;
  background: var(--bg-primary);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  border-radius: 99px;
  transition: width 0.5s ease;
}

/* ─── Chat widget ─────────────────────────────────────── */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 500;
}

.chat-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(139,92,246,0.4);
  transition: all 0.2s;
}
.chat-toggle:hover { transform: scale(1.1); }

.chat-box {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 300px;
  height: 400px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transform-origin: bottom right;
  transition: all 0.2s;
}

.chat-box.hidden { transform: scale(0.8); opacity: 0; pointer-events: none; }

.chat-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.88rem;
}
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-green); }
.chat-messages { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.chat-msg { font-size: 0.8rem; }
.chat-msg .msg-user { color: var(--accent-cyan); font-weight: 600; margin-right: 4px; }
.chat-input-row { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--border); }
.chat-input { flex: 1; background: var(--bg-primary); border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; color: var(--text-primary); font-size: 0.82rem; }
.chat-input:focus { outline: none; border-color: var(--accent-purple); }
.chat-send { background: var(--accent-purple); border: none; border-radius: 6px; color: #fff; padding: 0 10px; cursor: pointer; font-size: 1rem; }

/* ─── Provably Fair ───────────────────────────────────── */
.pf-box {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
  word-break: break-all;
}
.pf-label { color: var(--text-secondary); font-family: var(--font-body); font-weight: 600; font-size: 0.78rem; margin-bottom: 4px; }

/* ─── Auth pages ──────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.15), transparent 70%);
}
.auth-page::after {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6,182,212,0.1), transparent 70%);
}

.auth-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 90%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

/* ─── Dashboard ───────────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.stat-card .label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.stat-card .value { font-size: 1.4rem; font-weight: 700; margin-top: 4px; }
.stat-card .change { font-size: 0.75rem; margin-top: 4px; }

/* ─── Page sections ───────────────────────────────────── */
.page-header {
  padding: 28px 28px 0;
}
.page-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}
.page-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

.page-body { padding: 20px 28px 40px; }

/* ─── Win/Loss animations ─────────────────────────────── */
@keyframes winPulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); }
  50%  { box-shadow: 0 0 0 20px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
@keyframes lossPulse {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0.6); }
  50%  { box-shadow: 0 0 0 20px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
.win-flash  { animation: winPulse 0.6s ease; }
.loss-flash { animation: lossPulse 0.6s ease; }

/* ─── Spinner ─────────────────────────────────────────── */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .sidebar.open { display: block; position: fixed; left: 0; top: 60px; height: calc(100vh - 60px); z-index: 200; width: var(--sidebar-w); }
  .game-layout { grid-template-columns: 1fr; }
  .game-right { display: none; }
  .jackpot-ticker { display: none; }
}

@media (max-width: 600px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .page-header, .page-body { padding-left: 14px; padding-right: 14px; }
  .auth-card { padding: 24px; }
}

/* ─── Scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ─── Selection ───────────────────────────────────────── */
::selection { background: rgba(139,92,246,0.3); }

/* ─── Canvas background particles ────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* Ensure content is above canvas */
.app-layout, .auth-page .auth-card { position: relative; z-index: 1; }
