/* =====================================================
   CASINO MAIN STYLESHEET — Purple & Gold
   ===================================================== */
:root {
  /* Backgrounds — deep near-black purple */
  --bg-primary:    #0B0714;
  --bg-secondary:  #100A1D;
  --bg-card:       #241943;
  --bg-nav:        #0B0714;
  --bg-glass:      rgba(36,25,67,.30);
  --sidebar-bg:    #151024;
  --panel-bg:      #19112C;
  --panel-bg-2:    #21173B;

  /* Accents — unified Purple (structural + CTA), gold reserved for VIP/premium highlights */
  --accent-gold:   #7C4DFF;
  --accent-gold2:  #C027E8;
  --accent-purple: #925EFF;
  --accent-cyan:   #7C4DFF;
  --accent-green:  #22C55E;
  --accent-red:    #EF3340;
  --accent-blue:   #C027E8;

  /* Text */
  --text-primary:  #FFFFFF;
  --text-secondary:#AAA1BC;

  /* Borders — purple-glass tint */
  --border-color:  rgba(154,102,255,.24);
  --border-gold:   rgba(154,102,255,.5);
  --border-purple: rgba(146,94,255,.3);

  /* Shadows & Glows */
  --shadow-lg:     0 24px 64px rgba(0,0,0,.5);
  --glow-gold:     0 0 30px rgba(124,77,255,.6);
  --glow-cta:      0 0 30px rgba(124,77,255,.6);
  --glow-purple:   0 0 30px rgba(193,38,232,.55);
  --glow-cyan:     0 0 26px rgba(155,99,255,.5);
  --glow-ambient:  0 0 24px rgba(124,77,255,.4);
  --glow-card:     0 0 0 1px rgba(255,255,255,.12), 0 8px 32px rgba(0,0,0,.28);
  --glow-halo:     0 0 100px 10px rgba(124,77,255,.46), 0 0 160px 48px rgba(124,77,255,.2);

  /* Glassmorphism — transparent purple glass */
  --glass-bg:    rgba(27,18,50,.28);
  --glass-blur:  blur(22px);

  /* Gradients */
  --grad-header: linear-gradient(120deg, rgba(27,18,50,.85) 0%, rgba(36,24,66,.85) 45%, rgba(13,9,24,.85) 100%);
  --grad-gold:   linear-gradient(120deg, #9B63FF, #7C4DFF, #C126E8);
  --grad-purple: linear-gradient(135deg, #241842, #7C4DFF, #C126E8);
  --grad-card:   linear-gradient(145deg, rgba(27,18,50,.55) 0%, rgba(36,24,66,.46) 50%, rgba(18,12,33,.55) 100%);

  /* Player-theme additions — Top Up (green), VIP (real gold), wordmark (rainbow) */
  --grad-green:      linear-gradient(120deg, #6EE7B7, #10B981, #047857);
  --grad-rainbow:    linear-gradient(90deg, #60A5FA 0%, #34D399 25%, #FBBF24 50%, #FB923C 68%, #F472B6 84%, #A78BFA 100%);
  --accent-vip-gold: #FFC928;
  --glow-green:      0 0 30px rgba(16,185,129,.55);
}

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

html { overflow-x: hidden; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

body {
  background: var(--bg-primary);
  background-image:
    radial-gradient(ellipse 90% 55% at 15% -5%,  rgba(124,77,255,.22) 0%, transparent 62%),
    radial-gradient(ellipse 70% 45% at 85% 105%, rgba(193,38,232,.2)  0%, transparent 58%),
    radial-gradient(ellipse 40% 30% at 50% 50%,  rgba(34,197,94,.12) 0%, transparent 72%);
  background-size: 180% 180%;
  background-attachment: fixed;
  animation: bg-drift 26s ease-in-out infinite alternate;
  color: var(--text-primary);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .035;
  mix-blend-mode: overlay;
}
@keyframes bg-drift {
  0%   { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .hac-card::before,
  .hac-avatar-wrap::before,
  .hac-online-dot,
  .hac-insured-dot,
  .hac-vip-badge,
  .ticker,
  .btn-gold,
  .btn-register,
  .match-live-dot,
  .mobile-deposit-btn,
  .quick-cat-card::before,
  .quick-cat-icon-wrap::before,
  .cat-tab.active { animation: none; }
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(124,77,255,.45); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); }

/* Mobile-safe defaults for elements added during the desktop polish pass —
   invisible/inert below 1024px so mobile is provably unaffected, styled
   only inside the desktop media queries further down. */
.game-provider-badge { display: none; }
.lobby-search-wrap { display: contents; }
.lobby-search-icon { display: none; }

/* ── APP SHELL / DESKTOP SIDEBAR (≥1024px only) ──────────────────────
   Fixed application shell, independent of mobile drawer CSS entirely.
   .desktop-sidebar is position:fixed (not sticky — sticky inside a flex
   row with a shorter sidebar than the page was the bug: once the sidebar's
   own content ran out, it scrolled away with the page). .app-main is
   offset with margin-left so the sidebar and the scrolling content never
   overlap and never compete for the same box. */
:root { --desktop-sidebar-width: 280px; }
.desktop-sidebar { display: none; }

@media (min-width: 1024px) {
  .app-shell { display: block; }
  .desktop-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--desktop-sidebar-width);
    height: 100vh;
    height: 100svh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 24px;
    background: var(--sidebar-bg);
    border-right: 1px solid rgba(151,101,255,.20);
    z-index: 100;
    scrollbar-width: thin;
    scrollbar-color: rgba(145,91,255,.35) transparent;
  }
  .desktop-sidebar::-webkit-scrollbar { width: 4px; }
  .desktop-sidebar::-webkit-scrollbar-track { background: transparent; }
  .desktop-sidebar::-webkit-scrollbar-thumb { background: rgba(145,91,255,.35); border-radius: 20px; }

  .app-main {
    margin-left: var(--desktop-sidebar-width);
    width: calc(100% - var(--desktop-sidebar-width));
    min-height: 100vh;
  }

  /* The mobile hamburger/drawer trigger and off-canvas drawer are a
     completely separate, mobile-only system — hidden here, untouched
     below 1024px. Also drop the Slots/Fishing/Crash/Sports top-nav links
     (now live in the sidebar) and the big guest "All Games/Slot
     Games/Crash" cards (now redundant on desktop). */
  .app-main #sidebarOpenBtn,
  .app-main .sidebar-overlay,
  .app-main .sidebar-drawer,
  .app-main .nav-links,
  .app-main .quick-cat-row,
  .app-main .mobile-bottom-nav { display: none !important; }
  .app-main .top-nav .nav-inner { height: 72px; max-width: none; padding: 0 32px; }

  /* .browse-section's own full-bleed trick (width:100vw; left:50%;
     margin-left:-50vw) is computed against the *whole viewport* — it
     has no idea .app-main is offset by the sidebar, so it was sliding
     the entire section (category column included) left, under the
     fixed sidebar. Reset it back to a normal box sized within
     .app-main, which is already correctly offset. */
  .app-main .browse-section {
    width: auto;
    left: auto;
    margin-left: 0;
  }

  /* Lobby: vertical category column (180px) beside the game content,
     replacing the horizontal pill row on desktop only — mobile/tablet
     keep the existing horizontal scroll untouched. */
  .app-main .browse-section-inner {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: none;
    padding: 0 32px;
  }
  .app-main .category-tabs-wrap {
    flex: 0 0 180px;
    margin-bottom: 0;
    position: sticky;
    top: 88px;
  }
  .app-main .category-tabs-wrap::after { display: none; }
  .app-main .category-tabs {
    flex-direction: column;
    overflow-x: visible;
    gap: 8px;
  }
  .app-main .cat-tab {
    justify-content: flex-start;
    height: 52px;
    padding: 0 14px;
    border-radius: 10px;
    background: #241A40;
    font-weight: 600;
  }
  .app-main .cat-tab .icon { width: 22px; font-size: 1.1rem; }
  .app-main .cat-tab.active {
    background: linear-gradient(100deg, #392769, #4C3181);
    border: 1px solid rgba(158,105,255,.75);
    color: #fff;
  }
  .app-main .lobby-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }

  /* Main game catalog promoted to the top; provider carousel and the
     promotional carousels (Recently Played/Popular/Slot picks/New/Live
     Casino) become secondary, below it — reordered visually only
     (flex `order`), the underlying PHP loops/markup stay exactly where
     they were so mobile's natural top-to-bottom order is untouched. */
  .app-main #all-games-section       { order: 1; }
  .app-main .lobby-section-recent    { order: 2; }
  .app-main .lobby-section-popular   { order: 3; }
  .app-main .lobby-section-slots     { order: 4; }
  .app-main .lobby-section-new       { order: 5; }
  .app-main .lobby-section-livecasino{ order: 6; }
  .app-main .lobby-provider-row      { order: 7; }

  /* Hero: cap width/margins/height to match the sidebar-adjusted content column */
  .app-main .hero-section { margin: 24px 32px 0; border-radius: 16px; overflow: hidden; }
  .app-main .hero-slider { height: 350px; }

  /* Compact provider bar — reads as a filter row, not a content section */
  .app-main .prov-card { flex: 0 0 108px; width: 108px; height: 48px; padding: 6px 8px; }
  .app-main .prov-carousel { gap: 9px; }

  /* Search bar: one integrated pill beside the category column, no giant
     separate button underneath (the wrap uses display:contents below
     1024px so mobile's existing full-width input/button behavior is
     untouched — this only takes effect here). */
  .app-main .lobby-search-form { flex: 1; }
  .app-main .lobby-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    height: 48px;
    padding: 0 14px;
    background: #181128;
    border: 1px solid rgba(145,100,220,.25);
    border-radius: 11px;
  }
  .app-main .lobby-search-icon { display: block; font-size: .95rem; opacity: .7; flex-shrink: 0; }
  .app-main .lobby-search-input {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100%;
    font-size: .9rem !important;
  }
  .app-main .lobby-search-submit {
    background: transparent !important;
    color: var(--text-secondary) !important;
    padding: 4px !important;
    font-size: 0 !important;
  }
  .app-main .lobby-search-submit::before { content: '🔎'; font-size: .95rem; }

  /* Game grid density — explicit per-breakpoint column counts */
  .app-main .game-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }

  /* Compact near-square cards, provider badge on the image, normal (non-italic) title below */
  .app-main .game-thumb { aspect-ratio: 1 / 1.05; border-radius: 10px; }
  .app-main .game-card { border-radius: 12px; }
  .app-main .game-name-bar { font-style: normal; font-size: .78rem; }
  .app-main .game-provider-badge {
    display: block;
    position: absolute;
    top: 6px; left: 6px;
    z-index: 2;
    background: rgba(11,7,20,.75);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    padding: 3px 6px;
    border-radius: 8px;
    max-width: calc(100% - 12px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Section headings: normal weight, no italic */
  .app-main .section-title h2 { font-style: normal; font-size: 16px; font-weight: 700; }

  /* No page-level horizontal scroll; carousels keep their own overflow-x */
  html, body { overflow-x: hidden; }
}
@media (min-width: 1440px) {
  .app-main .game-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 1920px) {
  .app-main .game-grid { grid-template-columns: repeat(7, 1fr); }
}

.ds-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 112px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(151,101,255,.14);
  margin-bottom: 4px;
}
.ds-logo img { max-width: 190px; max-height: 80px; width: auto; height: auto; object-fit: contain; }
.ds-vip-card {
  background: linear-gradient(180deg, rgba(51,35,91,.85), rgba(27,18,50,.85));
  border: 1px solid rgba(145,91,255,.35);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 14px;
}
.ds-vip-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ds-vip-label { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary); }
.ds-vip-tier { font-size: .8rem; font-weight: 800; color: var(--accent-vip-gold); }
.ds-vip-balance { font-size: 1.1rem; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.ds-vip-guest { text-align: center; }
.ds-guest-login {
  margin-top: 8px; width: 100%; padding: 8px 0;
  border: none; border-radius: 999px;
  background: var(--grad-gold);
  color: #fff; font-weight: 700; font-size: .82rem;
  cursor: pointer;
}
.ds-nav-group { margin-bottom: 4px; }
.ds-nav-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: #8f83aa;
  margin: 20px 18px 8px;
}
.ds-nav-label::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: #925EFF;
  flex-shrink: 0;
}
.ds-nav-link {
  height: 45px;
  margin: 3px 10px;
  padding: 0 14px;
  display: flex; align-items: center; gap: 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px; font-weight: 600;
  color: #b8aecb;
  transition: all .18s;
}
.ds-nav-link:hover { background: rgba(124,77,255,.10); color: #fff; }
.ds-nav-link.active {
  background: linear-gradient(100deg, rgba(92,61,185,.65), rgba(95,55,171,.42));
  border-color: rgba(150,98,255,.55);
  box-shadow: inset 3px 0 0 #9B63FF;
  color: #fff;
}
.ds-nav-link.ds-deposit.active {
  background: linear-gradient(100deg, #7047dc 0%, #8d56ff 55%, #c126e8 100%);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(139,80,255,.30);
}
.ds-nav-icon { font-size: 18px; width: 20px; text-align: center; flex-shrink: 0; }

/* ── TOP NAV ────────────────────────────────────────── */
.top-nav {
  background: var(--grad-header);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 0 rgba(124,77,255,.1), 0 4px 32px rgba(0,0,0,.35);
}
.top-nav .nav-inner {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 900;
  background: var(--grad-rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}
.logo img { height: 48px; width: auto; vertical-align: middle; }
.logo span {
  background: none;
  -webkit-text-fill-color: #fff;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-secondary);
  transition: all .2s;
}
.nav-links a:hover {
  background: rgba(124,77,255,.12);
  color: #7C4DFF;
}
.nav-links a.active {
  background: linear-gradient(135deg, rgba(124,77,255,.22), rgba(193,38,232,.12));
  color: #7C4DFF;
  border: 1px solid var(--border-gold);
  box-shadow: var(--glow-gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-login {
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(124,77,255,.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(124,77,255,.4);
  color: #7C4DFF;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .2px;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.btn-login:hover {
  background: rgba(124,77,255,.18);
  border-color: rgba(124,77,255,.7);
  color: #fff;
  box-shadow: var(--glow-gold);
  transform: translateY(-1px);
}
.btn-login:active {
  transform: translateY(0) scale(.97);
}
.btn-register {
  padding: 8px 22px;
  border-radius: 999px;
  background: var(--grad-gold);
  background-size: 200% 200%;
  border: none;
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .2px;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  animation: blue-shift 4s ease infinite;
  box-shadow: var(--glow-ambient), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-register:hover {
  filter: brightness(1.12);
  box-shadow: var(--glow-gold), inset 0 1px 0 rgba(255,255,255,.4);
  transform: translateY(-1px);
}
.btn-register:active {
  transform: translateY(0) scale(.97);
}

.balance-display {
  background: rgba(36,25,67,.4);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 6px 14px;
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
}
.balance-display .amount {
  font-weight: 800;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-icon-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: all .2s;
}
.nav-icon-btn:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.3);
}

/* ── HERO BANNER ────────────────────────────────────── */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0B0714 0%, #0B0714 50%, #0B0714 100%);
}
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 380px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 40px 80px;
  background: linear-gradient(135deg, #133d33 0%, #0f342b 60%, #133d33 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 85% at 10% 50%,  rgba(124,77,255,.22)  0%, transparent 60%),
    radial-gradient(ellipse 45% 65% at 85% 30%,  rgba(155,99,255,.10) 0%, transparent 55%),
    radial-gradient(ellipse 30% 40% at 50% 100%, rgba(193,38,232,.08)  0%, transparent 50%);
  pointer-events: none;
}
.hero-slide .text-block { max-width: 460px; position: relative; z-index: 1; }
.hero-slide h1 {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,.9);
}
.hero-slide h1 span {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-slide p { color: var(--text-secondary); margin: 12px 0 24px; font-size: 1.05rem; }
.hero-img {
  position: absolute;
  right: 60px;
  bottom: 0;
  height: 95%;
  object-fit: contain;
  filter: drop-shadow(0 10px 40px rgba(0,0,0,.7));
}
.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  cursor: pointer;
  transition: all .3s;
}
.hero-dot.active {
  background: var(--accent-blue);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(124,77,255,.8);
}

/* ── TICKER ─────────────────────────────────────────── */
.ticker-wrap {
  background: linear-gradient(90deg, rgba(124,77,255,.08), rgba(193,38,232,.05), rgba(124,77,255,.08));
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  overflow: hidden;
}
.ticker {
  display: flex;
  gap: 40px;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--text-secondary);
}
.ticker-item .winner {
  font-weight: 700;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ticker-item .amount { color: var(--accent-green); font-weight: 700; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SECTION TITLES ─────────────────────────────────── */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title h2 {
  font-size: 1.15rem;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title h2::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(to bottom, #7C4DFF, #1E40AF);
  box-shadow: 0 0 12px rgba(124,77,255,.75);
  border-radius: 2px;
  display: inline-block;
}
.view-all {
  font-size: .78rem;
  color: #7C4DFF;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  transition: all .2s;
}
.view-all:hover {
  color: var(--accent-cyan);
  background: rgba(155,99,255,.12);
  border-color: rgba(155,99,255,.35);
}

/* ── CATEGORY TABS ──────────────────────────────────── */
.category-tabs-wrap { position: relative; margin-bottom: 20px; }
.category-tabs-wrap::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 4px;
  width: 32px;
  background: linear-gradient(270deg, var(--bg-primary), transparent);
  pointer-events: none;
}
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 20px 8px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: linear-gradient(150deg, rgba(36,25,67,.4), rgba(16,10,29,.26));
  color: var(--text-secondary);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .25s;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 3px 12px rgba(0,0,0,.16);
}
.cat-tab:hover {
  border-color: var(--border-gold);
  color: #9B63FF;
  background: linear-gradient(150deg, rgba(124,77,255,.16), rgba(36,25,67,.32));
  transform: translateY(-1px);
}
.cat-tab.active {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, rgba(124,77,255,.28) 0%, rgba(155,99,255,.42) 45%, rgba(124,77,255,.28) 100%);
  background-size: 220% 100%;
  animation: blue-shift 4s linear infinite;
  color: #fff;
  border-color: var(--border-gold);
  box-shadow: 0 0 20px rgba(124,77,255,.4), inset 0 0 0 1px rgba(255,255,255,.08);
}
.cat-tab .icon {
  position: relative;
  z-index: 1;
  font-size: .85rem;
  width: 26px; height: 26px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.14);
  border-radius: 50%;
}
.cat-tab .icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(155,99,255,.9), rgba(155,99,255,.04) 55%, rgba(155,99,255,.9));
  z-index: -1;
  opacity: .45;
  transition: opacity .25s;
}
.cat-tab:hover .icon::before { opacity: .75; }
.cat-tab.active .icon { background: rgba(255,255,255,.22); }
.cat-tab.active .icon::before { opacity: 1; }

/* ── SIDEBAR DRAWER ─────────────────────────────────── */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,7,20,.55);
  backdrop-filter: blur(4px);
  z-index: 1900;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.sidebar-overlay.open { opacity: 1; pointer-events: all; }
.sidebar-drawer {
  position: fixed;
  top: 0; left: 0;
  height: 100%;
  width: 280px;
  max-width: 84vw;
  background: var(--grad-header);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-right: 1px solid var(--border-color);
  z-index: 1950;
  transform: translateX(-100%);
  transition: transform .28s ease;
  overflow-y: auto;
  box-shadow: inset -1px 0 0 rgba(255,255,255,.08), 24px 0 64px rgba(0,0,0,.35);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
}
.sidebar-drawer.open { transform: translateX(0); }
.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}
.sidebar-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  font-size: .95rem;
  cursor: pointer;
}
.sidebar-search {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
}
.sidebar-search input {
  flex: 1;
  background: rgba(36,25,67,.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-size: .85rem;
  outline: none;
}
.sidebar-search button {
  width: 36px;
  border-radius: 8px;
  background: rgba(124,77,255,.14);
  border: 1px solid var(--border-gold);
  color: #7C4DFF;
  cursor: pointer;
}
.sidebar-links { display: flex; flex-direction: column; padding: 4px 10px; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: .88rem;
  font-weight: 600;
  transition: all .2s;
}
.sidebar-link:hover {
  background: rgba(124,77,255,.1);
  color: #7C4DFF;
}
.sidebar-link.active {
  background: linear-gradient(135deg, rgba(124,77,255,.22), rgba(193,38,232,.12));
  color: #9B63FF;
  border: 1px solid var(--border-gold);
}
.sidebar-link-icon { font-size: 1.05rem; width: 22px; text-align: center; }
.sidebar-divider {
  height: 1px;
  background: var(--border-color);
  margin: 10px 16px;
}

/* ── HOME ACCOUNT CARD (hightech) ───────────────────── */
.hac-card {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(115deg, rgba(196,181,253,.05) 0px, rgba(196,181,253,.05) 1px, transparent 1px, transparent 46px),
    linear-gradient(150deg, #2e2472 0%, #4338ca 42%, #24145c 78%, #1a1240 100%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(167,139,250,.45);
  border-radius: 20px;
  padding: 14px 16px 16px;
  margin-bottom: 22px;
  box-shadow: 0 0 0 1px rgba(196,181,253,.14), var(--shadow-lg), 0 0 28px rgba(99,60,220,.35);
}
.hac-card::before {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.16), transparent);
  transform: skewX(-18deg);
  animation: hac-sweep 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hac-sweep {
  0%, 60% { left: -60%; }
  100% { left: 130%; }
}
.hac-top-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.hac-insured {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 800;
  color: #6ee7d8;
  background: rgba(110,231,216,.14);
  border: 1px solid rgba(110,231,216,.35);
  border-radius: 20px;
  padding: 3px 10px;
}
.hac-insured-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6ee7d8;
  box-shadow: 0 0 6px #6ee7d8;
  animation: pulse 1.6s infinite;
}
.hac-insured-chevron { opacity: .6; margin-left: 1px; }
.hac-history-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .74rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  white-space: nowrap;
}
.hac-history-link:hover { color: #fff; }
.hac-body {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hac-avatar-wrap {
  position: relative;
  width: 56px; height: 56px;
  flex-shrink: 0;
}
.hac-avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #a78bfa, #9B63FF, #6366f1, #a78bfa);
  animation: spin 4s linear infinite;
}
.hac-avatar {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  background: linear-gradient(135deg, #0f4c44, #10B981);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; font-weight: 900; color: #fff;
  overflow: hidden;
}
.hac-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hac-online-dot {
  position: absolute;
  bottom: 1px; right: 1px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #34D399;
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 8px rgba(52,211,153,.8);
  animation: pulse 1.8s infinite;
}
.hac-info { flex: 1; min-width: 0; }
.hac-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.hac-username { font-size: .95rem; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hac-vip-badge {
  position: relative;
  overflow: hidden;
  display: inline-flex; align-items: center; gap: 3px;
  background: linear-gradient(100deg, #FFC928 0%, #fff2b8 45%, #FFC928 100%);
  background-size: 220% 100%;
  animation: blue-shift 3.5s linear infinite;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  padding: 2px 9px;
  font-size: .66rem;
  font-weight: 800;
  color: #1a1240;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(255,201,40,.35);
}
.hac-id-row {
  display: flex; align-items: center; gap: 5px;
  font-size: .72rem; color: var(--text-secondary);
  margin-bottom: 6px;
}
.hac-copy-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-secondary); font-size: .8rem; padding: 1px;
}
.hac-copy-btn:hover { color: #60a5fa; }
.hac-balance-label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1px;
}
.hac-balance-row { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.hac-coin {
  width: 24px; height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 32% 28%, #9B63FF 0%, #7C4DFF 45%, #C126E8 100%);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.6), inset 0 -3px 4px rgba(0,0,0,.3), 0 2px 6px rgba(124,77,255,.4);
  font-size: .8rem;
}
.hac-balance {
  font-size: 1.2rem; font-weight: 900; color: #fff; letter-spacing: -.3px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 16px rgba(155,99,255,.45);
}
.hac-actions { display: flex; flex-direction: row; gap: 8px; flex-shrink: 0; }
.hac-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  font-size: .62rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: #fff;
  transition: all .2s;
}
.hac-btn-icon { display: flex; line-height: 1; }
.hac-btn-icon svg { width: 22px; height: 22px; }
.hac-btn:hover { transform: translateY(-1px); }
.hac-btn-topup {
  background: linear-gradient(180deg, #6EE7B7, #10B981 55%, #047857);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -3px 6px rgba(0,0,0,.25), 0 4px 12px rgba(16,185,129,.4);
}
.hac-btn-topup:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -3px 6px rgba(0,0,0,.25), var(--glow-green);
}
.hac-btn-withdraw {
  background: linear-gradient(180deg, #9B63FF, #7C4DFF 55%, #C126E8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -3px 6px rgba(0,0,0,.25), 0 4px 12px rgba(124,77,255,.4);
}
.hac-btn-withdraw:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -3px 6px rgba(0,0,0,.25), var(--glow-cta);
}

/* ── QUICK CATEGORY CARDS ───────────────────────────── */
.quick-cat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.quick-cat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 4px 24px 4px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -8px 16px rgba(0,0,0,.25), 0 8px 22px rgba(0,0,0,.4);
  transition: all .22s;
}
.quick-cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.3), transparent);
  transform: skewX(-18deg);
  animation: hac-sweep 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
.quick-cat-card:nth-child(2)::before { animation-delay: .5s; }
.quick-cat-card:nth-child(3)::before { animation-delay: 1s; }
.quick-cat-card::after {
  content: '';
  position: absolute; top: -20%; left: -10%;
  width: 60%; height: 70%;
  background: rgba(255,255,255,.16);
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
}
.quick-cat-card:hover { transform: translateY(-3px); filter: brightness(1.08); }
.quick-cat-card.qc-blue   { background: radial-gradient(circle at 25% 20%, #9B63FF 0%, #7C4DFF 45%, #123a7a 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -8px 16px rgba(0,0,0,.25), 0 8px 22px rgba(0,0,0,.4), 0 0 16px rgba(124,77,255,.4); }
.quick-cat-card.qc-orange { background: radial-gradient(circle at 25% 20%, #9B63FF 0%, #f59e0b 45%, #7c3d0a 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -8px 16px rgba(0,0,0,.25), 0 8px 22px rgba(0,0,0,.4), 0 0 16px rgba(245,158,11,.4); }
.quick-cat-card.qc-teal   { background: radial-gradient(circle at 25% 20%, #99f6e4 0%, #14b8a6 45%, #0f4c44 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -8px 16px rgba(0,0,0,.25), 0 8px 22px rgba(0,0,0,.4), 0 0 16px rgba(20,184,166,.4); }
.quick-cat-card.qc-blue:hover   { box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -8px 16px rgba(0,0,0,.25), 0 8px 22px rgba(0,0,0,.4), 0 0 28px rgba(124,77,255,.55); }
.quick-cat-card.qc-orange:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -8px 16px rgba(0,0,0,.25), 0 8px 22px rgba(0,0,0,.4), 0 0 28px rgba(245,158,11,.55); }
.quick-cat-card.qc-teal:hover   { box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -8px 16px rgba(0,0,0,.25), 0 8px 22px rgba(0,0,0,.4), 0 0 28px rgba(20,184,166,.55); }
.quick-cat-icon-wrap {
  position: relative;
  width: 48px; height: 48px;
  flex-shrink: 0;
}
.quick-cat-icon-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255,255,255,.95), rgba(255,255,255,.05) 55%, rgba(255,255,255,.95));
  animation: spin 3s linear infinite;
  z-index: 1;
}
.quick-cat-icon {
  font-size: 1.8rem;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  position: relative; z-index: 2;
}
.quick-cat-label { font-weight: 800; font-size: 1rem; position: relative; z-index: 1; }
.quick-cat-arrow {
  margin-left: auto;
  font-size: 1.3rem;
  opacity: .55;
  transform: translateX(-4px);
  transition: all .25s;
  position: relative; z-index: 1;
}
.quick-cat-card:hover .quick-cat-arrow { opacity: 1; transform: translateX(0); }
@media (max-width: 640px) {
  .quick-cat-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .quick-cat-card { flex-direction: column; text-align: center; gap: 8px; padding: 14px 8px; }
  .quick-cat-label { font-size: .78rem; }
  .quick-cat-arrow { display: none; }
}
@media (max-width: 480px) {
  .quick-cat-row { gap: 6px; }
  .quick-cat-card { padding: 10px 4px; gap: 6px; }
  .quick-cat-icon-wrap { width: 38px; height: 38px; }
  .quick-cat-icon { width: 38px; height: 38px; font-size: 1.4rem; }
  .quick-cat-label { font-size: .68rem; }
  .hac-card { padding: 12px 12px 14px; }
  .hac-history-link { font-size: .68rem; }
  .hac-coin { width: 20px; height: 20px; font-size: .7rem; }
  .hac-avatar-wrap { width: 44px; height: 44px; }
  .hac-avatar { font-size: 1rem; }
  .hac-online-dot { width: 10px; height: 10px; }
  .hac-username { font-size: .85rem; }
  .hac-balance-label { font-size: .58rem; }
  .hac-balance { font-size: 1rem; }
  .hac-body { flex-wrap: wrap; }
  .hac-info { min-width: 140px; }
  .hac-actions { flex-direction: row; gap: 6px; }
  .hac-btn { width: 48px; height: 48px; border-radius: 13px; font-size: .56rem; }
  .hac-btn-icon svg { width: 18px; height: 18px; }
  .sidebar-drawer { width: 250px; }
}

/* ── APP WELCOME REWARD BANNER ──────────────────────── */
.app-reward-banner {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border-gold);
  background: linear-gradient(135deg, rgba(36,25,67,.65), rgba(16,10,29,.55));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 22px 20px;
  margin-bottom: 20px;
  text-align: center;
}
.arb-glow {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 140%;
  background: radial-gradient(circle, rgba(124,77,255,.35), transparent 65%);
  pointer-events: none;
}
.arb-content { position: relative; z-index: 1; }
.arb-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #C126E8;
  background: rgba(193,38,232,.14);
  border: 1px solid rgba(193,38,232,.35);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.arb-title {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.arb-amount {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.arb-sub {
  font-size: .85rem;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto 16px;
  line-height: 1.4;
}
.arb-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.arb-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--grad-gold);
  color: #fff;
  font-weight: 800;
  font-size: .88rem;
  padding: 11px 24px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(124,77,255,.45);
  transition: filter .2s;
}
.arb-btn-primary:hover { filter: brightness(1.1); }
.arb-btn-secondary {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: .88rem;
  padding: 11px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
}
.arb-btn-secondary:hover { border-color: var(--border-gold); color: #fff; }
.arb-fine {
  font-size: .68rem;
  color: var(--text-secondary);
  opacity: .8;
  margin: 0;
}
@media (max-width: 480px) {
  .app-reward-banner { padding: 18px 14px; border-radius: 14px; }
  .arb-title { font-size: 1.6rem; }
  .arb-sub { font-size: .78rem; margin-bottom: 12px; }
  .arb-btn-primary, .arb-btn-secondary { flex: 1; justify-content: center; padding: 10px 12px; font-size: .82rem; }
}

/* ── FOOTER LOGO ROWS ───────────────────────────────── */
.footer-payment-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(150deg, rgba(36,25,67,.36), rgba(16,10,29,.22));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 9px;
  font-size: .74rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-height: 32px;
  transition: all .22s;
}
.footer-logo-chip:hover {
  border-color: var(--border-gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.footer-logo-chip img { height: 18px; width: auto; max-width: 70px; object-fit: contain; }

@keyframes pulse {
  0%,100% { opacity: .35; transform: scale(.8); }
  50%     { opacity: 1;   transform: scale(1); }
}

/* ── TODAY'S MATCH ──────────────────────────────────── */
.match-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 2px 10px;
}
.match-carousel::-webkit-scrollbar { display: none; }
.match-card {
  flex: 0 0 auto;
  width: 250px;
  background: var(--grad-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  position: relative;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.match-live-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.5);
  color: #f87171;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: 20px;
}
.match-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse 1.4s infinite;
}
.match-time-pill {
  display: inline-block;
  background: rgba(124,77,255,.14);
  border: 1px solid rgba(124,77,255,.4);
  color: #7C4DFF;
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}
.match-team {
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  flex: 1;
}
.match-score {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-secondary);
  flex-shrink: 0;
  padding: 0 6px;
}
.match-actions { display: flex; gap: 8px; }
.btn-watch, .btn-play-pink {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  border-radius: 10px;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
  transition: all .2s;
}
.btn-watch {
  background: rgba(124,77,255,.16);
  border: 1px solid rgba(124,77,255,.5);
  color: #7C4DFF;
}
.btn-watch:hover { background: rgba(124,77,255,.28); }
.btn-play-pink {
  background: var(--grad-gold);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124,77,255,.4);
}
.btn-play-pink:hover { filter: brightness(1.1); }

/* ── GAME GRID ──────────────────────────────────────── */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  box-shadow: var(--glow-card);
  -webkit-tap-highlight-color: transparent;
}
.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 48px rgba(124,77,255,.35), 0 0 0 1px rgba(124,77,255,.5), 0 0 28px rgba(124,77,255,.2);
  border-color: rgba(124,77,255,.55);
}
.game-card:active {
  transform: translateY(-2px) scale(.98);
  box-shadow: 0 16px 48px rgba(124,77,255,.35), 0 0 0 1px rgba(124,77,255,.5), 0 0 28px rgba(124,77,255,.2);
  border-color: rgba(124,77,255,.55);
}
.game-card:active .game-thumb .game-overlay { opacity: 1; }
.game-card:active .play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.game-thumb {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.game-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.game-card:hover .game-thumb img { transform: scale(1.07); }
.game-thumb .game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2,6,20,.85) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .25s;
}
.game-card:hover .game-thumb .game-overlay { opacity: 1; }
.game-name-bar {
  padding: 8px 10px;
  font-size: .82rem;
  font-weight: 700;
  font-style: italic;
  color: #fff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.game-thumb .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.75);
  background: var(--grad-gold);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 8px 20px;
  font-weight: 800;
  font-size: .85rem;
  opacity: 0;
  transition: all .25s;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(124,77,255,.65);
}
.game-card:hover .play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.badge-hot {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(239,68,68,.6);
}
.badge-rebate {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #7f1d1d, #991b1b);
  color: #fbbf24;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .3px;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(251,191,36,.35);
  box-shadow: 0 2px 8px rgba(127,29,29,.6);
}
.badge-new {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #0EA5E9, #4ade80);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(74,222,128,.5);
}
.badge-popular {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(217,119,6,.55);
}
.fav-heart-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(11,7,20,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  cursor: pointer;
  transition: transform .15s, background .2s, color .2s;
}
.fav-heart-btn svg { width: 16px; height: 16px; }
.fav-heart-btn:hover { transform: scale(1.12); background: rgba(11,7,20,.8); }
.fav-heart-btn.is-fav { color: #ef3340; }
.fav-heart-btn:active { transform: scale(.9); }
.thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg,#1a2035,#0d1117);
}

/* ── PROVIDER CAROUSEL ──────────────────────────────── */
.prov-carousel-wrap {
  position: relative;
  margin-bottom: 28px;
  padding: 0 28px;
}
.prov-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 6px 2px 10px;
}
.prov-carousel::-webkit-scrollbar { display: none; }
.prov-card {
  flex: 0 0 112px;
  width: 112px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: linear-gradient(150deg, rgba(36,25,67,.34), rgba(16,10,29,.2));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
  color: inherit;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.prov-card:hover {
  border-color: #7C4DFF;
  background: linear-gradient(150deg, rgba(124,77,255,.16), rgba(36,25,67,.3));
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.24), 0 0 16px rgba(124,77,255,.24);
}
.prov-card.active {
  border-color: #7C4DFF;
  background: linear-gradient(150deg, rgba(124,77,255,.22), rgba(36,25,67,.32));
  box-shadow: var(--glow-gold);
}
.prov-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  font-weight: 800;
  color: #9B63FF;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
}
.prov-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.prov-name {
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prov-card:has(.prov-icon.has-logo) .prov-name { display: none; }
.prov-count {
  display: none;
}
.prov-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 10;
  background: rgba(36,25,67,.55);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-secondary);
  line-height: 1;
  transition: all .2s;
  padding: 0;
  backdrop-filter: blur(10px);
}
.prov-carousel-btn:hover {
  border-color: var(--border-gold);
  color: #7C4DFF;
  box-shadow: var(--glow-gold);
}
.prov-prev { left: -4px; }
.prov-next { right: -4px; }
@media (max-width: 640px) {
  .prov-carousel-btn { display: none; }
  .prov-carousel-wrap { padding: 0; }
}

/* ── HOT GAMES CAROUSEL ─────────────────────────────── */
.hot-carousel-wrap {
  position: relative;
  padding: 0 28px;
}
.hot-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 6px 2px 10px;
}
.hot-carousel::-webkit-scrollbar { display: none; }
.hot-carousel-card { flex: 0 0 auto; width: 150px; }
.hot-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 10;
  background: rgba(36,25,67,.55);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-secondary);
  line-height: 1;
  transition: all .2s;
  padding: 0;
  backdrop-filter: blur(10px);
}
.hot-carousel-btn:hover {
  border-color: var(--border-gold);
  color: #7C4DFF;
  box-shadow: var(--glow-gold);
}
.hot-prev { left: -4px; }
.hot-next { right: -4px; }
@media (max-width: 640px) {
  .hot-carousel-btn { display: none; }
  .hot-carousel-wrap { padding: 0; }
}

/* ── RECENTLY PLAYED CAROUSEL (same pattern as Hot Games) ──────────── */
.recent-carousel-wrap {
  position: relative;
  padding: 0 28px;
}
.recent-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 6px 2px 10px;
}
.recent-carousel::-webkit-scrollbar { display: none; }
.recent-prev { left: -4px; }
.recent-next { right: -4px; }
@media (max-width: 640px) {
  .recent-carousel-wrap { padding: 0; }
}

/* ── MAIN LAYOUT ────────────────────────────────────── */
.main-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 20px;
}

/* ── BROWSE SECTION (category tabs → game grids) ─────── */
/* Full-viewport-width bleed so the teal→navy blend reads as one continuous
   page surface instead of an inset rounded card (matches the reference). */
.browse-section {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  margin-top: 12px;
  background-image:
    linear-gradient(180deg, #241943 0%, #100A1D 7%, #0B0714 16%, #1a1240 38%, #1a1240 100%),
    radial-gradient(ellipse 70% 40% at 85% 95%, rgba(67,56,202,.22) 0%, transparent 60%);
}
.browse-section-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px;
}
@media (max-width: 640px) {
  .browse-section-inner { padding: 18px 12px; }
}

/* ── STATS BAR ──────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--grad-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color .2s, box-shadow .2s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.stat-card:hover {
  border-color: var(--border-gold);
  box-shadow: 0 4px 24px rgba(124,77,255,.18);
}
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.stat-icon.gold  { background: rgba(124,77,255,.14);  color: #7C4DFF;          box-shadow: inset 0 0 0 1px rgba(124,77,255,.25); }
.stat-icon.green { background: rgba(74,222,128,.12);  color: var(--accent-green); box-shadow: inset 0 0 0 1px rgba(74,222,128,.2); }
.stat-icon.red   { background: rgba(239,68,68,.12);   color: #f87171;          box-shadow: inset 0 0 0 1px rgba(239,68,68,.2); }
.stat-icon.blue  { background: rgba(155,99,255,.12);  color: var(--accent-cyan); box-shadow: inset 0 0 0 1px rgba(155,99,255,.22); }
.stat-label { font-size: .78rem; color: var(--text-secondary); }
.stat-value { font-size: 1.3rem; font-weight: 800; color: #fff; }

/* ── PROMO BANNERS ──────────────────────────────────── */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
.promo-card {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16/6;
  background: var(--grad-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  display: flex;
  align-items: center;
  padding: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.promo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(124,77,255,.22);
  border-color: var(--border-gold);
}
.promo-card h3 {
  font-size: 1rem;
  font-weight: 800;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.promo-card p  { font-size: .78rem; color: var(--text-secondary); margin-top: 4px; }

/* ── FOOTER ─────────────────────────────────────────── */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, rgba(25,17,44,.44), rgba(11,7,20,.78));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--border-color);
  padding: 46px 20px 24px;
  margin-top: 60px;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,77,255,.65), rgba(155,99,255,.5), rgba(124,77,255,.65), transparent);
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.footer-support-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 26px;
  padding: 18px 12px;
  margin-bottom: 28px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.footer-support-row a {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color .2s;
}
.footer-support-row a:hover { color: #9B63FF; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: .82rem; color: var(--text-secondary); line-height: 1.65; }
.footer-col h4 {
  position: relative;
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  padding-left: 13px;
  letter-spacing: .02em;
}
.footer-col h4::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, #9B63FF, #7C4DFF);
  box-shadow: 0 0 8px rgba(124,77,255,.6);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a  {
  font-size: .82rem;
  color: var(--text-secondary);
  transition: color .2s, transform .2s;
  display: inline-block;
}
.footer-col a:hover { color: #9B63FF; transform: translateX(3px); }
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  text-align: center;
  font-size: .78rem;
  color: var(--text-secondary);
}
.license-badges { display: flex; gap: 12px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.license-badge {
  background: linear-gradient(150deg, rgba(36,25,67,.34), rgba(16,10,29,.2));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold);
  border-radius: 7px;
  padding: 5px 13px;
  font-size: .72rem;
  color: var(--text-secondary);
  box-shadow: 0 0 14px rgba(124,77,255,.18);
  transition: all .2s;
}
.license-badge:hover {
  box-shadow: var(--glow-gold);
  color: #fff;
}
.pagination-glass a:hover {
  border-color: var(--border-gold) !important;
  box-shadow: var(--glow-gold);
  color: #fff !important;
}
.rg-panel {
  position: relative;
  background: linear-gradient(160deg, rgba(36,25,67,.3), rgba(16,10,29,.16));
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 22px 22px 20px;
  margin-bottom: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.rg-disclaimer {
  text-align: center;
  font-size: .78rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.rg-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.rg-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1 1 240px;
  max-width: 320px;
  background: rgba(0,0,0,.18);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 11px 15px;
  transition: border-color .2s;
}
.rg-contact-item:hover { border-color: var(--border-gold); }
.rg-contact-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.rg-contact-label { font-size: .7rem; color: var(--text-secondary); margin-bottom: 3px; }
.rg-contact-value { font-size: .82rem; font-weight: 700; color: #fff; word-break: break-word; }
.rg-contact-value a { color: #6ee7d8; }
.rg-contact-value a:hover { color: #fff; }
@media (max-width: 640px) {
  .rg-contact-item { flex: 1 1 100%; max-width: none; }
}
.rg-partners {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}
.rg-partners-label {
  width: 100%;
  text-align: center;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.rg-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all .2s;
}
.rg-social-icon svg { width: 20px; height: 20px; }
.rg-social-icon:hover {
  background: rgba(124,77,255,.16);
  border-color: rgba(124,77,255,.4);
  color: #fff;
  transform: translateY(-2px);
}
@media (max-width: 640px) {
  .rg-social-icon { width: 34px; height: 34px; }
  .rg-social-icon svg { width: 17px; height: 17px; }
}
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #1E40AF, #C126E8);
  border-radius: 50%;
  font-weight: 900;
  font-size: .8rem;
  color: #fff;
  box-shadow: 0 2px 12px rgba(124,77,255,.55);
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn-gold {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px;
  background: var(--grad-gold);
  background-size: 200% 200%;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
  animation: blue-shift 4s ease infinite;
  box-shadow: var(--glow-ambient);
}
.btn-gold:hover {
  filter: brightness(1.15);
  box-shadow: var(--glow-gold);
  color: #fff;
  transform: translateY(-1px);
}
.btn-deposit {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px;
  background: var(--grad-green);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
  box-shadow: var(--glow-green);
}
.btn-deposit:hover {
  filter: brightness(1.1);
  box-shadow: var(--glow-green);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px;
  background: rgba(124,77,255,.09);
  color: #7C4DFF;
  border: 1.5px solid var(--border-gold);
  border-radius: 10px;
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  background: rgba(124,77,255,.18);
  box-shadow: var(--glow-gold);
}
.btn-green {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #0EA5E9, #4ade80);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
}
.btn-green:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 20px rgba(74,222,128,.4);
  transform: translateY(-1px);
}

@keyframes blue-shift {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ── FORMS ──────────────────────────────────────────── */
.form-card {
  background: var(--grad-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow-lg), var(--glow-halo);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.form-label { font-size: .85rem; color: var(--text-secondary); margin-bottom: 6px; display: block; font-weight: 600; }
.form-control {
  width: 100%;
  background: rgba(36,25,67,.32);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: .9rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  border-color: #C126E8;
  box-shadow: 0 0 0 3px rgba(124,77,255,.15);
}
.form-control::placeholder { color: var(--text-secondary); }
.form-group { margin-bottom: 18px; }
.form-error { font-size: .8rem; color: var(--accent-red); margin-top: 4px; }

/* ── DEPOSIT: METHOD GRID / QUICK AMOUNTS / SUBMIT ──── */
.deposit-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}
.deposit-section-title .dst-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124,77,255,.14);
  border: 1px solid rgba(124,77,255,.3);
  font-size: 1rem;
  flex-shrink: 0;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}
.method-card {
  position: relative;
  background: rgba(36,25,67,.28);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 18px 12px;
  cursor: pointer;
  text-align: center;
  transition: all .22s cubic-bezier(.4,0,.2,1);
}
.method-card img { width: 36px; height: 36px; object-fit: contain; margin: 0 auto; }
.method-card .method-emoji { font-size: 1.8rem; }
.method-card .method-label { font-weight: 700; margin-top: 8px; font-size: .9rem; }
.method-card:hover { border-color: rgba(124,77,255,.4); transform: translateY(-2px); }
.method-card.selected {
  border-color: #C126E8;
  background: rgba(124,77,255,.14);
  box-shadow: var(--glow-gold);
  transform: translateY(-2px);
}
.method-card .method-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #C126E8;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(193,38,232,.5);
}
.method-card.selected .method-check { display: flex; }

.quick-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.quick-amount-btn {
  padding: 11px 6px;
  background: rgba(36,25,67,.32);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  transition: all .2s cubic-bezier(.4,0,.2,1);
}
.quick-amount-btn:hover { border-color: rgba(124,77,255,.4); transform: translateY(-1px); }
.quick-amount-btn.selected {
  border-color: #C126E8;
  background: rgba(124,77,255,.16);
  color: #fff;
  box-shadow: var(--glow-gold);
}

.amount-input-wrap { position: relative; }
.amount-input-wrap .amount-input-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-secondary);
  pointer-events: none;
}
.amount-input-wrap .form-control {
  padding-left: 32px;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 14px;
}

.bonus-offer-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, rgba(124,77,255,.1), rgba(193,38,232,.05));
  border: 1px solid rgba(124,77,255,.35);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
  cursor: pointer;
}
.bonus-offer-box .bonus-offer-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124,77,255,.16);
  border: 1px solid rgba(124,77,255,.35);
  font-size: 1rem;
  flex-shrink: 0;
}
.bonus-offer-box input[type=checkbox] { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; }

.deposit-disclaimer {
  font-size: .74rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
  margin-top: 14px;
}

/* ── SPIN THE WHEEL ──────────────────────────────────── */
.wheel-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,77,255,.14);
  border: 1px solid rgba(124,77,255,.35);
  color: #7C4DFF;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.wheel-card-glow { position: relative; }
.wheel-card-glow::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 320px; height: 320px;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(124,77,255,.22) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.wheel-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto 24px;
  z-index: 1;
}
.wheel-lights {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
  z-index: 0;
  pointer-events: none;
  animation: wheel-twinkle 1.8s ease-in-out infinite alternate;
}
@keyframes wheel-twinkle { 0% { opacity: .4; } 100% { opacity: 1; } }
.wheel-rim {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #7C4DFF, #9B63FF, #C126E8, #7C4DFF);
  box-shadow: 0 0 30px rgba(124,77,255,.35), inset 0 0 0 4px rgba(0,0,0,.35);
  z-index: 1;
}
.wheel-pointer {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wheel-pointer-mount {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9B63FF, #7C4DFF 60%, #C126E8 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
  margin-bottom: -4px;
}
.wheel-pointer-tri {
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 18px solid #7C4DFF;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.5));
}
.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid rgba(255,255,255,.15);
  box-shadow: 0 0 0 4px rgba(124,77,255,.3), 0 12px 40px rgba(0,0,0,.5);
  position: relative;
  z-index: 2;
  transition: transform 4.5s cubic-bezier(.17,.67,.16,.99);
}
.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: var(--grad-gold);
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 2;
  animation: wheel-hub-pulse 2.2s ease-in-out infinite;
}
@keyframes wheel-hub-pulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(0,0,0,.4), 0 0 0 0 rgba(124,77,255,.5); }
  50%      { box-shadow: 0 2px 10px rgba(0,0,0,.4), 0 0 0 8px rgba(124,77,255,0); }
}
.btn-spin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  padding: 14px;
  background: var(--grad-gold);
  background-size: 200% 200%;
  animation: blue-shift 4s ease infinite, spin-btn-pulse 2s ease-in-out infinite;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--glow-ambient), inset 0 1px 0 rgba(255,255,255,.35);
}
@keyframes spin-btn-pulse {
  0%, 100% { box-shadow: var(--glow-ambient), inset 0 1px 0 rgba(255,255,255,.35), 0 0 0 0 rgba(124,77,255,.5); }
  50%      { box-shadow: var(--glow-ambient), inset 0 1px 0 rgba(255,255,255,.35), 0 0 0 10px rgba(124,77,255,0); }
}
.btn-spin:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-spin:disabled { opacity: .5; cursor: not-allowed; filter: none; transform: none; animation: none; }
.wheel-locked-box { text-align: center; padding: 12px 20px; }
.wheel-result-banner {
  display: none;
  text-align: center;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,77,255,.18), rgba(124,77,255,.14));
  border: 1px solid rgba(124,77,255,.4);
  margin-top: 18px;
  font-weight: 800;
  font-size: .95rem;
  animation: wheel-result-pop .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes wheel-result-pop {
  0%   { opacity: 0; transform: scale(.85) translateY(6px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.wheel-legend {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}
.wheel-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 5px 12px 5px 8px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.wl-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

.btn-deposit-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--grad-green);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .2px;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--glow-green), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-deposit-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.btn-deposit-submit:active { transform: translateY(0) scale(.98); }

/* ── ALERTS ─────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .88rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-success { background: rgba(74,222,128,.1);  border: 1px solid rgba(74,222,128,.25); color: #4ade80; }
.alert-danger  { background: rgba(239,68,68,.1);   border: 1px solid rgba(239,68,68,.28);  color: #f87171; }
.alert-warning { background: rgba(251,191,36,.1);  border: 1px solid rgba(251,191,36,.28); color: #fbbf24; }
.alert-info    { background: rgba(124,77,255,.1);   border: 1px solid rgba(124,77,255,.28);  color: #7C4DFF; }

/* ── TABLE ──────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  background: rgba(36,25,67,.32);
  color: var(--text-secondary);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(124,77,255,.05);
  font-size: .88rem;
  color: var(--text-primary);
}
.data-table tr:hover td { background: rgba(124,77,255,.05); }
.data-table .badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
}
.badge-active   { background: rgba(74,222,128,.12);  color: #4ade80; }
.badge-pending  { background: rgba(251,191,36,.12);   color: #fbbf24; }
.badge-rejected { background: rgba(239,68,68,.1);     color: #f87171; }
.badge-inactive { background: rgba(148,163,184,.1);   color: #94a3b8; }

/* ── SIDEBAR LAYOUT ─────────────────────────────────── */
.with-sidebar {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px;
}
.sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
}
.sidebar-card {
  background: var(--grad-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.sidebar-header {
  padding: 16px 20px;
  background: rgba(36,25,67,.3);
  border-bottom: 1px solid var(--border-color);
}
.sidebar-header .user-name { font-weight: 800; font-size: 1.05rem; }
.sidebar-header .user-id   { font-size: .78rem; color: var(--text-secondary); }
.sidebar-balance {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}
.sidebar-balance .label { font-size: .75rem; color: var(--text-secondary); }
.sidebar-balance .amount {
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sidebar-menu { list-style: none; }
.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: var(--text-secondary);
  font-size: .88rem;
  font-weight: 600;
  transition: all .2s;
  border-left: 3px solid transparent;
}
.sidebar-menu li a:hover, .sidebar-menu li a.active {
  background: linear-gradient(90deg, rgba(124,77,255,.12), transparent);
  color: #7C4DFF;
  border-left-color: #C126E8;
}

/* ── MODAL ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,7,20,.78);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--grad-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  width: 90%;
  max-width: 460px;
  padding: 28px;
  transform: translateY(24px) scale(.97);
  transition: transform .25s, opacity .25s;
  box-shadow: var(--shadow-lg), 0 0 48px rgba(124,77,255,.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }
.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-close {
  width: 28px; height: 28px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  transition: all .2s;
}
.modal-close:hover { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.1); }

/* ── PROVIDERS MODAL ─────────────────────────────────── */
.btn-providers-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-gold);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: filter .2s;
}
.btn-providers-open:hover { filter: brightness(1.1); }
.modal-box-providers { max-width: 640px; }
.provider-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
}
.provider-modal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  background: rgba(36,25,67,.28);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.provider-modal-card:hover { border-color: rgba(124,77,255,.4); transform: translateY(-2px); }
.provider-modal-card.active {
  border-color: #C126E8;
  background: rgba(124,77,255,.14);
  box-shadow: var(--glow-gold);
}
.provider-modal-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  font-weight: 800;
  font-size: 1.1rem;
  color: #9B63FF;
  overflow: hidden;
}
.provider-modal-icon img { width: 100%; height: 100%; object-fit: contain; }
.provider-modal-name {
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.provider-modal-count { font-size: .7rem; color: var(--text-secondary); }
.provider-modal-empty { display: none; text-align: center; color: var(--text-secondary); padding: 24px; font-size: .85rem; }

/* ── AUTH MODAL (login popup) ───────────────────────── */
.modal-box-auth {
  max-width: 820px;
  padding: 0;
  display: flex;
  overflow: hidden;
  position: relative;
}
.modal-box-auth .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
}
.auth-modal-promo {
  flex: 0 0 42%;
  background-color: #0a1128;
  background-image: linear-gradient(160deg, #0b2a52 0%, #0a1128 55%, #131b38 100%);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}
.auth-modal-promo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6,12,30,.9) 0%, rgba(6,12,30,.45) 45%, rgba(6,12,30,.15) 75%, transparent 100%),
              radial-gradient(ellipse 70% 60% at 20% 10%, rgba(155,99,255,.22) 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 90% 90%, rgba(124,77,255,.16) 0%, transparent 55%);
  pointer-events: none;
}
.auth-modal-promo h2 {
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1.25;
  color: #fff;
  position: relative;
  z-index: 1;
  margin-top: 24px;
}
.auth-modal-promo p {
  font-size: .85rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
  margin-top: 8px;
}
.auth-modal-form {
  flex: 1;
  padding: 40px 32px 28px;
  min-width: 0;
}
.auth-modal-form .logo { display: block; margin: 0 auto 20px; text-align: center; }
.auth-modal-form .logo img { height: 44px; width: auto; }
.auth-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}
.auth-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: .92rem;
  font-weight: 700;
  padding: 0 0 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.auth-tab.active { color: var(--accent-cyan); border-bottom-color: var(--accent-cyan); }
.auth-tab-panel { display: none; }
.auth-tab-panel.active { display: block; }
.auth-code-comingsoon {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: .82rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.auth-modal-stripe {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, #7C4DFF, #f59e0b, #eab308, #4ade80, #7C4DFF, #3b82f6);
}
@media (max-width: 768px) {
  .modal-box-auth { max-width: 420px; }
  .auth-modal-promo { display: none; }
  .auth-modal-form { padding: 32px 20px 24px; }
}

/* ── MOBILE NAV ─────────────────────────────────────── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(248,250,252,.98);
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999;
  padding: 8px 6px;
}
.mobile-nav-items {
  display: flex;
  justify-content: space-between;
}
.mobile-nav-item {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  color: #64748b;
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s;
  white-space: nowrap;
}
.mobile-nav-item span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.mobile-nav-item .m-icon { font-size: 1.3rem; }
.mobile-nav-item.active, .mobile-nav-item:hover { color: var(--accent-cyan); }
.mobile-deposit-btn {
  width: 52px; height: 52px;
  background: var(--grad-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  margin-top: -18px;
  box-shadow: 0 4px 28px rgba(124,77,255,.75);
  animation: blue-shift 4s ease infinite;
  background-size: 200% 200%;
}

/* ── GAME PAGE ──────────────────────────────────────── */
.game-container {
  position: relative;
  background: #000;
  width: 100%;
  height: calc(100vh - 60px);
}
.game-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.game-toolbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(16,54,46,.7);
  backdrop-filter: blur(14px);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}
.game-balance-chip {
  background: rgba(36,25,67,.48);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 5px 14px;
  font-size: .85rem;
  font-weight: 700;
  color: #7C4DFF;
}

/* ── LOADING SPINNER ────────────────────────────────── */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: #C126E8;
  border-right-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── PAGINATION ─────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}
.page-btn {
  padding: 7px 14px;
  background: var(--grad-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: .85rem;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.page-btn:hover {
  border-color: var(--border-gold);
  color: #7C4DFF;
}
.page-btn.active {
  background: linear-gradient(135deg, rgba(124,77,255,.24), rgba(193,38,232,.14));
  border-color: var(--border-gold);
  color: #9B63FF;
  box-shadow: 0 0 14px rgba(124,77,255,.28);
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .stats-bar    { grid-template-columns: repeat(2, 1fr); }
  .promo-grid   { grid-template-columns: 1fr 1fr; }
  .hero-slide h1 { font-size: 2rem; }
  .hero-img      { height: 75%; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .top-nav   { padding: 0 12px; }
  .logo      { font-size: 1.1rem; }
  .logo img  { height: 40px; }
  .nav-inner { gap: 10px; }
  .nav-icon-btn { width: 36px; height: 36px; font-size: 1rem; }
  .nav-actions { gap: 8px; margin-left: auto; }
  .balance-display {
    padding: 5px 10px;
    font-size: .75rem;
    gap: 4px;
  }
  .balance-display > span:first-child { display: none; }
  .btn-login, .btn-register { padding: 6px 12px; font-size: .78rem; }

  body            { padding-bottom: 96px; }
  .main-wrapper   { padding: 14px 12px; }
  .with-sidebar   { grid-template-columns: 1fr; }
  .sidebar        { position: static; }
  .mobile-bottom-nav { display: block; }

  .hero-slider   { height: 150px; margin: 10px 12px 0; border-radius: 12px; overflow: hidden; }
  .hero-slide    { padding: 14px 16px; }
  .hero-slide h1 { font-size: 1.15rem; }
  .hero-slide p  { font-size: .78rem; margin: 6px 0 10px; }
  .hero-img      { display: none; }
  .hero-dots     { bottom: 10px; }

  .promo-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; }
  .promo-card { aspect-ratio: 16/5; padding: 14px 16px; }

  .category-tabs-wrap { margin-bottom: 16px; }
  .category-tabs { gap: 8px; }
  .cat-tab { padding: 8px 16px 8px 7px; font-size: .8rem; gap: 7px; box-shadow: 0 2px 8px rgba(0,0,0,.14); }
  .cat-tab .icon { width: 24px; height: 24px; font-size: .8rem; }

  .prov-carousel-wrap { padding: 0; margin-bottom: 22px; }
  .prov-carousel-btn  { display: none; }
  .prov-carousel      { gap: 10px; padding: 6px 2px 10px; scroll-snap-type: x proximity; }
  .prov-card   { flex: 0 0 96px; width: 96px; height: 58px; padding: 8px; gap: 6px; border-radius: 14px; scroll-snap-align: start; }
  .prov-icon   { width: 100%; height: 100%; border-radius: 8px; font-size: 1.1rem; }
  .prov-name   { font-size: .7rem; max-width: 84px; }
  .prov-count  { font-size: .6rem; }

  .section-title { margin-bottom: 12px; }
  .section-title h2 { font-size: 1rem; }

  .game-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .hot-carousel-card { width: 100px; }
  .game-card .play-btn { font-size: .68rem; padding: 5px 10px; }
  .game-name-bar { font-size: .72rem; padding: 6px 8px; }
  .badge-hot, .badge-new, .badge-popular { font-size: .6rem; padding: 2px 6px; }
  .badge-rebate { font-size: .54rem; padding: 2px 6px; }

  .footer-grid   { grid-template-columns: 1fr; gap: 20px; }
  .site-footer   { padding: 24px 14px 14px; margin-top: 32px; }
  .license-badges { flex-wrap: wrap; gap: 8px; }
  .footer-brand  { display: block; }

  .modal-box { padding: 22px 18px; }

  .with-sidebar { gap: 16px; padding: 16px 12px; }
  .form-card    { padding: 20px 16px; }
  .method-grid  { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
  .method-card  { padding: 12px 8px; }
  .method-card img { width: 30px; height: 30px; }
  .method-card .method-emoji { font-size: 1.5rem; }
  .method-card .method-label { font-size: .8rem; margin-top: 4px; }
  .quick-amount-btn { font-size: .74rem; padding: 9px 4px; }
  .amount-input-wrap .form-control { font-size: 1.05rem; }
  .btn-deposit-submit { padding: 12px; font-size: .88rem; }
}

/* Responsive table scroll wrapper */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .data-table { min-width: 480px; }

@media (max-width: 768px) {
  .profile-stats { grid-template-columns: repeat(2, 1fr) !important; }
  .profile-forms { grid-template-columns: 1fr !important; }
  .history-tabs  { flex-wrap: wrap !important; }
  .game-search-form { flex-wrap: wrap !important; }
  .game-search-form input[type=text] { width: 100% !important; min-width: 0 !important; }
}

@media (max-width: 480px) {
  .profile-stats { grid-template-columns: 1fr !important; }
  .lotto-cards   { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .logo { font-size: .95rem; }
  .logo span { font-size: .95rem; }
  .logo img { height: 26px; }
  .top-nav { padding: 0 6px; }
  .nav-inner { gap: 4px; }
  .nav-icon-btn { width: 36px; height: 36px; font-size: .95rem; }
  .balance-display { padding: 4px 8px; }
  .btn-login  { padding: 6px 10px; font-size: .75rem; }
  .btn-register { padding: 6px 10px; font-size: .75rem; }

  .hero-slider   { height: 130px; margin: 10px 10px 0; }
  .hero-slide h1 { font-size: 1.05rem; }
  .hero-slide p  { font-size: .74rem; margin: 5px 0 10px; }
  .btn-gold, .btn-outline { padding: 8px 14px; font-size: .8rem; }

  .main-wrapper { padding: 12px 10px; }

  .cat-tab { padding: 7px 14px 7px 6px; font-size: .76rem; }
  .cat-tab .icon { width: 22px; height: 22px; font-size: .76rem; }

  .mobile-bottom-nav { left: 8px; right: 8px; padding: 7px 4px; }
  .mobile-nav-item   { padding: 6px 2px; font-size: .58rem; gap: 2px; }
  .mobile-nav-item .m-icon { font-size: 1.15rem; }
  .mobile-deposit-btn { width: 46px; height: 46px; font-size: 1.25rem; margin-top: -16px; }

  .prov-card  { flex: 0 0 86px; width: 86px; height: 52px; padding: 7px; }
  .prov-icon  { font-size: 1rem; }
  .prov-name  { font-size: .66rem; max-width: 74px; }

  .game-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .hot-carousel-card { width: 88px; }
  .game-name-bar { font-size: .68rem; padding: 5px 7px; }
  .badge-hot, .badge-new, .badge-popular { font-size: .56rem; padding: 2px 5px; }
  .badge-rebate { font-size: .5rem; padding: 2px 5px; }

  .modal-box { padding: 18px 14px; margin: 0 8px; }

  .with-sidebar { padding: 12px 8px; }
  .form-card    { padding: 16px 12px; }
  .method-grid  { grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); gap: 6px; }
  .method-card  { padding: 10px 6px; border-radius: 12px; }
  .method-card img { width: 26px; height: 26px; }
  .method-card .method-emoji { font-size: 1.3rem; }
  .method-card .method-label { font-size: .72rem; margin-top: 3px; }
  .quick-amount-grid { gap: 6px; }
  .quick-amount-btn  { font-size: .68rem; padding: 8px 3px; border-radius: 8px; }
  .amount-input-wrap .amount-input-prefix { left: 12px; font-size: 1rem; }
  .amount-input-wrap .form-control { font-size: 1rem; padding-left: 28px; }
  .btn-deposit-submit { padding: 12px; font-size: .84rem; gap: 6px; }
}
