
@font-face { font-family: Almarai; src: url('../fonts/almarai-400.woff2?v=c98837594c66') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Almarai; src: url('../fonts/almarai-700.woff2?v=5b53dd54057c') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Almarai; src: url('../fonts/almarai-800.woff2?v=e484abb03809') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --bg: #06090e; --surface: #0d1420; --surface2: #121b2a; --line: #ffffff17; --text: #f4f7fc; --muted: #9aa6b6;
  --kh: #2478ff; --accent: #2478ff; --accent2: #24dfd0; --bad: #ff6b6b; --ok: #3ddc97;
}
body.world-eo { --accent: #2a8cf5; --accent2: #2478ff; }
body.world-ct { --accent: #38b750; --accent2: #2bd47a; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: Almarai, Tahoma, Arial, sans-serif; line-height: 1.6;
  background-image:
    radial-gradient(60rem 30rem at 85% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(50rem 26rem at 0% 110%, color-mix(in srgb, var(--kh) 18%, transparent), transparent 70%);
}
.wrap { max-width: 460px; margin: 0 auto; padding: 28px 16px 48px; }

.brands { display: flex; align-items: center; justify-content: center; gap: min(14px, 2.8vw); margin: 8px 0 26px; }
.brands img { display: block; height: auto; }

.brands .kh { width: min(128px, 33vw); }
.brands .partner { width: auto; height: auto; }

.partner-ct { display: flex; align-items: flex-end; gap: 8px; direction: ltr; }
.partner-ct .ct-mark { height: min(58px, 14.5vw); width: auto; }
.partner-ct .ct-text { height: min(40px, 10vw); width: auto; }
body.world-eo .brands .partner { width: 175px; max-width: 46vw; }
.brands .x { color: var(--muted); font-size: 20px; font-weight: 700; }

.brands-stack { flex-direction: column; gap: 10px; }
.brands .kh-en { width: min(150px, 38vw); }

.card {
  background: linear-gradient(180deg, var(--surface), var(--surface2));
  border: 1px solid var(--line); border-radius: 22px; padding: 24px 20px;
  box-shadow: 0 30px 60px -30px #000c;
}
.card::before {
  content: ''; display: block; height: 4px; margin: -24px -20px 20px; border-radius: 22px 22px 0 0;
  background: linear-gradient(90deg, var(--kh), var(--accent));
}
h1 { font-size: 22px; font-weight: 800; margin: 0 0 6px; text-align: center; }
.sub { color: var(--muted); font-size: 14px; text-align: center; margin: 0 0 20px; }

label { display: block; font-size: 13.5px; font-weight: 700; color: #cfd7e3; margin: 14px 0 6px; }
input {
  width: 100%; height: 50px; border-radius: 14px; border: 1px solid var(--line); background: #0a101a;
  color: var(--text); font: inherit; font-size: 16px; padding: 0 14px; outline: none;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
input.ltr { direction: ltr; text-align: left; }
.pw { position: relative; }
.pw input { padding-left: 48px; }
.pw button { position: absolute; left: 6px; top: 6px; width: 38px; height: 38px; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 12px; }

.pwhint { font-size: 12.5px; color: var(--muted); margin: 7px 0 0; line-height: 1.6; }
.rules { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; }
.rules li { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.rules li::before { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #ffffff40; }
.rules li.ok { color: var(--ok); }
.rules li.ok::before { background: var(--ok); border-color: var(--ok); }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; margin-top: 22px;
  border: 0; border-radius: 14px; cursor: pointer; font: inherit; font-size: 16px; font-weight: 800; color: #fff;
  background: linear-gradient(90deg, var(--kh), var(--accent));
}
.btn[disabled] { opacity: .55; cursor: default; }
.link { background: none; border: 0; color: var(--accent); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  display: block; margin: 16px auto 0; padding: 6px; }
.link[disabled] { color: var(--muted); cursor: default; }
.err { display: none; margin-top: 14px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px;
  background: #ff6b6b1a; border: 1px solid #ff6b6b40; color: #ffb3b3; }
.err.on { display: block; }
.note { margin-top: 14px; font-size: 12px; color: var(--muted); text-align: center; }
.note a { color: #cfd7e3; }

.code { direction: ltr; margin-top: 8px; }
.code input.otp { height: 60px; text-align: center; font-size: 28px; font-weight: 800; letter-spacing: 12px; padding: 0 12px; }
.email-echo { direction: ltr; unicode-bidi: isolate; color: var(--text); font-weight: 700; }

.done { text-align: center; }
.done .badge { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; background: color-mix(in srgb, var(--accent) 20%, transparent); border: 2px solid var(--accent); }
.done .badge svg { width: 34px; height: 34px; color: var(--accent); }
.done p.lead { font-size: 18px; font-weight: 800; margin: 0 0 8px; line-height: 1.7; }

.stores { display: grid; gap: 12px; margin-top: 22px; }
.store { display: flex; align-items: center; justify-content: center; gap: 14px; height: 72px; border-radius: 16px;
  background: #fff; color: #0b111b; text-decoration: none; font-weight: 800; font-size: 21px; }
.store svg { width: 32px; height: 32px; }
.store small { display: block; font-size: 13.5px; font-weight: 700; color: #4a5566; }
.store span { text-align: start; line-height: 1.2; }

.hidden { display: none !important; }
.foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 22px; }
.foot a { color: var(--muted); }

@media (min-width:1800px){ html{ zoom:1.2; } body{ min-height:calc(100vh / 1.2); } }
@media (min-width:2200px){ html{ zoom:1.45; } body{ min-height:calc(100vh / 1.45); } }
@media (min-width:2800px){ html{ zoom:1.8; } body{ min-height:calc(100vh / 1.8); } }
