/* ═══════════════════════════════════════════════════
   LIANGMAI — style-additions.css (COMPLETE)
   All frontend styles — self-contained
   ═══════════════════════════════════════════════════ */

*{box-sizing:border-box;margin:0;padding:0;}
html,body{margin:0;padding:0;}
/* Global page background: soft translucent sky-blue (same hue as the floating
   bottom nav). Dark mode keeps its own black background further below. */
:root{--sky-bg:radial-gradient(90% 46% at 10% 0%,rgba(255,255,255,.78) 0%,rgba(255,255,255,0) 62%),radial-gradient(80% 42% at 100% 100%,rgba(59,130,246,.34) 0%,rgba(59,130,246,0) 66%),linear-gradient(180deg,#CFE3FF 0%,#ABCDFF 48%,#8DBBFF 100%);}
html{background:#ABCDFF;}
body{font-family:'Segoe UI',system-ui,sans-serif;background:var(--sky-bg);background-attachment:fixed;background-repeat:no-repeat;background-size:cover;color:#1E293B;min-height:100vh;}
a{text-decoration:none;color:inherit;}
button{font-family:inherit;cursor:pointer;}

/* ── PAGE WRAP ───────────────────────────── */
.page-wrap{max-width:480px;margin:0 auto;min-height:100vh;background:transparent;position:relative;}
@media (min-width:900px){
  .page-wrap{box-shadow:0 0 70px rgba(30,41,59,.14);}
}
@media (min-width:900px){
  html.dark-mode body{background:linear-gradient(135deg,#050505,#0A0A0A);}
  html.dark-mode .page-wrap{box-shadow:0 0 70px rgba(0,0,0,.6);}
}

/* ── NAVBAR ──────────────────────────────── */
.navbar{background:rgba(255,255,255,.58);backdrop-filter:blur(18px) saturate(1.5);-webkit-backdrop-filter:blur(18px) saturate(1.5);border-bottom:1px solid rgba(255,255,255,.7);position:sticky;top:0;z-index:200;}
.navbar-inner{display:flex;align-items:center;gap:10px;padding:10px 14px;height:58px;}
.hamburger-btn{background:#0F172A;border:none;border-radius:10px;width:40px;height:40px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;flex-shrink:0;padding:9px;}
.hamburger-btn span{display:block;width:20px;height:2.5px;background:#fff;border-radius:2px;}
.nav-logo-icon{width:34px;height:34px;background:#0F172A;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:14px;font-weight:900;flex-shrink:0;}
.nav-brand-text{font-size:16px;font-weight:900;color:#1E293B;letter-spacing:.5px;flex:1;}
.login-pill{background:#2563EB;color:#fff;font-size:13px;font-weight:700;padding:8px 18px;border-radius:24px;flex-shrink:0;}
.avatar-btn{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#3B82F6,#1D4ED8);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:14px;flex-shrink:0;}

/* ── BANNER ──────────────────────────────── */
.banner-wrap{padding:14px 16px 0;}
.banner-slider{position:relative;border-radius:20px;overflow:hidden;box-shadow:0 8px 24px rgba(15,23,42,.1);}
.banner-track{display:flex;transition:transform .45s cubic-bezier(.4,0,.2,1);}
.banner-slide{min-width:100%;flex-shrink:0;min-height:200px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:32px 24px;position:relative;overflow:hidden;}
.banner-slide-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.banner-slide-overlay{position:absolute;inset:0;background:rgba(0,0,0,.3);z-index:1;}
.banner-slide-content{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;}
.banner-emoji{font-size:46px;margin-bottom:10px;display:block;}
.banner-title{font-size:22px;font-weight:900;color:#fff;margin-bottom:6px;}
.banner-sub{font-size:13px;color:rgba(255,255,255,.9);margin-bottom:16px;}
.banner-btn{background:rgba(255,255,255,.95);color:#1D4ED8;font-weight:800;font-size:13px;padding:10px 26px;border-radius:24px;text-decoration:none;display:inline-block;}
.banner-dots{display:flex;justify-content:center;gap:6px;padding:12px 0 2px;}
.banner-dot{width:6px;height:6px;border-radius:50%;background:#CBD5E1;cursor:pointer;transition:all .3s;}
.banner-dot.active{background:#2563EB;width:20px;border-radius:4px;}

/* ── QUICK ACTIONS ───────────────────────── */
.quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;padding:16px;}
.quick-action{background:transparent;padding:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;text-decoration:none;transition:transform .15s ease;}
.quick-action:hover,.quick-action:active{transform:translateY(-3px);}
.quick-action-icon{width:60px;height:60px;border-radius:20px;background:linear-gradient(155deg,#ffffff,#eef1f6);display:flex;align-items:center;justify-content:center;color:#2563EB;box-shadow:0 12px 22px rgba(15,23,42,.14),0 4px 8px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.95),inset 0 -3px 5px rgba(15,23,42,.05);transition:box-shadow .15s ease,transform .15s ease;}
.quick-action-icon svg{width:26px;height:26px;}
.quick-action:hover .quick-action-icon,.quick-action:active .quick-action-icon{box-shadow:0 16px 28px rgba(37,99,235,.25),0 6px 12px rgba(37,99,235,.16),inset 0 1px 0 rgba(255,255,255,.95),inset 0 -3px 5px rgba(15,23,42,.05);}
.quick-action-label{font-size:11.5px;font-weight:800;color:#1E293B;text-align:center;margin:0;}

/* ── SECTION HEADER ──────────────────────── */
.section-header{display:flex;align-items:center;justify-content:space-between;padding:10px 16px 12px;}
.section-title-group{display:flex;align-items:center;gap:10px;}
.section-icon-badge{width:42px;height:42px;border-radius:12px;background:#EFF6FF;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0;}
.section-title{font-size:16px;font-weight:800;color:#1E293B;margin:0;}
.section-subtitle{font-size:11px;font-weight:600;color:#94A3B8;text-transform:uppercase;letter-spacing:.5px;margin:0;}
.live-clock{font-size:12px;font-weight:700;color:#2563EB;background:#EFF6FF;padding:5px 10px;border-radius:20px;}

/* ── GAME GRID ───────────────────────────── */
/* ── Product grid (tile design) ─────────────────────────────
   Grid background is transparent so it follows the site's own
   light / dark switcher. Each tile: big close-up image, a soft dark
   glow rising from the bottom of the image, small text on top of it. */
.game-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(8px,2.4vw,16px);padding:0;margin:4px 14px 12px;background:transparent;border:0;border-radius:0;box-shadow:none;}
.game-card{container-type:inline-size;position:relative;display:block;background:#0A0D14;border:2px solid #303845;border-radius:clamp(10px,2.8vw,20px);overflow:hidden;text-decoration:none;box-shadow:0 6px 16px rgba(2,6,23,.22);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;-webkit-tap-highlight-color:transparent;}
.game-card:hover,.game-card:active{transform:translateY(-2px);border-color:#4B5A78;box-shadow:0 10px 22px rgba(2,6,23,.32),0 0 0 1px rgba(96,165,250,.18);}
html.dark-mode .game-card{border-color:#232A38;box-shadow:0 6px 16px rgba(0,0,0,.55);}
html.dark-mode .game-card:hover,html.dark-mode .game-card:active{border-color:#3B4A66;}
/* image: taller + zoomed in for a close-up look */
.game-card-img{width:100%;aspect-ratio:1/1.08;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;border-bottom:0;}
.game-card-img>img{transform:scale(1.04);transition:transform .35s ease;}
.game-card:hover .game-card-img>img{transform:scale(1.1);}
/* dark glow rising from the bottom of the image */
.game-card-img::after{content:"";position:absolute;left:0;right:0;bottom:0;height:55%;background:linear-gradient(to top,#0A0D14 0%,rgba(10,13,20,.9) 22%,rgba(10,13,20,.45) 55%,rgba(10,13,20,0) 100%);pointer-events:none;z-index:1;}
.game-card-emoji{font-size:34px;filter:drop-shadow(0 3px 6px rgba(0,0,0,.35));position:relative;z-index:0;}
.game-card-badge{position:absolute;z-index:3;top:6px;left:6px;font-size:7px;font-weight:800;padding:2px 6px;border-radius:6px;color:#fff;text-transform:uppercase;background:rgba(0,0,0,.55);}
/* text sits on the glow, small */
.game-card-body{position:relative;z-index:2;margin-top:-10px;background:transparent;padding:0 7px 9px;min-height:2.6em;text-align:left;}
.game-card-title{display:block;min-height:0;text-align:left;margin:0;color:#fff;font-weight:700;font-size:8.5px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 3px rgba(0,0,0,.6);}
.game-card-sub{display:block;text-align:left;margin:1px 0 0;color:#B9BFCA;font-weight:400;font-size:7.5px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:1.25em;}
@supports (width:1cqw){
  .game-card-body{margin-top:-11cqw;padding:0 max(6px,6cqw) max(7px,6.5cqw);}
  .game-card-title{font-size:max(8.5px,7.4cqw);}
  .game-card-sub{font-size:max(7.5px,6.2cqw);margin-top:max(1px,1cqw);}
  .game-card-badge{font-size:max(6.5px,5.2cqw);padding:.25em .6em;top:max(5px,3cqw);left:max(5px,3cqw);}
  .game-card-emoji{font-size:max(26px,26cqw);}
}
/* Out of stock */
.game-card.is-oos{cursor:not-allowed;}
.game-card.is-oos:hover,.game-card.is-oos:active{transform:none;border-color:#303845;}
.game-card.is-oos .game-card-img>img,.game-card.is-oos .game-card-emoji{filter:grayscale(1) brightness(.45);}
.game-card.is-oos:hover .game-card-img>img{transform:scale(1.04);}
.game-card-oos{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%) rotate(-8deg);background:rgba(220,38,38,.94);color:#fff;font-weight:800;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap;border-radius:6px;padding:.35em .7em;font-size:7.5px;box-shadow:0 2px 8px rgba(0,0,0,.45);z-index:3;}
@supports (width:1cqw){ .game-card-oos{font-size:max(7px,6.4cqw);} }

/* ── BOTTOM NAV ──────────────────────────── */
.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;background:#fff;border-top:1px solid #E2E8F0;display:flex;align-items:center;justify-content:space-around;padding:8px 0 14px;z-index:150;}
.bottom-nav-item{display:flex;flex-direction:column;align-items:center;gap:3px;flex:1;text-decoration:none;padding:4px 0;}
.bottom-nav-icon{font-size:20px;}
.bottom-nav-label{font-size:10px;font-weight:700;color:#94A3B8;}
.bottom-nav-item.active .bottom-nav-label{color:#2563EB;}
.bottom-nav-center{width:54px;height:54px;border-radius:50%;background:linear-gradient(135deg,#3B82F6,#1D4ED8);display:flex;align-items:center;justify-content:center;font-size:22px;margin-top:-22px;box-shadow:0 4px 14px rgba(37,99,235,.35);flex-shrink:0;}

/* ── MENU OVERLAY ────────────────────────── */

/* ── SIDE MENU ───────────────────────────── */

/* Wallet card */

/* Guest promo */

.dash-qa{display:flex;flex-direction:column;align-items:center;gap:6px;text-decoration:none;background:linear-gradient(135deg,#3B82F6,#1D4ED8);border-radius:14px;padding:14px 6px;box-shadow:0 4px 14px rgba(37,99,235,.28);transition:transform .15s;}
.dash-qa:active{transform:scale(.96);}
.dash-qa-icon{font-size:22px;}
.dash-qa-label{font-size:11px;font-weight:800;color:#fff;}

/* ── SHARED DARK SHIMMER BANNER ─────────────
   Same look used on the leaderboard's "🏆 TOP RANKING" header - reusable
   anywhere a matching dark banner headline is needed (e.g. home page). */
.banner-dark-shimmer-font{font-family:'Orbitron',sans-serif;letter-spacing:1px;}
.banner-dark-shimmer{position:relative;overflow:hidden;border-radius:18px;padding:16px 20px;text-align:center;margin:16px 16px 20px;background:linear-gradient(135deg,#1E293B,#0F172A);border:1px solid #2A2A2A;text-decoration:none;display:block;}
.banner-dark-shimmer::before{content:'';position:absolute;inset:0;background:linear-gradient(115deg,transparent 30%,rgba(226,232,240,.55) 48%,rgba(255,255,255,.9) 50%,rgba(226,232,240,.55) 52%,transparent 70%);background-size:250% 250%;animation:bdsSweep 5s ease-in-out infinite;}
@keyframes bdsSweep{0%{background-position:120% -20%;}45%{background-position:-20% 120%;}55%{background-position:-20% 120%;}100%{background-position:120% -20%;}}
.banner-dark-shimmer-text{position:relative;z-index:1;color:#F8FAFC;font-size:15px;font-weight:800;}

/* ── WALLET BALANCE SHIMMER ──────────────────
   Same 6s left-to-right sweep as the leaderboard podium, running inside
   the card fill (not on the border), used behind the balance amount. */
.wallet-balance-card{position:relative;overflow:hidden;}
.wallet-balance-card::after{content:'';position:absolute;inset:0;background-image:linear-gradient(90deg,transparent,transparent 35%,rgba(255,255,255,.25) 50%,transparent 65%,transparent);background-size:250% 100%;animation:bdsSweep2 6s linear infinite;pointer-events:none;}
@keyframes bdsSweep2{0%{background-position:120% 0;}100%{background-position:-120% 0;}}
.wallet-balance-card>*{position:relative;z-index:1;}

/* ── CENTERED SECTION HEADER (reusable) ──────
   For full centered headline+description sections like "Why Choose Us".
   Different pattern from .section-header (which is left-aligned with an
   icon badge, used for horizontal list headers like Popular Games). */
.center-section-title{font-size:21px;font-weight:900;color:#1E293B;text-align:center;margin-bottom:8px;}
.center-section-desc{font-size:13px;color:#64748B;text-align:center;line-height:1.6;max-width:340px;margin:0 auto 24px;}

/* ── WHY CHOOSE US - FEATURE CARDS ────────────
   .card never existed anywhere in the stylesheet before, so these
   rendered with zero box styling at all. Every card (including any new
   one an admin adds via store_features) gets this treatment automatically
   since it comes from a foreach loop, not individual markup. */
.wc-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.wc-card{background:#fff;border:1px solid #E5E9F2;border-radius:18px;padding:24px 16px;text-align:center;box-shadow:0 1px 4px rgba(15,23,42,.06);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;}
.wc-card:hover{transform:translateY(-3px);border-color:#BFDBFE;box-shadow:0 0 0 3px rgba(37,99,235,.12),0 10px 22px rgba(37,99,235,.15);}
.wc-card-icon{width:56px;height:56px;margin:0 auto 12px;border-radius:16px;background:linear-gradient(135deg,#EFF6FF,#DCEAFE);display:flex;align-items:center;justify-content:center;font-size:26px;box-shadow:inset 0 0 0 1px rgba(37,99,235,.12);transition:transform .2s ease;}
.wc-card:hover .wc-card-icon{transform:scale(1.08);}
.wc-card-title{font-size:14px;font-weight:800;color:#1E293B;margin-bottom:6px;line-height:1.3;}
.wc-card-desc{font-size:12px;color:#64748B;line-height:1.6;}

/* ── THEME TOGGLE BUTTON ──────────────────── */
.theme-toggle-btn{width:36px;height:36px;border-radius:50%;background:#F1F5F9;border:1px solid #E2E8F0;display:flex;align-items:center;justify-content:center;color:#1E293B;flex-shrink:0;cursor:pointer;margin-right:2px;transition:background .2s ease;}
.theme-toggle-btn svg{width:19px;height:19px;}
.theme-toggle-btn:hover{background:#E2E8F0;}

/* ══════════════════════════════════════════════════════════════
   DARK MODE
   Scope: swap white/light backgrounds to dark surfaces only.
   Untouched on purpose: gradients, button colors, badge colors,
   icon stroke colors, brand colors, shimmer effects.
   Loose text that sat directly on a white/light background is
   flipped to a light color so it stays readable; text that already
   sits inside a colored button/badge is left exactly as it was.
   ══════════════════════════════════════════════════════════════ */
html.dark-mode{background:#000000;}
html.dark-mode body{background:#000000;color:#E2E8F0;}

/* Top navbar */
html.dark-mode .navbar{background:#0A0A0A;border-bottom-color:#1A1A1A;}
html.dark-mode .nav-brand-text{color:#F1F5F9;}
html.dark-mode .theme-toggle-btn{background:#1A1A1A;border-color:#2A2A2A;color:#F1F5F9;}
html.dark-mode .theme-toggle-btn:hover{background:#2A2A2A;}

/* Bottom floating nav (frosted white pill -> dark pill; button colors
   and the active blue circle are untouched) */

/* Section headers */
html.dark-mode .section-title,
html.dark-mode .center-section-title{color:#F1F5F9;}
html.dark-mode .section-subtitle,
html.dark-mode .center-section-desc{color:#94A3B8;}
html.dark-mode .section-icon-badge{background:#1A1A1A;}

/* Quick action tiles (white -> dark surface) */
html.dark-mode .quick-action-icon{background:linear-gradient(155deg,#1D1D22,#0D0D10);box-shadow:0 12px 22px rgba(0,0,0,.6),0 4px 8px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.06),inset 0 -3px 5px rgba(0,0,0,.55);color:#60A5FA;}
html.dark-mode .quick-action:hover .quick-action-icon,html.dark-mode .quick-action:active .quick-action-icon{box-shadow:0 16px 28px rgba(96,165,250,.28),0 6px 12px rgba(96,165,250,.18),inset 0 1px 0 rgba(255,255,255,.08),inset 0 -3px 5px rgba(0,0,0,.55);}
html.dark-mode .quick-action-label{color:#E2E8F0;}

/* Why Choose Us cards */
html.dark-mode .wc-card{background:#0A0A0A;border-color:#1A1A1A;}
html.dark-mode .wc-card-title{color:#F1F5F9;}
html.dark-mode .wc-card-desc{color:#94A3B8;}
html.dark-mode .wc-card-icon{background:linear-gradient(135deg,#1A1A1A,#0A0A0A);box-shadow:inset 0 0 0 1px #2A2A2A;}

/* Game / product cards (image + button colors untouched) */

/* Leaderboard - plain text only; medal/shimmer gradients untouched
   since those are intentional RGB colors, not backgrounds */
html.dark-mode .lb-pname{color:#F1F5F9;}
html.dark-mode .lb-row{background:linear-gradient(180deg,#161F2E,#0A0A0A);border-color:#1A1A1A;}
html.dark-mode .lb-row-name{color:#F1F5F9;}
html.dark-mode .lb-row-rank{color:#94A3B8;}

/* Wallet page plain text sitting on the page background (not the blue
   balance card itself, which already has its own intentional colors) */
html.dark-mode .wbal-sub{color:#CBD5E1;}
html.dark-mode .page-wrap{background:#000000;}

/* ── DARK MODE, EXPANDED COVERAGE ─────────────
   Orders, Wallet, Shop/game page, side menu, login/register.
   Same rule as before: only backgrounds swap; button/badge/icon
   colors are untouched; plain text on a swapped background flips
   to a light color for readability. */

/* Orders page */
html.dark-mode .card{background:#0A0A0A;border-color:#1A1A1A;}
html.dark-mode .order-card{background:#0A0A0A;}
html.dark-mode .order-row{border-color:#1A1A1A;}
html.dark-mode .order-key{color:#94A3B8;}
html.dark-mode .order-val{color:#F1F5F9;}
html.dark-mode h1,html.dark-mode h2.section-title{color:#F1F5F9;}

/* Wallet page - Add Money box + Transaction history (the blue balance
   card already has its own intentional gradient, untouched) */
html.dark-mode .add-money-section{background:#0A0A0A;}
html.dark-mode .am-title{color:#F1F5F9;}
html.dark-mode .amount-chip{background:#1A1A1A;border-color:#2A2A2A;}
html.dark-mode .amount-inp-label{color:#94A3B8;}
html.dark-mode .amount-inp{background:#000000;border-color:#2A2A2A;color:#F1F5F9;}
html.dark-mode .txn-card{background:#0A0A0A;}
html.dark-mode .txn-text{color:#F1F5F9;}
html.dark-mode .txn-title{color:#F1F5F9;}

/* Shop / game order page */
html.dark-mode .section-box{background:#0A0A0A;border-color:#1A1A1A;}
html.dark-mode .section-label{color:#94A3B8;}
html.dark-mode .inp-f{background:#000000;border-color:#2A2A2A;color:#F1F5F9;}

/* Side menu drawer */

/* Login / Register pages */
html.dark-mode .auth-wrap{background:linear-gradient(180deg,#000000 0%,#0F172A 35%);}
html.dark-mode .auth-card{background:#0A0A0A;box-shadow:0 20px 60px rgba(0,0,0,.5);}

/* ── SITE-WIDE SCROLL REVEAL ────────────────────────────────────────────
   Cards, section headers, and buttons fade + rise into place on first
   paint and as the user scrolls them into view. See the reveal script
   at the bottom of includes/footer.php for the JS that toggles
   .reveal-show. */
.reveal-init{
  opacity:0;
  transform:translateY(26px);
  transition:opacity .6s cubic-bezier(.16,.84,.44,1), transform .6s cubic-bezier(.16,.84,.44,1);
  will-change:opacity, transform;
}
.reveal-init.reveal-show{
  opacity:1;
  transform:translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal-init{ opacity:1; transform:none; transition:none; }
}


/* ═════════ FLOATING GLASS MENU (side drawer) ═════════
   Floats with a gap from the screen edges, translucent blurred glass,
   blue accent. Light mode = frosted white, dark mode (html.dark-mode) =
   frosted dark. All colours come from the variables below. */
.menu-overlay{position:fixed;inset:0;background:rgba(2,6,23,.42);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);z-index:400;opacity:0;pointer-events:none;transition:opacity .3s;}
.menu-overlay.open{opacity:1;pointer-events:all;}
html.dark-mode .menu-overlay{background:rgba(0,0,0,.6);}
.side-menu{--sm-text:#0F172A;--sm-sub:#64748B;--sm-line:rgba(15,23,42,.09);--sm-tile:rgba(255,255,255,.55);--sm-icon:#2563EB;--sm-row:rgba(37,99,235,.10);
  position:fixed;top:12px;bottom:12px;left:12px;width:min(340px,calc(100vw - 36px));box-sizing:border-box;z-index:500;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;scrollbar-width:none;
  border-radius:34px;border:1px solid rgba(255,255,255,.7);
  background:radial-gradient(120% 42% at 0% 0%,rgba(96,165,250,.38),rgba(96,165,250,0) 65%),radial-gradient(110% 38% at 100% 100%,rgba(37,99,235,.26),rgba(37,99,235,0) 65%),rgba(255,255,255,.74);
  backdrop-filter:blur(26px) saturate(1.6);-webkit-backdrop-filter:blur(26px) saturate(1.6);
  box-shadow:0 26px 60px rgba(15,23,42,.30),inset 0 1px 0 rgba(255,255,255,.7);
  transform:translateX(calc(-100% - 24px));opacity:0;visibility:hidden;transition:transform .38s cubic-bezier(.32,.72,0,1),opacity .28s ease,visibility 0s linear .38s;}
.side-menu::-webkit-scrollbar{display:none;}
.side-menu.open{transform:translateX(0);opacity:1;visibility:visible;transition:transform .38s cubic-bezier(.32,.72,0,1),opacity .28s ease,visibility 0s;}
html.dark-mode .side-menu{--sm-text:#F1F5F9;--sm-sub:#94A3B8;--sm-line:rgba(255,255,255,.09);--sm-tile:rgba(255,255,255,.07);--sm-icon:#60A5FA;--sm-row:rgba(96,165,250,.14);
  border-color:rgba(255,255,255,.11);
  background:radial-gradient(120% 42% at 0% 0%,rgba(59,130,246,.34),rgba(59,130,246,0) 65%),radial-gradient(110% 38% at 100% 100%,rgba(37,99,235,.30),rgba(37,99,235,0) 65%),rgba(8,11,20,.74);
  box-shadow:0 26px 60px rgba(0,0,0,.65),inset 0 1px 0 rgba(255,255,255,.08);}

.side-menu-header{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:28px 22px 16px;border-bottom:1px solid var(--sm-line);}
.side-menu-who{min-width:0;flex:1;}
.side-menu-welcome-label{font-size:15px;color:var(--sm-sub);font-weight:500;margin:0 0 3px;}
.side-menu-welcome-name{font-size:25px;line-height:1.15;font-weight:800;color:var(--sm-text);margin:0;word-break:break-word;}
.side-menu-avatar{width:54px;height:54px;border-radius:50%;background:linear-gradient(135deg,#60A5FA,#1D4ED8);color:#fff;display:flex;align-items:center;justify-content:center;font-size:25px;font-weight:800;flex-shrink:0;margin-top:14px;box-shadow:0 6px 16px rgba(37,99,235,.38);}
.menu-close-btn{position:absolute;top:10px;right:12px;width:26px;height:26px;border:none;border-radius:50%;background:var(--sm-tile);color:var(--sm-sub);font-size:12px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;}

.side-menu-nav{padding:4px 0;}
.side-menu-item{display:flex;align-items:center;gap:18px;padding:8px 22px;color:var(--sm-text);font-size:16px;font-weight:500;text-decoration:none;background:transparent;border-radius:0;margin:0;-webkit-tap-highlight-color:transparent;transition:background .15s;}
.side-menu-item:active,.side-menu-item.active{background:linear-gradient(90deg,var(--sm-row),rgba(0,0,0,0));}
.side-menu-item-icon{width:26px;height:26px;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--sm-icon);background:none;box-shadow:none;border-radius:0;}
.side-menu-item-icon svg{width:22px;height:22px;fill:currentColor;}
.side-menu-item-text{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.side-menu-item-meta{font-size:13px;font-weight:700;color:var(--sm-icon);margin-right:-6px;}
.side-menu-item-chevron{display:flex;color:var(--sm-sub);margin-left:auto;opacity:.85;}
.side-menu-item-chevron svg{width:22px;height:22px;fill:currentColor;}
.side-menu-logout,.side-menu-logout .side-menu-item-icon{color:#F87171;}
.side-menu-logout .side-menu-item-chevron{color:#F87171;}

.side-menu-quick-row{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;padding:14px 18px;margin:4px 0 2px;border-top:1px solid var(--sm-line);}
.side-menu-quick-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:14px 4px 12px;border-radius:22px;background:var(--sm-tile);border:1px solid var(--sm-line);text-decoration:none;box-shadow:none;-webkit-tap-highlight-color:transparent;transition:transform .15s,background .15s;}
.side-menu-quick-item:active{transform:scale(.96);}
.side-menu-quick-icon{width:auto;height:auto;background:none;border-radius:0;display:flex;color:var(--sm-icon);}
.side-menu-quick-icon svg{width:26px;height:26px;fill:currentColor;}
.side-menu-quick-label{font-size:13.5px;font-weight:500;color:var(--sm-text);text-align:center;white-space:nowrap;}
.side-menu-section-label{font-size:13px;font-weight:600;color:var(--sm-sub);text-transform:uppercase;letter-spacing:2.2px;padding:14px 22px 4px;margin:0;border-top:1px solid var(--sm-line);}
.side-menu-links{padding-bottom:12px;}

.side-menu-dev{padding:14px 22px 22px;text-align:center;font-size:12px;color:var(--sm-sub);border-top:1px solid var(--sm-line);}
.side-menu-dev a{color:var(--sm-icon);font-weight:700;text-decoration:none;}

/* guest view (not logged in) */
.side-menu-promo{padding:22px 22px 26px;}
.side-menu-promo-emoji{font-size:32px;margin-bottom:8px;}
.side-menu-promo-title{font-size:21px;font-weight:900;background:linear-gradient(135deg,#60A5FA,#2563EB);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;margin:0 0 10px;}
.side-menu-promo-desc{font-size:13.5px;color:var(--sm-sub);margin:0 0 22px;line-height:1.5;}
.side-menu-promo-bullet{display:flex;align-items:center;gap:12px;margin-bottom:16px;font-size:13.5px;font-weight:600;color:var(--sm-text);}
.side-menu-promo-bullet-icon{width:28px;height:28px;border-radius:50%;background:var(--sm-row);color:var(--sm-icon);display:flex;align-items:center;justify-content:center;font-size:13px;flex-shrink:0;}
.side-menu-promo-btn-free{display:block;box-sizing:border-box;background:#0B1226;color:#fff;font-weight:800;font-size:14px;padding:14px;border-radius:18px;text-align:center;text-decoration:none;margin-bottom:12px;}
.side-menu-promo-btn-google{display:block;box-sizing:border-box;background:linear-gradient(135deg,#60A5FA,#2563EB);color:#fff;font-weight:800;font-size:14px;padding:14px;border-radius:18px;text-align:center;text-decoration:none;box-shadow:0 6px 18px rgba(37,99,235,.35);}
html.dark-mode .side-menu-promo-btn-free{background:rgba(255,255,255,.1);}

/* ═════════ SKY GLASS CARDS (light mode only) ═════════
   Every white card/box on the customer pages becomes translucent sky-blue
   glass so it matches the page background and the floating nav bar.
   Dark mode is untouched. */
html:not(.dark-mode) :is(.tk-card,.tk-box,.lk-card,.lk-mine,.oh-card,.ref-card,.ref-stat-card,.ref-link-box,.ref-link-row,.ref-rules-box,.txn-card,.add-money-section,.pf-header,.help-channel,.help-faq-item,.lp-intro,.lp-section,.notif-card,.rc-result-card,.auth-card,.order-card,.rp-item,.trust-chip,.search-bar-wrap,.wc-card,.lb-row-noreward,.promo-banner,.filter-chip:not(.active)){
  background:linear-gradient(145deg,rgba(255,255,255,.64),rgba(219,234,254,.40)) !important;
  border:1px solid rgba(255,255,255,.72) !important;
  box-shadow:0 8px 22px rgba(37,99,235,.11),inset 0 1px 0 rgba(255,255,255,.75) !important;
  backdrop-filter:blur(16px) saturate(1.4);-webkit-backdrop-filter:blur(16px) saturate(1.4);
}
html:not(.dark-mode) .quick-action-icon{background:linear-gradient(155deg,rgba(255,255,255,.78),rgba(219,234,254,.5)) !important;border:1px solid rgba(255,255,255,.75);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);}
/* inputs: lighter glass so typed text stays easy to read */
html:not(.dark-mode) :is(.amount-inp,.amount-chip,.pf-input,.auth-input,.otp-box,.fw-ai-inputbar){background:rgba(255,255,255,.62) !important;border-color:rgba(255,255,255,.85) !important;}
html:not(.dark-mode) .pf-input-disabled{background:rgba(255,255,255,.34) !important;}
/* pop-ups / modals: stronger glass for readability */
html:not(.dark-mode) :is(.ohd-card,.osm-card,.cfm-box,.pwa-modal-card,.fw-ai-panel,.fw-support-card){
  background:linear-gradient(145deg,rgba(255,255,255,.90),rgba(226,238,255,.82)) !important;
  border:1px solid rgba(255,255,255,.8) !important;
  backdrop-filter:blur(22px) saturate(1.5);-webkit-backdrop-filter:blur(22px) saturate(1.5);
}
/* blue hero cards: translucent sky-blue gradient + glass edge */
.wallet-balance-card,.ref-hero,.dash-hero{background:linear-gradient(135deg,rgba(96,165,250,.88),rgba(37,99,235,.82)) !important;border:1px solid rgba(255,255,255,.4);box-shadow:0 12px 28px rgba(37,99,235,.28),inset 0 1px 0 rgba(255,255,255,.45);backdrop-filter:blur(14px) saturate(1.4);-webkit-backdrop-filter:blur(14px) saturate(1.4);}
html.dark-mode :is(.wallet-balance-card,.ref-hero,.dash-hero){background:linear-gradient(135deg,rgba(37,99,235,.85),rgba(30,64,175,.85)) !important;}

/* ═════════ THEME v2: product page, buttons, auth, DARK GLASS ═════════
   Light  = translucent sky-blue glass (see block above).
   Dark   = same layout, using the dark floating-menu look: near-black page
            with soft blue glow, frosted dark-glass cards, blue glass buttons. */

/* ---- product page (game.php) uses CSS variables, so just re-tint them ---- */
html:not(.dark-mode) .game-page{--box-bg:rgba(255,255,255,.58);--box-bg-2:rgba(255,255,255,.50);--box-border:rgba(255,255,255,.78);--divider:rgba(100,116,139,.18);--pkg-bg1:rgba(255,255,255,.64);--pkg-bg2:rgba(219,234,254,.46);--pkg-border:rgba(255,255,255,.82);--verified-bg:rgba(240,253,244,.72);}
html.dark-mode body .game-page{--box-bg:rgba(147,197,253,.08);--box-bg-2:rgba(147,197,253,.06);--box-border:rgba(255,255,255,.11);--divider:rgba(255,255,255,.09);--pkg-bg1:rgba(59,130,246,.18);--pkg-bg2:rgba(255,255,255,.04);--pkg-border:rgba(255,255,255,.12);--verified-bg:rgba(34,197,94,.13);}
.game-page :is(.game-back,.steps-bar,.section-box,.game-cover-card,.summary-card,.pay-pack-box,.buy-feat,.login-nudge,.pkg-card,.inp-f){backdrop-filter:blur(16px) saturate(1.4);-webkit-backdrop-filter:blur(16px) saturate(1.4);}
html:not(.dark-mode) .game-page :is(.section-box,.game-cover-card,.summary-card,.pay-pack-box,.pkg-card){box-shadow:0 8px 22px rgba(37,99,235,.10),inset 0 1px 0 rgba(255,255,255,.75);}
html.dark-mode .game-page :is(.section-box,.game-cover-card,.summary-card,.pay-pack-box,.pkg-card){box-shadow:0 10px 26px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.07);}

/* ---- more glass surfaces (light) ---- */
html:not(.dark-mode) :is(.rp-ticker-wrap,.auth-tabs,.auth-google-btn){
  background:linear-gradient(145deg,rgba(255,255,255,.64),rgba(219,234,254,.40)) !important;
  border:1px solid rgba(255,255,255,.72) !important;
  box-shadow:0 8px 22px rgba(37,99,235,.11),inset 0 1px 0 rgba(255,255,255,.75) !important;
  backdrop-filter:blur(16px) saturate(1.4);-webkit-backdrop-filter:blur(16px) saturate(1.4);}
html:not(.dark-mode) .auth-tab.active{background:rgba(255,255,255,.85) !important;}
.auth-wrap{background:transparent !important;}

/* ---- ALL BUTTONS: translucent sky-blue glass (both modes) ---- */
:is(.verify-btn,.buy-now-btn,.pkg-buy-btn,.game-howto-btn,.add-btn,.pf-save-btn,.auth-btn,.cfm-paynow,.lk-btn,.dash-qa,.osm-btn-orders,.sec-icon,.pf-avatar):not(:disabled){
  background:linear-gradient(135deg,rgba(125,179,255,.96) 0%,rgba(59,130,246,.94) 55%,rgba(37,99,235,.94) 100%) !important;
  border:1px solid rgba(255,255,255,.42) !important;
  color:#fff;
  box-shadow:0 8px 20px rgba(37,99,235,.34),inset 0 1px 0 rgba(255,255,255,.5) !important;
  backdrop-filter:blur(10px) saturate(1.4);-webkit-backdrop-filter:blur(10px) saturate(1.4);}
.dash-qa:hover{transform:translateY(-1px);}

/* ═════════ DARK MODE — floating-menu style dark glass ═════════ */
html.dark-mode body{background:radial-gradient(120% 42% at 0% 0%,rgba(59,130,246,.30),rgba(59,130,246,0) 65%),radial-gradient(110% 38% at 100% 100%,rgba(37,99,235,.26),rgba(37,99,235,0) 65%),#05070D;background-attachment:fixed;background-repeat:no-repeat;background-size:cover;}
html.dark-mode{background:#05070D;}
html.dark-mode .page-wrap{background:transparent;}
html.dark-mode .navbar{background:rgba(8,11,20,.62);backdrop-filter:blur(18px) saturate(1.5);-webkit-backdrop-filter:blur(18px) saturate(1.5);border-bottom:1px solid rgba(255,255,255,.08);}
html.dark-mode :is(.tk-card,.tk-box,.lk-card,.lk-mine,.oh-card,.ref-card,.ref-stat-card,.ref-link-box,.ref-link-row,.ref-rules-box,.txn-card,.add-money-section,.pf-header,.help-channel,.help-faq-item,.lp-intro,.lp-section,.notif-card,.rc-result-card,.auth-card,.order-card,.rp-item,.rp-ticker-wrap,.trust-chip,.search-bar-wrap,.wc-card,.lb-row-noreward,.promo-banner,.auth-tabs,.auth-google-btn,.filter-chip:not(.active)){
  background:linear-gradient(145deg,rgba(147,197,253,.12),rgba(255,255,255,.03)) !important;
  border:1px solid rgba(255,255,255,.11) !important;
  box-shadow:0 10px 26px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.07) !important;
  backdrop-filter:blur(16px) saturate(1.4);-webkit-backdrop-filter:blur(16px) saturate(1.4);}
html.dark-mode .auth-tab.active{background:rgba(96,165,250,.16) !important;}
html.dark-mode .quick-action-icon{background:linear-gradient(155deg,rgba(255,255,255,.11),rgba(255,255,255,.04)) !important;border:1px solid rgba(255,255,255,.12);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);}
html.dark-mode :is(.amount-inp,.amount-chip,.pf-input,.auth-input,.otp-box,.fw-ai-inputbar){background:rgba(255,255,255,.06) !important;border-color:rgba(255,255,255,.12) !important;}
html.dark-mode .pf-input-disabled{background:rgba(255,255,255,.03) !important;}
html.dark-mode :is(.ohd-card,.osm-card,.cfm-box,.pwa-modal-card,.fw-ai-panel,.fw-support-card){
  background:linear-gradient(145deg,rgba(18,24,40,.92),rgba(8,11,20,.90)) !important;
  border:1px solid rgba(255,255,255,.11) !important;
  backdrop-filter:blur(22px) saturate(1.5);-webkit-backdrop-filter:blur(22px) saturate(1.5);}

/* dark: force the product page boxes onto the glass variables (old solid dark rules above would otherwise win) */
html.dark-mode .game-page :is(.section-box,.steps-bar,.game-cover-card,.summary-card,.pay-pack-box,.buy-feat,.login-nudge,.game-back){background:var(--box-bg) !important;border-color:var(--box-border) !important;}
html.dark-mode .game-page .inp-f{background:rgba(147,197,253,.07) !important;border-color:rgba(255,255,255,.13) !important;}
html.dark-mode .lb-row{background:linear-gradient(145deg,rgba(147,197,253,.12),rgba(255,255,255,.03)) !important;border-color:rgba(255,255,255,.11) !important;}
html.dark-mode :is(.amount-inp,.amount-chip,.pf-input,.auth-input,.otp-box,.fw-ai-inputbar){background:rgba(147,197,253,.07) !important;}

/* ═════════ THEME v2b: 5 quick actions, region page, track buttons ═════════ */
.quick-actions{grid-template-columns:repeat(5,1fr);gap:8px;padding:16px 10px;}
.quick-action{gap:7px;min-width:0;}
.quick-action-icon{width:56px;height:56px;border-radius:18px;}
.quick-action-icon svg{width:24px;height:24px;}
.quick-action-label{font-size:11px;white-space:nowrap;}

html:not(.dark-mode) :is(.rc-card,.rc-info,.tk-btn:not(.primary)){
  background:linear-gradient(145deg,rgba(255,255,255,.64),rgba(219,234,254,.40)) !important;
  border:1px solid rgba(255,255,255,.72) !important;
  box-shadow:0 8px 22px rgba(37,99,235,.11),inset 0 1px 0 rgba(255,255,255,.75) !important;
  backdrop-filter:blur(16px) saturate(1.4);-webkit-backdrop-filter:blur(16px) saturate(1.4);}
html.dark-mode :is(.rc-card,.rc-info,.tk-btn:not(.primary)){
  background:linear-gradient(145deg,rgba(147,197,253,.12),rgba(255,255,255,.03)) !important;
  border:1px solid rgba(255,255,255,.11) !important;
  box-shadow:0 10px 26px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.07) !important;
  backdrop-filter:blur(16px) saturate(1.4);-webkit-backdrop-filter:blur(16px) saturate(1.4);}
html:not(.dark-mode) .tk-search input{background:rgba(255,255,255,.62) !important;border:1px solid rgba(255,255,255,.85) !important;}
html.dark-mode .tk-search input{background:rgba(147,197,253,.07) !important;border:1px solid rgba(255,255,255,.13) !important;}
:is(.tk-search button,.tk-btn.primary,.rc-btn):not(:disabled){
  background:linear-gradient(135deg,rgba(125,179,255,.96) 0%,rgba(59,130,246,.94) 55%,rgba(37,99,235,.94) 100%) !important;
  border:1px solid rgba(255,255,255,.42) !important;color:#fff !important;
  box-shadow:0 8px 20px rgba(37,99,235,.34),inset 0 1px 0 rgba(255,255,255,.5) !important;
  backdrop-filter:blur(10px) saturate(1.4);-webkit-backdrop-filter:blur(10px) saturate(1.4);}
