/**
 * SattaKhelo.io — Unified Design System
 * Version: 5.0.0
 * 
 * This file is the SINGLE source of truth for all design tokens and shared
 * UI components across the customer web app.
 * 
 * Rules:
 *  - NEVER add page-specific inline <style> blocks. Add shared components here.
 *  - Page-specific overrides go in the page's own <style> only if truly unique.
 *  - Use CSS custom properties (--token-name) for all colors, spacing, radii.
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700;800&display=swap');

/* ═════════════════════════════════════════════════════════════════════════════════
   DESIGN TOKENS
   ═════════════════════════════════════════════════════════════════════════════════ */
:root {
  /* ── Brand Core Tokens ── */
  --brand-primary: #10b981;
  --brand-primary-light: #34d399;
  --brand-primary-dark: #059669;
  --brand-secondary: #0f766e;
  --brand-accent: #f59e0b;
  --brand-gold: #d4af37;
  --brand-danger: #f43f5e;
  --brand-glow: rgba(16, 185, 129, 0.35);

  /* ── Surfaces & Backgrounds ── */
  --bg-app: #060c11;
  --bg-frame: #070e14;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.9);
  --bg-elevated: #0f172a;
  --bg-input: rgba(15, 23, 42, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #10b981;

  /* ── Typography ── */
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-white: #ffffff;
  --text-emerald: #10b981;

  /* ── Gradients ── */
  --brand-gradient: linear-gradient(135deg, #0f766e 0%, #064e3b 60%, #022c22 100%);
  --emerald-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --danger-gradient: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  --card-gradient: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);

  /* ── Status Colors ── */
  --status-open: #10b981;
  --status-open-bg: rgba(16, 185, 129, 0.15);
  --status-late: #f59e0b;
  --status-late-bg: rgba(245, 158, 11, 0.15);
  --status-closed: #f43f5e;
  --status-closed-bg: rgba(244, 63, 94, 0.15);

  /* ── Geometry & Safe Area ── */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --safe-bottom: max(16px, env(safe-area-inset-bottom));

  /* ── App Layout ── */
  --app-max-width: 500px;
  --header-height: 60px;
  --nav-height: 75px;
}

/* ═════════════════════════════════════════════════════════════════════════════════
   BASE RESET
   ═════════════════════════════════════════════════════════════════════════════════ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* Skip to content link for keyboard users */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand-primary);
  color: #ffffff;
  padding: 8px 16px;
  z-index: 10000;
  text-decoration: none;
  font-weight: 700;
  border-radius: 0 0 var(--radius-md) 0;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

html {
  background-color: #04080c;
  color-scheme: dark;
}

body {
  background: var(--bg-app);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ═════════════════════════════════════════════════════════════════════════════════
   APP WRAPPER (mobile-first, centered on desktop)
   ═════════════════════════════════════════════════════════════════════════════════ */
.mobile-wrap,
.app-container {
  width: 100%;
  max-width: var(--app-max-width);
  min-height: 100vh;
  background: var(--bg-frame);
  margin: 0 auto;
  position: relative;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(16, 185, 129, 0.05);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
  display: flex;
  flex-direction: column;
}

@media (max-width: 500px) {
  .mobile-wrap,
  .app-container {
    border-left: none;
    border-right: none;
    box-shadow: none;
  }
}

/* Desktop: center the app wrapper with a soft background so it's not a tiny strip */
@media (min-width: 501px) {
  body {
    background: #04080c radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
    display: flex;
    justify-content: center;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .mobile-wrap,
  .app-container {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
  }
}

/* ═════════════════════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═════════════════════════════════════════════════════════════════════════════════ */
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.cursor-pointer { cursor: pointer !important; }
.user-select-none { user-select: none !important; }

.gap-1 { gap: 4px !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 14px !important; }
.gap-4 { gap: 20px !important; }

.m-0 { margin: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 14px !important; }
.mb-4 { margin-bottom: 22px !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 14px !important; }
.mt-4 { margin-top: 22px !important; }
.ms-1 { margin-left: 4px !important; }
.me-1 { margin-right: 4px !important; }

.p-0 { padding: 0 !important; }
.p-2 { padding: 8px !important; }
.p-3 { padding: 14px !important; }
.p-4 { padding: 20px !important; }
.py-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
.py-3 { padding-top: 14px !important; padding-bottom: 14px !important; }
.px-3 { padding-left: 14px !important; padding-right: 14px !important; }
.px-4 { padding-left: 20px !important; padding-right: 20px !important; }

/* Typography Helpers */
.text-white { color: #ffffff !important; }
.text-light { color: #f1f5f9 !important; }
.text-muted { color: #94a3b8 !important; }
.text-secondary { color: #64748b !important; }
.text-emerald { color: #10b981 !important; }
.text-gold { color: #fbbf24 !important; }
.text-danger { color: #f43f5e !important; }
.text-success { color: #10b981 !important; }
.text-warning { color: #f59e0b !important; }
.text-decoration-none { text-decoration: none !important; }

.fw-normal { font-weight: 400 !important; }
.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.fw-900 { font-weight: 900 !important; }

.fs-10 { font-size: 10px !important; }
.fs-11 { font-size: 11px !important; }
.fs-12 { font-size: 12px !important; }
.fs-13 { font-size: 13px !important; }
.fs-14 { font-size: 14px !important; }
.fs-15 { font-size: 15px !important; }
.fs-16 { font-size: 16px !important; }
.fs-18 { font-size: 18px !important; }
.fs-20 { font-size: 20px !important; }
.fs-22 { font-size: 22px !important; }
.fs-24 { font-size: 24px !important; }

.font-mono { font-family: 'JetBrains Mono', monospace !important; }
.tabular-nums { font-variant-numeric: tabular-nums; }

/* ═════════════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═════════════════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  font-size: 14px;
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.btn-emerald {
  background: var(--emerald-gradient);
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-emerald:hover { background: linear-gradient(135deg, #34d399 0%, #059669 100%); box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45); }

.btn-gold {
  background: var(--gold-gradient);
  color: #1e1b4b !important;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.3);
}
.btn-gold:hover { background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%); }

.btn-danger {
  background: var(--danger-gradient);
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(244, 63, 94, 0.3);
}
.btn-danger:hover { background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%); }

.btn-secondary {
  background: rgba(30, 41, 59, 0.8);
  color: #f8fafc !important;
  border: 1px solid var(--border-color);
}
.btn-secondary:hover { background: rgba(51, 65, 85, 0.9); border-color: rgba(255, 255, 255, 0.15); }

.btn-outline {
  background: transparent;
  color: #10b981 !important;
  border: 1.5px solid #10b981;
}
.btn-outline:hover { background: rgba(16, 185, 129, 0.1); }

.btn-sm { padding: 8px 14px; font-size: 12px; border-radius: var(--radius-sm); }

/* ═════════════════════════════════════════════════════════════════════════════════
   INPUTS & FORMS
   ═════════════════════════════════════════════════════════════════════════════════ */
.form-floating-custom {
  position: relative;
  margin-bottom: 14px;
}

.form-floating-custom input,
.form-floating-custom select,
.form-floating-custom textarea,
.app-input {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 44px 14px 44px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-floating-custom input:focus,
.app-input:focus {
  border-color: var(--brand-primary);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}
.form-floating-custom input:focus-visible,
.app-input:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.form-floating-custom .input-icon-left {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
}

.form-floating-custom .input-icon-right {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}
.form-floating-custom .input-icon-right:hover { color: var(--brand-primary); }

.form-check-input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

.form-label {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
}
.form-group { margin-bottom: 16px; }

/* ═════════════════════════════════════════════════════════════════════════════════
   ALERT BOXES
   ═════════════════════════════════════════════════════════════════════════════════ */
.alert-box {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
}
.alert-danger {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fca5a5;
}
.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}
.alert-warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
}

/* ═════════════════════════════════════════════════════════════════════════════════
   CARDS & SURFACES
   ═════════════════════════════════════════════════════════════════════════════════ */
.luxury-card,
.auth-card,
.txn-card-item,
.app-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: all 0.2s ease;
}
.luxury-card:hover,
.txn-card-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(16, 185, 129, 0.25);
}

.txn-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  margin: 0 14px 10px 14px;
  border-radius: var(--radius-md);
}

.status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.status-pill.approved { background: rgba(16, 185, 129, 0.18); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.status-pill.rejected { background: rgba(244, 63, 94, 0.18); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.35); }
.status-pill.pending { background: rgba(245, 158, 11, 0.18); color: #fde68a; border: 1px solid rgba(245, 158, 11, 0.35); }

/* ═════════════════════════════════════════════════════════════════════════════════
   STICKY APP HEADER
   ═════════════════════════════════════════════════════════════════════════════════ */
.app-header {
  background: rgba(7, 14, 20, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-action-btn, .back-circle, .icon-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.header-action-btn:active, .back-circle:active, .icon-circle-btn:active {
  transform: scale(0.92);
  background: rgba(16, 185, 129, 0.2);
}
.header-action-btn:focus-visible, .back-circle:focus-visible, .icon-circle-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.wallet-badge, .balance-pill {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  text-decoration: none;
}
.wallet-badge i, .balance-pill i { color: var(--brand-primary); font-size: 14px; }

.brand-title {
  display: flex;
  flex-direction: column;
}
.brand-title span:first-child {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
}

/* ═════════════════════════════════════════════════════════════════════════════════
   BOTTOM NAVIGATION
   ═════════════════════════════════════════════════════════════════════════════════ */
.modern-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max-width);
  background: rgba(7, 14, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 64px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 999;
}

.nav-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  gap: 3px;
  flex: 1;
  transition: all 0.2s ease;
}
.nav-tab-item i { font-size: 17px; transition: transform 0.2s; }
.nav-tab-item.active { color: var(--brand-primary); }
.nav-tab-item.active i { transform: translateY(-2px); }
.nav-tab-item:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  color: var(--brand-primary);
}

.nav-center-hub {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--emerald-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  margin-top: -24px;
  border: 3px solid #070e14;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-center-hub:active { transform: scale(0.92); }

/* Badge on bottom nav tabs (pending count) */
.nav-badge {
  position: absolute;
  top: -4px;
  right: 8px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger-gradient);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 2px 6px rgba(244, 63, 94, 0.5);
}

/* ═════════════════════════════════════════════════════════════════════════════════
   PROMO BANNER CAROUSEL
   ═════════════════════════════════════════════════════════════════════════════════ */
.promo-carousel-container {
  margin: 14px 14px 18px 14px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.promo-slider {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.promo-slide-card {
  min-width: 100%;
  box-sizing: border-box;
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 145px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: #ffffff;
}
.promo-slide-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.promo-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 8px;
  backdrop-filter: blur(8px);
}
.promo-title {
  font-size: 19px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}
.promo-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  margin-bottom: 12px;
  max-width: 85%;
}
.promo-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 11.5px;
  font-weight: 800;
  color: #ffffff;
  align-self: flex-start;
  transition: all 0.2s;
}
.promo-cta-btn:hover { background: #ffffff; color: #064e3b; }
.promo-dots-bar {
  position: absolute;
  bottom: 8px;
  right: 14px;
  display: flex;
  gap: 6px;
  z-index: 5;
}
.promo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
}
.promo-dot.active { width: 18px; border-radius: 999px; background: #ffffff; }

/* ═════════════════════════════════════════════════════════════════════════════════
   HERO ACTIONS & GAME CARDS
   ═════════════════════════════════════════════════════════════════════════════════ */
.hero-action-panel { padding: 10px 14px 16px 14px; }
.action-buttons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-btn {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
}
.hero-btn:active { transform: scale(0.96); }
.hero-btn-deposit { background: var(--emerald-gradient); color: #ffffff; box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35); border: 1px solid rgba(255, 255, 255, 0.15); }
.hero-btn-withdraw { background: var(--danger-gradient); color: #ffffff; box-shadow: 0 4px 16px rgba(244, 63, 94, 0.35); border: 1px solid rgba(255, 255, 255, 0.15); }

/* Category Filter Tabs */
.category-tabs-nav {
  display: flex;
  gap: 8px;
  margin: 0 14px 14px 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.category-tabs-nav::-webkit-scrollbar { display: none; }
.cat-tab-btn {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
}
.cat-tab-btn.active { background: var(--emerald-gradient); color: #ffffff; border-color: rgba(255, 255, 255, 0.2); box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35); }

/* Modern Game Market Card */
.modern-game-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin: 0 14px 12px 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}
.modern-game-card:hover { border-color: rgba(16, 185, 129, 0.3); transform: translateY(-2px); }

.card-header-bar {
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
}
.card-header-open { background: linear-gradient(90deg, #059669 0%, #10b981 100%); }
.card-header-late { background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%); }
.card-header-closed { background: linear-gradient(90deg, #b91c1c 0%, #ef4444 100%); }

.card-body-content {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.market-title { font-size: 16px; font-weight: 900; color: #ffffff; letter-spacing: 0.3px; margin-bottom: 4px; }
.result-figures {
  font-family: 'JetBrains Mono', monospace;
  font-size: 17px; font-weight: 800;
  color: #34d399; letter-spacing: 2px;
}
.play-action-btn {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--emerald-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: all 0.2s;
}
.play-action-btn:hover { transform: scale(1.05); }
.play-action-btn.closed-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  box-shadow: none;
  pointer-events: none;
}

/* ═════════════════════════════════════════════════════════════════════════════════
   BOTTOM SHEETS & MODALS
   ═════════════════════════════════════════════════════════════════════════════════ */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.sheet-backdrop.active { display: flex; }
.sheet-modal {
  width: 100%;
  max-width: 500px;
  background: #0b131a;
  border-radius: 24px 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 18px calc(24px + var(--safe-bottom)) 18px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
  animation: slideUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUpModal {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto 16px auto;
}

/* ═════════════════════════════════════════════════════════════════════════════════
   AUTH PAGE
   ═════════════════════════════════════════════════════════════════════════════════ */
.auth-page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px 100px 20px;
  background: var(--bg-app);
}
.brand-hero { text-align: center; margin-bottom: 32px; }
.brand-logo-ring {
  width: 80px; height: 80px; border-radius: 22px;
  background: rgba(16,185,129,0.15);
  border: 2px solid rgba(16,185,129,0.3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px auto; font-size: 36px; color: #10b981;
}
.brand-name { font-size: 28px; font-weight: 900; color: #ffffff; letter-spacing: -0.5px; }
.brand-tagline { font-size: 13px; color: #64748b; font-weight: 500; }
.auth-card {
  background: rgba(15,23,42,0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 24px 20px;
  width: 100%;
  max-width: 460px;
  backdrop-filter: blur(12px);
}
.auth-tabs-bar { display: flex; gap: 4px; background: rgba(255,255,255,0.06); border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.auth-tab-btn {
  flex: 1; padding: 10px; border-radius: 9px; border: none;
  background: transparent; color: #64748b;
  font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all 0.2s;
}
.auth-tab-btn.active { background: var(--emerald-gradient); color: #ffffff; box-shadow: 0 4px 12px rgba(16,185,129,0.3); }
.auth-submit-btn {
  width: 100%; padding: 14px; margin-top: 10px;
  background: var(--emerald-gradient); color: #ffffff;
  border: none; border-radius: var(--radius-md); font-family: inherit;
  font-size: 15px; font-weight: 800; cursor: pointer; letter-spacing: 0.3px;
  box-shadow: 0 6px 22px rgba(16,185,129,0.35);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s;
}
.auth-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(16,185,129,0.45); }
.auth-submit-btn:active { transform: scale(0.98); }
.apk-download-card {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(15,23,42,0.7); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; padding: 16px; margin-top: 16px;
  text-decoration: none; transition: all 0.2s; width: 100%; max-width: 460px;
}
.apk-download-card:hover { border-color: rgba(16,185,129,0.3); background: rgba(15,23,42,0.9); }

/* ═════════════════════════════════════════════════════════════════════════════════
   SETTINGS / PROFILE
   ═════════════════════════════════════════════════════════════════════════════════ */
.profile-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0 16px;
}
.avatar-ring {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 12px;
}
.avatar-ring img {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #10b981;
  box-shadow: 0 0 0 4px rgba(16,185,129,0.15);
}
.camera-overlay {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg,#10b981,#059669);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  border: 2px solid #060c11;
}
.name-pill {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.25);
  padding: 4px 18px;
  border-radius: 50px;
  margin-bottom: 6px;
}
.phone-badge {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 0 4px;
  margin: 20px 0 10px;
}
.setting-row {
  background: rgba(15,23,42,0.75);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.setting-row-left { display: flex; align-items: center; gap: 12px; }
.setting-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(16,185,129,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  font-size: 16px;
  flex-shrink: 0;
}
.setting-row h4 { font-size: 14px; font-weight: 600; color: #f8fafc; margin-bottom: 2px; }
.setting-row span { font-size: 11px; color: #94a3b8; }

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.15);
  transition: .4s; border-radius: 34px;
}
.slider:before {
  position: absolute; content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background: #10b981; }
input:checked + .slider:before { transform: translateX(22px); }

.success-msg {
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  color: #10b981;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 14px;
}
.error-msg {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 14px;
}
.btn-outline-emerald {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(16,185,129,0.4);
  color: #10b981;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  margin-bottom: 10px;
}
.btn-outline-emerald:hover { background: rgba(16,185,129,0.08); }

.page-content { padding: 0 16px 100px; }

/* ═════════════════════════════════════════════════════════════════════════════════
   LEGACY PAGE DARK OVERRIDES (temporary bridge — migrate away)
   ═════════════════════════════════════════════════════════════════════════════════ */
.header-section {
  background: rgba(7,14,20,0.97) !important;
  backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  height: auto !important;
  padding: 14px 16px !important;
}
.main-curve-container,
.main-container,
.content-body {
  background: var(--bg-frame) !important;
  border-radius: 0 !important;
  margin-top: 0 !important;
  padding: 14px !important;
  color: var(--text-main) !important;
}
.wallet-box {
  background: rgba(16,185,129,0.12) !important;
  border: 1px solid rgba(16,185,129,0.3) !important;
  color: #ffffff !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
}
.bell-icon { color: #ffffff !important; }
.page-title { color: #ffffff !important; animation: none !important; padding-left: 0 !important; }
.marquee-box { overflow: visible !important; }

.form-input,
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(15,23,42,0.85) !important;
  border: 1.5px solid rgba(255,255,255,0.1) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  width: 100% !important;
}
.form-input:focus,
.form-group input:focus,
.form-group select:focus {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.2) !important;
  outline: none !important;
}

/* Buttons on legacy pages */
.btn-primary {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 13px 20px !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  width: 100% !important;
  cursor: pointer !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  box-shadow: 0 4px 16px rgba(16,185,129,0.3) !important;
  display: flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important;
}
a.btn-secondary, button.btn-secondary {
  background: rgba(30,41,59,0.8) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 12px !important;
  padding: 13px 20px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  width: 100% !important;
  cursor: pointer !important;
  display: flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important;
  text-decoration: none !important;
  margin-top: 10px !important;
}
a.btn-danger, button.btn-danger {
  background: linear-gradient(135deg, #f43f5e, #e11d48) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 13px 20px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  width: 100% !important;
  cursor: pointer !important;
  display: flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important;
  text-decoration: none !important;
  margin-top: 10px !important;
}

/* Messages */
hr { border-color: rgba(255,255,255,0.08) !important; }
h4, h3, h2 { color: #ffffff !important; }
p { color: #94a3b8 !important; }

.profile-section { text-align: center !important; margin-bottom: 20px !important; }
.profile-img {
  width: 80px !important; height: 80px !important; border-radius: 50% !important;
  border: 3px solid rgba(16,185,129,0.4) !important; object-fit: cover !important;
}
.camera-icon-label {
  background: #10b981 !important; color: #ffffff !important; border-radius: 50% !important;
  width: 28px !important; height: 28px !important; display: flex !important;
  align-items: center !important; justify-content: center !important;
  cursor: pointer !important; font-size: 13px !important;
}
.avatar-container { position: relative !important; display: inline-block !important; }

/* Win page / result row */
.result-row {
  background: rgba(15,23,42,0.75) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  margin-bottom: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.game-name { color: #ffffff !important; font-weight: 700 !important; font-size: 14px !important; }
.result-box {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 18px !important; font-weight: 900 !important;
  color: #34d399 !important; letter-spacing: 2px !important;
  background: rgba(16,185,129,0.1) !important;
  padding: 6px 14px !important; border-radius: 8px !important;
}
.result-box.waiting { color: #fde68a !important; background: rgba(245,158,11,0.1) !important; }

/* Tabs */
.tabs-container, .tab-container {
  display: flex !important; gap: 8px !important;
  padding: 14px 14px 8px 14px !important;
  overflow-x: auto !important; scrollbar-width: none !important;
}
.tab-btn, .tab-item {
  padding: 8px 20px !important; border-radius: 999px !important;
  background: rgba(15,23,42,0.85) !important;
  color: #64748b !important; border: 1px solid rgba(255,255,255,0.08) !important;
  font-size: 12px !important; font-weight: 700 !important; cursor: pointer !important;
  white-space: nowrap !important; font-family: 'Plus Jakarta Sans', sans-serif !important;
  transition: all 0.2s !important;
}
.tab-btn.active, .tab-item.active {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important; border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(16,185,129,0.35) !important;
}
.content-wrapper { display: none !important; }
.content-wrapper.active-content { display: block !important; }

/* Time table rows */
.time-row, .timetable-row {
  background: rgba(15,23,42,0.75) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 12px !important;
  padding: 14px 16px !important; margin-bottom: 8px !important;
  display: flex !important; align-items: center !important; justify-content: space-between !important;
}

/* KYC */
.kyc-card, .kyc-section {
  background: rgba(15,23,42,0.75) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 16px !important; padding: 18px !important;
  margin-bottom: 14px !important;
}
.kyc-status-badge {
  padding: 4px 12px !important; border-radius: 999px !important;
  font-size: 11px !important; font-weight: 800 !important;
}
.status-pending { background: rgba(245,158,11,0.15) !important; color: #fde68a !important; border: 1px solid rgba(245,158,11,0.3) !important; }
.status-verified { background: rgba(16,185,129,0.15) !important; color: #34d399 !important; border: 1px solid rgba(16,185,129,0.3) !important; }
.status-rejected { background: rgba(244,63,94,0.15) !important; color: #fb7185 !important; border: 1px solid rgba(244,63,94,0.3) !important; }

/* Policy pages */
.policy-section, .rules-section, .about-section {
  background: rgba(15,23,42,0.6) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 14px !important; padding: 16px !important; margin-bottom: 12px !important;
}
.policy-section p, .rules-section p, .about-section p { color: #94a3b8 !important; line-height: 1.7 !important; }
.policy-section h3, .rules-section h3, .about-section h3 { color: #10b981 !important; font-size: 15px !important; margin-bottom: 8px !important; }

/* Payment result */
.payment-result-card {
  background: rgba(15,23,42,0.85) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 24px !important; padding: 32px 24px !important;
  text-align: center !important;
}

/* Game pages header */
.game-page-header {
  background: rgba(7,14,20,0.97) !important;
  padding: 12px 16px !important;
  display: flex !important; align-items: center !important; justify-content: space-between !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  position: sticky !important; top: 0 !important; z-index: 100 !important;
}

/* Bet slip */
.cart-item-row {
  display: flex !important; align-items: center !important; justify-content: space-between !important;
  background: rgba(15,23,42,0.75) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 12px !important; padding: 12px 14px !important; margin-bottom: 8px !important;
}
.badge.bg-emerald {
  background: rgba(16,185,129,0.2) !important;
  color: #34d399 !important; border: 1px solid rgba(16,185,129,0.35) !important;
  border-radius: 8px !important;
}
.fw-mono { font-family: 'JetBrains Mono', monospace !important; }

/* Select option dark */
select option { background: #0f172a !important; color: #ffffff !important; }

/* Global link fix */
a { color: #34d399; }
a:hover { color: #10b981; }

/* Hide legacy language selector */
.lang-selector { display: none !important; }

/* Input date picker dark */
input[type="date"],
input[type="time"] { color-scheme: dark !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(16,185,129,0.4); }

/* ═════════════════════════════════════════════════════════════════════════════════
   GAME PAGES — betting components (shared across single_digit, jodi, pana, etc.)
   ═════════════════════════════════════════════════════════════════════════════════ */
.market-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(52, 211, 153, 0.25);
}
.rate-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.05) 100%);
  border: 1px dashed rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.session-pill-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(15, 23, 42, 0.6);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 16px;
}
.session-pill {
  text-align: center;
  padding: 9px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: #94a3b8;
  border: 1px solid transparent;
}
.session-pill.active {
  background: var(--emerald-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.session-pill.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.03);
}
.digit-selector-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.digit-chip {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  font-size: 20px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}
.digit-chip:hover, .digit-chip:focus {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(30, 41, 59, 0.95);
  outline: none;
}
.digit-chip.selected {
  background: var(--emerald-gradient);
  border-color: #34d399;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}
.special-digit-card {
  display: flex;
  align-items: center;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.18s ease;
}
.special-digit-card:focus-within {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}
.special-digit-badge {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.25) 100%);
  color: #34d399;
  font-size: 18px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.special-digit-input {
  width: 100%;
  height: 44px;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #ffffff;
  text-align: right;
}
.special-digit-input::placeholder {
  color: #475569;
  font-size: 13px;
}
.sticky-bet-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  padding-bottom: calc(12px + var(--safe-bottom));
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
}

/* Ensure sticky bet bar does not cover bottom nav */
body .sticky-bet-bar {
  padding-bottom: calc(12px + var(--nav-height) + var(--safe-bottom));
}

/* Transaction & deposit history components */
.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.icon-deposit { background: rgba(16, 185, 129, 0.18); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.icon-withdraw { background: rgba(244, 63, 94, 0.18); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }
.icon-bonus { background: rgba(245, 158, 11, 0.18); color: #fde68a; border: 1px solid rgba(245, 158, 11, 0.3); }

.status-chip {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-top: 4px;
}
.chip-approved { background: rgba(16, 185, 129, 0.18); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.chip-rejected { background: rgba(244, 63, 94, 0.18); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.35); }
.chip-pending { background: rgba(245, 158, 11, 0.18); color: #fde68a; border: 1px solid rgba(245, 158, 11, 0.35); }
.chip-won { background: rgba(16, 185, 129, 0.18); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.chip-loss { background: rgba(244, 63, 94, 0.18); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.35); }

.deposit-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin: 0 14px 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}
.deposit-card:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.withdraw-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin: 0 14px 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}
.withdraw-card:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(244, 63, 94, 0.35);
  transform: translateY(-1px);
}

/* Transaction card with horizontal margin (used in passbook lists) */
.txn-card-item.txn-list {
  margin: 0 14px 10px 14px;
  border-radius: var(--radius-lg);
}

/* Game rates */
.rate-card {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}
.rate-card:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(16, 185, 129, 0.35);
}
.rate-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-xs);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}

/* Refer & Earn */
.refer-hero-card {
  background: linear-gradient(135deg, #0b151f 0%, #064e3b 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  text-align: center;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.15);
  position: relative;
  overflow: hidden;
}
.refer-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  border: 2px solid rgba(52, 211, 153, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #34d399;
  margin: 0 auto 14px;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.35);
}
.refer-code-card {
  background: rgba(15, 23, 42, 0.85);
  border: 2px dashed rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.refer-code-val {
  font-size: 22px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #34d399;
  letter-spacing: 2px;
}
.whatsapp-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 22px;
}
.whatsapp-share-btn:active { transform: scale(0.97); }
.referred-user-tile {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

/* Password strength meter */
.pwd-seg {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.3s;
}
.pwd-seg.weak { background: #f43f5e; }
.pwd-seg.medium { background: #f59e0b; }
.pwd-seg.strong { background: #10b981; }

/* KYC upload components */
.upload-dropzone {
  border: 2px dashed rgba(16, 185, 129, 0.35);
  background: rgba(30, 41, 59, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  overflow: hidden;
}
.upload-dropzone:hover {
  border-color: #10b981;
  background: rgba(30, 41, 59, 0.7);
}
.upload-dropzone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}
.dropzone-preview {
  display: none;
  max-height: 140px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.status-hero-card {
  background: rgba(30, 41, 59, 0.7);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

/* Bid records */
.bid-card-item {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin: 0 14px 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}
.bid-card-item:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.filter-chip-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 14px 8px 14px;
  scrollbar-width: none;
}
.filter-chip-scroll::-webkit-scrollbar { display: none; }

.filter-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  color: #94a3b8;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}
.filter-pill.active {
  background: var(--emerald-gradient);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.digit-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  letter-spacing: 1px;
  display: inline-block;
}

/* ═════════════════════════════════════════════════════════════════════════════════
   WALLET / FINANCE — dark-themed components
   ═════════════════════════════════════════════════════════════════════════════════ */
.wallet-hero-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #00332b 100%);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px -4px rgba(0, 30, 25, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.wallet-hero-card::after {
  content: '';
  position: absolute;
  right: -25px;
  bottom: -25px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
  pointer-events: none;
}
.wallet-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.wallet-hero-val {
  font-size: 34px;
  font-weight: 900;
  color: #ffffff;
  margin: 10px 0 16px;
  letter-spacing: 0.5px;
}
.wallet-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-sub-stat { display: flex; flex-direction: column; }
.hero-sub-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
}
.hero-sub-amount { font-size: 15px; font-weight: 700; margin-top: 2px; }

/* Stat Counter Tiles — dark theme */
.stats-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.metric-tile {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}
.metric-tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.metric-tile-data { display: flex; flex-direction: column; min-width: 0; }
.metric-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
}
.metric-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 2px;
}

/* Passbook Menu — dark theme */
.passbook-menu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.passbook-menu-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  transition: all 0.15s;
}
.passbook-menu-item:active {
  transform: scale(0.98);
  background: var(--bg-card-hover);
}
.item-left-block { display: flex; align-items: center; gap: 14px; }
.item-avatar-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}
.item-title { font-size: 13.5px; font-weight: 700; color: var(--text-main); }
.item-desc { font-size: 11px; color: #94a3b8; margin-top: 1px; }

/* ═════════════════════════════════════════════════════════════════════════════════
   FINANCE / DEPOSIT — dark-themed components
   ═════════════════════════════════════════════════════════════════════════════════ */
.fin-page-head {
  background: var(--brand-gradient);
  padding: 16px 18px 30px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.fin-head-left { display: flex; align-items: center; gap: 14px; }
.fin-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}
.fin-back-btn:active { transform: scale(0.92); }
.fin-page-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Segmented Tab Bar — dark theme */
.fin-tabs-bar {
  display: flex;
  background: rgba(30, 41, 59, 0.6);
  padding: 4px;
  border-radius: var(--radius-sm);
  gap: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--border-color);
}
.fin-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}
.fin-tab.active {
  background: var(--emerald-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* Payment Details Card — dark theme */
.fin-detail-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  border: 1px solid var(--border-color);
  margin-bottom: 18px;
}
.fin-qr-wrapper {
  text-align: center;
  margin-bottom: 14px;
}
.fin-qr-img {
  width: 170px;
  height: 170px;
  object-fit: contain;
  border-radius: 12px;
  padding: 6px;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
}

.copy-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 10px;
}
.copy-val-text {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-primary);
}
.copy-action-icon {
  color: var(--brand-primary);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

/* 1-Click UPI Intent Row */
.upi-apps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-color);
}
.upi-app-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 10.5px;
  font-weight: 700;
  transition: all 0.15s;
}
.upi-app-btn:active { transform: scale(0.92); }
.upi-app-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* Form — dark theme */
.fin-form-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  border: 1px solid var(--border-color);
}
.form-group-item { margin-bottom: 16px; }
.form-label-title {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 7px;
}
.form-input-modern {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: var(--bg-input);
  outline: none;
  transition: border-color 0.2s;
}
.form-input-modern:focus {
  border-color: var(--brand-primary);
  background: rgba(15, 23, 42, 0.98);
}

.btn-submit-deposit {
  width: 100%;
  background: var(--emerald-gradient);
  color: #ffffff;
  padding: 15px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-submit-deposit:active { transform: scale(0.97); }

.status-alert-box {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.status-alert-success { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.35); color: #6ee7b7; }
.status-alert-error { background: rgba(244, 63, 94, 0.15); border: 1px solid rgba(244, 63, 94, 0.35); color: #fca5a5; }

/* Quick amount chips */
.quick-chips-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.chip-amount {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.chip-amount:hover {
  background: var(--emerald-gradient);
  border-color: #34d399;
  color: #ffffff;
}

/* ═════════════════════════════════════════════════════════════════════════════════
   GAME MODE SELECTION — shared components
   ═════════════════════════════════════════════════════════════════════════════════ */
.market-timing-bar {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.game-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.mode-tile-card {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.mode-tile-card:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.mode-tile-card:active { transform: scale(0.97); }
.mode-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.1) 100%);
  border: 1px solid rgba(52, 211, 153, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 24px;
  color: #34d399;
  transition: all 0.2s ease;
}
.mode-tile-card:hover .mode-icon-circle {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.mode-icon-circle img { width: 36px; height: 36px; object-fit: contain; }
.multiplier-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

/* ═════════════════════════════════════════════════════════════════════════════════
   TOAST HOST (JS-created, styled here)
   ═════════════════════════════════════════════════════════════════════════════════ */
#appToastHost {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: 90%;
  max-width: 420px;
}

/* ═════════════════════════════════════════════════════════════════════════════════
   DRAWER SIDEBAR (mobile navigation drawer)
   ═════════════════════════════════════════════════════════════════════════════════ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  transition: 0.3s ease;
}
.overlay.active { display: block; }
.sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 82%;
  max-width: 320px;
  height: 100%;
  background: #0b131a;
  z-index: 2001;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.6);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar.active { left: 0; }
.sb-head {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(7,14,20,0.9));
}
.sb-pic {
  width: 52px;
  height: 52px;
  background: var(--emerald-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(16,185,129,0.4);
}
.sb-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #f43f5e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
}
.sb-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sb-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  padding: 10px 6px;
  border-radius: 12px;
  text-decoration: none;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.15s;
}
.sb-quick-btn:active { transform: scale(0.96); background: rgba(30, 41, 59, 0.9); }
.sb-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: 0.2s;
  color: #cbd5e1;
}
.sb-item:active { background: rgba(255, 255, 255, 0.05); }
.sb-icon {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  font-size: 15px;
  margin-right: 14px;
  flex-shrink: 0;
}
.sb-text { font-size: 13.5px; font-weight: 600; }
.sb-label {
  padding: 14px 20px 4px;
  font-size: 10.5px;
  color: #64748b;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ═════════════════════════════════════════════════════════════════════════════════
   MARQUEE / TICKER (CSS animation, replaces deprecated <marquee>)
   ═════════════════════════════════════════════════════════════════════════════════ */
.modern-ticker-bar {
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ticker-track {
  display: inline-block;
  padding-right: 2rem;
  animation: ticker 20s linear infinite;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Accessibility: reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; display: inline; }
}
