/* ===== Design tokens ===== */
:root{color-scheme:dark;
  --bg:#161a20;
  --text:#fff;
  --muted:#828293;      /* placeholders, helper text */
  --icon:#b2b2bd;       /* input icons */
  --primary:#00aeef;    
  --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}
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)}

/* ===== Header (menu + back | logo | language) ===== */
.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}
.header-left{display:flex;align-items:center;gap:10px}
.hdr-btn{display:grid;place-items:center;width:22px;height:22px;color:var(--primary)}
.hdr-btn svg{display:block}
.logo img{display:block;width:88px;height:auto}
.lang-btn{justify-self:end;width:26px;height:26px;background:url(../../assets/img/fe1747f55139.webp) center/contain no-repeat}

/* ===== Login / Register tabs ===== */
.auth-page{padding:22px 16px 24px}
.tabs{display:grid;grid-template-columns:1fr 1fr;height:44px;margin-bottom:22px;background:#20262f;border-radius:4px 4px 0 0}
.tab{position:relative;display:grid;place-items:center;font-size:11px;color:#7c7d8f}
.tab.is-active{font-weight:600;color:#fff}
.tab.is-active::after{content:"";position:absolute;left:50%;bottom:0;width:80px;height:2px;margin-left:-40px;background:var(--primary)}

/* ===== Form fields ===== */
.field{position:relative;display:flex;align-items:center;height:44px;margin-bottom:12px;padding:0 13px 0 16px;
  background:#13161b;border:1px solid #262c38;border-radius:8px}
.field:focus-within{border-color:var(--primary)}
.field-icon{flex:0 0 14px;height:16px;margin-right:15px;fill:var(--icon)}
.field input{flex:1;min-width:0;height:100%;padding:0;background:none;border:0;outline:0;font:inherit;font-size:16px;color:#fff}
.field input::placeholder{color:var(--muted);opacity:1}
.eye{flex:0 0 auto;display:grid;place-items:center;width:30px;height:30px;margin-right:-6px;color:var(--icon)}
.eye svg{width:18px;height:16px}
.eye .ic-show{display:none}
.eye[aria-pressed="true"] .ic-show{display:block}
.eye[aria-pressed="true"] .ic-hide{display:none}

/* ===== Remember me / forgot ===== */
.form-row{display:flex;justify-content:space-between;align-items:center;margin-top:-2px;font-size:12px;line-height:18px}
.check{display:flex;align-items:center;gap:9px;cursor:pointer}
.check input{position:absolute;opacity:0;width:1px;height:1px}
.check .box{position:relative;width:14px;height:14px;border:1px solid #d9d9d9;border-radius:4px}
.check input:checked + .box{background:var(--primary);border-color:var(--primary)}
.check input:checked + .box::after{content:"";position:absolute;left:3.5px;top:1px;width:4px;height:7px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.check input:focus-visible + .box{outline:2px solid var(--primary);outline-offset:2px}
.link{font-weight:500;text-decoration:underline;text-underline-offset:2px}

/* ===== Submit ===== */
.btn-submit{display:block;width:100%;height:44px;margin-top:40px;border-radius:4px;
  background:linear-gradient(90deg,#55d6f9,#1e74e6);font-size:14px;font-weight:700;letter-spacing:.2px;text-transform:uppercase;color:#fff}
.btn-submit:active{filter:brightness(.92)}
.signup{margin:14px 0 0;text-align:center;font-size:12.5px;color:var(--muted)}
.signup .link{color:#fff;font-size:12px}
.toast{position:fixed;left:50%;bottom:calc(var(--nav-total) + 16px);z-index:70;transform:translateX(-50%);padding:8px 14px;border-radius:6px;background:#2a2f38;font-size:12px;color:#fff;white-space:nowrap}

/* ===== Bottom nav (same as homepage) ===== */
.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)}
.login-ok{display:flex;align-items:center;gap:10px;margin:0 0 14px;padding:10px 12px;border-radius:8px;background:rgba(33,230,152,.08);border:1px solid rgba(33,230,152,.3);font-size:12px;line-height:16px;color:#21e698}
.login-ok svg{flex:0 0 20px}
.login-ok[hidden]{display:none}

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