/*
Theme Name: Gunn Gaming Store
Theme URI: https://gunnstore.duckdns.org
Author: Gunn Official
Description: Exact Jou Games Shop gaming portal layout with neon green accents, live purchases ticker, quick actions, and mobile pill bottom navigation.
Version: 2.0.0
Text Domain: gunn-gaming-store
*/
:root{
  --bg:#0c0f0d;--panel:#161a17;--panel-2:#1e2420;--accent:#39e07a;--accent-dim:#1f7a45;--accent-rgb:57,224,122;
  --text:#eef1ee;--text-dim:#8b958f;--border:#262c27;--danger:#e5484d;--select:#3b82f6;
  --pill-customer-bg:#1e2420;--pill-customer-fg:#8b958f;
  --pill-reseller-bg:#1f7a45;--pill-reseller-fg:#39e07a;
  --pill-pending-bg:#3a2a10;--pill-pending-fg:#e0a030;
  --pill-approved-bg:#122a1c;--pill-approved-fg:#39e07a;
  --pill-completed-bg:#122a1c;--pill-completed-fg:#39e07a;
  --pill-cancelled-bg:#3a1416;--pill-cancelled-fg:#ff8a8f;
  --banner-g1:#e7f2c9;--banner-g2:#d3e79a;--banner-g3:#c3dd6f;--banner-text:#12210c;--banner-sub:#3a4a2c;
  --wa-color:#25D366;--on-accent:#04170c;
}
/* Light theme (toggled from the menu) — a completely different palette, not just a tint. */
:root[data-theme="light"]{
  --bg:#fef6f6;--panel:#ffffff;--panel-2:#fdeaea;--accent:#e0323c;--accent-dim:#b0232b;--accent-rgb:224,50,60;
  --text:#2a1416;--text-dim:#8a6b6d;--border:#f2d3d3;--danger:#c81e2c;--select:#2563eb;
  --pill-customer-bg:#f6e7e7;--pill-customer-fg:#8a6b6d;
  --pill-reseller-bg:#f6cccf;--pill-reseller-fg:#b0232b;
  --pill-pending-bg:#fde6c6;--pill-pending-fg:#a3650a;
  --pill-approved-bg:#fbdcdc;--pill-approved-fg:#b0232b;
  --pill-completed-bg:#fbdcdc;--pill-completed-fg:#b0232b;
  --pill-cancelled-bg:#f6d0d0;--pill-cancelled-fg:#9c1f1f;
  --banner-g1:#ffd9d9;--banner-g2:#ffb3b3;--banner-g3:#ff8a8a;--banner-text:#3a0d0d;--banner-sub:#5c1a1a;
  --on-accent:#ffffff;
}
*{box-sizing:border-box;}
html,body{height:100%;}
body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;min-height:100%;display:flex;flex-direction:column;transition:background .2s,color .2s;}
svg{display:block;}
a{text-decoration:none;color:inherit;}
button{font-family:inherit;}
input,select,textarea{font-family:inherit;background:var(--panel-2);border:1px solid var(--border);color:var(--text);border-radius:8px;padding:9px 10px;font-size:13.5px;width:100%;}
.btn{background:var(--accent);color:var(--on-accent);border:none;border-radius:9px;padding:9px 14px;font-weight:700;font-size:13px;cursor:pointer;display:inline-block;}
.btn.ghost{background:transparent;border:1px solid var(--border);color:var(--text);}
.btn.danger{background:var(--danger);color:#fff;}
.btn.sm{padding:6px 10px;font-size:11.5px;border-radius:7px;}
.btn.block{width:100%;text-align:center;}
.app{max-width:480px;margin:0 auto;padding-bottom:84px;width:100%;flex:1;display:flex;flex-direction:column;}
.topbar{position:sticky;top:0;z-index:20;background:var(--bg);display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border);}
.icon-btn{width:38px;height:38px;border-radius:10px;background:var(--panel);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--text);cursor:pointer;flex-shrink:0;}
.tb-actions{display:flex;gap:8px;align-items:center;}
.wallet-chip{
  display:flex;align-items:center;gap:8px;height:38px;padding:4px 14px 4px 4px;border-radius:20px;
  background:var(--panel);border:1.5px solid var(--accent);
}
.wallet-icon{
  width:28px;height:28px;border-radius:50%;flex-shrink:0;
  background:linear-gradient(135deg,var(--accent),var(--accent-dim));
  display:flex;align-items:center;justify-content:center;color:#fff;
}
.wallet-amt{font-weight:800;font-size:13.5px;color:var(--text);white-space:nowrap;}
.brand{display:flex;align-items:center;gap:8px;font-weight:700;font-size:17px;}
.brand img{width:22px;height:22px;border-radius:6px;object-fit:cover;}
.banner{margin:14px 16px 0;border-radius:16px;overflow:hidden;background:linear-gradient(135deg,var(--banner-g1) 0%,var(--banner-g2) 55%,var(--banner-g3) 100%);padding:22px 18px;min-height:175px;color:var(--banner-text);position:relative;}
.banner.has-image{color:#fff;}
.banner.has-image::before{content:'';position:absolute;inset:0;background:linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,.15));}
.banner.has-image h1, .banner.has-image p, .banner.has-image .tag{position:relative;z-index:1;}
.banner.has-image p{color:#f0f0f0;}
.banner.has-image .tag{background:rgba(0,0,0,.5);color:#fff;}
.banner h1{margin:0 0 4px;font-size:22px;line-height:1.15;font-weight:800;}
.banner p{margin:0;font-size:13px;color:var(--banner-sub);}
.banner .tag{display:inline-block;margin-top:10px;font-size:11px;font-weight:700;background:var(--banner-text);color:var(--banner-g1);padding:4px 10px;border-radius:20px;}
.ticker-wrap{margin:12px 16px 0;border:1px solid var(--border);background:var(--panel);border-radius:12px;overflow:hidden;padding:9px 0;}
.ticker-track{display:flex;gap:0;width:max-content;white-space:nowrap;animation:scroll 18s linear infinite;will-change:transform;font-size:12.5px;color:var(--text-dim);}
.ticker-track span{padding:0 22px;}
@keyframes scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:18px 16px 4px;}
.qa{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--text-dim);font-size:12px;cursor:pointer;}
.qa .qa-icon{width:54px;height:54px;border-radius:14px;background:var(--panel);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--accent);
  box-shadow:0 8px 18px rgba(var(--accent-rgb),.22),0 3px 8px rgba(0,0,0,.55);}
.qa span{color:var(--text);}
.section{padding:20px 16px 4px;}
.section h2{margin:0 0 16px;font-size:17px;font-weight:700;}
.games-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:28px 14px;}
.game{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;cursor:pointer;}
.game .thumb{width:56px;height:56px;border-radius:14px;background:var(--panel-2);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--accent);}
.game .thumb img{width:100%;height:100%;object-fit:cover;}
.game .name{font-size:11px;color:var(--text-dim);line-height:1.25;}
.promo{margin:22px 16px 0;border-radius:16px;padding:20px;position:relative;isolation:isolate;
  background:linear-gradient(135deg,color-mix(in srgb, var(--accent) 22%, var(--bg)),var(--bg));
  box-shadow:0 0 14px rgba(var(--accent-rgb),.28);}
.promo::before{content:'';position:absolute;inset:0;border-radius:inherit;padding:2px;pointer-events:none;z-index:1;
  background:conic-gradient(from var(--rgb-angle),var(--accent-dim) 0deg,var(--accent-dim) 200deg,var(--accent) 290deg,#fff 330deg,var(--accent) 350deg,var(--accent-dim) 360deg);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;
  animation:rgbSpin 4s linear infinite;}
@property --rgb-angle{syntax:'<angle>';inherits:false;initial-value:0deg;}
@keyframes rgbSpin{to{--rgb-angle:360deg;}}
.promo p{margin:0 0 14px;font-size:14.5px;font-weight:600;line-height:1.4;}
.promo-row{display:flex;justify-content:space-between;align-items:center;font-size:13px;}
.promo-row .link{color:var(--accent);font-weight:700;cursor:pointer;}
.sitefooter{margin:24px 16px 0;padding:18px 4px 0;border-top:1px solid var(--border);font-size:12px;color:var(--text-dim);line-height:1.6;}
.sitefooter b{color:var(--text);}
.bottomnav{position:fixed;bottom:0;left:0;right:0;background:var(--bg);border-top:1px solid var(--border);display:flex;justify-content:center;z-index:30;}
.bottomnav-inner{max-width:480px;width:100%;display:grid;grid-template-columns:repeat(4,1fr);padding:14px 6px 8px;}
.nav-item{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11px;color:var(--text-dim);cursor:pointer;}
.nav-item::before{content:'';position:absolute;top:-14px;left:50%;transform:translateX(-50%);width:0;height:3px;border-radius:2px;background:var(--accent);transition:width .2s ease;}
.nav-item.active{color:var(--accent);}
.nav-item.active::before{width:24px;}
.nav-item.active svg{filter:drop-shadow(0 0 5px var(--accent)) drop-shadow(0 0 10px rgba(var(--accent-rgb),.7));}
.drawer-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:40;display:none;}
.drawer-overlay.open{display:block;}
.drawer{position:fixed;top:0;bottom:0;left:0;width:78%;max-width:300px;background:var(--panel);z-index:50;transform:translateX(-100%);transition:transform .25s ease;padding:20px 0;border-right:1px solid var(--border);overflow-y:auto;}
.drawer.open{transform:translateX(0);}
.drawer-brand{display:flex;align-items:center;gap:10px;padding:0 20px 18px;font-weight:700;font-size:16px;border-bottom:1px solid var(--border);margin-bottom:8px;padding-bottom:18px;}
.drawer-item{display:flex;align-items:center;gap:14px;padding:13px 20px;color:var(--text);font-size:14.5px;cursor:pointer;}
.drawer-item:active{background:var(--panel-2);}
.stack-top{position:sticky;top:0;background:var(--bg);z-index:20;display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border);}
.stack-body{max-width:480px;width:100%;margin:0 auto;padding:18px 16px 60px;}
.admin-body{max-width:640px;}
.admin-tabs{display:flex;gap:8px;overflow-x:auto;padding:12px 16px;border-bottom:1px solid var(--border);max-width:640px;margin:0 auto;}
.admin-tab{flex-shrink:0;padding:8px 13px;border-radius:20px;border:1px solid var(--border);font-size:12.5px;color:var(--text-dim);cursor:pointer;background:var(--panel);}
.admin-tab.active{background:var(--accent);color:var(--on-accent);border-color:var(--accent);font-weight:700;}
.card{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:14px;margin-bottom:12px;}
.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.stat{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:14px;}
.stat b{display:block;font-size:20px;color:var(--accent);}
.stat span{font-size:11.5px;color:var(--text-dim);}
.form-row{margin-bottom:10px;}
.form-row label{display:block;font-size:11.5px;color:var(--text-dim);margin-bottom:5px;}
.form-inline{display:flex;gap:8px;}
table{width:100%;border-collapse:collapse;font-size:12.5px;}
th{text-align:left;color:var(--text-dim);font-weight:600;font-size:11px;padding:6px 8px;border-bottom:1px solid var(--border);}
td{padding:8px;border-bottom:1px solid var(--border);vertical-align:middle;}
.pill{padding:3px 8px;border-radius:20px;font-size:10.5px;font-weight:700;}
.pill.customer{background:var(--pill-customer-bg);color:var(--pill-customer-fg);}
.pill.reseller{background:var(--pill-reseller-bg);color:var(--pill-reseller-fg);}
.pill.pending{background:var(--pill-pending-bg);color:var(--pill-pending-fg);}
.pill.approved{background:var(--pill-approved-bg);color:var(--pill-approved-fg);}
.row-actions{display:flex;gap:6px;flex-wrap:wrap;}
.empty{color:var(--text-dim);font-size:12.5px;padding:10px 2px;}
.note{font-size:11px;color:var(--text-dim);margin-top:6px;line-height:1.5;}
.pkg-row{display:flex;justify-content:space-between;align-items:center;padding:12px 4px;border-bottom:1px solid var(--border);margin:0;}
.pkg-row:last-child{border-bottom:none;}
.amt-chip{display:inline-block;}
.amt-chip input{position:absolute;opacity:0;width:0;height:0;}
.amt-chip label{display:block;padding:12px 0;text-align:center;border:1px solid var(--border);border-radius:10px;background:var(--panel-2);cursor:pointer;font-weight:700;font-size:13px;}
.amt-chip input:checked + label{border-color:var(--accent);color:var(--accent);}
.amt-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0;}
.rank{width:26px;display:inline-block;color:var(--text-dim);font-weight:700;}
.auth-logo{display:flex;justify-content:center;margin:10px 0 14px;}
.auth-tabs{display:flex;gap:0;background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:4px;margin-bottom:14px;}
.auth-tab{flex:1;text-align:center;padding:9px 0;border-radius:9px;font-size:13px;font-weight:700;color:var(--text-dim);cursor:pointer;}
.auth-tab.active{background:var(--accent);color:var(--on-accent);}
.checkout-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;}
.game-card{display:flex;align-items:center;gap:14px;padding:16px;background:var(--panel);border:1px solid var(--border);border-radius:14px;margin-bottom:14px;}
.game-card .thumb{width:52px;height:52px;border-radius:12px;background:var(--panel-2);display:flex;align-items:center;justify-content:center;color:var(--accent);flex-shrink:0;overflow:hidden;}
.game-card .thumb img{width:100%;height:100%;object-fit:cover;}
.social-row{display:flex;justify-content:space-between;padding:4px 0 18px;}
.social-btn{width:56px;height:56px;border-radius:16px;display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;}
.social-btn img{width:100%;height:100%;object-fit:cover;}
.pkg-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px;}
.pkg-card{position:relative;}
.pkg-card input{position:absolute;opacity:0;width:0;height:0;}
.pkg-card label{display:grid;grid-template-columns:38px 1fr;grid-template-rows:1fr auto;grid-template-areas:"thumb name" "price price";column-gap:10px;row-gap:8px;padding:11px 12px;height:100%;border-radius:12px;background:var(--panel);border:1.5px solid var(--border);cursor:pointer;}
.pkg-card input:checked + label{border-color:var(--select);box-shadow:0 0 0 1px var(--select);}
.pkg-card .thumb{grid-area:thumb;align-self:start;width:38px;height:38px;border-radius:9px;background:var(--panel-2);display:flex;align-items:center;justify-content:center;color:var(--accent);margin:0;overflow:hidden;}
.pkg-card .thumb img{width:100%;height:100%;object-fit:cover;}
.pkg-card .pname{grid-area:name;align-self:start;font-size:13px;font-weight:600;line-height:1.3;margin:0;min-height:0;word-break:break-word;}
.pkg-card .pprice{grid-area:price;align-self:end;font-size:15px;font-weight:800;color:var(--text);}
.id-input-wrap{position:relative;}
.id-input-wrap input{padding-right:96px;}
.validate-btn-inline{position:absolute;right:4px;top:4px;bottom:4px;background:linear-gradient(90deg,#7c3aed,#22c55e);color:#fff;border:none;border-radius:7px;padding:0 14px;font-weight:700;font-size:12px;cursor:pointer;white-space:nowrap;}

/* ===== Banner carousel ===== */
.banner-carousel{position:relative;margin:14px 16px 0;border-radius:16px;overflow:hidden;}
.banner-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
.banner-track::-webkit-scrollbar{display:none;}
.banner-slide{flex:0 0 100%;scroll-snap-align:start;position:relative;min-height:210px;aspect-ratio:auto;padding:22px 18px;display:flex;flex-direction:column;justify-content:center;
  background:linear-gradient(135deg,var(--banner-g1) 0%,var(--banner-g2) 55%,var(--banner-g3) 100%);background-size:100% 100%;background-position:center;color:var(--banner-text);}
.banner-slide h1{margin:0 0 4px;font-size:22px;line-height:1.15;font-weight:800;position:relative;z-index:1;}
.banner-slide p{margin:0;font-size:13px;color:var(--banner-sub);position:relative;z-index:1;}
.banner-slide .tag{display:inline-block;align-self:flex-start;margin-top:10px;font-size:11px;font-weight:700;background:var(--banner-text);color:var(--banner-g1);padding:4px 10px;border-radius:20px;position:relative;z-index:1;}
.banner-slide.has-image{color:#fff;}
.banner-slide.has-image.has-text::before{content:'';position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.6),rgba(0,0,0,.1));}
.banner-slide.has-image p{color:#f0f0f0;}
.banner-dots{position:absolute;left:0;right:0;bottom:8px;display:flex;justify-content:center;gap:6px;z-index:2;}
.banner-dots span{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.55);cursor:pointer;transition:all .2s;}
.banner-dots span.active{width:18px;border-radius:4px;background:#fff;}

/* ===== Image uploader ===== */
.uploader{position:relative;margin-bottom:12px;}
.up-caption{font-size:11.5px;color:var(--text-dim);margin-bottom:6px;}
.up-box{display:flex;align-items:center;gap:12px;padding:10px;border:1.5px dashed var(--border);border-radius:12px;background:var(--panel-2);cursor:pointer;}
.up-box:hover{border-color:var(--accent);}
.up-preview{width:56px;height:56px;border-radius:10px;background:var(--panel);display:flex;align-items:center;justify-content:center;color:var(--text-dim);overflow:hidden;flex-shrink:0;}
.up-preview img{width:100%;height:100%;object-fit:cover;}
.up-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;font-size:13px;}
.up-text small{color:var(--text-dim);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.up-btn{background:var(--accent);color:var(--on-accent);font-weight:700;font-size:12px;padding:8px 14px;border-radius:8px;flex-shrink:0;}
.up-input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none;}

/* ===== Admin drawer / analytics ===== */
.drawer-item.active{color:var(--accent);background:var(--panel-2);}
.drawer-item svg{flex-shrink:0;color:var(--text-dim);}
.drawer-item.active svg{color:var(--accent);}
.chart{display:flex;align-items:flex-end;gap:3px;height:150px;padding-top:8px;}
.chart .bar{flex:1;background:linear-gradient(180deg,var(--accent),var(--accent-dim));border-radius:3px 3px 0 0;min-height:2px;}
.chart-axis{display:flex;justify-content:space-between;font-size:10.5px;color:var(--text-dim);margin-top:6px;}
.seg{display:flex;gap:6px;margin-bottom:12px;flex-wrap:wrap;}
.seg a{padding:7px 14px;border-radius:20px;border:1px solid var(--border);font-size:12px;color:var(--text-dim);background:var(--panel);}
.seg a.active{background:var(--accent);color:var(--on-accent);border-color:var(--accent);font-weight:700;}
.pill.completed{background:var(--pill-completed-bg);color:var(--pill-completed-fg);}
.pill.cancelled{background:var(--pill-cancelled-bg);color:var(--pill-cancelled-fg);}
.strike{text-decoration:line-through;color:var(--text-dim);font-weight:500;font-size:12px;margin-left:6px;}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:10px;}

/* ===== Leaderboard ===== */
.lb-row{display:flex;align-items:center;gap:12px;padding:12px 14px;background:var(--panel);border:1px solid var(--border);border-radius:14px;margin-bottom:10px;}
.lb-rank{width:32px;height:32px;border-radius:50%;background:var(--panel-2);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;flex-shrink:0;}
.lb-rank.r1{background:#f5c542;color:#3a2a00;}
.lb-rank.r2{background:#c9d1d9;color:#1d2530;}
.lb-rank.r3{background:#d08a4b;color:#2b1600;}
.lb-name{font-weight:700;font-size:14px;}
.lb-meta{font-size:11.5px;color:var(--text-dim);}
.lb-amt{margin-left:auto;text-align:right;font-weight:800;}
.prize{display:inline-block;margin-top:4px;padding:2px 8px;border-radius:20px;font-size:10.5px;font-weight:700;background:rgba(57,224,122,.12);color:var(--accent);border:1px solid var(--accent-dim);}
.credit{margin-top:8px;}
.credit b{color:var(--accent);}

/* ===== Dark/light toggle switch (in the drawer) ===== */
.drawer-theme{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;margin-top:8px;border-top:1px dashed var(--border);font-size:14px;color:var(--text-dim);}
.switch{position:relative;display:inline-block;width:44px;height:24px;flex-shrink:0;}
.switch input{opacity:0;width:0;height:0;}
.switch .slider{position:absolute;cursor:pointer;inset:0;background:var(--panel-2);border:1px solid var(--border);transition:.2s;border-radius:24px;}
.switch .slider:before{content:'';position:absolute;height:18px;width:18px;left:2px;top:2px;background:#fff;transition:.2s;border-radius:50%;box-shadow:0 1px 3px rgba(0,0,0,.35);}
.switch input:checked + .slider{background:var(--accent);border-color:var(--accent);}
.switch input:checked + .slider:before{transform:translateX(20px);}

/* ---- order statuses added by the API integration ---- */
.pill.processing{background:#10263a;color:#5bb8ff;}
.pill.failed{background:var(--pill-cancelled-bg);color:var(--pill-cancelled-fg);}
[data-theme="light"] .pill.processing{background:#dcecfb;color:#1c5f9c;}

/* ===== Page loader (bouncing ball) ===== */
.page-loader{position:fixed;inset:0;z-index:999;background:var(--bg);display:flex;align-items:center;justify-content:center;transition:opacity .3s ease,visibility .3s;}
.page-loader.hide{opacity:0;visibility:hidden;pointer-events:none;}
.loader-stage{position:relative;width:120px;height:150px;}
.loader-ball{position:absolute;left:50%;top:0;width:44px;height:44px;margin-left:-22px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#8ab4ff,#3b82f6 55%,#1d4ed8);box-shadow:0 6px 18px rgba(59,130,246,.45);animation:ballBounce .8s cubic-bezier(.45,.05,.55,.95) infinite alternate;}
.loader-pad{position:absolute;left:50%;bottom:0;width:104px;height:44px;margin-left:-52px;}
.loader-pad .rim{position:absolute;left:0;right:0;top:0;height:30px;border-radius:50%;background:#c9d6fb;}
.loader-pad .hole{position:absolute;left:10px;right:10px;top:6px;height:18px;border-radius:50%;background:var(--bg);}
.loader-pad .body{position:absolute;left:0;right:0;top:15px;height:26px;border-radius:0 0 52px 52px / 0 0 22px 22px;background:#c9d6fb;}
.loader-pad .rim{z-index:2;} .loader-pad .hole{z-index:3;} .loader-pad .body{z-index:1;}
@keyframes ballBounce{0%{transform:translateY(0) scale(.94,1.06);}50%{transform:translateY(34px);}100%{transform:translateY(60px) scale(1.12,.88);}}
@media (prefers-reduced-motion:reduce){.loader-ball{animation-duration:1.6s;}}

/* ===== Popup modals (add money, order details, event banner) ===== */
body.modal-open{overflow:hidden;}
.modal-wrap{position:fixed;inset:0;z-index:200;display:none;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.62);}
.modal-wrap.open{display:flex;}
.modal-box{position:relative;width:100%;max-width:440px;max-height:calc(100vh - 110px);display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--border);border-radius:16px;margin-bottom:34px;animation:modalIn .22s ease;}
@keyframes modalIn{from{opacity:0;transform:translateY(14px) scale(.98);}to{opacity:1;transform:none;}}
.modal-title{padding:16px 16px 14px;text-align:center;font-size:19px;font-weight:800;border-bottom:1px solid var(--border);}
.modal-body{padding:16px;overflow-y:auto;}
.modal-close{position:absolute;left:50%;bottom:-30px;margin-left:-24px;width:48px;height:48px;border-radius:50%;background:var(--panel);border:4px solid var(--bg);color:var(--text);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;}
.btn-grad{display:block;width:100%;text-align:center;border:none;border-radius:10px;padding:14px;font-size:15px;font-weight:800;color:#fff;cursor:pointer;background:linear-gradient(90deg,#7c3aed,var(--accent));}
.btn-grad:disabled{opacity:.55;cursor:not-allowed;}
.btn-grad + .btn-grad{margin-top:10px;}
.modal-amount{font-size:18px;padding:14px;}
.modal-label{font-size:15px;font-weight:700;margin-bottom:8px;display:block;}
.modal-chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 16px;}
.modal-chips button{flex:1 1 28%;padding:9px 0;border-radius:9px;border:1px solid var(--border);background:var(--panel-2);color:var(--text);font-weight:700;font-size:13px;cursor:pointer;}
.modal-err{color:var(--danger);font-size:12.5px;margin:-8px 0 12px;min-height:0;}
.od-pack{display:flex;align-items:center;gap:12px;padding:10px;border-radius:12px;background:var(--panel-2);margin-bottom:12px;}
.od-pack .od-img{width:54px;height:54px;border-radius:10px;overflow:hidden;background:var(--panel);display:flex;align-items:center;justify-content:center;color:var(--accent);flex-shrink:0;}
.od-pack .od-img img{width:100%;height:100%;object-fit:cover;}
.od-pack b{font-size:15px;line-height:1.3;word-break:break-word;}
.od-confirm{color:#e0a030;font-size:14px;font-weight:600;margin:0 0 10px;}
.od-row{display:flex;justify-content:space-between;gap:14px;padding:8px 0;font-size:14px;}
.od-row span:first-child{color:var(--text-dim);}
.od-row span:last-child{text-align:right;font-weight:600;word-break:break-word;}
.od-total{display:flex;justify-content:space-between;align-items:center;padding:12px 0;margin:6px 0 14px;border-top:1px dashed var(--border);border-bottom:1px dashed var(--border);font-weight:700;}
.od-total .amt{color:var(--danger);font-size:19px;font-weight:800;}
.od-low{font-size:11.5px;color:var(--text-dim);text-align:center;margin-top:8px;}

/* sticky continue bar on the product page */
.continue-bar{position:fixed;left:0;right:0;bottom:62px;z-index:25;padding:10px 16px;background:var(--bg);border-top:1px solid var(--border);}
.continue-bar .btn-grad{max-width:448px;margin:0 auto;}

/* event popup banner */
.event-pop{position:relative;width:100%;max-width:440px;margin-bottom:34px;animation:modalIn .25s ease;}
.event-pop img{display:block;width:100%;height:auto;border-radius:14px;}
.event-pop .modal-close{bottom:-30px;}


/* ===== Drawer developer credit / no global footer ===== */
.sitefooter{display:none !important;}
.drawer{padding-bottom:78px;}
.drawer-developer{
  margin:10px 20px 0;
  padding:12px 0 4px;
  border-top:1px solid var(--border);
  font-size:11px;
  line-height:1.45;
  text-align:left;
  color:var(--text-dim);
}
.drawer-developer a{
  color:#ffd400;
  font-weight:800;
  text-decoration:none;
}
.drawer-developer a:hover,
.drawer-developer a:focus{
  color:#ffe45c;
  text-decoration:underline;
}


/* =========================================================
   REPORTS PAGE — scoped fixes only
   Does not modify global page layout, header, drawer, or nav.
   ========================================================= */
.reports-page .app,
body .reports-page .app {
    max-width: none;
    width: 100%;
}

.reports-page {
    box-sizing: border-box;
    width: min(760px, 100%);
    max-width: 760px;
    margin: 0 auto;
    padding: 18px 16px 92px;
}
.reports-head{display:flex;align-items:center;justify-content:space-between;padding:18px 0 22px;}
.reports-head h1{margin:0;font-size:25px;font-weight:800;color:var(--text);}
.reports-back{width:58px;height:58px;border:1px solid var(--border);border-radius:12px;background:var(--panel);display:flex;align-items:center;justify-content:center;color:var(--text);text-decoration:none;}
.reports-head-spacer{width:58px;}
.report-tabs{display:flex;align-items:flex-end;background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:8px 10px 0;margin-bottom:22px;}
.report-tab{appearance:none;-webkit-appearance:none;flex:1;border:0;background:transparent;color:var(--text-dim);font:inherit;font-size:16px;padding:12px 4px 16px;border-bottom:3px solid transparent;cursor:pointer;}
.report-tab.active{color:var(--accent);border-bottom-color:var(--accent);}
.report-panel{display:none;}
.report-panel.active{display:block;}
.report-row{appearance:none;-webkit-appearance:none;width:100%;display:flex;align-items:center;gap:14px;text-align:left;border:1px solid var(--border);border-radius:15px;background:var(--panel);padding:16px 14px;margin:0 0 12px;color:var(--text);cursor:pointer;box-sizing:border-box;}
.report-thumb{width:58px;height:58px;border-radius:13px;object-fit:cover;background:var(--panel-2);flex:0 0 58px;}
.report-main{min-width:0;flex:1;display:flex;flex-direction:column;gap:7px;}
.report-main strong{font-size:15px;font-weight:600;}
.report-main small{font-size:14px;color:var(--text-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.report-side{display:flex;flex-direction:column;align-items:flex-end;gap:7px;min-width:105px;}
.amount{font-size:17px;font-weight:800;white-space:nowrap;}
.amount.success,.amount.credit,.status.success,.status.approved,.status.completed{color:#159f67;}
.amount.pending,.status.pending,.status.processing{color:#e3b526;}
.amount.debit{color:#d73545;}
.status{font-size:14px;font-weight:600;}
.report-empty{padding:30px 10px;text-align:center;color:var(--text-dim);}
.report-wallet-icon{display:flex;align-items:center;justify-content:center;width:58px;height:58px;flex:0 0 58px;border-radius:13px;background:linear-gradient(135deg,var(--accent),var(--accent-dim));border:1.5px solid var(--accent);box-shadow:0 0 14px rgba(57,224,122,.18);color:#fff;}
.report-wallet-icon svg{display:block;width:38px;height:38px;}
.report-modal{position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(0,0,0,.72);}
.report-modal.open{display:flex;}
.report-modal-card{position:relative;width:min(100%,520px);max-height:calc(100vh - 40px);overflow:auto;background:var(--panel);border:1px solid var(--border);border-radius:18px;box-shadow:0 20px 60px rgba(0,0,0,.45);}
.report-modal-close{position:absolute;right:14px;top:14px;width:42px;height:42px;border:1px solid var(--border);border-radius:50%;background:rgba(0,0,0,.28);color:#fff;font-size:28px;line-height:1;cursor:pointer;z-index:2;}
.invoice-hero{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:var(--panel-2);border-bottom:1px solid var(--border);padding:28px 20px;}
.invoice-hero img{width:86px;height:86px;object-fit:cover;border-radius:18px;}
.invoice-hero .report-wallet-icon{width:86px;height:86px;flex-basis:86px;border-radius:18px;}
.invoice-hero .report-wallet-icon svg{width:58px;height:58px;}
.invoice-hero div{font-size:26px;font-weight:700;}
.invoice-body{padding:18px 22px 24px;}
.invoice-line{display:flex;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid var(--border);font-size:15px;}
.invoice-line:last-child{border-bottom:0;}
.invoice-line span{color:var(--text-dim);}
.invoice-line strong{text-align:right;max-width:62%;overflow-wrap:anywhere;}
@media(max-width:420px){
 body:has(.reports-page) .reports-page{padding-left:14px;padding-right:14px;}
 .report-row{gap:11px;padding:14px 12px;}
 .report-wallet-icon,.report-thumb{width:56px;height:56px;flex-basis:56px;}
 .report-side{min-width:92px;}
 .amount{font-size:16px;}
 .report-main strong{font-size:14px;}
 .report-main small,.status{font-size:13px;}
}

/* =========================================================
   GLOBAL FOOTER + DRAWER DEVELOPER CREDIT
   ========================================================= */
.sitefooter{display:none !important;}
.drawer-developer{margin:10px 20px 0;padding:12px 0 4px;border-top:1px solid var(--border);font-size:11px;line-height:1.45;text-align:left;color:var(--text-dim);}
.drawer-developer a{color:#ffd400 !important;font-weight:800 !important;text-decoration:none !important;}
.drawer-developer a:hover,.drawer-developer a:focus{color:#ffe45c !important;text-decoration:underline !important;}


/* ===== Floating AI assistant + WhatsApp buttons ===== */
.float-stack{position:fixed;right:14px;bottom:80px;z-index:60;display:flex;flex-direction:column;gap:10px;align-items:center;}
body:has(.continue-bar) .float-stack{bottom:146px;}
body.asst-open .float-stack{display:none;}
.fab{position:relative;width:42px;height:42px;border-radius:50%;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;box-shadow:0 4px 12px rgba(0,0,0,.4);}
.fab svg{width:20px;height:20px;}
.fab-ai{background:#2f63e0;}
.fab-wa{background:#25D366;}
.fab-wa:before{content:'';position:absolute;inset:-5px;border-radius:50%;border:2px solid rgba(37,211,102,.55);animation:waPulse 2s ease-out infinite;pointer-events:none;}
@keyframes waPulse{0%{transform:scale(.85);opacity:.9;}100%{transform:scale(1.25);opacity:0;}}
.asst-panel{position:fixed;left:0;right:0;bottom:0;z-index:120;width:100%;height:min(82vh,680px);height:min(82dvh,680px);display:flex;flex-direction:column;background:var(--panel);border-top:1px solid var(--border);border-radius:20px 20px 0 0;box-shadow:0 -10px 40px rgba(0,0,0,.55);overflow:hidden;animation:asstUp .25s ease;}
@keyframes asstUp{from{transform:translateY(40px);opacity:0;}to{transform:none;opacity:1;}}
.asst-panel[hidden]{display:none;}
.asst-head{display:flex;align-items:center;gap:10px;padding:12px 14px;background:linear-gradient(90deg,#2f63e0,#5b3fd6);color:#fff;}
.asst-avatar{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.asst-avatar svg{width:22px;height:22px;}
.asst-title{display:flex;flex-direction:column;flex:1;min-width:0;line-height:1.25;}
.asst-title b{font-size:15px;} .asst-title span{font-size:11.5px;opacity:.85;}
.asst-x{background:none;border:none;color:#fff;cursor:pointer;padding:6px;display:flex;}
.asst-msgs{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px;}
.asst-b{max-width:86%;padding:9px 12px;border-radius:14px;font-size:14px;line-height:1.45;word-break:break-word;}
.asst-b.bot{align-self:flex-start;background:var(--panel-2);border-bottom-left-radius:4px;}
.asst-b.me{align-self:flex-end;background:#2f63e0;color:#fff;border-bottom-right-radius:4px;}
.asst-b a{color:inherit;text-decoration:underline;}
.asst-b.typing{color:var(--text-dim);}
.asst-chips{display:flex;gap:8px;overflow-x:auto;padding:0 14px 10px;}
.asst-chips button{flex-shrink:0;border:1px solid var(--border);background:var(--panel-2);color:var(--text);border-radius:16px;padding:7px 12px;font-size:12.5px;cursor:pointer;}
.asst-form{display:flex;gap:8px;padding:10px 12px;border-top:1px solid var(--border);}
.asst-form input{flex:1;min-width:0;border-radius:20px;padding:10px 14px;font-size:14px;}
.asst-form button{width:42px;height:42px;border-radius:50%;border:none;background:#2f63e0;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;}
.asst-wa{display:block;text-align:center;padding:10px;font-size:13px;font-weight:700;background:#25D366;color:#fff;}


/* ===== Safety: the loader can never stay forever, and the page can never scroll sideways ===== */
.page-loader{width:100%;max-width:100vw;height:100%;animation:loaderAway .35s ease 5s forwards;}
@keyframes loaderAway{to{opacity:0;visibility:hidden;pointer-events:none;}}
html,body{overflow-x:clip;max-width:100%;}

.asst-b.typing{display:flex;align-items:center;gap:9px;min-width:150px;}
.asst-b.typing i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#5b8cff;animation:asstDot 1s ease-in-out infinite;}
.asst-b.typing i:nth-child(2){animation-delay:.15s;} .asst-b.typing i:nth-child(3){animation-delay:.3s;}
@keyframes asstDot{0%,60%,100%{transform:translateY(0);opacity:.45;}30%{transform:translateY(-5px);opacity:1;}}
.asst-b.typing .asst-status{font-style:italic;}

/* ===== Popular games scroller + category filter chips ===== */
.game[hidden]{display:none !important;}
.pop-section{padding-bottom:0;}
.pop-scroll{display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scroll-padding:0 16px;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin:0 -16px;padding:2px 16px 10px;}
.pop-scroll::-webkit-scrollbar{display:none;}
.pop-card{flex:0 0 calc((100% - 30px) / 4);min-width:0;scroll-snap-align:start;display:flex;flex-direction:column;align-items:center;gap:6px;padding:4px 4px 8px;background:var(--panel);border:1px solid var(--border);border-radius:12px;cursor:pointer;}
.pop-img{width:100%;aspect-ratio:1/1;border-radius:9px;overflow:hidden;background:var(--panel-2);display:flex;align-items:center;justify-content:center;color:var(--accent);}
.pop-img img{width:100%;height:100%;object-fit:cover;}
.pop-name{width:100%;text-align:center;font-size:10.5px;line-height:1.2;color:var(--text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.cat-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:16px 16px 0;}
.cat-chips::-webkit-scrollbar{display:none;}
.cat-chips button{flex-shrink:0;border:1px solid var(--accent);background:transparent;color:var(--text);border-radius:10px;padding:8px 14px;font-size:12.5px;font-weight:700;text-transform:uppercase;letter-spacing:.2px;cursor:pointer;}
.cat-chips button.active{background:var(--accent);color:var(--on-accent);}
/* JOU theme v2 — black + green. Loaded AFTER style.css; only overrides look, never layout logic. */
:root{
  --bg:#060907;--panel:#101512;--panel-2:#18201b;--border:#232b25;
  --accent:#39e07a;--accent-dim:#1f7a45;--accent-rgb:57,224,122;
  --text:#f2f6f3;--text-dim:#8e9a92;--on-accent:#04170c;--select:#39e07a;
  --nav-pill:#060907;--nav-pill-fg:#fff;
}
:root[data-theme="light"]{
  --bg:#f1faf4;--panel:#ffffff;--panel-2:#e3f4e8;--border:#cfe8d6;
  --accent:#16a34a;--accent-dim:#0f7a37;--accent-rgb:22,163,74;
  --text:#0d1f14;--text-dim:#5b7466;--on-accent:#ffffff;--select:#16a34a;
  --pill-reseller-bg:#cdeed9;--pill-reseller-fg:#0f7a37;--pill-approved-bg:#d7f3e0;--pill-approved-fg:#0f7a37;
  --pill-completed-bg:#d7f3e0;--pill-completed-fg:#0f7a37;
}

/* ---------- top bar ---------- */
.topbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;background:var(--bg);border-bottom:1px solid var(--accent);padding:12px 16px;}
.topbar #menuBtn{justify-self:start;background:transparent;border:0;color:var(--accent);}
.topbar .brand{justify-content:center;font-weight:800;font-size:19px;letter-spacing:.2px;color:var(--text);}
.topbar .brand em{font-style:normal;color:var(--accent);}
.tb-actions{justify-self:end;display:flex;align-items:center;gap:8px;}
.tb-actions a.icon-btn[href="login.php"]{width:auto;padding:0 14px;gap:8px;font-weight:700;font-size:14px;background:var(--panel-2);border-radius:10px;display:flex;align-items:center;}
.tb-actions a.icon-btn[href="login.php"]::after{content:"Login";}

/* ---------- floating bottom nav ---------- */
.app{padding-bottom:112px;}
.bottomnav{position:fixed;left:50%;right:auto;bottom:12px;transform:translateX(-50%);width:calc(100% - 20px);max-width:460px;background:var(--accent);border:0;border-radius:30px;padding:7px;box-shadow:0 12px 32px rgba(0,0,0,.55);z-index:60;}
.bottomnav-inner{display:flex;gap:4px;max-width:none;margin:0;padding:0;}
.bottomnav .nav-item{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:9px 2px;border-radius:24px;color:var(--on-accent);font-size:11px;font-weight:600;opacity:.8;transition:background .2s,color .2s;}
.bottomnav .nav-item::before,.bottomnav .nav-item::after{display:none;}
.bottomnav .nav-item.active{background:var(--nav-pill);color:var(--nav-pill-fg);opacity:1;box-shadow:0 4px 12px rgba(0,0,0,.35);}
.float-stack{bottom:104px !important;}
.continue-bar{bottom:84px !important;}
body:has(.continue-bar) .float-stack{bottom:170px !important;}

/* ---------- buttons / inputs ---------- */
.btn,.btn-grad,.validate-btn-inline,.pf-update{background:var(--accent) !important;color:var(--on-accent) !important;border-radius:12px;}
input,select,textarea{border-radius:12px;}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(var(--accent-rgb),.18);}
.page-loader .loader-ball,.loader-ball{background:var(--accent) !important;}

/* ---------- home ---------- */
.ticker-wrap{margin:14px 0 0;border:0;border-radius:0;background:var(--accent);}
.ticker-track,.ticker-wrap *{color:var(--on-accent) !important;font-weight:800;text-transform:uppercase;letter-spacing:.3px;}
.qa-row,.quick-actions{gap:12px;}
.qa{align-items:stretch;text-align:center;font-size:12.5px;color:var(--text);}
.qa-icon{width:100%;height:68px;border-radius:14px;background:var(--accent) !important;color:var(--on-accent) !important;border:0;display:flex;align-items:center;justify-content:center;box-shadow:0 0 20px rgba(var(--accent-rgb),.28);}
.qa-icon svg{color:var(--on-accent);}
.live{margin:18px 0 0;background:var(--panel);padding:16px 18px;}
.live-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;}
.live-h h2{margin:0;font-size:17px;font-weight:800;color:var(--accent);letter-spacing:.3px;}
.live-dot{font-size:12px;font-weight:700;color:#ff4d4f;display:flex;align-items:center;gap:6px;}
.live-dot::before{content:"";width:9px;height:9px;border-radius:50%;background:#ff4d4f;animation:livePulse 1.4s infinite;}
@keyframes livePulse{50%{opacity:.25;}}
.live-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--border);}
.live-row:first-of-type{border-top:0;}
.live-img{width:40px;height:40px;border-radius:9px;background:var(--panel-2);overflow:hidden;flex-shrink:0;}
.live-img img{width:100%;height:100%;object-fit:cover;display:block;}
.live-main{flex:1;min-width:0;}
.live-main b{display:block;font-size:15.5px;font-weight:700;}
.live-main small{color:var(--text-dim);font-size:12px;}
.live-amt{color:var(--accent);font-weight:800;font-size:16px;}
.hsec{padding:22px 18px 0;}
.hsec h2{margin:0 0 14px;font-size:21px;font-weight:800;}
.pop{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
.pop::-webkit-scrollbar{display:none;}
.pop .gcard{flex:0 0 118px;scroll-snap-align:start;}
.chips{display:flex;gap:8px;overflow-x:auto;padding:4px 0 14px;scrollbar-width:none;}
.chips::-webkit-scrollbar{display:none;}
.chip{flex-shrink:0;border:1.5px solid var(--accent);background:transparent;color:var(--text);padding:10px 18px;border-radius:12px;font-weight:700;font-size:13.5px;text-transform:uppercase;cursor:pointer;}
.chip.on{background:var(--accent);color:var(--on-accent);}
.ggrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;}
.gcard{display:flex;flex-direction:column;background:var(--panel);border:1.5px solid var(--border);border-radius:16px;overflow:hidden;transition:transform .15s,border-color .15s;}
.gcard:active{transform:scale(.97);}
.gcard:hover{border-color:var(--accent);}
.gimg{aspect-ratio:1/1;background:var(--panel-2);}
.gimg img{width:100%;height:100%;object-fit:cover;display:block;}
.gname{padding:10px 6px 11px;font-size:12.5px;font-weight:600;text-align:center;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em;}

/* ---------- login / register ---------- */
body.auth-page .topbar{display:grid !important;}
body.auth-page .app{padding-bottom:0 !important;}
body.auth-page .bottomnav{display:none !important;}
body.auth-page .stack-body{min-height:0 !important;justify-content:flex-start !important;padding:54px 18px 64px !important;background:var(--accent) !important;}
body.auth-page .auth-back,body.auth-page .auth-logo,body.auth-page .auth-name{display:none !important;}
.auth-card{width:100%;max-width:520px;margin:0 auto;background:#fff;color:#0d1f14;border-radius:28px;padding:28px 22px;box-shadow:0 22px 50px rgba(0,0,0,.28);}
.auth-card *{color:inherit;}
.auth-card .auth-title{text-align:center;font-size:30px;font-weight:600;margin:0 0 18px;}
.auth-card input{background:#fff;color:#0d1f14;border:1px solid #cfd8d2;border-radius:8px;}
.auth-card .btn,.auth-card button[type=submit]{background:#07120b !important;color:#fff !important;border-radius:10px;}
.auth-card a,.auth-card .linkbtn{color:#13a352 !important;font-weight:700;text-decoration:underline;}

/* ---------- wallet / add money ---------- */
.wallet-hero{border-radius:26px;padding:26px 24px;margin-bottom:16px;background:linear-gradient(135deg,#04170c 0%,#0f6a38 55%,var(--accent) 130%);color:#fff;}
.wallet-hero span{display:block;font-size:15px;opacity:.85;font-weight:600;}
.wallet-hero b{display:block;margin-top:10px;font-size:40px;font-weight:800;letter-spacing:.3px;}
.wallet-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px;}
.wallet-actions a{display:flex;align-items:center;justify-content:center;gap:8px;height:54px;border-radius:16px;font-weight:700;font-size:16px;}
.wallet-actions .wa-add{background:var(--accent);color:var(--on-accent);box-shadow:0 8px 20px rgba(var(--accent-rgb),.25);}
.wallet-actions .wa-hist{background:var(--panel-2);color:var(--text);}
.wallet-form{border-radius:24px;padding:22px 20px;}
.wallet-form h3{margin:0 0 14px;font-size:22px;font-weight:800;}
.amt-chip input:checked + label{border-color:var(--accent);color:var(--accent);background:rgba(var(--accent-rgb),.12);}

/* ---------- leaderboard (colour pass; podium markup comes next) ---------- */
body .lbx-banner{background:linear-gradient(110deg,#04170c 0%,#0f6a38 60%,var(--accent) 130%) !important;color:#fff;}
body .lbx-tab.on{color:var(--accent);border-bottom-color:var(--accent);}
body .lbx-prize{color:var(--accent);}

/* ---------- drawer ---------- */
.drawer{background:var(--panel);}
.drawer-welcome{display:flex;align-items:center;justify-content:space-between;padding:22px 20px 16px;border-bottom:1px solid var(--border);}
.drawer-welcome small{display:block;color:var(--text-dim);font-size:14px;}
.drawer-welcome b{display:block;font-size:22px;margin-top:2px;}
.drawer-avatar{width:56px;height:56px;border-radius:50%;background:linear-gradient(135deg,var(--accent-dim),var(--accent));color:var(--on-accent);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:24px;}
.drawer-item.lg{padding:14px 18px !important;font-size:15.5px !important;font-weight:600 !important;}
.drawer-item.lg::after{content:"\203A";margin-left:auto;font-size:26px;line-height:1;color:var(--text-dim);}
.drawer-item .di-ico,.drawer-item .di-ico svg{color:var(--accent) !important;background:none !important;}

/* ---------- search overlay ---------- */
.srch{position:fixed;inset:0;z-index:200;background:rgba(6,9,7,.97);overflow-y:auto;padding:16px 16px 40px;}
.srch[hidden]{display:none;}
.srch-bar{display:flex;align-items:center;gap:10px;background:var(--panel);border:1px solid var(--border);border-radius:16px;padding:0 14px;height:58px;max-width:480px;margin:0 auto 18px;}
.srch-bar svg{color:var(--accent);flex-shrink:0;}
.srch-bar input{flex:1;background:transparent;border:0;box-shadow:none;font-size:17px;padding:0;height:100%;color:var(--text);}
.srch-bar button{background:none;border:0;color:var(--text-dim);font-size:28px;line-height:1;cursor:pointer;}
.srch-list{max-width:480px;margin:0 auto;display:flex;flex-direction:column;gap:10px;}
.srch-row{display:flex;align-items:center;gap:14px;background:var(--panel);border:1px solid var(--border);border-radius:16px;padding:12px 14px;font-weight:600;font-size:16px;}
.srch-row:active{border-color:var(--accent);}
.srch-row img{width:56px;height:56px;border-radius:12px;object-fit:cover;flex-shrink:0;}
.srch-empty{text-align:center;color:var(--text-dim);padding:30px 0;}

/* ---------- site footer ---------- */
.jf{margin-top:auto;background:var(--bg);border-top:1px solid var(--border);padding:34px 18px 8px;text-align:center;}
.jf-h{margin:0 0 16px;font-size:28px;font-weight:800;}
.jf-soc{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:480px;margin:0 auto 30px;}
.jf-soc a{display:flex;align-items:center;justify-content:center;gap:10px;height:62px;border:2px solid var(--accent);border-radius:18px;font-weight:700;font-size:17px;color:var(--text);}
.jf-soc a:active{background:var(--accent);color:var(--on-accent);}
.jf-brand{font-size:26px;font-weight:800;margin:6px 0 10px;}
.jf-brand em{font-style:normal;color:var(--accent);}
.jf-desc{color:var(--text-dim);font-size:14px;line-height:1.7;max-width:440px;margin:0 auto 26px;}
.jf-cols{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:480px;margin:0 auto 26px;}
.jf-cols h4{margin:0 0 8px;font-size:17px;}
.jf-cols h4::after{content:"";display:block;width:44px;height:3px;border-radius:3px;background:var(--accent);margin:8px auto 4px;}
.jf-cols a{display:block;padding:9px 0;color:var(--text-dim);font-size:15px;}
.jf-cols a:active{color:var(--accent);}
.jf-pay{display:flex;justify-content:center;gap:10px;margin:8px 0 22px;}
.jf-pay span{width:56px;height:56px;border-radius:14px;background:var(--panel);display:flex;align-items:center;justify-content:center;}
.jf-pay img{width:38px;height:38px;object-fit:contain;border-radius:8px;}
.jf-copy{color:var(--text-dim);font-size:12.5px;padding:14px 0 6px;border-top:1px solid var(--border);}

/* =====================  v3: header / banner / quick actions copied from reference  ===================== */
.topbar{grid-template-columns:auto minmax(0,1fr) auto;gap:10px;padding:10px 14px;}
.topbar #menuBtn{width:42px;height:42px;padding:0;display:flex;align-items:center;justify-content:center;border-radius:10px;}
.topbar #menuBtn svg{width:32px;height:32px;}
.topbar #menuBtn svg path{stroke-width:2.6;}
.topbar .brand{min-width:0;font-size:19px;white-space:nowrap;gap:8px;}
.topbar .brand img{width:30px;height:30px;border-radius:50%;object-fit:cover;flex-shrink:0;}
.topbar .brand span{overflow:hidden;text-overflow:ellipsis;}
.tb-actions a.icon-btn[href="logout.php"]{display:none;}
.wallet-chip{display:flex;align-items:center;gap:10px;background:var(--panel-2);border:0;box-shadow:none;border-radius:10px;padding:6px 14px 6px 6px;height:auto;}
.wallet-icon{width:32px;height:32px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;color:var(--on-accent);
  background:radial-gradient(circle at 35% 30%,#b9ffd3,var(--accent) 48%,var(--accent-dim));box-shadow:inset 0 0 0 3px rgba(255,255,255,.28);}
.wallet-icon svg{display:none;}
.wallet-icon::before{content:"\20B9";font-weight:800;font-size:16px;}
.wallet-amt{font-size:16px;font-weight:600;}

.banner-carousel{margin:14px 10px 0;border-radius:20px;}
.banner-dots{display:none;}
.banner-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:34px;height:34px;border-radius:50%;padding:0;cursor:pointer;
  background:rgba(0,0,0,.32);border:2px solid rgba(255,255,255,.6);color:#fff;display:flex;align-items:center;justify-content:center;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);}
.banner-arrow.prev{left:5px;}.banner-arrow.next{right:5px;}

.quick-actions{gap:12px;padding:18px 14px 6px;}
.quick-actions .qa{align-items:stretch;gap:9px;}
.quick-actions .qa .qa-icon{width:100%;height:72px;border-radius:12px;background:var(--accent);color:var(--on-accent);border:0;display:flex;align-items:center;justify-content:center;box-shadow:0 0 20px rgba(var(--accent-rgb),.3);}
.quick-actions .qa .qa-icon svg{width:28px;height:28px;color:var(--on-accent);}
.quick-actions .qa span{text-align:center;font-size:12px;line-height:1.25;color:var(--text);}

/* =====================  v4: translucent nav, image fix, live ticker, search look, dashboard  ===================== */
.bottomnav{background:rgba(var(--accent-rgb),.8);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.12);}

/* product images: every image is a true square, cropped to fit (fixes tall images stretching a whole row) */
.gimg{position:relative;aspect-ratio:1/1;overflow:hidden;}
.gimg img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.ggrid{align-items:start;}
.gname{min-height:2.6em;}

/* live purchases: two rows visible, rows slide up one by one */
.live-win{height:128px;overflow:hidden;position:relative;}
.live-track{will-change:transform;}
.live-row{height:64px;box-sizing:border-box;padding:0;border-top:0;border-bottom:1px solid var(--border);}
.live-row:first-of-type{border-top:0;}

/* search overlay like the reference: white search bar + white rounded rows */
.srch{background:rgba(6,9,7,.98);}
.srch-bar{background:#f4f4f4;border:0;border-radius:22px;height:64px;}
.srch-bar svg{color:#2a2a2a;}
.srch-bar input{color:#222;font-size:19px;}
.srch-bar input::placeholder{color:#6b6b6b;}
.srch-bar button{color:#2a2a2a;}
.srch-list{gap:12px;}
.srch-row{background:#fafafa;color:#1a1a1a;border:0;border-radius:24px;padding:16px 18px;font-size:19px;font-weight:400;gap:18px;}
.srch-row img{width:58px;height:58px;border-radius:14px;}
.srch-empty{color:#9aa39d;}

/* dashboard */
.dash-menu{background:var(--panel);border:1px solid var(--border);border-radius:26px;padding:18px 12px 12px;margin-bottom:18px;}
.dash-menu h2{margin:0 8px 10px;padding-bottom:14px;font-size:26px;font-weight:600;border-bottom:1px solid var(--border);}
.dash-menu a{display:block;padding:14px 16px;border-radius:10px;font-size:18px;font-weight:500;margin-top:4px;color:var(--text);}
.dash-menu a.on{background:var(--accent);color:var(--on-accent);font-weight:700;}
.dash-filter{display:grid;gap:12px;margin-bottom:18px;}
.dash-filter select{height:56px;border-radius:12px;background:#fff;color:#111;border:1px solid #cfd6d1;font-size:16px;padding:0 14px;}
.dash-filter button{height:56px;border:0;border-radius:12px;background:var(--accent);color:var(--on-accent);font-size:18px;font-weight:700;cursor:pointer;}
.stat{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--panel);border:1px solid var(--border);border-radius:26px;padding:26px 28px;margin-bottom:14px;color:var(--text);}
.stat:active{border-color:var(--accent);}
.stat b{display:block;font-size:40px;font-weight:600;line-height:1.1;}
.stat span{display:block;margin-top:6px;font-size:19px;color:var(--text-dim);}
.stat svg{width:52px;height:52px;color:var(--accent);flex-shrink:0;}

/* =====================  v5: product page  ===================== */
.pd-cover{position:relative;height:215px;background:linear-gradient(135deg,#0c2a19,#050a07) center/cover no-repeat;}
.pd-cover::after{content:"";position:absolute;left:0;right:0;bottom:0;height:90px;background:linear-gradient(transparent,var(--bg));}
.pd-icon{position:absolute;right:20px;bottom:-36px;z-index:2;width:80px;height:80px;border-radius:16px;border:3px solid #fff;overflow:hidden;background:var(--panel-2);display:flex;align-items:center;justify-content:center;color:var(--accent);box-shadow:0 8px 22px rgba(0,0,0,.45);}
.pd-icon img{width:100%;height:100%;object-fit:cover;display:block;}
.pd-body{padding-top:50px;}
.pd-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;}
.pd-title h1{margin:0;font-size:25px;line-height:1.2;font-weight:700;}
.pd-pub{margin-top:5px;font-size:14px;letter-spacing:1.5px;text-transform:uppercase;color:var(--text-dim);}
.pd-info{position:static;margin-left:auto;width:38px;height:38px;border-radius:50%;border:0;background:var(--accent);color:var(--on-accent);font-weight:800;font-size:18px;font-family:Georgia,serif;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.pd-acc{background:var(--panel);border-radius:16px;margin:0 0 18px;overflow:hidden;}
.pd-acc summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:18px 20px;font-size:18px;font-weight:700;}
.pd-acc summary::-webkit-details-marker{display:none;}
.pd-acc summary::after{content:"";width:10px;height:10px;border-right:2.5px solid currentColor;border-bottom:2.5px solid currentColor;transform:rotate(45deg);margin-top:-5px;transition:transform .2s;}
.pd-acc[open] summary::after{transform:rotate(225deg);margin-top:4px;}
.pd-desc{padding:0 20px 20px;color:var(--text-dim);font-size:15px;line-height:1.7;}
.pd-card{background:var(--panel);border:1px solid var(--border);border-radius:24px;padding:22px 18px;margin-bottom:16px;}
.pd-h{margin:0 0 16px;color:var(--accent);font-size:20px;font-weight:600;text-transform:uppercase;letter-spacing:.2px;}
.pd-input{width:100%;height:56px;border-radius:12px;background:var(--bg);border:1.5px solid var(--accent);color:var(--text);padding:0 16px;font-size:17px;margin-bottom:12px;}
.pd-input::placeholder{text-transform:uppercase;color:var(--text-dim);}
.pd-validate{width:100%;height:54px;border:0;border-radius:12px;background:var(--accent);color:var(--on-accent);font-size:19px;font-weight:700;cursor:pointer;}
.pd-validate:disabled{opacity:.6;}
.pd-card .note{margin-top:12px;}

.cat-row{display:flex;gap:12px;overflow-x:auto;padding:2px 2px 18px;margin-bottom:18px;border-bottom:1px solid var(--border);scrollbar-width:none;}
.cat-row::-webkit-scrollbar{display:none;}
.cat-tile{flex:0 0 90px;height:118px;border-radius:14px;border:1.5px solid var(--border);background:transparent;color:var(--text);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:8px 4px;font-size:12.5px;font-weight:600;line-height:1.2;cursor:pointer;}
.cat-tile.on{background:var(--accent);border-color:var(--accent);color:var(--on-accent);}
.cat-ic{width:56px;height:56px;display:flex;align-items:center;justify-content:center;}
.cat-ic img{max-width:100%;max-height:100%;object-fit:contain;}

.pd-card .pkg-grid{gap:14px;margin-top:0;}
.pd-card .pkg-card label{display:block;position:relative;min-height:134px;padding:16px;border-radius:18px;background:var(--panel-2);border:1.5px solid var(--border);}
.pd-card .pkg-card input:checked + label{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent);}
.pd-card .pkg-card .pname{font-size:17px;font-weight:700;line-height:1.25;word-break:break-word;}
.pd-card .pkg-card .psub{display:block;margin-top:4px;font-size:14px;font-weight:400;opacity:.85;}
.pd-card .pkg-card .pprice{position:absolute;left:16px;bottom:14px;font-size:23px;font-weight:800;color:var(--accent);}
.pd-card .pkg-card .thumb{position:absolute;right:10px;bottom:10px;width:56px;height:56px;background:none;border-radius:0;}
.pd-card .pkg-card .thumb img{object-fit:contain;}

.pay-list{display:flex;flex-direction:column;gap:12px;}
.pay-opt{display:block;cursor:pointer;position:relative;}
.pay-opt input{position:absolute;opacity:0;width:0;height:0;}
.pay-in{display:flex;align-items:center;gap:14px;background:#fff;color:#111;border-radius:12px;padding:14px 16px;min-height:60px;font-size:19px;}
.pay-opt input:checked + .pay-in{background:var(--accent);color:var(--on-accent);font-weight:700;}
.pay-nm{flex:1;}
.pay-sub{font-size:14px;opacity:.75;font-weight:600;}
.pay-coin{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;background:radial-gradient(circle at 35% 30%,#b9ffd3,var(--accent) 50%,var(--accent-dim));color:#04170c;box-shadow:inset 0 0 0 3px rgba(255,255,255,.3);}
.pay-logos{display:flex;gap:4px;}
.pay-logos img{width:26px;height:26px;border-radius:7px;object-fit:contain;background:#fff;}

.buy-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:22px;}
.buy-top .pd-h{margin:0;}
.buy-right{text-align:right;}
.buy-right b{display:block;font-size:24px;font-weight:700;}
.buy-right span{display:block;margin-top:4px;font-size:14.5px;}
.buy-btn{width:100%;height:58px;border:0;border-radius:12px;font-size:20px;font-weight:800;letter-spacing:.4px;cursor:pointer;}

/* =====================  v6: drawer, wallet, profile, support  ===================== */
.dash-wrap{max-width:480px;width:100%;margin:0 auto;padding:16px 16px 0;}
.dash-wrap .dash-menu{margin-bottom:6px;}

/* drawer like the reference: simple icon rows + chevrons, 3 action tiles, useful links */
.drawer{width:min(84vw,340px);overflow-y:auto;background:var(--panel);padding-bottom:24px;}
.dw-item{display:flex;align-items:center;gap:16px;padding:15px 20px;font-size:17px;font-weight:500;color:var(--text);}
.dw-item svg{color:var(--accent);flex-shrink:0;}
.dw-item::after{content:"\203A";margin-left:auto;font-size:26px;line-height:1;color:var(--text-dim);}
.dw-item:active{background:var(--panel-2);}
.dw-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:14px 16px;margin-top:8px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);}
.dw-tile{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 4px;border-radius:16px;background:var(--panel-2);font-size:13.5px;font-weight:600;color:var(--text);}
.dw-tile svg{color:var(--accent);}
.dw-sec{padding:18px 20px 4px;font-size:13px;letter-spacing:1.6px;text-transform:uppercase;color:var(--text-dim);}

/* wallet page (reference): balance card, two buttons, form card */
.wallet-hero{background:linear-gradient(135deg,#04170c 0%,#0f6a38 55%,var(--accent) 135%);}
.wallet-actions a{height:56px;border-radius:16px;}
.wallet-form{background:var(--panel);border:1px solid var(--border);border-radius:26px;padding:26px 22px;}
.wallet-form h3{font-size:25px;font-weight:700;margin:0 0 22px;}
.wf-label{display:block;font-size:17px;color:var(--text-dim);margin-bottom:12px;}
.wf-input{width:100%;height:58px;border-radius:16px;border:0;background:#0b0f0c;color:#fff;padding:0 20px;font-size:19px;}
:root[data-theme="light"] .wf-input{background:#e8f4ec;color:#0d1f14;}
.wf-note{margin:10px 2px 24px;font-size:15px;color:var(--text);}
.wf-btn{display:block;width:100%;height:58px;border:0;border-radius:18px;background:var(--accent);color:var(--on-accent);font-size:20px;font-weight:700;cursor:pointer;margin-bottom:14px;}

/* profile page (reference) */
.ac-logout{display:flex;align-items:center;justify-content:space-between;height:56px;padding:0 24px;margin-bottom:16px;border-radius:16px;background:var(--accent);color:var(--on-accent);font-weight:700;font-size:20px;}
.ac-card{background:var(--panel);border:1px solid var(--border);border-radius:26px;padding:26px 22px 24px;margin-bottom:16px;}
.ac-title{margin:0 0 2px;color:var(--accent);font-size:30px;font-weight:700;}

/* support page */
.sup-chats{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;margin-bottom:16px;border:1.5px solid var(--border);border-radius:14px;font-size:19px;color:var(--text);}
.sup-card{background:var(--panel);border-radius:28px;padding:28px 24px;margin-bottom:16px;}
.sup-kicker{font-size:19px;letter-spacing:1.5px;font-weight:600;margin-bottom:18px;}
.sup-card h1{margin:0 0 14px;font-size:34px;line-height:1.15;font-weight:700;}
.sup-card p{margin:0 0 26px;font-size:20px;line-height:1.55;color:var(--text);}
.sup-input{display:block;width:100%;margin-bottom:20px;padding:0 20px;border-radius:18px;border:1.5px solid var(--border);background:var(--panel-2);color:var(--text);font-size:19px;font-family:inherit;}
select.sup-input{height:64px;}
textarea.sup-input{padding:18px 20px;resize:vertical;min-height:170px;}
.sup-input:focus{outline:none;border-color:var(--accent);}
.sup-btn{display:flex;align-items:center;justify-content:center;width:100%;height:62px;border:0;border-radius:18px;background:var(--accent);color:var(--on-accent);font-size:21px;font-weight:700;cursor:pointer;}
.sup-wa{display:block;text-align:center;margin-top:18px;color:var(--accent);font-weight:700;}
.sup-err{margin:0 0 18px;padding:12px 14px;border-radius:12px;background:rgba(229,72,77,.12);border:1px solid rgba(229,72,77,.4);color:var(--danger);font-size:15px;}
.sup-ok{margin:0 0 16px;padding:14px 16px;border-radius:14px;background:rgba(var(--accent-rgb),.12);border:1px solid rgba(var(--accent-rgb),.4);color:var(--accent);font-size:15px;}
.qc{background:var(--panel);border:1px solid var(--border);border-radius:20px;padding:18px;margin-bottom:14px;}
.qc-top{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:17px;}
.qc-pill{font-size:12px;font-weight:700;padding:5px 11px;border-radius:99px;background:var(--panel-2);color:var(--text-dim);}
.qc-pill.answered{background:rgba(var(--accent-rgb),.18);color:var(--accent);}
.qc-date{margin:4px 0 10px;font-size:12.5px;color:var(--text-dim);}
.qc-msg{font-size:15.5px;line-height:1.6;}
.qc-reply{margin-top:14px;padding:12px 14px;border-left:3px solid var(--accent);border-radius:0 12px 12px 0;background:var(--panel-2);font-size:15px;line-height:1.6;}
.qc-reply small{display:block;margin-bottom:4px;color:var(--accent);font-weight:700;}

/* =====================  v7: floating glass drawer (30% transparent) in the reference's compact style  ===================== */
.drawer-overlay{z-index:80;background:rgba(0,0,0,.45);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);}
.drawer{top:calc(10px + env(safe-area-inset-top,0px));bottom:calc(10px + env(safe-area-inset-bottom,0px));left:10px;width:min(86vw,340px);max-width:none;padding:0 0 10px;z-index:90;
  border:1px solid rgba(255,255,255,.12);border-radius:28px;background:rgba(14,19,16,.70);
  -webkit-backdrop-filter:blur(22px) saturate(150%);backdrop-filter:blur(22px) saturate(150%);box-shadow:0 24px 60px rgba(0,0,0,.55);
  transform:translateX(calc(-100% - 24px));opacity:0;transition:transform .28s ease,opacity .28s ease;overscroll-behavior:contain;}
.drawer.open{transform:translateX(0);opacity:1;}
:root[data-theme="light"] .drawer{background:rgba(255,255,255,.70);border-color:rgba(0,0,0,.08);box-shadow:0 24px 60px rgba(0,0,0,.2);}
.drawer-welcome{padding:26px 22px 18px;border-bottom:1px solid rgba(255,255,255,.07);}
.drawer-welcome small{font-size:16px;}
.drawer-welcome b{font-size:23px;font-weight:700;}
.drawer-avatar{width:54px;height:54px;font-size:22px;}
.dw-item{gap:16px;padding:11px 22px;font-size:17px;font-weight:400;}
.dw-item svg{width:22px;height:22px;}
.dw-item::after{content:"";width:9px;height:9px;margin:0 6px 0 auto;border-right:2px solid var(--text-dim);border-bottom:2px solid var(--text-dim);transform:rotate(-45deg);font-size:0;}
.dw-item.dw-danger,.dw-item.dw-danger svg{color:#ff5a5f;}
.dw-tiles{gap:12px;padding:16px 18px;margin-top:6px;border-top:1px solid rgba(255,255,255,.07);border-bottom:1px solid rgba(255,255,255,.07);}
.dw-tile{gap:9px;padding:18px 4px;border-radius:20px;background:rgba(255,255,255,.07);font-size:15.5px;font-weight:400;}
:root[data-theme="light"] .dw-tile{background:rgba(0,0,0,.06);}
.dw-sec{padding:18px 22px 4px;font-size:14px;letter-spacing:1.8px;}
.drawer-developer{margin:12px 22px 0;}
.drawer-theme{border-top-color:rgba(255,255,255,.1);}

/* =====================  v8: J coin, smaller product boxes, payment buttons, footer marquee  ===================== */
/* J coin image replaces the rupee badge */
.wallet-icon{width:36px;height:36px;background:url(jcoin.png) center/contain no-repeat !important;box-shadow:none !important;}
.wallet-icon::before{content:none !important;}
.wallet-chip{padding:5px 14px 5px 6px;}
.wallet-hero{position:relative;}
.wh-coin{position:absolute;right:22px;top:50%;transform:translateY(-50%);width:86px;height:86px;filter:drop-shadow(0 8px 16px rgba(0,0,0,.45));}
.topbar .brand{font-size:clamp(14px,4.6vw,19px);}

/* product page: smaller ID fields, category tiles and package boxes */
.pd-card{padding:18px 16px;margin-bottom:14px;border-radius:22px;}
.pd-h{font-size:18px;margin-bottom:12px;}
.pd-input{height:46px;font-size:15px;border-radius:10px;margin-bottom:10px;padding:0 14px;}
.pd-validate{height:46px;font-size:16px;border-radius:10px;}
.cat-row{gap:10px;padding:2px 2px 14px;margin-bottom:14px;}
.cat-tile{flex:0 0 76px;height:96px;gap:6px;padding:6px 3px;border-radius:12px;font-size:11.5px;}
.cat-ic{width:42px;height:42px;}
.pd-card .pkg-grid{gap:10px;}
.pd-card .pkg-card label{min-height:100px;padding:12px 14px;border-radius:14px;}
.pd-card .pkg-card .pname{font-size:15px;}
.pd-card .pkg-card .psub{font-size:12.5px;margin-top:3px;}
.pd-card .pkg-card .pprice{left:14px;bottom:10px;font-size:19px;}
.pd-card .pkg-card .thumb{right:8px;bottom:8px;width:42px;height:42px;}

/* one button per payment app (all lead to the payment gateway page) */
.pay-list{gap:10px;}
.pay-in{gap:12px;padding:9px 14px;min-height:54px;font-size:16px;border-radius:12px;}
.pay-logo{width:36px;height:36px;border-radius:9px;object-fit:contain;flex-shrink:0;}
.pay-coin{width:36px;height:36px;object-fit:contain;border-radius:0;background:none;box-shadow:none;flex-shrink:0;}
.pay-sub{font-size:14px;}

/* footer: large scrolling store name */
.jf-marq{overflow:hidden;margin:4px -18px 16px;padding:4px 0;}
.jf-marq-track{display:flex;width:max-content;animation:jfMarq 22s linear infinite;}
.jf-marq span{flex:0 0 auto;padding-right:.55em;font-size:clamp(46px,16vw,76px);line-height:1.1;font-weight:800;letter-spacing:1px;text-transform:uppercase;white-space:nowrap;color:var(--accent);}
@keyframes jfMarq{to{transform:translateX(-50%);}}
@media (prefers-reduced-motion:reduce){.jf-marq-track{animation:none;}}

/* =====================  v9: login / register / forgot forms, product info box, matching tile + package borders  ===================== */
.auth-card .af-input{display:block;width:100%;height:56px;margin-bottom:16px;padding:0 18px;border:1px solid #d3dcd6;border-radius:6px;background:#fff;color:#0d1f14;font-size:17px;}
.auth-card .af-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(var(--accent-rgb),.22);}
.auth-card .af-input::placeholder{color:#6b7a70;}
.auth-card .af-btn{display:block;width:100%;height:58px;margin-top:4px;border:0;border-radius:10px;background:#07120b !important;color:#fff !important;font-size:19px;font-weight:700;cursor:pointer;}
.auth-card .af-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-top:16px;font-size:15.5px;line-height:1.5;}
.auth-card .af-right{text-align:right;}
.auth-card .af-center{margin-top:16px;text-align:center;font-size:15.5px;}
.auth-card .af-help{margin:0 0 18px;text-align:center;font-size:15px;line-height:1.55;color:#4a5a50;}
.auth-card .af-err{margin-bottom:16px;padding:11px 14px;border-radius:10px;background:#fdecec;border:1px solid #f3b8b4;color:#b3261e;font-size:14.5px;line-height:1.5;}
.auth-card .af-info{margin-bottom:16px;padding:11px 14px;border-radius:10px;background:#e6f7ec;border:1px solid #a9dfbd;color:#0f6a38;font-size:14.5px;line-height:1.5;}
.auth-card button.af-link{display:inline;width:auto;height:auto;padding:0;border:0;background:none !important;color:#13a352 !important;font-size:15.5px;font-weight:700;text-decoration:underline;cursor:pointer;}
.auth-card form.af-right{margin:0;}

/* Product Information: dark bar + separate text box (like the reference) */
.pd-acc{background:none;overflow:visible;margin-bottom:16px;}
.pd-acc summary{background:var(--panel);border-radius:18px;padding:20px 22px;font-size:19px;}
.pd-desc{margin-top:10px;padding:22px;background:var(--panel-2);border-radius:18px;color:var(--text);opacity:.92;font-size:16px;line-height:1.75;}

/* category tiles + package boxes share one border style: 2px, 12px corners */
.cat-tile{flex:0 0 80px;height:100px;gap:7px;border:2px solid rgba(255,255,255,.2);border-radius:12px;font-size:12px;}
.cat-ic{width:46px;height:46px;}
.cat-tile.on{border-color:var(--accent);}
.pd-card .pkg-card label{min-height:116px;padding:14px 16px;border:2px solid rgba(255,255,255,.2);border-radius:12px;}
.pd-card .pkg-card input:checked + label{border-color:var(--accent);box-shadow:none;}
.pd-card .pkg-card .pname{font-size:16px;}
.pd-card .pkg-card .pprice{left:16px;bottom:12px;font-size:21px;}
.pd-card .pkg-card .thumb{right:10px;bottom:10px;width:46px;height:46px;}
:root[data-theme="light"] .cat-tile,:root[data-theme="light"] .pd-card .pkg-card label{border-color:rgba(13,31,20,.18);}
:root[data-theme="light"] .cat-tile.on,:root[data-theme="light"] .pd-card .pkg-card input:checked + label{border-color:var(--accent);}


/* ===== Out-of-stock games (homepage tiles + product page) ===== */
.gcard.oos .gimg img{filter:saturate(.45) brightness(.78);}
.gcard.oos .gimg::after{content:"";position:absolute;inset:0;background:rgba(28,118,128,.5);pointer-events:none;}
.gcard.oos .gname{opacity:.6;}
.gcard.oos{border-color:rgba(60,160,170,.35);}
.oos-badge{position:absolute;top:9px;left:50%;transform:translateX(-50%);z-index:2;white-space:nowrap;background:#e8143c;color:#fff;font-weight:800;font-size:9.5px;letter-spacing:.5px;text-transform:uppercase;line-height:1;padding:7px 10px;border-radius:12px;box-shadow:0 3px 0 #a30f2d,0 7px 12px rgba(0,0,0,.35);}
.pop .gcard.oos .oos-badge{font-size:8.5px;padding:6px 8px;top:7px;}
.oos-notice{position:relative;text-align:center;padding:26px 16px 22px;margin:14px 0;border-radius:16px;background:rgba(28,118,128,.18);border:1px solid rgba(60,160,170,.4);}
.oos-notice .oos-badge{position:static;display:inline-block;transform:none;font-size:13px;padding:9px 16px;margin-bottom:12px;}
.oos-notice p{margin:0 0 14px;opacity:.9;line-height:1.45;}

