/* ===== Design tokens ===== */
:root{
  --bg:#161a20;
  --text:#fff;
  --muted:#828293;      /* placeholders, helper text */
  --icon:#b5b5b5;       /* input icons */
  --error:#ff2c2c;
  --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 (same as Login page) ===== */
.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}

/* ===== Banner ===== */
.auth-page{padding:15px 16px 24px}
.reg-banner{display:block;width:100%;height:auto;aspect-ratio:361/120;margin-bottom:22px}

/* ===== Login / Register tabs (same as Login page) ===== */
.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 12px;
  background:#13171c;border:1px solid #262d38;border-radius:8px}
.field:focus-within{border-color:var(--primary)}
.field-icon{flex:0 0 18px;height:16px;margin-right:14px;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}

/* Error state: setFieldError(fieldId, message) adds .is-error to the field and shows its .field-error line */
.field-alert{display:none;flex:0 0 20px;width:20px;height:20px;margin-right:-1px;fill:var(--error)}
.field.is-error{border-color:var(--primary)}
.field.is-error .field-alert{display:block}
.field-error{display:none;margin:-3px 0 12px;font-size:10px;line-height:12px;color:var(--error)}
.field.is-error + .field-error,.field-error.is-shown{display:block}

.hint{margin:0;font-size:12px;line-height:15px;color:var(--icon)}

/* Phone: country code box + number box */
.phone{display:grid;grid-template-columns:81px minmax(0,1fr);gap:10px;margin:26px 0 14px}
.phone + .field-error{margin-top:-3px}
.phone .field{height:40px;margin:0}
.cc{gap:11px;padding-left:9px;color:var(--muted);font-size:14px}
.cc-flag{flex:0 0 24px;height:24px;border-radius:50%;background:url(../../assets/img/fe1747f55139.webp) center/contain no-repeat}
.tel{padding-left:10px}

/* "(Optional if available)" toggle → referral field */
.optional{display:flex;align-items:center;gap:6px;margin-top:-3px;font-size:13px;line-height:18px;color:#fff}
.optional svg{width:10px;height:6px;fill:currentColor;transition:transform .2s}
.optional[aria-expanded="true"] svg{transform:rotate(180deg)}
.referral{display:none;margin-top:12px}
.optional[aria-expanded="true"] + .referral{display:flex}
.referral input{padding-left:4px}

/* ===== Submit ===== */
.btn-submit{display:block;width:100%;height:44px;margin-top:30px;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)}
.terms{margin:14px 8px 0;text-align:center;font-size:12px;line-height:17px;color:var(--muted)}
.terms .link{color:#fff;font-weight:500;text-decoration:underline;text-underline-offset:2px}

/* ===== License + responsible gaming ===== */
.license{display:flex;align-items:center;gap:12px;margin:45px 8px 0}
.license-badge{flex:0 0 66px;display:flex;flex-direction:column;align-items:center;text-align:center}
.license-badge img{display:block;width:45px;height:44px}
.license-badge b{margin-top:3px;font-size:13px;font-weight:800;line-height:15px;letter-spacing:.3px;color:#06a52f}
.license-badge small{font-size:9px;font-weight:500;line-height:12px;color:#fff;white-space:nowrap}
.license p{flex:1;margin:0;font-size:9px;line-height:12px;color:#c4c4cc;text-align:justify}
.rg{margin:38px 0 36px;text-align:center}
.rg-title{margin:0;font-size:14px;line-height:20px;color:#d9d9e0}
.rg-sub{margin:0;font-size:10px;line-height:16px;color:#b2b2bd}
.rg-logos{display:block;width:293px;max-width:100%;height:auto;margin:20px auto 0}

/* ===== 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)}
.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}
.toast[hidden]{display:none}

/* ===== Register success popup (Max 2026-11-11): shows on Register after a successful submit ===== */
.reg-ok{position:fixed;inset:0;z-index:1100;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.6)}
.reg-ok[hidden]{display:none}
.reg-ok-box{position:relative;width:100%;max-width:343px;padding:24px 20px 20px;border-radius:8px;background:#20262f;text-align:center}
.reg-ok-x{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:#2b3038;color:#fff;cursor:pointer}
.reg-ok-art{display:block;margin:4px auto 0}
.reg-ok h2{margin:16px 0 6px;font-size:22px;line-height:28px;font-weight:700;color:#00aeef}
.reg-ok p{margin:0;font-size:13px;line-height:18px;color:#b2b2bd}
.reg-ok-btn{display:block;height:44px;margin-top:24px;border-radius:4px;background:linear-gradient(90deg,#55d6f9,#1e74e6);font-size:14px;line-height:44px;font-weight:700;color:#fff;text-transform:uppercase}
.reg-ok-home{display:inline-block;margin-top:16px;padding:0;border:0;background:none;font:inherit;font-size:13px;line-height:18px;color:#b2b2bd;text-decoration:underline;text-underline-offset:3px;cursor:pointer}

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

/*zoom-fix #3*/.phone .field{min-width:0}
