/* ===== 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}
/* ===== Funds / Deposit ===== */
.dep{margin-bottom:50px;font-size:13px;line-height:19.5px}
.dep-tabs{display:flex;margin:15px 24px 8px;background:#1a2129;border-radius:10px;overflow-x:auto;scrollbar-width:none}
.dep-tab{flex:1 1 auto;display:flex;align-items:center;justify-content:center;padding:10px;border:3px solid transparent;border-radius:10px;font-size:12px;line-height:18px;white-space:nowrap}
.dep-tab i{flex:0 0 17px;width:17px;height:17px;margin-right:4px;background:var(--ic) center/contain no-repeat}
.dep-tab.is-active{background:#31343d;border-color:#313740}
.dep-tab.is-active i{background-image:var(--ic-on)}
.dep-pane{display:none;padding:16px 24px}
.dep-pane.is-active{display:block}
.dep-label{display:block;margin:0;padding-bottom:10px;font-size:14px;font-weight:600;line-height:21px}
.dep-label::after{content:"*";margin-left:5px;color:#00aeef}
.dep-sec{margin-bottom:16px}
/* Method + bank tiles: 5 per row */
.tiles{display:flex;flex-wrap:wrap}
.tile-opt{width:20%;padding:0 4px;margin-bottom:8px;text-align:center}
.tile-opt button{position:relative;display:block;width:54.3px;height:54.3px;margin:0 auto;padding:10px;background:#2f3239;border:2px solid #2f3239;border-radius:8px;overflow:hidden}
.tile-opt img{width:100%;height:100%;object-fit:contain}
.tile-opt.is-active button{border-color:#00aeef}
.tile-opt.is-active button::after{content:"";position:absolute;right:0;bottom:0;width:20px;height:20px;
  background:linear-gradient(135deg,transparent 50%,#00aeef 50%)}
.tile-opt.is-active button::before{content:"";position:absolute;right:2px;bottom:3px;z-index:1;width:7px;height:4px;border:solid #fff;border-width:0 0 2px 2px;transform:rotate(-45deg)}
.tile-name{display:block;margin-top:8px;font-size:13px;line-height:19.5px}
.tile-opt.is-active .tile-name.is-method{font-weight:600;color:#00aeef}
.is-bank button{padding:2px}
.is-bank .tile-name{font-size:10px;line-height:15px;color:#f8f9fa}
.methods{margin-bottom:12px}
.methods .tile-opt{margin-bottom:16px}
/* Inputs */
.dep-input{display:block;width:100%;padding:15px;background:#000;border:0;border-radius:10px;font:inherit;font-size:16px;line-height:19.5px;color:#fff;outline:0}
.dep-input::placeholder{color:#888}
.presets{display:flex;justify-content:space-between;margin:12.8px -5px 6.4px;padding:0;list-style:none}
.presets li{flex:1;padding:0 5px}
.presets button{display:block;width:100%;padding:6.4px 9.6px;background:#1f232c;border-radius:6px;font-size:12.8px;line-height:19.2px;text-align:center}
.promo-btn{position:relative;display:block;width:100%;padding:15px;background:#000;border-radius:10px;font-size:14px;line-height:21px;color:#ccc;text-align:left}
.dep-submit{display:block;width:100%;padding:13px 10px;background:#00aeef;border-radius:8px;font-size:14px;font-weight:700;line-height:21px;text-align:center;text-transform:uppercase}
.dep-sec.is-promo{margin-bottom:24px}
/* Bank transfer */
.bt-bank{margin-bottom:20px}
.bt-row{display:flex;margin-bottom:12.8px;align-items:center;justify-content:space-between;cursor:pointer}
.bt-row input{appearance:none;-webkit-appearance:none;flex:0 0 18px;width:18px;height:18px;margin:0 2px 0 0;border-radius:50%;background:#d3d3d3}
.bt-row input:checked{background:#00aeef url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") center/10px no-repeat}
.bt-name{flex:1;display:flex;align-items:center;font-size:13px}
.bt-name img{width:40px;height:38.4px;padding:3.2px;margin-right:2px}
.bt-online{padding:1px 7px;background:#8bc34a;font-size:10px;line-height:15px}
.bt-online::before{content:"";display:inline-block;width:4px;height:4px;margin:0 5px 2px 0;border-radius:50%;background:#fff}
.bt-detail{display:none}
.bt-bank.is-active .bt-detail{display:block}
.bt-copy{display:flex;align-items:center;gap:6px;margin-bottom:13px}
.bt-copy input{flex:1;min-width:0;padding:8px 15px;background:#2f343b;border:0;border-radius:7px;font:inherit;font-size:16px;line-height:18px;color:#fff}
.bt-copy button{flex:0 0 28px;display:grid;place-items:center}
.bt-copy img{width:16px;height:17.8px}
.dep-select{display:block;width:100%;height:44px;padding:0 12px;background:#13131b;border:1px solid #13131b;border-radius:8px;font:inherit;font-size:16px;color:#fff}
.dep-pane:not(#pane-quick_pay) .dep-input{margin-top:10px}
#pane-bank_transfer .presets{margin-bottom:16px}
.receipt{display:flex;gap:10px}
.receipt input{flex:0 0 57%;min-width:0;padding:12px;background:#000;border:0;border-radius:8px;font:inherit;font-size:16px;color:#fff}
.receipt label{flex:1;padding:12px 0;background:#da1c5c;border-radius:10px;font-size:14px;line-height:21px;text-align:center;cursor:pointer}
.receipt-note{margin-top:8px;color:#00aeef}
.dep-gap{margin-bottom:28.8px}
/* Crypto */
.is-crypto button{width:65.5px;height:65.5px;padding:2px;background:#343a40;border:1px solid #343a40;border-radius:4px}
.is-crypto{width:25%;padding:0 10px}
.is-crypto.is-active button{border-color:#31aeef}
.is-crypto .tile-name{font-size:13px;color:#f8f9fa}
/* Crypto tab uses its own (older) button style on the live site */
#pane-crypto .promo-btn{font-size:13px}
#pane-crypto .dep-submit{padding:12px 0;background:#31aeef;border-radius:6px;font-size:16px;font-weight:600;line-height:24px;color:#212529}
/* History + notice */
.hist-title{margin:6.4px 0 8px;font-size:11.2px;font-weight:700;line-height:16.8px}
.hist{width:100%;margin-bottom:16px;border-collapse:collapse;font-size:12px;line-height:18px;text-align:center}
.hist th{padding:12px;background:#282d34;font-weight:700}
.hist th:first-child{border-radius:10px 0 0 10px}
.hist th:last-child{border-radius:0 10px 10px 0}
.hist td{padding:10px 6px;border-bottom:1px solid #414853;color:#adafb2}
.hist td:nth-child(2),.hist td:nth-child(3){font-weight:700}
.hist .ok{color:#00aeef}
.notice-title{margin-top:40px;font-size:16px;font-weight:600;line-height:24px;color:#00aeef;text-transform:uppercase}
.notice{margin:0 0 16px;padding-left:16px;font-size:12.8px;line-height:19.2px}
.notice li{margin:15px 0 25px}
.notice a{font-size:14px;color:#00aeef}
.dep-label.no-star::after{content:none}
/* ===== 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}

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