/* ===== Design tokens ===== */
:root{color-scheme:dark;
  --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:88px;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}

/* ===== Banner carousel (CSS scroll-snap, swipe works natively on iOS + Android) ===== */
.banner{position:relative}
.slides{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.slides::-webkit-scrollbar{display:none}
.slide{flex:0 0 100%;scroll-snap-align:start;aspect-ratio:800/321;background:var(--surface)}
.slide img{width:100%;height:100%;object-fit:cover}
.slide-fallback{width:100%;height:100%;display:grid;place-items:center;font-weight:700;font-size:18px;
  background:linear-gradient(135deg,#003a57,#00aeef 60%,#7fdcff);color:#fff;text-align:center}
.dots{position:absolute;left:0;right:0;bottom:8px;display:flex;justify-content:center;gap:6px}
.dot{width:6px;height:6px;border-radius:3px;background:#fff;transition:width .2s}
.dot.is-active{width:14px;background:#00aeef}

/* ===== Announcement marquee (black pill on grey band) ===== */
.announce{padding:7px 10px;background:#282d33}
.announce-pill{display:flex;align-items:center;height:24px;background:#000;border-radius:10px;overflow:hidden}
.announce-pill img{flex:0 0 20px;height:16px;margin:4px 18px}
.marquee{flex:1;min-width:0;overflow:hidden;white-space:nowrap;font-size:11.2px;line-height:22px;color:#fff}
.marquee span{display:inline-block;padding-left:100%;animation:marquee 30s linear infinite}
@keyframes marquee{to{transform:translateX(-100%)}}

/* ===== Login / Register ===== */
.auth{display:flex}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 14px;border-radius:6px;font-weight:600;font-size:12px;white-space:nowrap}
.btn-lg{flex:1 1 50%;display:block;height:46px;border-radius:0;line-height:46px;text-align:center;font-size:16px;font-weight:700;text-transform:uppercase;color:#fff}
.btn-login{background:linear-gradient(#50586a,#1f2229)}
.btn-register{background:linear-gradient(90deg,#55d6f9,#1e74e6)}
.btn-primary{background:linear-gradient(180deg,var(--primary),var(--primary-2));color:#fff}
.btn-outline{border:1.5px solid var(--primary);color:var(--primary)}
.btn-dark{background:var(--card-2);color:#fff}

/* ===== Member panel (after login; replaces Login / Register) — new design 2026-11-05 ===== */
.member{background:#282d34;border-radius:0 0 15px 15px}
.member-top{display:flex;justify-content:space-between;padding:10px 0 0 15px}
.member-left{flex:0 0 184px;min-width:0}
.member-user{display:flex;align-items:center;gap:8px;font-size:13px;line-height:22px}
.member-user svg{flex:0 0 22px;width:22px;height:22px}
.member-balance-label{margin-top:8px;font-size:12px;line-height:18px}
.member-balance-label span{color:#00aeef}
.member-balance-box{display:flex;align-items:center;justify-content:space-between;height:30px;padding:0 11px 0 15px;background:#1e2128;border-radius:5px}
.member-balance-box b{font-size:14px;font-weight:600;line-height:20px}
.member-balance-box button{display:block}
.member-balance-box img{width:12px;height:12px}
.member-actions{display:flex;padding:19px 8px 0 0}
.member-actions a{display:flex;flex-direction:column;align-items:center;width:72px}
.member-actions svg{display:block;width:24px;height:24px}
.member-actions span{margin-top:5px;font-size:12px;line-height:16px;color:#e4e4e5}
.member-bottom{padding:10px 20px 0 21px}
.member-line{display:block;width:100%;height:1px}
.member-apps{display:flex;padding:20px 0}
.member-apps[hidden]{display:none}
.member-app{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;font-size:10px;line-height:15px;font-weight:600}
.member-app + .member-app::before{content:"";position:absolute;left:0;top:0;bottom:0;width:1px;background:linear-gradient(transparent,rgba(255,255,255,.35),transparent)}
.member-app img{width:25px;height:25px}
.member-app > span{margin-top:3px}
.member-app i{position:absolute;top:-7px;left:50%;margin-left:5.5px;width:15px;height:15px;border-radius:50%;background:#d3292b;font-size:11px;font-style:normal;font-weight:400;line-height:15px;text-align:center}
.member-more-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:8px 0 9px;font-size:12px;line-height:16px;color:#b2b2bd}
.member-more-btn svg{width:10px;height:6px;transition:transform .2s}
.member-more-btn[aria-expanded="true"] svg{transform:rotate(180deg)}
/* ===== Category tab bar (horizontal scroll with arrows) ===== */
.catbar{display:flex;margin-top:5px;background:#292c33;border:1px solid #3c3f46;border-radius:10px;overflow:hidden}
.cat-arrow{flex:0 0 16px;display:grid;place-items:center;padding:0 5px}
.cat-arrow svg{width:6px;height:10px;fill:#fff}
.cats{flex:1;min-width:0;display:flex;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-behavior:smooth;background:#1e2128;border-radius:5px}
.cats::-webkit-scrollbar{display:none}
.cats{cursor:grab;user-select:none}
.cat{flex:0 0 16.66%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px;border-radius:5px;
  color:#fff;font-size:9.6px;line-height:14.4px;text-transform:uppercase;white-space:nowrap}
.cat .ic{width:26px;height:26px;margin-bottom:4px;background:var(--ic) center/contain no-repeat}
.cat.is-active .ic{background-image:var(--ic-on)}
/* New vector icons: white by default, blue when the tab is active (label stays white) */
svg.ic{width:24px;height:24px;background:none;color:#fff}
.cat.is-active svg.ic{color:#00aeef}
/* Rule [20]: selected icon = blue gradient */
.cat.is-active svg.ic path{fill:url(#activeGrad)}
.cat.is-active{color:#fff}

/* ===== Panes ===== */
.pane{display:none;padding:5px 5px 0;margin-bottom:30px}
.pane.is-active{display:block}
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.tile{position:relative;display:block;padding:2px}
.tile img{width:100%;height:auto;padding:2px}
.tile-name{display:none}
.tile.is-fallback{aspect-ratio:4/5;display:grid;place-items:center;padding:6px;margin:4px;border-radius:6px;text-align:center;
  background:radial-gradient(circle at 50% 30%,#2c3542,#1a1f27)}
.tile.is-fallback .tile-name{display:block;font-weight:700;font-size:11px;line-height:1.2;word-break:break-word}
/* Corner ribbon (same image as live) */
.badge-hot{position:absolute;top:5px;right:4px;z-index:1;width:35px;height:35px;pointer-events:none;background:url(../../assets/img/56669fea54d3.png) 0 0/contain no-repeat}

.sport-list{display:grid;gap:10px}
.sport-card{position:relative;border-radius:var(--radius);overflow:hidden;background:var(--card)}
.sport-card img{width:100%;height:auto}
.sport-name{display:none}
.sport-actions{position:absolute;right:12px;bottom:12px;display:flex;gap:6px}
.is-fallback.sport-card,.is-fallback.lottery{aspect-ratio:16/6;background:linear-gradient(120deg,#1a1f27,#103a52)}
.is-fallback .sport-name{display:block;position:absolute;left:14px;top:14px;font-weight:700;font-size:16px}

.promo-card{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:8px;padding:14px;border-radius:var(--radius);background:var(--card)}
.promo-logo{max-height:40px;width:auto;margin-bottom:6px}
.promo-title{font-weight:700;margin-bottom:8px}
.promo-art{width:100%;height:auto}
.lottery{position:relative;border-radius:var(--radius);overflow:hidden;background:var(--card)}
.lottery img{width:100%;height:auto}
.lottery-btn{position:absolute;left:76%;top:66%;transform:translate(-50%,-50%)}

/* ===== Ambassador ===== */
.amb{display:flex;flex-direction:column;margin:15px 15px 70px;padding:10px;background:#282d33;border-radius:7px}
.amb-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:16px;font-weight:500}
.amb-head > span{margin-left:5px}
.btn-learn{padding:5px 8px;border:1px solid #00aeef;font-size:12px;line-height:18px;color:#fff}
.amb-video{height:210px;background:#000}
.amb-video iframe{width:100%;height:100%;border:0;display:block}
.amb-body{display:grid;grid-template-columns:41.6667% 1fr;gap:0;padding-top:24px;align-items:start}
.amb-body img{width:100%;height:auto;padding:0 15px 0 0}
.amb-title{margin-bottom:10px;font-size:14.78px;font-weight:600;line-height:22.17px;text-transform:uppercase}
.amb-title span{color:#00aeef}
.amb-body p{margin:0 0 16px;font-size:11px;line-height:16.5px;color:#ccc}

/* ===== Footer (new design) ===== */
.footer{padding:40px 16px 30px;background:#161a20;color:#fff}
.f-sec{margin-bottom:30px;text-align:center}
.f-title{margin-bottom:10px;font-size:15px;font-weight:500;line-height:20px}
.f-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.f-sec .f-row{justify-content:center}
.f-row img{display:block;height:25px;width:auto}
.f-cert img{height:23px}
.f-license{display:inline-block}
.f-license img{width:86px;height:86px;margin:0 auto}
.f-verify{margin-top:-4px;font-size:14px;letter-spacing:.5px;line-height:18px;color:#828293}
.f-pay{margin-bottom:30px}
.f-pay .f-row + .f-row{margin-top:10px}
.f-pay .f-tiles img{width:28px;height:28px}
.f-cols{display:grid;grid-template-columns:200px 1fr;margin-bottom:32px}
.f-copy{font-size:13px;letter-spacing:.5px;line-height:18px;color:#b2b2bd}

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

/* Very small phones (≤340px, e.g. old Android) */
@media (max-width:340px){
  .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .amb-body{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){.marquee span{animation:none;padding-left:0}}
/* ===== 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}
/* [25] Member box: line up with the divider line below - name/balance start where the line starts (21px), Withdraw ends where the line ends (20px) */
.member-top{justify-content:space-between;padding-left:21px;padding-right:20px}.member-actions{gap:20px;padding-right:0}.member-actions a{width:auto}
/* [26] Visual alignment: Deposit/Withdraw centred on the left block; "Total Balance" sits 6px above its box (was 2px), 9px under the name */
.member-top{align-items:center}.member-actions{padding-top:0}.member-balance-label{margin-top:4px;margin-bottom:4px}

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

/* ===== Side menu v2 (Max 2026-11-12) ===== */
.side-panel.sm{width:82%;max-width:320px;min-height:100%;padding-bottom:24px;background:#161a20}
.sm .side-close{display:none}
.sm-top{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:64px;padding:12px 16px;border-bottom:1px solid #20262f}
.sm-logo{display:block;width:84px;height:auto;margin:0;padding:0}
.sm-auth{display:flex;gap:8px}
.sm-btn{display:block;height:32px;padding:0 14px;border-radius:4px;font-size:12px;line-height:32px;font-weight:700;color:#fff;text-transform:uppercase;white-space:nowrap}
.sm-btn-1{background:linear-gradient(90deg,#55d6f9,#1e74e6)}
.sm-btn-2{background:#20262f}
.sm-user{display:flex;align-items:center;gap:10px;width:100%;color:#fff}
.sm-user>svg:first-child{flex:0 0 40px}
.sm-user div{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.sm-user b{font-size:16px;line-height:22px;font-weight:700}
.sm-user .vip-pill{height:22px;padding:0 10px;border-radius:11px;border:1.5px solid var(--tier,#c8a17a);background:#2b3038;font-size:12px;line-height:19px;color:#fff}
.sm-chev{flex:0 0 7px;color:#828293}
.sm-banner{display:flex;align-items:center;gap:12px;margin:16px 16px 0;padding:12px 14px;border-radius:8px;background:radial-gradient(120% 140% at 100% 50%,rgba(0,174,239,.28),rgba(0,174,239,0) 60%),#20262f;border:1px solid #262d38;color:#fff}
.sm-banner-ic{flex:0 0 40px;display:grid;place-items:center;width:40px;height:40px;border-radius:8px;background:linear-gradient(90deg,#55d6f9,#1e74e6)}
.sm-banner div{flex:1;min-width:0}
.sm-banner b{display:block;font-size:13px;line-height:18px;font-weight:700}
.sm-banner span{display:block;font-size:12px;line-height:16px;color:#b2b2bd}
.sm-h{margin:24px 16px 10px;font-size:15px;line-height:20px;font-weight:600;color:#fff}
.sm-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:0 16px}
.sm-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;height:68px;border-radius:8px;background:#20262f;font-size:12px;line-height:16px;color:#fff}
.sm-tile svg{color:#b2b2bd}
.sm-list{margin:0 16px;padding:0;list-style:none;border-radius:8px;background:#20262f;overflow:hidden}
.sm-list li+li{border-top:1px solid #282e37}
.sm-row{display:flex;align-items:center;gap:12px;height:44px;padding:0 14px 0 12px;font-size:13px;color:#fff}
.sm-ic{flex:0 0 22px;display:grid;place-items:center;color:#b2b2bd}
.sm-ic svg{max-width:20px;max-height:20px}
.sm-row span{flex:1}
.sm-list-end{margin-top:16px}
.sm-row.sm-logout,.sm-row.sm-logout .sm-ic,.sm-row.sm-logout .sm-chev{color:#e5484d}
/* White icons; blue (#00AEEF) only when pressed or on the current page. Text stays white. */
.sm-tile:active svg,.sm-tile.is-current svg,.sm-row:active .sm-ic,.sm-row.is-current .sm-ic{color:#00aeef}
@media (hover:hover){.sm-tile:hover svg,.sm-row:hover .sm-ic{color:#00aeef}}
.sm-row.sm-logout:active .sm-ic{color:#e5484d}.sm-row.sm-logout:active{opacity:.7}
@media (hover:hover){.sm-row.sm-logout:hover .sm-ic{color:#e5484d}}
/* Member box Deposit / Withdraw icons: white, blue only when pressed (Max 2026-11-12) */
.member-actions svg path{fill:#b2b2bd}
.member-actions a:active svg path{fill:#00aeef}
@media (hover:hover){.member-actions a:hover svg path{fill:#00aeef}}
/* Member box: no dividers between the app icons, no line above More Applications (Max 2026-11-12) */
.member-app + .member-app::before{display:none}
#memberAppsLine{display:none!important}
/* Member box divider under the balance: softer (Max 2026-11-12) */
.member-bottom > .member-line{opacity:.3}
/* Announcement pill: site background instead of black (Max 2026-11-12) */
.announce-pill{background:#161a20}
.member-app-ic{display:block;width:24px;height:24px;color:#b2b2bd}
.member-app:active .member-app-ic{color:#00aeef}
@media (hover:hover){.member-app:hover .member-app-ic{color:#00aeef}}
.cat svg.ic{width:26px;height:26px;overflow:visible}
/* v4 clean: no boxes, no arrows, small grey section labels, 8px spacing grid */
.sm-top{min-height:72px;padding:16px;border-bottom:0}
.sm-banner{margin:8px 16px 0;padding:14px 16px;border:0;background:linear-gradient(90deg,#20262f 40%,#16384a)}
.sm-banner b{font-size:13px}
.sm-h{margin:32px 16px 8px;font-size:11px;line-height:16px;font-weight:600;letter-spacing:1.2px;text-transform:uppercase;color:#828293}
.sm-grid{gap:16px 0}
.sm-tile{height:auto;padding:8px 0;gap:8px;background:none;border-radius:0}
.sm-list{background:none;border-radius:0}
.sm-list li+li{border-top:0}
.sm-row{height:48px;padding:0;gap:16px}
.sm-list-end{margin-top:24px;padding-top:8px;border-top:1px solid #20262f}
/* Category bar: one dark layer, same as header + bottom nav (Max 2026-11-13) */
.cats{background:#161a20!important}
.member-balance-box{background:#14181e}  /* same dark as the announcement pill (Max 2026-11-13) */

/* ===== Side menu motion (Max 2026-11-13) ===== */
.side-menu{background:rgba(0,0,0,0)!important;transition:background-color .2s ease}
.side-menu.is-open{background:rgba(0,0,0,.5)!important}
.side-menu .side-panel{transform:translateX(-100%);transition:transform .2s cubic-bezier(.4,0,1,1)}
.side-menu.is-open .side-panel{transform:none;transition:transform .28s cubic-bezier(.22,1,.36,1)}
@media (prefers-reduced-motion:reduce){.side-menu,.side-menu .side-panel{transition:none!important}}

/* Category bar arrows: grey, blue when pressed (Max 2026-11-13) */
.cat-arrow svg{fill:#b2b2bd}
.cat-arrow:active svg{fill:#00aeef}
@media (hover:hover){.cat-arrow:hover svg{fill:#00aeef}}

.announce,.member{background:#1a1e25!important}
.announce-pill{background:#14181e!important}

.member-left{flex:0 1 184px}
.member-actions{flex:0 0 auto;margin-left:12px}
@media (max-width:360px){.member-actions{gap:14px}}

/* Refresh balance: icon spins while loading, number fades in (Max 2026-11-13) */
.member-balance-box button{padding:6px;margin:-6px}
.member-balance-box button.is-loading img{animation:mb-spin .7s linear infinite}
@keyframes mb-spin{to{transform:rotate(360deg)}}
#totalBalance{transition:opacity .2s}
#totalBalance.is-loading{opacity:.4}
@media (prefers-reduced-motion:reduce){.member-balance-box button.is-loading img{animation:none}}
