/* ===== 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}
/* Rule [20]: selected icon = blue gradient #71D0EE -> #00AEEF (left to right) */
.bottom-nav a.is-active svg path{fill:url(#activeGrad)}

/* ===== 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}
/* ===== My Account (new design, Max 2026-11-10) ===== */
.hdr-btn{display:grid;place-items:center;width:22px;height:22px;color:#00aeef}
.header.ma-hdr{grid-template-columns:auto 1fr auto;column-gap:8px}
.ma-hdr .page-title{justify-self:start;font-size:17px;color:#fff;text-transform:none}
.ma-bal{display:flex;align-items:center;height:28px;padding:0 0 0 10px;border-radius:6px;background:#282d34;color:#fff}
.ma-bal b{font-size:13px;line-height:28px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.ma-bal button,.ma-bal a{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;background:none;color:#b2b2bd;cursor:pointer}
.ma-bal button{margin-left:4px}
.ma-bal a{border-left:1px solid #3a414b;color:#00aeef}
.ma-page{padding-bottom:28px}
.ma-card{margin:16px 16px 0;padding:14px;border-radius:8px;background:#20262f}
.ma-user{display:flex;align-items:center;gap:10px}
.ma-user>svg{flex:0 0 40px}
.ma-user h2{flex:1;margin:0;font-size:18px;line-height:24px;font-weight:700;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-progress{margin-top:14px;padding:12px;border-radius:6px;background:#282e37}
.vip-progress-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;line-height:16px;color:#b2b2bd}
.vip-progress-top span{display:flex;align-items:center;gap:6px}
.vip-progress-top a{font-weight:600;color:#fff}
.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{display:flex;justify-content:space-between;font-size:12px;line-height:16px;color:#b2b2bd}
.vip-progress-amt b{font-weight:700;color:#fff}
.vip-progress-amt em{font-style:normal;font-weight:700;color:#00aeef}
.ma-verify{display:flex;align-items:center;gap:10px;margin:16px 16px 0;padding:10px 13px;border-radius:8px;border:1px solid #c9a227;background:#2e2a17}
.ma-verify>svg{flex:0 0 24px}
.ma-verify p{flex:1;margin:0;font-size:12px;line-height:16px;color:#f2c94c}
.ma-verify a{font-size:13px;line-height:16px;font-weight:700;color:#f2c94c;white-space:nowrap}
.ma-h{margin:24px 16px 10px;font-size:15px;line-height:20px;font-weight:600;color:#fff}
.ma-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:0 16px}
.ma-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;height:84px;border-radius:8px;background:#20262f;font-size:12px;line-height:16px;color:#fff;text-align:center}
.ma-tile svg{width:24px;height:24px}
.ma-badge{position:absolute;top:17px;left:calc(50% + 6px);min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:#e5484d;font-size:10px;line-height:16px;font-weight:700;color:#fff}
.ma-list{margin:0 16px;border-radius:8px;background:#20262f;overflow:hidden}
.ma-row{display:flex;align-items:center;gap:12px;height:48px;padding:0 14px;font-size:13px;color:#fff}
.ma-row+.ma-row{border-top:1px solid #282e37}
.ma-row span{flex:1}
.ma-row em{font-style:normal;font-size:12px;font-weight:600;color:#f2c94c}
.ma-row>svg:last-child{color:#828293}
.ma-logout{margin-top:12px}
.ma-logout .ma-row{color:#e5484d}
.ma-logout .ma-row>svg:last-child{color:#e5484d}
.ma-wallet{display:flex;align-items:flex-end;justify-content:space-between;margin-top:14px;padding-top:14px;border-top:1px solid #2c333d}
.ma-wallet small{display:block;font-size:12px;line-height:16px;color:#b2b2bd}
.ma-amt{display:flex;align-items:center;gap:8px;margin-top:4px}
.ma-amt b{font-size:20px;line-height:26px;font-weight:700;color:#fff;font-variant-numeric:tabular-nums;white-space:nowrap}
.ma-amt button{display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;background:none;color:#b2b2bd;cursor:pointer}
.ma-dep{display:flex;align-items:center;gap:6px;height:32px;padding:0 14px;border-radius:4px;background:linear-gradient(90deg,#55d6f9,#1e74e6);font-size:12px;font-weight:700;line-height:32px;color:#fff;text-transform:uppercase}
/* v74: tiles closer to Max's design + visual alignment */
.ma-tile{height:90px;font-size:13px}
.ma-badge{top:20px}
.ma-row{padding:0 14px 0 10px;font-size:14px}
.ma-verify{margin-top:24px}
.ma-grid{gap:5px}
/* v76 type scale: 20 balance / 16 name / 15 section title / 13 main text / 12 secondary */
.ma-user h2{font-size:16px;line-height:22px}
.ma-row{font-size:13px}
.ma-row em{font-size:12px}
/* v84: tile icons white; blue only when pressed (same rule as side menu / bottom nav) */
.ma-tile svg{color:#fff}
.ma-tile:active svg{color:#00aeef}
@media (hover:hover){.ma-tile:hover svg{color:#00aeef}}
/* v85 verify card (option A): same dark card, only icon + button yellow */
.ma-verify{gap:12px;padding:12px 14px;border:0;background:#20262f}
.ma-verify-ic{flex:0 0 32px;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:rgba(242,201,76,.12)}
.ma-verify-txt{flex:1;min-width:0}
.ma-verify-txt b{display:block;font-size:13px;line-height:18px;font-weight:700;color:#fff}
.ma-verify-txt span{display:block;font-size:12px;line-height:16px;color:#b2b2bd}
.ma-verify a{height:28px;padding:0 14px;border:1px solid #f2c94c;border-radius:4px;font-size:12px;line-height:26px;font-weight:700;color:#f2c94c}
/* v86 clean: fewer boxes, same language as the side menu */
.vip-progress{margin-top:16px;padding:0;background:none;border-radius:0}
.vip-progress-top span{color:#b2b2bd}
.vip-progress-top a{color:#00aeef;font-weight:600}
.vip-bar{background:#2c333d}
.vip-progress-amt b{color:#fff}
.ma-h{margin:32px 16px 8px;font-size:11px;line-height:16px;font-weight:600;letter-spacing:1.2px;text-transform:uppercase;color:#828293}
.ma-grid{row-gap:5px}
.ma-list{background:none;border-radius:0}
.ma-row{padding:0;gap:16px}
.ma-row+.ma-row{border-top:0}
.ma-logout{margin-top:8px;padding-top:8px;border-top:1px solid #20262f}
/* v88 compact member card */
.ma-card{padding:12px 14px}
.ma-user>svg{flex:0 0 32px}
.ma-user h2{font-size:15px;line-height:20px}
.ma-card .vip-pill{min-width:0;height:24px;padding:0 10px;border-radius:12px;font-size:12px;line-height:21px}
.ma-wallet{margin-top:12px;padding-top:12px}
.ma-amt{margin-top:2px}
.ma-amt b{font-size:18px;line-height:24px}
.vip-progress{margin-top:12px}
.vip-bar{margin:6px 0}
.ma-card .vip-pill{height:20px;padding:0 8px;border-width:1px;border-radius:10px;font-size:11px;line-height:18px;font-weight:500;box-shadow:none}
/* v116 sync with homepage palette (Max 2026-11-13): cards #1a1e25, inner dark #14181e, icons grey #b2b2bd, blue when pressed */
.ma-card,.ma-verify,.ma-tile{background:#1a1e25}
.ma-wallet{border-top-color:#262b33}
.vip-bar{background:#14181e}
.ma-card .vip-pill{background:#14181e}
.ma-tile svg{color:#b2b2bd}
.ma-tile:active svg{color:#00aeef}
@media (hover:hover){.ma-tile:hover svg{color:#00aeef}}
.ma-row:not(.ma-logout .ma-row)>svg:first-child{color:#b2b2bd}
.ma-logout{border-top-color:#1e232b}
.ma-row:not(.ma-logout .ma-row)>svg:first-child path[fill="#fff"]{fill:#b2b2bd}
.ma-row:not(.ma-logout .ma-row):active>svg:first-child path[fill="#fff"]{fill:#00aeef}


/* ===== 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}
