/* ===== Design tokens ===== */
:root{
  --bg:#161a20;          /* page + header */
  --surface:#1e2128;     /* category bar, footer */
  --card:#22262e;        /* tiles */
  --card-2:#282d34;      /* secondary buttons */
  --nav:#353a41;         /* bottom nav */
  --login-1:#3d97da;--login-2:#2263a2;
  --reg-1:#4bd83f;--reg-2:#17991a;
  --line:#2c323b;
  --text:#ffffff;
  --muted:#9aa3ae;
  --primary:#1a9fd7;     
  --primary-2:#0088d1;
  --hot:#e3123a;
  --radius:10px;
  --gutter:12px;
  --header-h:58px;
  --nav-h:65px;
  --safe-b:env(safe-area-inset-bottom,0px);
  /* Bar is 65px; on phones with a home bar (iPhone) it is 54px of icons + the safe area, never less than 65px */
  --nav-total:max(var(--nav-h),calc(54px + var(--safe-b)));
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:#07090b;color:var(--text);font-family:Montserrat,Roboto,"Helvetica Neue",Arial,sans-serif;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}

/* Whole app is one fluid column; caps at 480px on tablets/desktop */
.app{position:relative;width:100%;max-width:480px;margin:0 auto;min-height:100vh;background:var(--bg);
  padding-bottom:var(--nav-total);overflow:hidden}

/* ===== Header ===== */
.header{position:sticky;top:0;z-index:50;height:calc(var(--header-h) + 2px);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;
  padding:0 16px 0 19px;background:var(--bg);border-bottom:2px solid #1e2128}
.menu-btn{justify-self:start;display:block}
.menu-btn{display:grid;place-items:center;width:22px;height:22px;color:#00aeef}
.menu-btn svg{display:block}
.logo{justify-self:center;display:flex;align-items:center}
.logo img{display:block;width:75px;height:auto}
.logo-text{font-weight:800;font-style:italic;font-size:26px;letter-spacing:.5px;color:var(--primary)}
.logo-text b{color:#fff}
.lang-btn{justify-self:end;width:26px;height:26px;background:url(../../assets/img/fe1747f55139.webp) center/contain no-repeat}

.page-title{justify-self:center;margin:0;font-size:15px;font-weight:700;line-height:36px;color:#00aeef;text-transform:uppercase;white-space:nowrap}
/* ===== Bottom nav (fixed, respects iPhone home bar + Android gesture bar) ===== */
.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:60;width:100%;max-width:480px;margin:0 auto;
  display:grid;grid-template-columns:repeat(5,1fr);height:var(--nav-total);padding-bottom:var(--safe-b);
  background:#353a41}
.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-size:10px;line-height:12px;color:#fff;min-width:0}
.bottom-nav svg{display:block;width:21.33px;height:21.33px;color:#fff}
.bottom-nav span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Active tab: only the icon turns blue, the label stays white */
.bottom-nav a.is-active svg{color:#00aeef}

/* ===== Side menu (copied from the live site's #main-nav) ===== */
.side-menu{position:fixed;inset:0;z-index:1000;width:100%;max-width:480px;margin:0 auto;background:rgba(0,0,0,.5);overflow-y:auto}
.side-menu[hidden]{display:none}
.side-panel{width:70%;min-height:100%;background:#2e3033}
.side-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;padding:10px;background:#1a6585}
.side-logo{display:block;width:152px;height:auto;padding-left:11.2px}
.side-close{display:block;width:24px;height:24px}
.side-close img{display:block;width:24px;height:24px}
.side-list{margin:0;padding:0;list-style:none}
.side-link{display:flex;padding:12px 16px 12px 15px;border-bottom:1px solid #373a3f;font-size:13px;font-weight:500;line-height:19.5px;color:#fff}
.side-link span{display:block;padding-left:15px;text-transform:uppercase}
.side-ic{flex:0 0 auto;display:block;width:27.2px;height:24px;background:center/100% 100% no-repeat}
.side-ic.is-flag{height:27.2px}
.side-win{display:inline-block;width:12.8px;height:11.2px;margin-left:4.8px;background:url(../../assets/img/42034f5c73cd.gif) center/100% 100% no-repeat}
body.menu-open{overflow:hidden}
/* Logged-in side menu: username + level replace the logo, LOGOUT is the last item */
.side-top{height:60px}
.side-user{margin-left:14.4px}
.side-user-name{font-size:16px;font-weight:700;line-height:16px;text-transform:uppercase}
.side-user-level{font-size:8px;line-height:24px;text-transform:uppercase}
.side-list li:last-child .side-link{border-bottom:0}
/* ===== VIP page (new design, before login) ===== */
.hdr-btn{display:grid;place-items:center;width:22px;height:22px;color:#00aeef}
.vip-page{padding-bottom:28px}
.vip-hero{position:relative}
.vip-hero img{width:100%;height:auto}
/* Bottom of the hero fades fully into the page colour, so the title sits on a clean dark background */
.vip-hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:110px;background:linear-gradient(rgba(22,26,32,0),rgba(22,26,32,.85) 55%,#161a20 80%)}
.vip-match{position:relative;z-index:1;margin-top:-30px;padding:0 16px;text-align:center}
.vip-match h2{margin:0;font-size:20px;line-height:26px;font-weight:700;color:#fff}
.vip-match p{margin:6px 8px 0;font-size:12px;line-height:15px;color:#d7d7d9}
/* Primary button = site rule [16]: gradient #55d6f9 -> #1e74e6, white bold uppercase, radius 4px, 44px / 14px */
.vip-btn{display:flex;align-items:center;justify-content:center;width:100%;height:44px;border:0;border-radius:4px;background:linear-gradient(90deg,#55d6f9,#1e74e6);font-size:14px;font-weight:700;color:#fff;text-transform:uppercase}
.vip-match .vip-btn{margin-top:16px}
.vip-h{margin:24px 16px 10px;font-size:15px;line-height:20px;font-weight:600;color:#fff}
.vip-tiers{position:relative;display:flex;gap:14px;margin:-10px 0;padding:10px 16px;overflow-x:auto;scrollbar-width:none}
.vip-tiers::-webkit-scrollbar{display:none}
.vip-tier{flex:0 0 150px;cursor:pointer;position:relative;padding:0;border:0;border-radius:8px;background:none}
.vip-tier img{width:150px;height:87px;border-radius:8px;filter:brightness(.4) saturate(.5);transition:filter .25s,box-shadow .25s}
/* Selected tier: card lights up and glows in its own colour; the others stay dark */
.vip-tier.active img{filter:none;box-shadow:0 0 12px var(--glow)}
.vip-divider{height:1px;margin:24px 16px;background:#323a46}
.vip-tabs{display:flex;margin:0 16px;height:44px;border-radius:6px 6px 0 0;background:#20262f}
.vip-tab{flex:1;position:relative;border:0;background:none;font-size:13px;color:#828293}
.vip-tab.active{color:#fff;font-weight:600}
.vip-tab.active::after{content:"";position:absolute;left:50%;bottom:0;width:80px;height:3px;margin-left:-40px;border-radius:2px;background:linear-gradient(90deg,#71D0EE,#00AEEF)}
.vip-pane[hidden]{display:none}
.vip-card{margin:24px 16px 0;padding:14px 14px 16px;border-radius:8px;background:#20262f}
.vip-card-hd{display:flex;align-items:center;gap:10px;padding-bottom:12px;border-bottom:1px solid #353d49}
.vip-card-hd svg{flex:0 0 24px;margin-left:-4px}
.vip-card-hd h3{flex:1;margin:0;font-size:15px;line-height:20px;font-weight:600;color:#fff}
.vip-pill{min-width:64px;height:30px;padding:0 14px;border-radius:15px;border:1.5px solid var(--tier,#c8a17a);background:#2b3038;font-size:13px;line-height:27px;color:#fff;text-align:center;box-shadow:0 0 6px rgba(0,0,0,.4)}
.vip-sec{padding:12px 0 10px;border-bottom:1px solid #353d49}
.vip-sec:last-child{border-bottom:0;padding-bottom:0}
.vip-sec h4{margin:0 0 8px;font-size:13px;line-height:18px;font-weight:600;color:#00aeef}
.vip-rebate{display:flex;align-items:center;border-bottom:1px solid #353d49;padding:10px 0}
.vip-rebate h4{flex:1;margin:0}
.vip-rebate div{width:58px;text-align:right}
.vip-rebate small{display:block;font-size:12px;line-height:16px;color:#b2b2bd}
.vip-rebate b{display:block;font-size:15px;line-height:20px;font-weight:600;color:#fff}
.vip-row{display:flex;justify-content:space-between;gap:12px;font-size:12px;line-height:23px;color:#b2b2bd}
.vip-row b{font-weight:700;color:#fff;text-align:right}
.vip-sub{margin:0 16px;font-size:14px;line-height:18px;color:#9a9aa6}
.vip-perks{display:flex;gap:10px;margin-top:16px;padding:0 16px;overflow-x:auto;scrollbar-width:none}
.vip-perks::-webkit-scrollbar{display:none}
.vip-perk{flex:0 0 230px;padding:14px 14px 16px;border-radius:10px;background:#20262f}
.vip-perk h5{display:flex;align-items:center;gap:6px;margin:0 0 8px;font-size:12px;line-height:16px;font-weight:500;color:#fff}
.vip-perk p{margin:0;font-size:11.5px;line-height:15px;color:#b2b2bd}
.vip-faq{margin:0 16px}
.vip-faq details{margin-bottom:6px;border-radius:6px;background:#20262f}
.vip-faq summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:43px;padding:0 14px;font-size:13px;line-height:17px;color:#fff;list-style:none;cursor:pointer}
.vip-faq summary::-webkit-details-marker{display:none}
.vip-faq summary svg{flex:0 0 12px;transition:transform .2s}
.vip-faq details[open] summary svg{transform:rotate(180deg)}
.vip-faq details p{margin:0;padding:0 14px 12px;font-size:12px;line-height:17px;color:#b2b2bd}
.vip-locked{display:flex;flex-direction:column;align-items:center;margin:0 16px;padding:81px 24px 40px;text-align:center}
.vip-locked h3{margin:22px 0 4px;font-size:15px;line-height:20px;font-weight:600;color:#fff}
.vip-locked p{margin:0;font-size:12px;line-height:16px;color:#b2b2bd}
.vip-locked .vip-btn{width:221px;margin-top:20px}
/* After login: VIP level + deposit progress */
.vip-level{margin:16px 16px 0;padding:14px;border-radius:8px;background:#20262f}
.vip-level-hd{display:flex;align-items:center;gap:10px}
.vip-level-hd svg{flex:0 0 24px;margin-left:-4px}
.vip-level-hd h3{flex:1;margin:0;font-size:15px;line-height:20px;font-weight:600;color:#fff}
.vip-progress{margin-top:14px;padding:12px;border-radius:6px;background:#282e37}
.vip-progress-top{display:flex;justify-content:space-between;font-size:12px;line-height:16px;color:#b2b2bd}
.vip-progress-top b{font-weight:700;color:#00aeef}
.vip-bar{height:4px;margin:8px 0;border-radius:2px;background:#161a20;overflow:hidden}
.vip-bar i{display:block;height:100%;border-radius:2px;background:#00aeef}
.vip-progress-amt{font-size:12px;line-height:16px;font-weight:700;color:#fff}
.vip-progress-amt span{color:#828293}
.vip-soon{margin:0 16px;padding:60px 24px;text-align:center;font-size:12px;line-height:17px;color:#828293}


/* ===== Grey inactive icons (Max 2026-11-13) ===== */
.cat:not(.is-active){color:#b2b2bd}
.cat:not(.is-active) svg.ic,.cat:not(.is-active) svg.ic *{color:#b2b2bd!important;fill:#b2b2bd!important}
.cat:not(.is-active) i.ic{filter:brightness(.7)}
.bottom-nav a:not(.is-active),.bottom-nav a:not(.is-active) svg{color:#b2b2bd}

/* ===== Bottom nav dark (Max 2026-11-13) ===== */
.bottom-nav{background:#161a20!important;background-image:none!important;border-top:1px solid #1e232b}
