/* ======================================================================
   BET 777 / ZarPay Casino — Violet + Gold theme
   Ported from Claude Design (ZarPay Casino.html) with full hover states
   and live-interactive polish for the a1 avaitor PHP app.
   ====================================================================== */

*,*::before,*::after { box-sizing:border-box; }
html,body{ margin:0; padding:0; }

:root{
  --bg-0:#0b0617;
  --bg-1:#140826;
  --bg-2:#1e0d3a;
  --surface:#1a0b2e;
  --surface-2:#23113f;
  --surface-3:#2e1752;
  --line:rgba(168,85,247,.18);
  --line-2:rgba(168,85,247,.35);
  --text:#f5ecff;
  --text-dim:#b9a8d8;
  --text-muted:#7a6a9a;
  --violet:#a855f7;
  --violet-2:#c084fc;
  --violet-deep:#6d28d9;
  --gold:#fbbf24;
  --gold-2:#fde047;
  --pink:#ec4899;
  --green:#22c55e;
  --red:#ef4444;
  --cyan:#22d3ee;
}

body{
  background:#05030a;
  color:var(--text);
  font-family:'Hind','Space Grotesk',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  min-height:100vh;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* ──────────────────────────────────────────────────────────────
   Desktop framing: center mobile canvas
   ────────────────────────────────────────────────────────────── */
.stage{
  min-height:100vh;
  display:flex; justify-content:center; align-items:flex-start;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(168,85,247,.18), transparent 60%),
    radial-gradient(900px 500px at 80% 30%, rgba(236,72,153,.10), transparent 60%),
    #05030a;
}
.app{
  width:100%;
  max-width:440px;
  min-height:100vh;
  background:linear-gradient(180deg,#0f0720 0%,#0a0518 60%,#07030f 100%);
  position:relative;
  overflow-x:hidden;
  overflow-y:visible;
  padding-bottom:calc(88px + env(safe-area-inset-bottom,0px));
  box-shadow:0 0 0 1px rgba(168,85,247,.12), 0 40px 100px rgba(0,0,0,.6);
}
@media (min-width:760px){
  .app{ margin-top:24px; margin-bottom:24px; border-radius:36px; min-height:calc(100vh - 48px); }
}

/* Typography */
.ur{ font-family:'Hind','Noto Nastaliq Urdu',sans-serif; font-weight:600; }
.ur-heavy{ font-family:'Hind',sans-serif; font-weight:700; }
.lt{ font-family:'Space Grotesk',sans-serif; }

/* Utility */
.row{ display:flex; align-items:center; }
.col{ display:flex; flex-direction:column; }
.gap-8{gap:8px} .gap-10{gap:10px} .gap-12{gap:12px} .gap-16{gap:16px}
.between{ justify-content:space-between; }
.center{ justify-content:center; }
.px-16{ padding-left:16px; padding-right:16px; }

a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }

/* ──────────────────────────────────────────────────────────────
   Top bar
   ────────────────────────────────────────────────────────────── */
.topbar{
  position:sticky; top:0; z-index:30;
  padding:12px 14px 10px;
  background:linear-gradient(180deg,rgba(10,4,24,.92),rgba(10,4,24,.72));
  backdrop-filter:blur(16px) saturate(140%);
  -webkit-backdrop-filter:blur(16px) saturate(140%);
  border-bottom:1px solid rgba(168,85,247,.14);
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.menu-btn{
  width:40px; height:40px; border-radius:12px; display:grid; place-items:center;
  background:linear-gradient(180deg,#2a1550,#160828);
  border:1px solid rgba(168,85,247,.35);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
  color:#e9d5ff;
  transition:transform .2s, box-shadow .2s, border-color .2s;
}
.menu-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 18px rgba(168,85,247,.35), inset 0 1px 0 rgba(255,255,255,.1);
  border-color:rgba(168,85,247,.6);
}
.menu-btn:active{ transform:translateY(0); }

.logo{
  display:flex; align-items:center; gap:8px;
  font-family:'Space Grotesk',sans-serif;
  font-weight:700; font-size:22px; letter-spacing:.5px;
  line-height:1;
}
.logo .mark{
  width:30px; height:30px; border-radius:9px;
  background:radial-gradient(circle at 30% 30%, #fde047, #f59e0b 55%, #b45309 100%);
  display:grid; place-items:center;
  color:#3b0764; font-weight:800; font-family:'Space Grotesk',sans-serif;
  box-shadow:0 2px 10px rgba(251,191,36,.4), inset 0 1px 0 rgba(255,255,255,.6);
  font-size:15px;
}
.logo .word{
  background:linear-gradient(180deg,#fff 0%,#e9d5ff 50%,#a855f7 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  text-shadow:0 0 18px rgba(168,85,247,.4);
}
.logo .tld{
  font-size:11px; font-weight:600; color:#fbbf24; margin-inline-start:-2px;
  transform:translateY(-6px);
}
.top-actions{ display:flex; align-items:center; gap:8px; }

.btn-play{
  padding:8px 16px; border-radius:999px;
  background:linear-gradient(180deg,#a855f7,#7c3aed);
  color:#fff; font-weight:700; font-size:14px;
  box-shadow:0 4px 14px rgba(168,85,247,.45), inset 0 1px 0 rgba(255,255,255,.25);
  border:none; cursor:pointer;
  transition:transform .2s, box-shadow .2s, filter .2s;
}
.btn-play:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(168,85,247,.6), inset 0 1px 0 rgba(255,255,255,.35);
  filter:brightness(1.08);
}
.btn-play:active{ transform:translateY(0); filter:brightness(.96); }

.ic-btn{
  width:38px; height:38px; border-radius:10px; display:grid; place-items:center;
  background:linear-gradient(180deg,#1f0f3d,#120624);
  border:1px solid rgba(168,85,247,.28); color:#e9d5ff;
  position:relative; cursor:pointer;
  transition:transform .2s, border-color .2s, box-shadow .2s;
  text-decoration:none; flex-shrink:0;
}
a.ic-btn{ color:#e9d5ff; }
.ic-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(168,85,247,.6);
  box-shadow:0 6px 16px rgba(168,85,247,.28);
}
.ic-btn .dot{
  position:absolute; top:6px; right:6px; width:7px; height:7px; border-radius:50%;
  background:#ef4444; box-shadow:0 0 0 2px #0a0518;
}

.profile-ic{
  width:38px; height:38px; border-radius:50%; display:grid; place-items:center;
  flex-shrink:0; overflow:hidden; text-decoration:none;
  border:2px solid rgba(253,224,71,.55);
  box-shadow:0 4px 12px rgba(0,0,0,.3);
  transition:transform .2s, border-color .2s;
}
.profile-ic:hover{ transform:translateY(-1px); border-color:#fde047; }
.profile-ic img{ width:100%; height:100%; object-fit:cover; display:block; }
.profile-ic-fallback{
  width:100%; height:100%; display:grid; place-items:center;
  background:linear-gradient(135deg,#a855f7,#7c3aed);
  color:#fff; font-weight:900; font-size:14px;
}

.wallet-chip{
  display:flex; align-items:center; gap:8px;
  padding:8px 14px; border-radius:999px;
  background:linear-gradient(180deg,#2a1550,#190a31);
  border:1px solid rgba(253,224,71,.45);
  color:#fde047; font-weight:700; font-size:13px;
  box-shadow:0 4px 14px rgba(251,191,36,.18), inset 0 1px 0 rgba(255,255,255,.08);
  cursor:pointer;
  transition:transform .2s, box-shadow .2s, filter .2s;
}
.wallet-chip:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(251,191,36,.28), inset 0 1px 0 rgba(255,255,255,.12);
  filter:brightness(1.06);
}
.wallet-chip i{ color:#fde047; }

/* ──────────────────────────────────────────────────────────────
   Hero slider
   ────────────────────────────────────────────────────────────── */
.hero-wrap{ padding:12px 12px 8px; }
.hero{
  position:relative; height:auto; aspect-ratio:2 / 1; max-height:240px;
  border-radius:16px; overflow:hidden;
  border:1px solid rgba(168,85,247,.25);
  box-shadow:0 10px 30px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
  direction:ltr; /* critical: keep slider LTR under RTL pages */
  background:#1c0033;
}
.slides{
  display:flex; height:100%;
  width:400%; /* 4 slides default; JS overwrites to N*100% */
  transition:transform .55s cubic-bezier(.65,.02,.3,1);
  will-change:transform;
  direction:ltr;
}
.slide{
  flex:0 0 25%; position:relative; height:100%; overflow:hidden;
  min-width:0;
}
.slide .bg{ position:absolute; inset:0; }
.slide-img{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:center center;
  display:block; background:linear-gradient(135deg,#1a0b2e,#0a0518);
}
.slide .ink{ position:absolute; inset:0; background:linear-gradient(90deg,rgba(0,0,0,.55) 0%,rgba(0,0,0,.15) 60%,transparent 100%); }
.slide .content{
  position:absolute; inset:0; padding:16px 18px;
  display:flex; flex-direction:column; justify-content:space-between;
}
.slide-eyebrow{
  align-self:flex-start;
  padding:4px 10px; border-radius:999px; font-size:11px; font-weight:700;
  background:rgba(0,0,0,.35); border:1px solid rgba(255,255,255,.18);
  color:#fde047; letter-spacing:.5px;
}
.slide-title{
  font-family:'Hind',sans-serif; font-weight:700;
  font-size:26px; line-height:1.15; text-align:right;
  text-shadow:0 2px 20px rgba(0,0,0,.8);
  color:#fff;
  max-width:72%; align-self:flex-end;
}
.slide-title em{
  font-style:normal;
  background:linear-gradient(180deg,#fde047,#f59e0b);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.slide-sub{
  font-size:13px; color:#e9d5ff; opacity:.9; text-align:right;
  align-self:flex-end; max-width:72%;
  margin-top:4px; font-weight:500;
}
.slide-cta{
  align-self:flex-start;
  padding:8px 16px; border-radius:10px;
  background:linear-gradient(180deg,#fbbf24,#d97706); color:#3b0764;
  font-weight:800; font-size:13px; border:none; cursor:pointer;
  box-shadow:0 4px 14px rgba(251,191,36,.4);
  transition:transform .2s, box-shadow .2s, filter .2s;
}
.slide-cta:hover{ transform:translateY(-1px); filter:brightness(1.06);
  box-shadow:0 8px 20px rgba(251,191,36,.55); }

.dots{
  position:absolute; bottom:10px; left:50%; transform:translateX(-50%);
  display:flex; gap:6px; z-index:5;
}
.dot-i{
  width:6px; height:6px; border-radius:3px; background:rgba(255,255,255,.35);
  transition:all .4s; cursor:pointer;
}
.dot-i.active{ width:20px; background:#fde047; }
.dot-i:hover{ background:rgba(255,255,255,.65); }

.bg-a{
  background:
    radial-gradient(80% 100% at 80% 40%, rgba(251,191,36,.25), transparent 60%),
    radial-gradient(60% 80% at 20% 80%, rgba(236,72,153,.35), transparent 60%),
    linear-gradient(135deg,#4c1d95 0%,#7c2d92 50%,#831843 100%);
}
.bg-b{
  background:
    radial-gradient(70% 100% at 70% 30%, rgba(34,211,238,.25), transparent 60%),
    radial-gradient(60% 80% at 20% 70%, rgba(168,85,247,.45), transparent 60%),
    linear-gradient(135deg,#1e1b4b 0%,#312e81 50%,#4c1d95 100%);
}
.bg-c{
  background:
    radial-gradient(70% 100% at 80% 60%, rgba(34,197,94,.35), transparent 60%),
    radial-gradient(60% 80% at 20% 30%, rgba(251,191,36,.25), transparent 60%),
    linear-gradient(135deg,#064e3b 0%,#065f46 45%,#0f172a 100%);
}
.decor-coins{ position:absolute; inset:0; pointer-events:none; }
.coin{
  position:absolute; width:22px; height:22px; border-radius:50%;
  background:radial-gradient(circle at 35% 30%, #fde047, #f59e0b 60%, #92400e 100%);
  box-shadow:0 2px 6px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.6);
}

/* ──────────────────────────────────────────────────────────────
   Ticker
   ────────────────────────────────────────────────────────────── */
.ticker{
  margin:0 12px; padding:10px 14px;
  background:linear-gradient(180deg,#2a1550,#190a31);
  border:1px solid rgba(168,85,247,.25);
  border-radius:14px;
  display:flex; align-items:center; gap:10px;
  overflow:hidden;
}
.ticker-ic{
  width:28px; height:28px; border-radius:50%;
  background:linear-gradient(180deg,#a855f7,#6d28d9);
  display:grid; place-items:center; color:#fde047;
  flex-shrink:0;
}
.ticker-track-wrap{
  flex:1; overflow:hidden;
  mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);
}
.ticker-track{
  display:flex; white-space:nowrap; gap:48px;
  animation:tick 30s linear infinite;
  font-size:13px; color:#e9d5ff; font-weight:500;
}
.ticker-track b{ color:#fde047; font-weight:700; }
.ticker:hover .ticker-track{ animation-play-state:paused; }
@keyframes tick{ from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ──────────────────────────────────────────────────────────────
   Category rail
   ────────────────────────────────────────────────────────────── */
.cats{
  padding:14px 12px 10px;
  display:grid; grid-template-columns:repeat(4,1fr); gap:8px;
}
.cat{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  cursor:pointer; user-select:none;
}
.cat .tile{
  width:64px; height:64px; border-radius:16px; display:grid; place-items:center;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.28), transparent 45%),
    linear-gradient(160deg,var(--c1),var(--c2));
  border:1px solid rgba(255,255,255,.16);
  box-shadow:
    0 8px 18px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.22);
  position:relative; overflow:hidden;
  transition:transform .25s, box-shadow .25s;
}
.cat-emoji{
  font-size:28px; line-height:1;
  filter:drop-shadow(0 3px 6px rgba(0,0,0,.35));
  position:relative; z-index:2;
  display:block;
}
/* Category icons: crisp floating icons on purple tiles */
.cat-tile-img{
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.22), transparent 48%),
    linear-gradient(160deg, #8b5cf6 0%, #5b21b6 50%, #3b0764 100%) !important;
  border:1px solid rgba(196,116,255,.4) !important;
  box-shadow:
    0 8px 18px rgba(84,25,132,.5),
    inset 0 1px 0 rgba(255,255,255,.22) !important;
  width:64px !important; height:64px !important;
  padding:6px !important;
  border-radius:16px !important;
  overflow:visible !important;
  display:grid !important;
  place-items:center !important;
}
.cat-tile-img::after{ display:none !important; }
.cat-tile-img::before{ display:none !important; }
.cat-icon-img{
  width:44px !important; height:44px !important;
  display:block !important;
  object-fit:contain !important;
  background:transparent !important;
  border-radius:0 !important;
  filter:drop-shadow(0 3px 6px rgba(0,0,0,.35));
  transition:transform .2s ease;
}
.cat:hover .cat-icon-img{ transform:scale(1.08); }
.sb-tile-img{
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.2), transparent 48%),
    linear-gradient(160deg, #7c3aed 0%, #4c1d95 55%, #2e1065 100%) !important;
  box-shadow:
    0 6px 14px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.2) !important;
  width:54px !important; height:54px !important;
  padding:5px !important;
  border-radius:14px !important;
  overflow:visible !important;
  display:grid !important;
  place-items:center !important;
  border:1px solid rgba(196,116,255,.3);
}
.sb-icon-img{
  width:38px !important; height:38px !important;
  display:block !important;
  object-fit:contain !important;
  background:transparent !important;
  border-radius:0 !important;
  filter:drop-shadow(0 2px 5px rgba(0,0,0,.35));
  transition:transform .2s ease;
}
.sb-tile:hover .sb-icon-img{ transform:scale(1.08); }
/* shinier hero */
.hero{
  box-shadow:0 12px 36px rgba(84,25,132,.55), 0 0 40px rgba(196,116,255,.2), inset 0 1px 0 rgba(255,255,255,.12) !important;
  border:1px solid rgba(196,116,255,.4) !important;
}
.cat .tile::after{
  content:''; position:absolute; top:0; left:0; right:0; height:40%;
  background:linear-gradient(180deg,rgba(255,255,255,.22),transparent);
  border-top-left-radius:16px; border-top-right-radius:16px;
  pointer-events:none; z-index:0;
}
.cat .tile > *{ position:relative; z-index:1; }
.cat:hover .tile{ transform:translateY(-3px) scale(1.03);
  box-shadow:0 10px 24px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.25); }
.cat:active .tile{ transform:translateY(0) scale(.98); }
.cat.active .tile{ box-shadow:0 0 0 2px #fde047, 0 6px 18px rgba(251,191,36,.35); }
.cat .lbl{ font-size:12px; font-weight:600; color:#e9d5ff; }
.cat.active .lbl{ color:#fde047; }

/* ──────────────────────────────────────────────────────────────
   Section header (animated)
   ────────────────────────────────────────────────────────────── */
.sec{ margin-top:18px; padding:0 12px; }
.sec-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 14px; border-radius:14px;
  background:linear-gradient(90deg,#190a31 0%,#2a1550 100%);
  border:1px solid rgba(168,85,247,.28);
  overflow:hidden; position:relative;
}
.sec-head::before{
  content:''; position:absolute; inset:0;
  background:linear-gradient(90deg,transparent,rgba(251,191,36,.12),transparent);
  background-size:200% 100%;
  animation:sheen 3.5s linear infinite;
  pointer-events:none;
}
@keyframes sheen{ from{background-position:200% 0} to{background-position:-200% 0} }
.sec-title{
  display:flex; align-items:center; gap:10px; font-size:18px; font-weight:700; color:#fff;
  position:relative;
}
.sec-title .emoji{ display:inline-flex; filter:drop-shadow(0 0 8px currentColor); }
.sec-title .emoji svg{ width:22px; height:22px; }
.sec-title.trending{ color:#fb923c; }
.sec-title.earn{ color:#22c55e; }
.sec-title.lucky{ color:#fde047; }
.sec-title .text{
  color:#fff;
  background:linear-gradient(90deg,#fff,currentColor,#fff);
  background-size:200% 100%;
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  animation:flow 3s linear infinite;
}
@keyframes flow{ from{background-position:200% 0} to{background-position:-200% 0} }
.sec-nav{ display:flex; align-items:center; gap:6px; position:relative; }
.arr{
  width:30px; height:30px; border-radius:8px; display:grid; place-items:center;
  background:rgba(255,255,255,.06); border:1px solid rgba(168,85,247,.25);
  color:#e9d5ff; cursor:pointer;
  transition:background .2s, border-color .2s, transform .15s;
}
.arr:hover{ background:rgba(168,85,247,.18); border-color:rgba(168,85,247,.55); transform:translateY(-1px); }
.arr:active{ transform:translateY(0); }
.see-more{
  padding:6px 12px; border-radius:8px; font-size:12px; font-weight:600; color:#fff;
  background:linear-gradient(180deg,#a855f7,#7c3aed);
  border:none; cursor:pointer;
  transition:filter .2s, box-shadow .2s, transform .15s;
}
.see-more:hover{ filter:brightness(1.08); box-shadow:0 6px 18px rgba(168,85,247,.4); transform:translateY(-1px); }
.see-more:active{ transform:translateY(0); }

/* ──────────────────────────────────────────────────────────────
   Game cards
   ────────────────────────────────────────────────────────────── */
.games-vp{
  margin-top:12px; overflow:hidden; border-radius:4px;
  touch-action:pan-y; /* vertical scroll free; horizontal handled by JS swipe */
  cursor:grab; user-select:none; -webkit-user-select:none;
}
.games-vp:active{ cursor:grabbing; }
.games-track{
  display:flex; transition:transform .32s cubic-bezier(.25,.8,.25,1);
}
.games-page{
  flex:0 0 100%;
  display:grid; grid-template-columns:repeat(3,1fr); gap:10px;
}
.gcard{
  position:relative; aspect-ratio:3/4; border-radius:14px; overflow:hidden;
  background:linear-gradient(180deg,var(--g1),var(--g2));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 6px 18px rgba(0,0,0,.4);
  cursor:pointer; display:block; color:inherit; text-decoration:none;
  transition:transform .25s, box-shadow .25s, border-color .25s;
}
.gcard-img{ background:linear-gradient(180deg,#1a0b2e,#0a0518); overflow:hidden; position:absolute; inset:0; }
.gcard-bg{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover !important; object-position:center center; display:block;
  background:linear-gradient(180deg,#1a0b2e,#0a0518);
  transition:transform .3s;
  padding:0;
  box-sizing:border-box;
}
.gcard:hover .gcard-bg{ transform:scale(1.06); }
.gcard-grad{
  position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg,transparent 0%, transparent 55%, rgba(0,0,0,.85) 100%);
}
.gcard:hover{
  transform:translateY(-4px) scale(1.02);
  box-shadow:0 14px 30px rgba(0,0,0,.6), 0 0 0 1px rgba(253,224,71,.35);
  border-color:rgba(253,224,71,.35);
}
.gcard:active{ transform:translateY(-1px) scale(.99); }
.gcard .shine{
  position:absolute; inset:0;
  background:linear-gradient(160deg,rgba(255,255,255,.18) 0%, transparent 35%);
  pointer-events:none;
}
.gcard .emoji{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-60%);
  font-size:46px; filter:drop-shadow(0 4px 10px rgba(0,0,0,.5));
  transition:transform .3s;
}
.gcard:hover .emoji{ transform:translate(-50%,-60%) scale(1.1) rotate(-4deg); }
.gcard .name{
  position:absolute; left:0; right:0; bottom:0;
  padding:22px 8px 8px;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.8));
  color:#fff; font-size:12px; font-weight:600; text-align:center;
  line-height:1.2;
}
.gcard .tag{
  position:absolute; top:6px; right:6px;
  font-size:9px; font-weight:800; padding:3px 6px; border-radius:6px;
  background:#ef4444; color:#fff; letter-spacing:.5px;
  z-index:2;
}
.gcard .tag.new{ background:#22c55e; }
.gcard .tag.x{ background:#fbbf24; color:#3b0764; }
.gcard .tag.soon{ background:linear-gradient(135deg,#64748b,#334155); color:#fff; }
.gcard.is-soon{ cursor:not-allowed; }
.gcard.is-soon .gcard-bg{ filter:grayscale(.35) brightness(.72); }
.gcard .soon-overlay{
  position:absolute; inset:0; z-index:3;
  display:flex; align-items:center; justify-content:center;
  background:rgba(6,2,16,.48);
  color:#fff; font-size:12px; font-weight:900; letter-spacing:.6px;
  text-transform:uppercase; text-shadow:0 2px 8px rgba(0,0,0,.7);
  pointer-events:none;
}
.gcard .multi{
  position:absolute; top:6px; left:6px;
  font-size:10px; font-weight:800; padding:3px 6px; border-radius:6px;
  background:rgba(0,0,0,.5); color:#fde047; border:1px solid rgba(253,224,71,.4);
  z-index:2;
}
.gcard .players{
  position:absolute; bottom:28px; left:6px; z-index:2;
  font-size:10px; color:#fff; display:flex; align-items:center; gap:3px;
  text-shadow:0 1px 2px rgba(0,0,0,.8);
}
.gcard .live-dot{
  width:6px; height:6px; border-radius:50%; background:#22c55e;
  box-shadow:0 0 6px #22c55e; animation:pulse 1.5s infinite;
}
@keyframes pulse{ 0%,100%{opacity:1} 50%{opacity:.4} }

.g-dots{ display:flex; justify-content:center; gap:5px; margin-top:10px; }
.g-dot{
  width:5px; height:5px; border-radius:3px; background:rgba(168,85,247,.3);
  transition:.3s; cursor:pointer;
}
.g-dot.on{ width:18px; background:#a855f7; }
.g-dot:hover{ background:rgba(168,85,247,.6); }

/* ──────────────────────────────────────────────────────────────
   Wins feed
   ────────────────────────────────────────────────────────────── */
.wins-head{
  display:flex; align-items:center; justify-content:space-between;
  margin:22px 12px 10px;
}
.wins-head .ttl{
  font-size:16px; font-weight:700; display:flex; align-items:center; gap:8px;
  color:#fff;
}
.live-pill{
  display:flex; align-items:center; gap:5px;
  padding:3px 8px; border-radius:999px;
  background:rgba(239,68,68,.18); border:1px solid rgba(239,68,68,.4);
  font-size:10px; font-weight:700; color:#fca5a5; letter-spacing:.5px;
}
.live-pill .d{
  width:6px; height:6px; border-radius:50%; background:#ef4444;
  animation:pulse 1s infinite;
}
.wins{
  margin:0 12px; border-radius:16px; overflow:hidden;
  background:linear-gradient(180deg,#190a31,#120624);
  border:1px solid rgba(168,85,247,.25);
}
.win-row{
  display:flex; align-items:center; gap:12px;
  padding:11px 14px;
  border-bottom:1px solid rgba(168,85,247,.12);
  animation:winIn .5s ease;
  transition:background .2s;
}
.win-row:hover{ background:rgba(168,85,247,.08); }
@keyframes winIn{ from{opacity:0; transform:translateY(-8px)} to{opacity:1; transform:none} }
.win-row:last-child{ border-bottom:none; }
.av{
  width:38px; height:38px; border-radius:50%; flex-shrink:0;
  display:grid; place-items:center; color:#fff;
  font-weight:700; font-size:14px;
  border:2px solid rgba(253,224,71,.5);
  position:relative;
}
.av.top::after{
  content:'\1F451'; position:absolute; top:-8px; right:-6px; font-size:14px;
}
.win-info{ flex:1; min-width:0; }
.win-name{
  font-size:13px; font-weight:600; color:#fff;
  display:flex; gap:6px; align-items:center;
}
.win-name .v{ color:#22d3ee; font-size:11px; }
.win-game{ font-size:11px; color:#b9a8d8; margin-top:2px; }
.win-amt{
  font-family:'Space Grotesk',sans-serif;
  font-weight:700; font-size:14px; color:#fde047;
  text-align:left; direction:ltr;
}
.win-amt .cur{ font-size:10px; opacity:.7; margin-inline-end:2px; }

/* ──────────────────────────────────────────────────────────────
   Jackpot strip
   ────────────────────────────────────────────────────────────── */
.jackpot{
  margin:18px 12px 0;
  padding:14px 16px;
  background:
    radial-gradient(100% 180% at 100% 0%, rgba(251,191,36,.35), transparent 50%),
    linear-gradient(135deg,#4c1d95,#831843);
  border-radius:16px;
  border:1px solid rgba(251,191,36,.4);
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  position:relative; overflow:hidden;
}
.jackpot::before{
  content:'\1F48E'; position:absolute; right:-8px; top:-12px; font-size:80px; opacity:.15;
  transform:rotate(15deg);
}
.jackpot .lbl{ font-size:12px; color:#fde047; font-weight:700; letter-spacing:1px; }
.jackpot .amt{
  font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:28px; color:#fff;
  direction:ltr; text-shadow:0 0 20px rgba(251,191,36,.6);
  margin-top:2px;
}
.jackpot .cta{
  padding:10px 16px; border-radius:10px; background:#fde047; color:#3b0764;
  font-weight:800; font-size:13px; border:none; flex-shrink:0;
  box-shadow:0 4px 14px rgba(253,224,71,.4); cursor:pointer;
  transition:transform .2s, box-shadow .2s, filter .2s;
}
.jackpot .cta:hover{ transform:translateY(-1px); filter:brightness(1.05);
  box-shadow:0 8px 22px rgba(253,224,71,.55); }
.jackpot .cta:active{ transform:translateY(0); }

/* ──────────────────────────────────────────────────────────────
   Footer
   All footer sub-blocks share one max-width/gutter so every row
   lines up on the same left/right edge regardless of RTL flow.
   ────────────────────────────────────────────────────────────── */
footer.z-footer{
  --foot-w:400px;
  margin-top:24px; padding:28px 20px 120px;
  background:linear-gradient(180deg,transparent,#120624 40%);
  border-top:1px solid rgba(168,85,247,.15);
  text-align:center;
  direction:ltr; /* keep the whole footer grid on one consistent LTR axis */
}
footer.z-footer .ur{ direction:rtl; unicode-bidi:isolate; }
.foot-brand{
  display:flex; align-items:center; justify-content:center; gap:12px;
  flex-wrap:wrap; margin:0 auto; max-width:var(--foot-w);
}
.foot-brand .logo{ transform:scale(.95); }
.foot-tagline{
  font-size:12.5px; color:#b9a8d8; margin:14px auto 0; line-height:1.75;
  max-width:var(--foot-w); text-align:center;
}
.pay-row{
  display:flex; gap:8px; flex-wrap:wrap; margin:18px auto 0;
  justify-content:center; align-items:center; max-width:var(--foot-w);
}
.pay{
  padding:7px 12px; border-radius:8px; font-size:11.5px; font-weight:700;
  background:#1f0f3d; border:1px solid rgba(168,85,247,.28); color:#e9d5ff;
  transition:background .2s, border-color .2s, transform .15s;
}
.pay:hover{ background:#2a1550; border-color:rgba(168,85,247,.55); transform:translateY(-1px); }
.links{
  display:grid; grid-template-columns:repeat(2,1fr); gap:24px 12px;
  margin:26px auto 0; max-width:var(--foot-w); text-align:center;
}
@media (min-width:460px){
  .links{ grid-template-columns:repeat(4,1fr); max-width:100%; }
}
.link-col{ display:flex; flex-direction:column; align-items:center; }
.link-col h4{
  margin:0 0 12px; font-size:11.5px; color:#fde047; font-weight:800;
  letter-spacing:.6px; text-transform:uppercase; text-align:center;
}
.link-col a{
  display:block; color:#b9a8d8; font-size:12.5px; text-decoration:none;
  padding:5px 0; transition:color .2s; line-height:1.5; text-align:center;
}
.link-col a:hover{ color:#fde047; }
.foot-note{
  margin:24px auto 0; padding-top:18px; border-top:1px solid rgba(168,85,247,.15);
  font-size:11px; color:#7a6a9a; line-height:1.7; text-align:center;
  max-width:var(--foot-w);
}
.age-badge{
  display:inline-flex; align-items:center; gap:6px; flex-shrink:0;
  padding:4px 10px; border-radius:999px; margin:0;
  background:#ef4444; color:#fff; font-weight:800; font-size:11px;
}
.socials{
  display:flex; gap:10px; justify-content:center; align-items:center;
  margin:20px auto 0; max-width:var(--foot-w);
}
.soc{
  width:38px; height:38px; border-radius:11px; display:grid; place-items:center;
  background:#1f0f3d; border:1px solid rgba(168,85,247,.28); color:#e9d5ff;
  transition:background .2s, border-color .2s, transform .15s, color .2s;
}
.soc svg{ width:17px; height:17px; }
.soc:hover{ background:#2a1550; border-color:#a855f7; color:#fde047; transform:translateY(-2px); }

/* Category professional icons */
.cat-tile-pro{
  display:grid !important; place-items:center !important;
  background:linear-gradient(145deg,var(--c1),var(--c2)) !important;
  width:62px; height:62px; border-radius:18px;
  box-shadow:0 8px 18px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.25);
}
.cat-svg{
  width:28px; height:28px; display:grid; place-items:center;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.35));
  pointer-events:none;
}
.cat-svg svg{ width:28px; height:28px; display:block; }
.cat.active .cat-tile-pro{
  box-shadow:0 0 0 2px #fde047, 0 8px 20px rgba(251,191,36,.35), inset 0 1px 0 rgba(255,255,255,.3);
}
.cat.active .cat-svg{ transform:scale(1.08); }
a.cat{ text-decoration:none; color:inherit; }

/* ──────────────────────────────────────────────────────────────
   Bottom floating nav — true viewport sticky (not inside transforms)
   ────────────────────────────────────────────────────────────── */
.botnav{
  position:fixed !important;
  bottom:max(10px, env(safe-area-inset-bottom, 0px)) !important;
  left:50% !important;
  right:auto !important;
  transform:translate3d(-50%,0,0) !important;
  z-index:9990 !important;
  display:flex; gap:4px; padding:8px 6px;
  background:rgba(14,6,28,.97);
  /* no backdrop-filter — major mobile scroll jank source */
  border:1px solid rgba(168,85,247,.4); border-radius:999px;
  box-shadow:0 12px 34px rgba(0,0,0,.55);
  width:min(360px, calc(100% - 18px));
  max-width:440px;
  justify-content:space-around;
  min-height:58px;
  pointer-events:auto;
  -webkit-tap-highlight-color:transparent;
}
/* Hide bottom nav on full-screen game shells */
body.is-game .botnav,
body.game-page .botnav,
html.game-shell .botnav{ display:none !important; }
.nav-btn{
  flex:1; display:flex; flex-direction:column; align-items:center; gap:3px;
  padding:8px 4px; border-radius:999px; color:#b9a8d8;
  font-size:10px; font-weight:700;
  transition:.25s;
  background:transparent; border:none; cursor:pointer;
  text-decoration:none;
  min-height:48px; justify-content:center;
}
.nav-btn:hover{ color:#e9d5ff; background:rgba(168,85,247,.12); }
.nav-btn.active{
  background:linear-gradient(180deg,#a855f7,#7c3aed); color:#fff;
  box-shadow:0 4px 14px rgba(168,85,247,.4);
}
.nav-btn svg{ width:20px; height:20px; }
.nav-btn span{ font-size:10px; font-weight:700; line-height:1.1; }

/* ──────────────────────────────────────────────────────────────
   Side FABs
   ────────────────────────────────────────────────────────────── */
.side-fabs{
  position:absolute; right:10px; top:230px; z-index:20;
  display:flex; flex-direction:column; gap:10px;
}
.fab{
  width:40px; height:40px; border-radius:12px 0 0 12px;
  background:linear-gradient(180deg,#2a1550,#160828);
  border:1px solid rgba(168,85,247,.35); border-right:none;
  display:grid; place-items:center; color:#e9d5ff;
  box-shadow:-2px 4px 12px rgba(0,0,0,.4);
  cursor:pointer; text-decoration:none;
  transition:transform .2s, box-shadow .2s, border-color .2s;
  position:relative;
}
.fab:hover{
  transform:translateX(-3px);
  box-shadow:-4px 6px 18px rgba(168,85,247,.4);
  border-color:rgba(168,85,247,.7);
}
.fab.alert .dot{
  position:absolute; width:8px; height:8px; border-radius:50%; background:#ef4444;
  top:-2px; right:-2px; box-shadow:0 0 0 2px #0a0518;
}

/* ──────────────────────────────────────────────────────────────
   Auth forms (login / register)
   ────────────────────────────────────────────────────────────── */
.auth-wrap{
  padding:28px 18px 120px;
  min-height:100dvh;
  display:flex; align-items:center; justify-content:center;
  position:relative; overflow:hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(168,85,247,.28), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(251,191,36,.08), transparent 50%);
}
.auth-orb{
  position:absolute; border-radius:50%; pointer-events:none;
  background:radial-gradient(circle,rgba(253,224,71,.4),transparent 70%);
  animation:authFloat 6s ease-in-out infinite;
}
@keyframes authFloat{
  0%,100%{ transform:translateY(0) scale(1); opacity:.5; }
  50%{ transform:translateY(-16px) scale(1.12); opacity:.85; }
}
.auth-card{
  width:100%; max-width:400px;
  background:linear-gradient(180deg,#1c0c36,#120624 55%,#0d061c);
  border:1px solid rgba(168,85,247,.35);
  border-radius:24px;
  padding:28px 22px 24px;
  box-shadow:0 20px 50px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
  position:relative;
  overflow:hidden;
  z-index:1;
}
.auth-card::before{
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg,#a855f7,#fbbf24,#a855f7);
}
.auth-feats{
  display:flex; gap:8px; justify-content:center; flex-wrap:wrap;
  margin:0 0 18px;
}
.auth-feats span{
  display:inline-flex; align-items:center; gap:5px;
  font-size:10.5px; font-weight:700; color:#e9d5ff;
  padding:6px 11px; border-radius:999px;
  background:rgba(168,85,247,.14); border:1px solid rgba(168,85,247,.3);
}
.auth-feats svg{ width:12px; height:12px; color:#fde047; flex-shrink:0; }
.auth-group{ position:relative; }
.auth-input-wrap{ position:relative; }
.auth-input-wrap .auth-ic{
  position:absolute; top:50%; transform:translateY(-50%);
  inset-inline-start:13px; color:#7a6a9a; pointer-events:none;
  display:flex; transition:color .2s;
}
.auth-input-wrap .auth-input{ padding-inline-start:38px; }
.auth-input-wrap:focus-within .auth-ic{ color:#c084fc; }
.auth-logo-mark{
  width:72px; height:72px; margin:0 auto 14px;
  border-radius:22px;
  display:grid; place-items:center;
  background:linear-gradient(145deg,#a855f7 0%,#7c3aed 45%,#5b21b6 100%);
  box-shadow:0 10px 28px rgba(168,85,247,.5), inset 0 1px 0 rgba(255,255,255,.3);
  position:relative;
}
.auth-logo-mark .mark-7{
  font-family:'Space Grotesk',sans-serif; font-weight:900; font-size:34px;
  color:#fde047; text-shadow:0 2px 0 #b45309, 0 0 18px rgba(253,224,71,.55);
  line-height:1;
}
.auth-logo-row{
  display:flex; align-items:center; justify-content:center; gap:6px;
  margin-bottom:6px;
}
.auth-title{
  font-size:26px; font-weight:900; letter-spacing:.4px;
  background:linear-gradient(180deg,#fff 0%,#e9d5ff 45%,#c084fc 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  margin:0; text-align:center;
}
.auth-sub{ color:#b9a8d8; font-size:13px; margin:6px 0 20px; text-align:center; line-height:1.45; }
.auth-head{ text-align:center; margin-bottom:4px; }
.auth-group{ margin-bottom:14px; }
.auth-label{
  display:block; font-size:12px; color:#e9d5ff; font-weight:600;
  margin-bottom:6px; letter-spacing:.3px;
}
.auth-input{
  width:100%; padding:12px 14px; border-radius:12px;
  background:#0f0720; border:1px solid rgba(168,85,247,.28);
  color:#fff; font-size:14px; font-family:inherit;
  transition:border-color .2s, box-shadow .2s, background .2s;
}
.auth-input:focus{
  outline:none;
  border-color:rgba(168,85,247,.65);
  box-shadow:0 0 0 3px rgba(168,85,247,.22);
  background:#120824;
}
.auth-input::placeholder{ color:#7a6a9a; }
.auth-submit{
  width:100%; padding:13px; margin-top:6px;
  background:linear-gradient(180deg,#a855f7,#7c3aed);
  color:#fff; font-weight:800; font-size:15px; letter-spacing:.3px;
  border:none; border-radius:12px; cursor:pointer;
  box-shadow:0 4px 14px rgba(168,85,247,.45), inset 0 1px 0 rgba(255,255,255,.2);
  transition:transform .2s, filter .2s, box-shadow .2s;
}
.auth-submit:hover{ transform:translateY(-1px); filter:brightness(1.07);
  box-shadow:0 8px 22px rgba(168,85,247,.65), inset 0 1px 0 rgba(255,255,255,.3); }
.auth-submit:active{ transform:translateY(0); }
.auth-alt{
  text-align:center; margin-top:16px; color:#b9a8d8; font-size:13px;
}
.auth-alt a{ color:#fde047; font-weight:700; }
.auth-alt a:hover{ text-decoration:underline; }
.auth-error{
  margin:0 0 14px; padding:10px 12px; border-radius:10px;
  background:rgba(239,68,68,.12); border:1px solid rgba(239,68,68,.4);
  color:#fca5a5; font-size:13px; font-weight:600;
}

/* ──────────────────────────────────────────────────────────────
   Profile / Wallet / History shared cards
   ────────────────────────────────────────────────────────────── */
.panel{
  margin:12px; padding:18px 16px;
  background:linear-gradient(180deg,#190a31,#120624);
  border:1px solid rgba(168,85,247,.25);
  border-radius:18px;
  box-shadow:0 10px 30px rgba(0,0,0,.4);
}
.panel h2, .panel h3{
  margin:0 0 12px; color:#fff; font-weight:700;
}
.panel h2{ font-size:18px; } .panel h3{ font-size:15px; }
.stat-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 0; border-bottom:1px solid rgba(168,85,247,.12);
}
.stat-row:last-child{ border-bottom:none; }
.stat-lbl{ color:#b9a8d8; font-size:13px; }
.stat-val{ color:#fff; font-weight:700; font-size:14px; font-family:'Space Grotesk',sans-serif; }
.stat-val.gold{ color:#fde047; }

.action-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:10px;
  margin:12px;
}
.action-btn{
  padding:14px; border-radius:14px; text-align:center;
  font-weight:800; font-size:14px; letter-spacing:.3px;
  border:1px solid rgba(168,85,247,.35);
  background:linear-gradient(180deg,#2a1550,#190a31);
  color:#e9d5ff; text-decoration:none; cursor:pointer;
  transition:transform .2s, box-shadow .2s, filter .2s;
  display:flex; align-items:center; justify-content:center; gap:8px;
}
.action-btn:hover{ transform:translateY(-2px); filter:brightness(1.08);
  box-shadow:0 8px 22px rgba(168,85,247,.35); }
.action-btn.primary{
  background:linear-gradient(180deg,#a855f7,#7c3aed);
  color:#fff; border-color:transparent;
  box-shadow:0 4px 14px rgba(168,85,247,.45);
}
.action-btn.gold{
  background:linear-gradient(180deg,#fbbf24,#d97706);
  color:#3b0764; border-color:transparent;
  box-shadow:0 4px 14px rgba(251,191,36,.4);
}

/* ──────────────────────────────────────────────────────────────
   Slide-in RTL sidebar drawer (BET 777)
   ────────────────────────────────────────────────────────────── */
.sb-scrim{
  position:fixed; inset:0; z-index:55;
  background:rgba(0,0,0,.65); backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  opacity:0; pointer-events:none; transition:opacity .3s;
}
.sb-scrim.on{ opacity:1; pointer-events:auto; }
.sb{
  position:fixed; top:0; right:0; bottom:0; z-index:60;
  width:min(320px, 82%);
  background:linear-gradient(180deg,#1a0b2e 0%, #0f0720 100%);
  border-left:1px solid rgba(168,85,247,.3);
  box-shadow:-20px 0 60px rgba(0,0,0,.6);
  transform:translateX(100%); transition:transform .35s cubic-bezier(.4,.02,.2,1);
  overflow-y:auto; overflow-x:hidden;
  padding-bottom:20px;
  direction:rtl;
}
.sb.on{ transform:translateX(0); }
.sb-head{
  position:sticky; top:0; z-index:2;
  display:flex; align-items:center; gap:10px; justify-content:space-between;
  padding:12px 14px;
  background:linear-gradient(180deg,rgba(26,11,46,.95),rgba(26,11,46,.85));
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(168,85,247,.15);
}
.sb-close{
  width:36px; height:36px; border-radius:10px; display:grid; place-items:center;
  background:linear-gradient(180deg,#2a1550,#160828);
  border:1px solid rgba(168,85,247,.35); color:#e9d5ff; cursor:pointer;
  transition:background .2s, border-color .2s, transform .15s;
}
.sb-close:hover{ transform:translateX(2px); border-color:rgba(168,85,247,.6); }
.sb-user{
  margin:12px; padding:12px;
  border-radius:14px;
  background:linear-gradient(135deg, rgba(168,85,247,.18), rgba(236,72,153,.08));
  border:1px solid rgba(168,85,247,.28);
  display:flex; align-items:center; gap:10px;
}
.sb-av{
  width:40px; height:40px; border-radius:50%;
  background:linear-gradient(135deg,#f97316,#c2410c);
  display:grid; place-items:center; color:#fff; font-weight:700;
  border:2px solid rgba(253,224,71,.5);
  flex-shrink:0;
}
.sb-name{ font-size:13px; font-weight:700; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sb-vip{ font-size:10px; color:#22d3ee; margin-inline-start:4px; }
.sb-id{ font-size:11px; color:#b9a8d8; margin-top:2px; direction:ltr; text-align:start; unicode-bidi:isolate; }
.sb-bal-wrap{ text-align:start; flex-shrink:0; }
.sb-bal-lbl{ font-size:10px; color:#b9a8d8; text-align:start; }
.sb-bal{ font-size:13px; font-weight:700; color:#fde047; direction:ltr; text-align:start; unicode-bidi:isolate; }
.sb-name{ text-align:right; }

.sb-tiles{
  display:grid; grid-template-columns:repeat(2,1fr); gap:10px;
  padding:0 12px;
}
.sb-tile{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  padding:14px 8px; border-radius:14px;
  background:linear-gradient(180deg,#23113f,#190a31);
  border:1px solid rgba(168,85,247,.25);
  color:#fff; font-size:12px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  transition:.2s; cursor:pointer; text-decoration:none;
}
.sb-tile:hover{
  transform:translateY(-2px);
  border-color:rgba(168,85,247,.55);
  box-shadow:0 8px 20px rgba(168,85,247,.25);
}
.sb-tile:active{ transform:scale(.96); }
.sb-tile-ic{
  width:48px; height:48px; border-radius:14px;
  display:grid; place-items:center; font-size:24px;
  box-shadow:0 6px 14px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.28);
  color:#fff;
  position:relative;
}
.sb-emoji{
  font-size:26px; line-height:1;
  display:block !important;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.3));
  position:relative; z-index:2;
}
.sb-tile-lbl{ font-size:11px; color:#e9d5ff; font-weight:600; text-align:center; line-height:1.2; }

.sb-divider{
  height:1px; margin:16px 16px 12px;
  background:linear-gradient(90deg, transparent, rgba(168,85,247,.4), transparent);
}
.sb-acct{
  display:flex; align-items:center; justify-content:space-between;
  margin:0 12px; padding:12px 14px;
  background:linear-gradient(135deg,#4c1d95,#6d28d9);
  border:1px solid rgba(168,85,247,.5);
  border-radius:12px; color:#fff; font-weight:600; font-size:14px;
  cursor:pointer; border-width:1px; border-style:solid;
  transition:filter .2s;
}
.sb-acct:hover{ filter:brightness(1.08); }
.sb-acct-left{ display:flex; align-items:center; gap:10px; }
.sb-acct-ic{
  width:24px; height:24px; border-radius:50%;
  background:rgba(255,255,255,.2); display:grid; place-items:center;
  color:#fff;
}
.sb-acct-ic svg{ width:13px; height:13px; }
.sb-acct svg{ transition:.25s; }
.sb-links{
  max-height:0; overflow:hidden; transition:max-height .35s ease;
  margin:0 12px;
}
.sb-links.on{ max-height:600px; }
.sb-link{
  display:flex; align-items:center; gap:12px;
  padding:12px 14px;
  border-bottom:1px solid rgba(168,85,247,.12);
  color:#c4b5fd; font-size:13px; font-weight:500;
  cursor:pointer; text-decoration:none;
  transition:color .2s, background .2s;
}
.sb-link:last-child{ border-bottom:none; }
.sb-link:hover{ color:#fde047; background:rgba(168,85,247,.08); }
.sb-link-ic{ width:24px; text-align:center; font-size:14px; }

/* Legacy old-sidebar fallback */
.mobile-sidebar{
  background:linear-gradient(180deg,#0f0720 0%,#090415 100%) !important;
  border-right:1px solid rgba(168,85,247,.18) !important;
}
.mobile-sidebar a:hover{
  color:#fde047 !important;
  background:rgba(168,85,247,.08) !important;
}

/* ──────────────────────────────────────────────────────────────
   Helpers for PHP-integrated wallet + auth banner
   ────────────────────────────────────────────────────────────── */
.auth-ban{
  margin:12px; padding:18px 16px; border-radius:18px;
  background:
    radial-gradient(100% 180% at 0% 0%, rgba(251,191,36,.18), transparent 50%),
    linear-gradient(135deg,#4c1d95,#7c2d92);
  border:1px solid rgba(253,224,71,.25);
  text-align:center;
}
.auth-ban h2{
  margin:0 0 6px; font-size:22px; font-weight:800;
  background:linear-gradient(180deg,#fde047,#f59e0b);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.auth-ban p{ margin:0 0 14px; color:#e9d5ff; font-size:13px; line-height:1.5; }
.auth-ban .acts{ display:flex; gap:10px; justify-content:center; }
.auth-ban .acts a{
  padding:10px 20px; border-radius:10px; font-weight:800; font-size:13px;
  text-decoration:none; letter-spacing:.3px;
  transition:transform .2s, filter .2s, box-shadow .2s;
}
.auth-ban .acts .bg{
  background:linear-gradient(180deg,#fbbf24,#d97706); color:#3b0764;
  box-shadow:0 4px 14px rgba(251,191,36,.4);
}
.auth-ban .acts .bo{
  background:rgba(255,255,255,.1); color:#fff;
  border:1px solid rgba(255,255,255,.3);
}
.auth-ban .acts a:hover{ transform:translateY(-1px); filter:brightness(1.07); }

/* Scroll-to-top floating FAB (from old app, restyled) */
.fab-top{
  position:fixed; bottom:84px; right:14px; z-index:35;
  width:42px; height:42px; border-radius:14px;
  background:linear-gradient(180deg,#a855f7,#6d28d9);
  color:#fff; display:grid; place-items:center;
  border:none; cursor:pointer;
  box-shadow:0 6px 18px rgba(168,85,247,.5);
  transition:transform .2s, filter .2s;
}
.fab-top:hover{ transform:translateY(-2px); filter:brightness(1.08); }

/* Hide old theme remnants if pages load both CSS files */
body.z-theme .hdr,
body.z-theme .bnav,
body.z-theme .hero-banner,
body.z-theme .cats.old { display:none !important; }

/* Noto Nastaliq fallback for Urdu labels */
@font-face{ font-family:'Hind'; font-display:swap; }

/* Small screens: tighter padding */
@media (max-width:380px){
  .hero{ max-height:180px; aspect-ratio:2 / 1; }
  .slide-title{ font-size:22px; }
  .cat .tile{ width:58px; height:58px; }
}

/* ──────────────────────────────────────────────────────────────
   Themed scrollbars (purple/gold casino)
   ────────────────────────────────────────────────────────────── */
.z-theme, .z-theme *{
  scrollbar-width: thin;
  scrollbar-color: #a855f7 #120624;
}
.z-theme::-webkit-scrollbar,
.z-theme *::-webkit-scrollbar{ width:6px; height:6px; }
.z-theme::-webkit-scrollbar-track,
.z-theme *::-webkit-scrollbar-track{
  background:#120624; border-radius:999px;
}
.z-theme::-webkit-scrollbar-thumb,
.z-theme *::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,#a855f7,#7c3aed);
  border-radius:999px; border:1px solid rgba(251,191,36,.25);
}
.z-theme::-webkit-scrollbar-thumb:hover,
.z-theme *::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg,#c084fc,#a855f7);
}

/* Horizontal category strip scrollbar */
.cats{
  scrollbar-width: thin;
  scrollbar-color: #fbbf24 transparent;
  padding-bottom:6px;
}
.cats::-webkit-scrollbar{ height:4px; }
.cats::-webkit-scrollbar-track{ background:transparent; }
.cats::-webkit-scrollbar-thumb{
  background:linear-gradient(90deg,#fbbf24,#a855f7);
  border-radius:999px;
}

/* Shared page hero */
.page-hero{
  text-align:center; padding:18px 16px 8px;
}
.page-hero-ic{
  width:56px; height:56px; margin:0 auto 12px; border-radius:18px;
  display:grid; place-items:center;
  background:linear-gradient(145deg,#2a1550,#160828);
  border:1px solid rgba(168,85,247,.4);
  box-shadow:0 8px 22px rgba(168,85,247,.28), inset 0 1px 0 rgba(255,255,255,.08);
}
.page-hero h1{
  margin:0 0 4px; font-size:22px; font-weight:900; color:#fff;
  background:linear-gradient(180deg,#fff,#e9d5ff 50%,#c084fc);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.page-hero p{ margin:0; color:#b9a8d8; font-size:13px; }

/* Sidebar professional SVG icons — force white visible glyphs */
.sb-tile-ic{
  color:#fff !important;
  position:relative;
}
.sb-tile-ic .sb-svg,
.sb-link-ic .sb-svg,
.sb-acct-ic .sb-svg{
  display:flex !important; align-items:center; justify-content:center;
  width:26px; height:26px;
  color:#fff !important;
  opacity:1 !important; visibility:visible !important;
}
.sb-tile-ic .sb-svg svg{
  width:24px !important; height:24px !important;
  display:block !important;
  stroke:#ffffff !important;
  color:#fff !important;
  overflow:visible;
}
.sb-tile-ic .sb-svg svg path,
.sb-tile-ic .sb-svg svg circle,
.sb-tile-ic .sb-svg svg rect,
.sb-tile-ic .sb-svg svg line,
.sb-tile-ic .sb-svg svg polyline,
.sb-tile-ic .sb-svg svg polygon{
  stroke:#ffffff !important;
  fill:none !important;
  stroke-width:2.2 !important;
  opacity:1 !important;
}
.sb-link-ic{
  width:30px; height:30px; border-radius:8px;
  background:rgba(168,85,247,.18); border:1px solid rgba(168,85,247,.28);
  display:grid; place-items:center; flex-shrink:0; color:#e9d5ff;
}
.sb-link-ic .sb-svg svg{ width:16px !important; height:16px !important; stroke:#e9d5ff !important; }
.sb-link-ic .sb-svg svg path,
.sb-link-ic .sb-svg svg circle,
.sb-link-ic .sb-svg svg rect,
.sb-link-ic .sb-svg svg line,
.sb-link-ic .sb-svg svg polyline{ stroke:#e9d5ff !important; fill:none !important; }
.sb-acct-ic{
  width:28px; height:28px; border-radius:8px;
  background:rgba(168,85,247,.18); display:grid; place-items:center;
}
.sb-acct-ic .sb-svg svg{ width:16px; height:16px; color:#fde047; stroke:#fde047 !important; }
.sb-tile-ic .sb-emoji{ display:block !important; }
.sb-tile-ic span:not(.sb-svg):not(.sb-emoji){ display:none; }

/* Alert banners */
.alert-ok{
  margin:12px; padding:12px 14px; border-radius:12px;
  background:rgba(34,197,94,.14); border:1px solid rgba(34,197,94,.4);
  color:#86efac; font-size:13px; font-weight:600;
}
.alert-err{
  margin:12px; padding:12px 14px; border-radius:12px;
  background:rgba(239,68,68,.12); border:1px solid rgba(239,68,68,.4);
  color:#fca5a5; font-size:13px; font-weight:600;
}

/* Method cards polish */
.m-card .ic svg{ width:22px; height:22px; }
.up-zone .up-svg{ width:40px; height:40px; margin:0 auto 8px; color:#a855f7; }

/* Mobile smoothness pass � cut GPU cost on phones */
@media (max-width:760px){
  .topbar{
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    background:rgba(10,4,24,.96)!important;
  }
  .drawer,.sheet,.modal-bg,.overlay,.glass{
    backdrop-filter:blur(2px)!important;
    -webkit-backdrop-filter:blur(2px)!important;
  }
  .hero-orb,.float-orb,.bg-glow,.ambient{display:none!important}
  .card,.gc,.game-tile{box-shadow:0 6px 18px rgba(0,0,0,.28)!important}
}
