/* FoxyNet site: one design system, "the route table" (docs/design/prototype-2026-11-22).
   Night and fox fire; turquoise only for good/locked, rose only for blocked/danger.
   Display: Alexandria; body: Vazirmatn; Latin HUD and telemetry: Chakra Petch.
   Order: fonts and tokens, base, header, buttons and frames, footer, home, forms and
   notice pages, player panel, login. */

@font-face {
  font-family: "Alexandria";
  src: url("fonts/AlexandriaVF-Arabic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  /* not the Persian digits: Alexandria draws ۴ almost like ۳, so prices take Vazirmatn's */
  unicode-range: U+0600-06EF, U+06FA-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Alexandria";
  src: url("fonts/AlexandriaVF-Latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2122, U+2212;
}
@font-face { font-family: "Vazirmatn"; src: url("fonts/Vazirmatn-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("fonts/Vazirmatn-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/ChakraPetch-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/ChakraPetch-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --night: #06070b;
  --night-2: #0b0d13;
  --deck: #10131b;
  --deck-2: #161a24;
  --line: rgba(236, 232, 224, 0.1);
  --line-2: rgba(236, 232, 224, 0.18);
  --ink: #f3efe8;
  --ink-2: #b4afa6;
  --ink-3: #8a857d;
  --fox: #ff7a1a;
  --fox-hot: #ff9a4a;
  --fox-glow: #ffb070;
  --fox-deep: #b8400a;
  --fox-ink: #120804;
  --cream: #fff4e8;
  --ok: #2ec4b6;
  --block: #f2878d;

  --f-display: "Alexandria", "Vazirmatn", system-ui, sans-serif;
  --f-body: "Vazirmatn", system-ui, sans-serif;
  --f-hud: "Chakra Petch", "Vazirmatn", ui-monospace, monospace;

  --cut: 14px;          /* the fox-facet chamfer */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 64px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); scrollbar-color: #3a3128 var(--night); scrollbar-width: thin; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* the footer sits at the bottom of the window on short pages (gift code, login…): the header is
     fixed, so main is the only flowing block before it and takes the spare height */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: rgba(255, 122, 26, 0.6); text-underline-offset: 0.3em; }
a:hover { color: var(--fox-glow); }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--fox); color: var(--fox-ink); }
:focus-visible { outline: 2px solid var(--fox-glow); outline-offset: 3px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: #3a3128; border: 3px solid var(--night); }
::-webkit-scrollbar-thumb:hover { background: var(--fox-deep); }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--fox); color: var(--fox-ink); padding: 8px 14px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 18px; height: 18px; flex: none; }

/* HUD type: Latin telemetry only (codes, ms, units). Persian is never letter-spaced. */
.hud {
  font-family: var(--f-hud);
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}
.num { font-family: var(--f-hud); font-weight: 600; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: linear-gradient(to bottom, rgba(6, 7, 11, 0.92), rgba(6, 7, 11, 0.55) 70%, transparent);
  transition: background 0.3s;
}
.top.is-solid { background: rgba(6, 7, 11, 0.94); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand:hover { color: inherit; }
.brand img { width: 34px; height: 34px; }
.brand b { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; line-height: 1; display: block; }
.brand .hud { color: var(--ink-3); font-size: 0.6875rem; display: block; margin-top: 4px; text-align: right; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 0.95rem; padding: 6px 12px; position: relative; transition: color 0.2s; }
.nav a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; background: var(--fox); transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease-out); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.nav .nav-buy { display: none; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.nav + .top-actions { margin-inline-start: 8px; }
.is-panel .top-actions { margin-inline-start: auto; }
.top-actions form { margin: 0; }
.who { color: var(--ink-3); font-size: 0.85rem; max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- buttons: fox-facet chamfer, drawn on pseudo-elements so focus rings stay visible ---------- */
.btn {
  --bg: var(--fox); --fg: var(--fox-ink); --edge: transparent;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 8px 26px; text-align: center;
  font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; line-height: 1.3;
  color: var(--fg); text-decoration: none; border: 0; background: none; cursor: pointer;
  transition: transform 0.25s var(--ease-out);
}
.btn::before, .btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.btn::before { background: var(--edge); }
.btn::after { inset: 1px; background: var(--bg); clip-path: polygon(calc(var(--cut) - 0.5px) 0, 100% 0, 100% calc(100% - var(--cut) + 0.5px), calc(100% - var(--cut) + 0.5px) 100%, 0 100%, 0 calc(var(--cut) - 0.5px)); }
.btn--fox::before { background: var(--fox-hot); }
.btn--fox::after { background: linear-gradient(100deg, var(--fox) 40%, #ffa25a 50%, var(--fox) 60%) 120% 0 / 300% 100% no-repeat, var(--fox); transition: background-position 0.7s var(--ease-out); }
.btn--fox:hover::after { background-position: -40% 0, 0 0; }
.btn:hover { transform: translateY(-2px); color: var(--fg); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--ghost { --bg: rgba(10, 12, 18, 0.7); --fg: var(--ink); --edge: var(--line-2); }
.btn--ghost:hover { --edge: var(--fox); }
.btn--sm { min-height: 40px; padding: 6px 16px; font-size: 0.92rem; --cut: 10px; }
.btn--xl { min-height: 64px; padding: 10px 34px; font-size: 1.15rem; --cut: 18px; }
.btn--block { width: 100%; }
.btn--danger { --bg: #120b0e; --fg: var(--block); --edge: rgba(242, 135, 141, 0.45); }
.btn--danger:hover { --edge: var(--block); --bg: #1d1015; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--sm svg { width: 17px; height: 17px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.is-done { --edge: var(--ok); --fg: var(--ok); }

/* ---------- HUD frame: corner brackets ---------- */
.brackets { position: relative; }
.brackets::before {
  --c: rgba(255, 122, 26, 0.75); --l: 18px; --w: 2px;
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l) no-repeat;
}

.tag { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border: 1px solid var(--line-2); color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.ok { color: var(--ok); }
.blocked { color: var(--block); }

/* states: Go sends status--good / --warn / --bad / --off */
.state, .status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--ink-2); }
.status--good { color: var(--ok); }
.status--warn { color: var(--fox-glow); }
.status--bad { color: var(--block); }
.status--off { color: var(--ink-3); }

/* ---------- section rail (desktop, home) ---------- */
.rail {
  position: fixed; left: 22px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: none; flex-direction: column; gap: 14px; list-style: none; margin: 0; padding: 0;
}
.rail a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-3); }
.rail a i { width: 14px; height: 1px; background: currentColor; transition: width 0.4s var(--ease-out), background 0.3s; }
.rail a span { opacity: 0; transform: translateX(-6px); transition: opacity 0.3s, transform 0.4s var(--ease-out); font-size: 0.6875rem; }
.rail a.is-on { color: var(--fox); }
.rail a.is-on i { width: 34px; }
.rail a.is-on span, .rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: none; }
@media (min-width: 1180px) { .rail { display: flex; } }

/* ---------- footer ---------- */
.foot { position: relative; border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--ink-2); font-size: 0.95rem; background: var(--night); }
.foot-in { display: grid; gap: 32px; }
.foot p { margin: 8px 0 0; }
.foot-title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; align-content: start; }
.foot-row a { text-decoration: none; }
.foot-row a:hover { color: var(--fox); }
.foot-legal { color: var(--ink-3); font-size: 0.85rem; border-top: 1px solid var(--line); padding-top: 20px; }
.contact { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 860px) {
  .foot-in { grid-template-columns: 1.1fr 1.4fr 1fr; align-items: start; }
  .foot-legal { grid-column: 1 / -1; }
}

/* ---------- small screens: the header ---------- */
@media (min-width: 861px) { .nav-toggle { display: none; } }
@media (max-width: 860px) {
  :root { --header-h: 58px; }
  .top-in { gap: 12px; }
  .nav { display: none; }
  .top-actions { margin-inline-start: auto; gap: 8px; }
  .brand .hud { display: none; }
  .top.is-open .nav {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: var(--header-h); inset-inline: 0; bottom: 0; z-index: 49;
    padding: 18px var(--gutter) 40px; background: rgba(6, 7, 11, 0.98); overflow-y: auto;
  }
  .top.is-open .nav a { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .top.is-open .nav a::after { display: none; }
  .top.is-open .nav .nav-buy { display: block; color: var(--fox); }
}
/* no menu script (no JS, or app.js failed): the links wrap under the brand, buy among them */
@media (max-width: 860px) {
  .top:not(.has-menu) { position: relative; height: auto; padding-block: 8px; background: var(--night); border-bottom: 1px solid var(--line); }
  .top:not(.has-menu) ~ main { --header-h: 0px; } /* the header is in the flow: nothing to clear */
  .top:not(.has-menu) .top-in { flex-wrap: wrap; row-gap: 2px; }
  .top:not(.has-menu) .nav { display: flex; flex-wrap: wrap; order: 3; width: 100%; gap: 0 2px; margin: 0; }
  .top:not(.has-menu) .nav a { padding: 4px 6px; font-size: 0.88rem; white-space: nowrap; }
  .top:not(.has-menu) .nav a::after { display: none; }
  .top:not(.has-menu) .nav .nav-buy { display: inline; color: var(--fox); font-weight: 700; }
}
@media (max-width: 560px) {
  .top-buy { display: none; }
  .who { display: none; }
}

/* =========================================================
   HOME
   ========================================================= */

/* ---------- 01 hero: the route-scan war table ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding-top: var(--header-h);
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 30% 48%, rgba(255, 122, 26, 0.09), transparent 70%),
    radial-gradient(40% 40% at 85% 100%, rgba(184, 64, 10, 0.12), transparent 70%),
    var(--night);
}
.hero-map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-zone { position: absolute; left: 10%; top: 12%; width: 54%; height: 78%; pointer-events: none; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to left, rgba(6, 7, 11, 0.92) 0%, rgba(6, 7, 11, 0.7) 30%, rgba(6, 7, 11, 0) 52%),
    linear-gradient(to top, var(--night) 0%, rgba(6, 7, 11, 0) 22%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px);
}
.hero-hud { position: absolute; top: calc(var(--header-h) + 20px); left: var(--gutter); display: grid; gap: 6px; color: var(--ink-3); pointer-events: none; }
.hero-hud em { font-style: normal; color: var(--fox); }
.hero-hud-top { display: flex; align-items: center; gap: 10px; }
.hero-hud-state { color: var(--ok); }
.js .hero-hud-state { color: var(--fox-glow); }
.hero-hud-state.is-locked, .js .hero-hud-state.is-locked { color: var(--ok); }
.blink { width: 8px; height: 8px; background: var(--fox); animation: blink 1.1s steps(2, start) infinite; }
.hero-veil::after {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 120px;
  background: linear-gradient(to bottom, rgba(255, 122, 26, 0), rgba(255, 122, 26, 0.05), rgba(255, 122, 26, 0));
  animation: refresh 7s linear infinite;
}
@keyframes refresh { from { transform: translateY(-120px); } to { transform: translateY(100vh); } }
@keyframes blink { to { visibility: hidden; } }

.hero-grid { display: grid; align-items: center; }
.hero-copy { max-width: 700px; padding-block: 48px; }
.hero-title { margin: 0; font-family: var(--f-display); line-height: 1.12; }
.hero-title .l1 { display: block; font-weight: 900; font-size: clamp(3rem, 1.6rem + 5vw, 5.6rem); color: var(--ink); white-space: nowrap; }
.hero-title .l2 { display: block; margin-top: 0.35em; font-weight: 700; font-size: clamp(1.45rem, 0.95rem + 2.1vw, 2.6rem); color: var(--fox); }
.hero-lede { margin: 26px 0 0; max-width: 46ch; color: var(--ink-2); font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.15rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 26px 0 0; padding: 0; color: var(--ink-2); font-size: 0.95rem; }
.hero-facts li { display: flex; align-items: center; gap: 10px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; background: var(--fox); transform: rotate(45deg); }

.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 26px; }
.hero-note { margin: 0; color: var(--ink-3); font-size: 0.85rem; line-height: 1.7; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.hero-note .hud { color: var(--fox); font-size: 0.6875rem; }
.replay {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  background: none; border: 1px solid var(--line-2); color: var(--ink-2);
  padding: 8px 14px; cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.replay svg { width: 15px; height: 15px; }
.replay:hover { color: var(--fox); border-color: var(--fox); }

/* entrance: the headline decodes in, once; the same glitch is every heading's reveal */
.js .hero-title .l1 { animation: decode 1s var(--ease-out) 0.15s both; }
.js .hero-title .l2 { animation: decode 0.9s var(--ease-out) 0.55s both; }
.js .hero-lede, .js .hero-cta, .js .hero-facts { animation: rise 0.9s var(--ease-out) both; }
.js .hero-lede { animation-delay: 0.8s; }
.js .hero-cta { animation-delay: 0.95s; }
.js .hero-facts { animation-delay: 1.1s; }
@keyframes decode {
  /* the clip only sweeps sideways: top and bottom stay open (-0.5em) so the
     Persian descenders (ی ر و) below the line box are never cut, and it is
     gone once the heading has landed */
  0% { clip-path: inset(-0.5em -0.5em -0.5em 100%); transform: translateX(-10px); text-shadow: 6px 0 rgba(255, 122, 26, 0.9), -4px 0 rgba(255, 244, 232, 0.6); }
  35% { clip-path: inset(-0.5em -0.5em -0.5em 30%); transform: translateX(4px); }
  55% { clip-path: inset(-0.5em -0.5em -0.5em 0); transform: translateX(-3px); text-shadow: -3px 0 rgba(255, 122, 26, 0.8), 2px 0 rgba(255, 244, 232, 0.5); }
  70% { transform: translateX(1px); }
  99% { clip-path: inset(-0.5em -0.5em -0.5em 0); }
  100% { clip-path: none; transform: none; text-shadow: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- section scaffolding ---------- */
.sec { position: relative; padding: clamp(104px, 12vw, 168px) 0 clamp(80px, 10vw, 140px); }
.sec-code {
  position: absolute; top: clamp(32px, 4vw, 52px); left: var(--gutter); right: var(--gutter);
  display: flex; align-items: center; gap: 14px; color: var(--ink-3);
}
.sec-code::before { content: ""; flex: 1; height: 1px; background: linear-gradient(to left, transparent, var(--line-2) 30%); }
.sec-code::after { content: ""; width: 7px; height: 7px; background: var(--fox); transform: rotate(45deg); }
.sec-head h2 {
  margin: 0; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.1rem, 1.2rem + 3.4vw, 4.1rem); line-height: 1.22; max-width: 18ch;
}
.sec-head h2 em { font-style: normal; color: var(--fox); }
.sec-sub { margin: 18px 0 0; max-width: 56ch; color: var(--ink-2); }
.sec-sub a { color: var(--fox-glow); }

/* hidden only once home.js has set html.reveal-on and is watching them */
.reveal-on .reveal:not(.is-in) { opacity: 0; transform: translateY(28px); filter: blur(6px); }
.reveal-on .reveal.is-in { transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out); }
.reveal-on .reveal.is-in h2 { animation: decode 0.8s var(--ease-out) both; }

/* ---------- 02 why: three pains, each a HUD card that goes from error to fixed ---------- */
.pains { padding-bottom: clamp(48px, 6vw, 88px); }
.pain-grid { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: p; }
@media (min-width: 960px) { .pain-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.pain {
  --cut: 22px; --edge: var(--line-2);
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; gap: 12px;
  padding: 26px 26px 24px;
  transition: transform 0.45s var(--ease-out);
}
.pain::before, .pain::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.pain::before { background: var(--edge); transition: background 0.3s; }
.pain::after { inset: 1px; background: linear-gradient(180deg, var(--deck), var(--night-2)); clip-path: polygon(calc(var(--cut) - 0.5px) 0, 100% 0, 100% calc(100% - var(--cut) + 0.5px), calc(100% - var(--cut) + 0.5px) 100%, 0 100%, 0 calc(var(--cut) - 0.5px)); }
.pain:hover { --edge: rgba(255, 122, 26, 0.7); transform: translateY(-4px); }
.pain-top { margin: 0 0 6px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pain-err { display: inline-flex; align-items: center; gap: 8px; color: var(--block); font-size: 0.6875rem; text-decoration: line-through; text-decoration-color: rgba(242, 135, 141, 0.55); }
.pain-err::before { content: ""; width: 7px; height: 7px; background: var(--block); transform: rotate(45deg); flex: none; }
.pain-n { font-size: 2.4rem; line-height: 1; letter-spacing: 0; color: transparent; -webkit-text-stroke: 1px rgba(255, 122, 26, 0.55); }
.pain h3 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.6rem); line-height: 1.45; }
.pain p { margin: 0; color: var(--ink-2); }
.pain .pain-fix { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line-2); display: flex; align-items: center; gap: 8px; color: var(--ok); font-size: 0.6875rem; }
.pain .pain-fix::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px rgba(46, 196, 182, 0.8); flex: none; }

/* ---------- 03 route ---------- */
.route-grid { display: grid; gap: 48px; margin-top: 56px; align-items: start; }
@media (min-width: 980px) { .route-grid { grid-template-columns: 5fr 6fr; gap: 72px; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n { font-family: var(--f-display); font-weight: 900; font-size: 3rem; line-height: 1; color: var(--fox); padding-top: 4px; }
.steps h3 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; line-height: 1.5; }
.steps p { margin: 6px 0 0; color: var(--ink-2); max-width: 42ch; }

.scan { padding: clamp(20px, 3vw, 32px); background: linear-gradient(180deg, var(--deck), var(--night-2)); border: 1px solid var(--line); }
.scan-top { display: flex; justify-content: space-between; align-items: center; color: var(--ink-3); }
.scan-top .tag { font-size: 0.6875rem; padding: 2px 8px; color: var(--fox); border-color: rgba(255, 122, 26, 0.4); }
.scan-game { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 18px 0 22px; padding-bottom: 18px; border-bottom: 1px dashed var(--line-2); }
.scan-game b { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; }
.scan-status { color: var(--ink-3); font-size: 0.92rem; }
.scan-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 8.5rem 1fr 7.5rem; align-items: center; gap: 14px; }
.row-name { font-weight: 500; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.row-name i { font-style: normal; color: var(--ink-3); font-size: 0.6875rem; }
.row-bar { height: 6px; background: rgba(243, 239, 232, 0.07); position: relative; overflow: hidden; }
.row-bar i { position: absolute; inset-block: 0; right: 0; width: 100%; background: var(--fox); }
.row-val { text-align: left; font-size: 1.05rem; white-space: nowrap; }
.row-val.blocked { font-size: 0.85rem; color: var(--block); }
.row[data-row="direct"] .row-bar i { background: var(--block); }
.row[data-row="r1"] .row-bar i { background: var(--ok); }
.row[data-row="r1"] .row-val { color: var(--ok); }
.row[data-row="r2"] .row-bar i { opacity: 0.55; }
.scan-progress { height: 2px; background: var(--line); margin: 26px 0 18px; position: relative; }
.scan-progress i { position: absolute; inset-block: 0; right: 0; width: 100%; background: var(--ok); box-shadow: 0 0 12px rgba(46, 196, 182, 0.8); }
.scan-result { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.scan-result b { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; }
.scan-result .hud { margin-inline-start: auto; }
.scan .replay { margin-top: 20px; }
/* scan states driven by home.js; with no JS the final state shows */
.scan[data-state] .row-bar i { width: 0; transition: width 1.1s cubic-bezier(0.3, 0.7, 0.2, 1); }
.scan[data-state] .row-val { opacity: 0; transition: opacity 0.3s; }
.scan[data-state] .scan-progress i { width: 0; background: var(--fox); box-shadow: 0 0 12px rgba(255, 122, 26, 0.8); transition: width 3.2s linear; }
.scan[data-state] .scan-result { opacity: 0; transform: translateY(8px); transition: opacity 0.5s, transform 0.5s var(--ease-out); }
.scan[data-state="run"] .scan-progress i, .scan[data-state="done"] .scan-progress i { width: 100%; }
.scan .row.is-tested .row-bar i { width: 100%; }
.scan .row.is-tested .row-val { opacity: 1; }
.scan[data-state="done"] .scan-result { opacity: 1; transform: none; }
.scan[data-state="done"] .row[data-row="r1"] { animation: lockflash 0.9s var(--ease-out); }
.scan[data-state="done"] .scan-progress i { background: var(--ok); box-shadow: 0 0 12px rgba(46, 196, 182, 0.8); }
@keyframes lockflash { 0%, 40% { background: rgba(46, 196, 182, 0.14); } 100% { background: transparent; } }

/* lanes: only game traffic goes through FoxyNet */
.lanes { margin-top: clamp(72px, 9vw, 120px); display: grid; gap: 32px; align-items: center; padding-top: 40px; border-top: 1px solid var(--line); }
@media (min-width: 980px) { .lanes { grid-template-columns: 5fr 6fr; gap: 72px; } }
.lanes h3 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.35; }
.lanes p { margin: 12px 0 0; color: var(--ink-2); max-width: 48ch; }
.lane-map { display: grid; gap: 22px; }
.lane { display: grid; grid-template-columns: 6.5rem 1fr 6.5rem; align-items: center; gap: 12px; font-size: 0.92rem; }
.lane-to { text-align: left; }
.lane-line { position: relative; height: 2px; }
.lane--game .lane-line { background: linear-gradient(to left, rgba(255, 122, 26, 0.25), var(--fox), rgba(255, 122, 26, 0.25)); }
.lane--game .lane-from, .lane--game .lane-to { color: var(--ink); font-weight: 500; }
.lane--rest .lane-line { background: rgba(243, 239, 232, 0.16); }
.lane--rest { color: var(--ink-3); }
.lane-line i { position: absolute; top: -3px; right: 0; width: 8px; height: 8px; background: var(--fox-glow); transform: rotate(45deg); box-shadow: 0 0 10px rgba(255, 176, 112, 0.9); animation: lane 2.6s linear infinite; }
.lane-line i:nth-child(2) { animation-delay: -0.87s; }
.lane-line i:nth-child(3) { animation-delay: -1.73s; }
.lane--rest .lane-line i { background: var(--ink-3); box-shadow: none; animation-duration: 3.6s; }
.lane--rest .lane-line i:nth-child(2) { animation-delay: -1.8s; }
@keyframes lane { from { right: 0; } to { right: calc(100% - 8px); } }
.lane-fox { position: absolute; top: 50%; right: 50%; transform: translate(50%, -50%); width: 40px; height: 40px; display: grid; place-items: center; background: var(--night); border: 1px solid var(--fox); z-index: 1; }
.lane-fox img { width: 24px; height: 24px; }

/* ---------- 04 games: a main-menu list of the catalog ---------- */
.games { padding-bottom: 0; padding-top: clamp(96px, 9vw, 128px); }
.menu { list-style: none; margin: 56px 0 0; padding: 0; border-bottom: 1px solid var(--line); counter-reset: g; }
.menu li {
  position: relative; isolation: isolate; counter-increment: g;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 6px var(--gutter);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.menu li::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to left, rgba(255, 122, 26, 0.16), rgba(255, 122, 26, 0) 70%);
  transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease-out);
}
.menu li::after {
  content: ""; position: absolute; right: calc(var(--gutter) - 26px); top: 50%; width: 12px; height: 18px; margin-top: -9px;
  background: var(--fox); clip-path: polygon(100% 0, 0 50%, 100% 100%);
  opacity: 0; transform: translateX(10px); transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
.g-name {
  font-family: var(--f-hud); font-weight: 600; letter-spacing: -0.01em; text-transform: uppercase;
  font-size: clamp(2.2rem, 1rem + 5.6vw, 6.4rem); line-height: 1.08;
  color: transparent; -webkit-text-stroke: 1.2px rgba(243, 239, 232, 0.4);
  overflow-wrap: anywhere;
  transition: color 0.35s, -webkit-text-stroke-color 0.35s, transform 0.5s var(--ease-out);
}
.g-name.g-long { font-size: clamp(1.7rem, 0.8rem + 3.4vw, 4.2rem); }
.g-meta { color: var(--ink-3); text-align: left; transition: color 0.3s; flex: none; }
.g-meta::before { content: counter(g, decimal-leading-zero) " / PC"; }
.menu li.is-on::before, .menu li:hover::before { transform: scaleX(1); }
.menu li.is-on::after, .menu li:hover::after { opacity: 1; transform: none; }
.menu li.is-on .g-name, .menu li:hover .g-name { color: var(--ink); -webkit-text-stroke-color: transparent; transform: translateX(-10px); }
.menu li.is-on .g-meta, .menu li:hover .g-meta { color: var(--fox); }
@media (min-width: 1180px) { .menu li { padding-inline: calc(var(--gutter) + 40px); } .menu li::after { right: calc(var(--gutter) + 6px); } }
.games-empty { margin: 40px 0 0; padding: 22px 24px; border: 1px dashed var(--line-2); color: var(--ink-2); }

/* ---------- 05 plans: the orange field ---------- */
.plans { background: var(--fox); color: var(--fox-ink); padding-top: 0; overflow: hidden; isolation: isolate; }
.plans .wrap { position: relative; padding-top: clamp(104px, 11vw, 150px); }
.plans .sec-code { color: rgba(18, 8, 4, 0.85); top: clamp(40px, 4vw, 56px); left: 0; right: 0; }
.plans .sec-code::before { background: linear-gradient(to left, transparent, rgba(18, 8, 4, 0.35) 30%); }
.plans .sec-code::after { background: var(--fox-ink); }
.plans .sec-head h2 { color: var(--fox-ink); }
.plans-sub { margin: 14px 0 0; font-weight: 500; max-width: 52ch; }
.plans-fox { position: absolute; z-index: -1; left: 3%; top: 150px; width: min(34vw, 420px); opacity: 0.22; transform: rotate(-7deg); pointer-events: none; }
.ticker { background: var(--fox-ink); color: var(--fox); overflow: hidden; border-bottom: 1px solid rgba(255, 122, 26, 0.4); }
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; padding: 14px 0; animation: tick 28s linear infinite; }
.ticker-track span { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); line-height: 1.2; white-space: nowrap; }
.ticker-track span.hud { font-family: var(--f-hud); font-weight: 600; font-size: 0.9rem; color: var(--fox-glow); }
.ticker-track i { width: 9px; height: 9px; background: var(--fox); transform: rotate(45deg); flex: none; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(50%); } }

.loadouts { display: grid; gap: 18px; margin-top: 48px; }
@media (min-width: 960px) { .loadouts { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.loadout {
  --cut: 22px;
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px 26px 26px;
  background: var(--fox-ink); color: var(--cream);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform 0.45s var(--ease-out), background 0.3s;
}
.loadout:hover { transform: translateY(-6px); background: #000; }
.loadout header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 122, 26, 0.3); }
.loadout h3 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; line-height: 1.3; }
.loadout header .hud { color: var(--fox); font-size: 0.6875rem; }
.price { margin: 4px 0 0; color: rgba(255, 244, 232, 0.7); font-size: 1rem; }
.price b { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.6rem, 2rem + 1.8vw, 3.4rem); line-height: 1.1; color: var(--fox); margin-inline-end: 6px; }
.loadout-line { margin: 0; color: rgba(255, 244, 232, 0.86); line-height: 1.75; }
.loadout ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; color: rgba(255, 244, 232, 0.72); font-size: 0.92rem; line-height: 1.7; }
.loadout ul li { display: flex; align-items: baseline; gap: 10px; }
.loadout ul li::before { content: ""; width: 6px; height: 6px; background: var(--fox); transform: rotate(45deg) translateY(-2px); flex: none; }
.loadout .btn { margin-top: auto; }
.squad { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; }
.seat { text-align: center; padding: 8px 4px; font-size: 0.85rem; border: 1px dashed rgba(255, 122, 26, 0.6); color: var(--fox-glow); }
.seat--me { border-style: solid; background: var(--fox); color: var(--fox-ink); font-weight: 700; border-color: var(--fox); }
.plans-guarantee { margin: 36px 0 0; display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.5; }
.plans-guarantee::before { content: ""; width: 10px; height: 10px; background: var(--fox-ink); transform: rotate(45deg); flex: none; }
.plans-renew { margin: 6px 0 0; padding-inline-start: 22px; font-weight: 500; font-size: 0.95rem; }
.plans-renew a { text-decoration-color: rgba(18, 8, 4, 0.55); font-weight: 700; }
.plans-renew a:hover { color: var(--cream); }
.plans :focus-visible { outline-color: var(--fox-ink); }

/* ---------- 06 download: the hologram fox ---------- */
.dl-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 980px) { .dl-grid { grid-template-columns: 6fr 5fr; gap: 64px; } .holo { order: 2; } }
.holo { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; margin-inline: auto; }
.holo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 176, 112, 0.05) 0 1px, transparent 1px 4px); mask-image: radial-gradient(closest-side, #000 55%, transparent); }
.holo-canvas { width: 100%; height: 100%; }
.holo-label { position: absolute; bottom: 6%; left: 50%; transform: translateX(-50%); color: var(--fox); font-size: 0.6875rem; }
.dl-steps { list-style: none; counter-reset: s; margin: 36px 0 0; padding: 0; display: grid; gap: 4px; }
.dl-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; line-height: 1.6; }
.dl-steps li:last-child { border-bottom: 1px solid var(--line); }
.dl-steps li::before { content: counter(s, persian); font-family: var(--f-display); font-weight: 900; font-size: 1.6rem; line-height: 1.2; color: var(--fox); }
.dl-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 32px; }
.dl-meta { margin: 0; color: var(--ink-3); font-size: 0.92rem; }
.dl-meta .num { color: var(--ink-2); }
.filedet { margin-top: 20px; border: 1px solid var(--line); background: var(--night-2); }
.filedet summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 8px 14px; color: var(--ink-2); font-size: 0.9rem; }
.filedet summary::-webkit-details-marker { display: none; }
.filedet summary::before { content: ""; width: 0; height: 0; border-block: 5px solid transparent; border-inline-end: 7px solid var(--fox); transition: transform 0.3s var(--ease-out); }
.filedet[open] summary::before { transform: rotate(-90deg); }
.filedet summary:hover { color: var(--fox-glow); }
.filedet dl { margin: 0; padding: 4px 14px 14px; display: grid; gap: 10px; }
.filedet dt { color: var(--ink-3); font-size: 0.82rem; }
.filedet dd { margin: 0; }
.filedet code { display: block; font-family: var(--f-hud); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--fox-glow); overflow-wrap: anywhere; text-align: left; }
.dl-soon { margin: 22px 0 0; color: var(--ink-2); display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.dl-soon .tag { font-size: 0.6875rem; padding: 3px 9px; color: var(--fox-glow); }

.smart { margin-top: clamp(56px, 7vw, 96px); display: grid; gap: 28px; align-items: center; padding: clamp(22px, 3vw, 36px); background: linear-gradient(180deg, var(--deck), var(--night-2)); border: 1px solid var(--line); }
@media (min-width: 980px) { .smart { grid-template-columns: 6fr 5fr; gap: 48px; } }
.smart-code { color: var(--ink-3); }
.smart h3 { margin: 6px 0 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.8rem); line-height: 1.4; }
.smart-text { margin: 14px 0 0; color: var(--ink-2); max-width: 52ch; }
.smart-text b { color: var(--ink); }
.ss { max-width: 420px; width: 100%; justify-self: center; }
.ss-in { background: #1b5fae; color: #fff; padding: 22px 22px 18px; font-family: "Segoe UI", system-ui, sans-serif; font-size: 0.82rem; line-height: 1.5; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); }
.ss-in p { margin: 0 0 10px; }
.ss-title { font-size: 1.35rem; font-weight: 300; line-height: 1.25; }
.ss-text span { font-weight: 600; }
.ss-more, .ss-btns { display: flex; align-items: center; gap: 10px; }
.ss-link { text-decoration: underline; }
.ss-btns { justify-content: flex-end; gap: 8px; margin: 18px 0 0 !important; }
.ss-btn { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border: 1px solid rgba(255, 255, 255, 0.8); }
.ss-btn--hi { outline: 2px solid var(--fox); outline-offset: 2px; }
.ss-n { display: inline-grid; place-items: center; width: 20px; height: 20px; background: var(--fox); color: var(--fox-ink); font-family: var(--f-hud); font-weight: 600; font-size: 0.75rem; }

/* ---------- 07 faq ---------- */
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 980px) { .faq-grid { grid-template-columns: 4fr 7fr; gap: 72px; } }
.qa details { border-top: 1px solid var(--line); }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-family: var(--f-display); font-weight: 600; font-size: 1.18rem; line-height: 1.5;
  transition: color 0.2s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; width: 14px; height: 14px; flex: none;
  background: linear-gradient(var(--fox), var(--fox)) center / 100% 2px no-repeat, linear-gradient(var(--fox), var(--fox)) center / 2px 100% no-repeat;
  transition: transform 0.35s var(--ease-out);
}
.qa summary:hover { color: var(--fox-glow); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { margin: 0 0 24px; color: var(--ink-2); max-width: 62ch; }

/* ---------- home, small screens ---------- */
@media (max-width: 860px) {
  .plans-fox { display: none; }
  .hero { grid-template-rows: auto 1fr auto; min-height: 0; }
  .hero-grid { grid-row: 1; align-items: start; }
  .hero-zone { position: relative; left: auto; top: auto; width: 100%; height: min(54vh, 420px); grid-row: 2; }
  .hero-veil { background: linear-gradient(to bottom, rgba(6, 7, 11, 0.96) 0%, rgba(6, 7, 11, 0.85) 42%, rgba(6, 7, 11, 0) 58%), linear-gradient(to top, var(--night) 0%, rgba(6, 7, 11, 0) 14%); }
  .hero-hud { display: none; }
  .hero-copy { padding-block: 28px 0; }
  .hero-foot { grid-row: 3; flex-direction: column; align-items: flex-start; }
  .hero-facts { gap: 4px 16px; font-size: 0.88rem; }
  .row { grid-template-columns: 7.4rem 1fr 6.2rem; gap: 10px; }
  .row-name { font-size: 0.95rem; }
  .lane { grid-template-columns: 5.2rem 1fr 5.2rem; font-size: 0.82rem; }
  .g-name { font-size: 9.2vw; }
  .g-name.g-long { font-size: 6.4vw; }
  .menu li { padding-block: 10px; }
  .menu li::after { display: none; }
  .g-meta { font-size: 0.6875rem; }
}
@media (max-width: 420px) {
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-title .l1 { font-size: 2.7rem; }
}

/* =========================================================
   FORMS AND NOTICE PAGES (buy, renew, order, message, confirm)
   ========================================================= */
.page {
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(32px, 6vw, 72px)) 0 clamp(64px, 8vw, 112px);
  background:
    radial-gradient(50% 40% at 85% 0%, rgba(255, 122, 26, 0.1), transparent 70%),
    radial-gradient(rgba(243, 239, 232, 0.07) 1px, transparent 1.4px) 0 0 / 22px 22px,
    var(--night);
}
.sheet-wrap { display: grid; justify-items: center; }
.sheet {
  width: min(100%, 720px);
  padding: clamp(22px, 4vw, 44px);
  background: linear-gradient(180deg, rgba(16, 19, 27, 0.97), rgba(11, 13, 19, 0.97));
  border: 1px solid var(--line);
}
.sheet-code { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; color: var(--ink-3); }
.sheet-code::before { content: ""; width: 7px; height: 7px; background: var(--fox); transform: rotate(45deg); flex: none; }
.sheet-code::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, var(--line-2), transparent); }
.page-title { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); line-height: 1.3; }
.lead { margin: 12px 0 0; color: var(--ink-2); max-width: 60ch; }
.eyebrow { margin: 0 0 10px; color: var(--ink-3); font-size: 0.92rem; }
.sheet > .state { margin: 0 0 6px; }
.sub-title { margin: 36px 0 0; font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; line-height: 1.5; }
.sub-title + p { margin: 8px 0 0; color: var(--ink-2); }
.aside { margin: 28px 0 0; padding-top: 18px; border-top: 1px dashed var(--line-2); color: var(--ink-2); font-size: 0.95rem; }
.fine { margin: 0; color: var(--ink-3); font-size: 0.88rem; line-height: 1.8; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions .contact { margin: 0; }

.notice { margin: 18px 0 0; padding: 12px 16px; background: rgba(255, 122, 26, 0.07); border: 1px solid rgba(255, 122, 26, 0.25); border-inline-start: 3px solid var(--fox); color: var(--ink); font-size: 0.95rem; }
.notice--ok { background: rgba(46, 196, 182, 0.07); border-color: rgba(46, 196, 182, 0.3); border-inline-start-color: var(--ok); }
.notice--err { background: rgba(242, 135, 141, 0.07); border-color: rgba(242, 135, 141, 0.3); border-inline-start-color: var(--block); }
.notice a { color: var(--fox-glow); }

/* fields */
.form { display: grid; gap: 22px; margin-top: 28px; }
.form > .notice { margin: 0; }
.field { display: grid; gap: 6px; margin: 0; min-width: 0; }
.field > label, .pick legend { font-size: 0.92rem; color: var(--ink-2); font-weight: 500; }
.input {
  min-height: 52px; padding: 0 14px; width: 100%;
  background: var(--night); border: 1px solid var(--line-2); border-bottom: 2px solid rgba(255, 122, 26, 0.35); border-radius: 0;
  color: var(--ink); font-family: var(--f-hud), var(--f-body); font-weight: 500; font-size: 1rem; letter-spacing: 0.04em; caret-color: var(--fox);
  transition: border-color 0.2s, background 0.2s;
}
.input::placeholder { color: var(--ink-3); opacity: 0.8; }
.input:hover { border-color: rgba(243, 239, 232, 0.28); }
.input:focus { outline: none; border-color: var(--fox); background: #0d0b0a; }
.input:focus-visible { outline: 2px solid var(--fox-glow); outline-offset: 2px; }
.input[aria-invalid="true"] { border-color: rgba(242, 135, 141, 0.6); border-bottom-color: var(--block); }
.input--code { text-transform: uppercase; letter-spacing: 0.12em; }
.input--code::placeholder { letter-spacing: 0.12em; }
.help { margin: 0; color: var(--ink-3); font-size: 0.85rem; line-height: 1.75; }
.field-err { margin: 0; color: var(--block); font-size: 0.9rem; position: relative; padding-inline-start: 16px; }
.field-err::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.8em; width: 6px; height: 6px; background: var(--block); transform: rotate(45deg); }
.field-err a { color: var(--fox-glow); }

/* plan pick: loadout cards as radios */
.pick { border: 0; padding: 0; gap: 10px; }
.pick legend { padding: 0; margin-bottom: 6px; }
.pick-opt {
  --cut: 14px;
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 16px 18px; cursor: pointer;
  transition: transform 0.25s var(--ease-out);
}
.pick-opt::before, .pick-opt::after { content: ""; position: absolute; z-index: -1; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.pick-opt::before { inset: 0; background: var(--line-2); }
.pick-opt::after { inset: 1px; background: var(--night-2); }
.pick-opt:hover::before { background: rgba(255, 122, 26, 0.6); }
.pick-opt:has(input:checked)::before { background: var(--fox); }
.pick-opt:has(input:checked)::after { background: linear-gradient(100deg, rgba(255, 122, 26, 0.14), rgba(255, 122, 26, 0.02) 70%), var(--night-2); }
.pick-opt:has(input:focus-visible) { outline: 2px solid var(--fox-glow); outline-offset: 3px; }
.pick-opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--fox); }
.pick-body { display: grid; gap: 2px; min-width: 0; }
.pick-name { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.pick-name .hud { font-size: 0.6875rem; color: var(--fox); }
.pick-terms { color: var(--ink-3); font-size: 0.85rem; line-height: 1.7; }
.pick-price { color: var(--ink-2); font-size: 0.9rem; white-space: nowrap; text-align: left; }
.pick-price b { font-family: var(--f-display); font-weight: 900; font-size: 1.45rem; color: var(--fox); margin-inline-end: 4px; }
@media (max-width: 520px) {
  .pick-opt { grid-template-columns: auto 1fr; padding: 14px; }
  .pick-price { grid-column: 2; text-align: right; }
}

/* codes (order page and panel) */
.codes { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.code { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 14px; background: var(--deck); border: 1px solid var(--line); }
.code-v { flex: 1 1 auto; font-family: var(--f-hud); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.08em; color: var(--fox-glow); text-align: left; }
.code--used .code-v { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(243, 239, 232, 0.3); }
.mini-steps { list-style: none; counter-reset: m; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.mini-steps li { counter-increment: m; position: relative; padding: 10px 40px 10px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.mini-steps li::before { content: counter(m, persian); position: absolute; right: 0; top: 8px; font-family: var(--f-display); font-weight: 900; font-size: 1.3rem; line-height: 1.4; color: var(--fox); }
.facts-row { margin: 28px 0 0; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.facts-row dt { color: var(--ink-3); font-size: 0.85rem; }
.facts-row dd { margin: 0; font-size: 1.05rem; }

/* pending: a route still loading */
.wait { margin-top: 24px; }
.wait p { margin: 10px 0 0; color: var(--ink-3); font-size: 0.9rem; }
.wait-bar { height: 3px; background: var(--line); position: relative; overflow: hidden; }
.wait-bar i { position: absolute; inset-block: 0; right: 0; width: 30%; background: var(--fox); box-shadow: 0 0 12px rgba(255, 122, 26, 0.8); animation: waiting 1.8s var(--ease-out) infinite; }
@keyframes waiting { from { transform: translateX(110%); } to { transform: translateX(-350%); } }

.msg { text-align: center; display: grid; justify-items: center; }
.msg-mark { width: 64px; height: 64px; margin-bottom: 18px; }
.msg .lead { margin-inline: auto; }
.msg .actions { justify-content: center; }

/* =========================================================
   PLAYER PANEL
   ========================================================= */
.is-panel { background: radial-gradient(70% 40% at 80% 0%, rgba(255, 122, 26, 0.08), transparent 70%), var(--night); }
.panel { display: grid; gap: 32px; padding-top: calc(var(--header-h) + 36px); padding-bottom: 96px; }
@media (min-width: 980px) { .panel { grid-template-columns: 200px minmax(0, 1fr); gap: 56px; } }
.pnav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--header-h) + 36px); align-self: start; }
.pnav a { position: relative; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-2); padding: 10px 18px 10px 0; transition: color 0.2s; }
.pnav-n { color: var(--ink-3); font-size: 0.6875rem; transition: color 0.2s; }
.pnav a.is-on .pnav-n { color: var(--fox); }
.pnav a::before { content: ""; position: absolute; right: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: var(--fox); transform: rotate(45deg) scale(0); transition: transform 0.3s var(--ease-out); }
.pnav a:hover { color: var(--ink); }
.pnav a.is-on { color: var(--ink); font-weight: 500; }
.pnav a.is-on::before { transform: rotate(45deg) scale(1); }
.pmain { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
.pmain > .notice { margin: 0; }

/* the player card */
.player {
  padding: clamp(22px, 3.4vw, 40px);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(255, 122, 26, 0.14), transparent 60%),
    linear-gradient(180deg, var(--deck), var(--night-2));
  border: 1px solid var(--line);
  overflow: hidden;
}
.player::after {
  content: ""; position: absolute; left: -40px; bottom: -60px; width: 300px; height: 280px; pointer-events: none;
  background: url("img/fox-outline-orange.svg") center / contain no-repeat; opacity: 0.12;
}
.player > * { position: relative; z-index: 1; }
.player-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.player-h { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; color: var(--ink-2); }
.player-body { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-top: 14px; }
.days { display: flex; align-items: baseline; gap: 14px; }
.days-n { font-family: var(--f-display); font-weight: 900; font-size: clamp(5rem, 3rem + 7vw, 8.5rem); line-height: 1; color: var(--fox); }
.days-l { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); }
.days--none .days-n { color: var(--ink-3); font-weight: 300; }
.days--none .days-l { color: var(--ink-3); }
.facts { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 32px; margin: 0; }
.facts div { display: grid; gap: 2px; min-width: 0; }
.facts dt { color: var(--ink-3); font-size: 0.85rem; }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.facts dd.num { font-size: 0.95rem; }
.segs { display: grid; grid-template-columns: repeat(30, 1fr); gap: 4px; margin-top: 28px; direction: rtl; }
.segs i { height: 14px; background: rgba(243, 239, 232, 0.08); clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
.segs i.on { background: var(--fox); }
.js .segs i.on { animation: seg 0.5s var(--ease-out) both; }
.segs i.edge { background: var(--fox-glow); }
.js .segs i.edge { animation: seg 0.5s var(--ease-out) both, pulse 1.6s ease-in-out 1.6s infinite; }
@keyframes seg { from { opacity: 0; transform: scaleY(0.2); } }
@keyframes pulse { 50% { opacity: 0.45; } }
.segs-scale { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 0.6875rem; margin-top: 8px; direction: rtl; }
.player-line { margin: 22px 0 0; }
.player-line .status { font-size: 1rem; font-weight: 500; }
.player-note { margin: 4px 0 0; color: var(--ink-2); font-size: 0.95rem; max-width: 62ch; }
.player-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* blocks */
.pblock { padding: clamp(22px, 3vw, 32px); background: var(--night-2); border: 1px solid var(--line); }
.pblock-head { display: grid; gap: 4px; margin-bottom: 22px; }
.pblock h1, .pblock h2 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; line-height: 1.4; }
.pblock-head p { margin: 0; color: var(--ink-2); font-size: 0.95rem; max-width: 72ch; }
.pblock-foot { margin: 16px 0 0; color: var(--ink-3); font-size: 0.88rem; }
.pblock h3 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; }
.empty { margin: 0; padding: 16px 18px; border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 0.95rem; }

/* device slots */
.slots { display: grid; gap: 12px; }
@media (min-width: 760px) { .slots { grid-template-columns: 1fr 1fr; } }
.slot { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line-2); background: var(--deck); }
.slot--on { border-color: rgba(255, 122, 26, 0.45); }
.slot--empty { border-style: dashed; background: transparent; color: var(--ink-3); }
.slot-ico { width: 48px; height: 48px; display: grid; place-items: center; background: rgba(255, 122, 26, 0.1); color: var(--fox); }
.slot--empty .slot-ico { background: transparent; color: var(--ink-3); border: 1px dashed var(--line-2); }
.slot-ico svg { width: 24px; height: 24px; }
.slot-body { display: grid; gap: 2px; min-width: 0; }
.slot-kind { color: var(--ink-3); font-size: 0.6875rem; text-align: right; }
.slot-name { font-size: 1.05rem; font-family: var(--f-display); font-weight: 700; }
.slot--empty .slot-name { font-weight: 500; color: var(--ink-2); }
.slot-meta { color: var(--ink-3); font-size: 0.85rem; line-height: 1.7; }

/* gift codes */
.redeem { display: grid; gap: 12px; align-items: start; }
@media (min-width: 640px) { .redeem { grid-template-columns: 1fr auto; } .redeem .btn { margin-top: 31px; } }
.gift-codes { margin-top: 28px; padding-top: 22px; border-top: 1px dashed var(--line-2); }
.gift-note { margin: 4px 0 0; color: var(--ink-3); font-size: 0.9rem; }
.gift-codes .codes { margin-top: 14px; }

/* payments */
.table-wrap { position: relative; overflow-x: auto; }
.pay { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.pay th { text-align: right; font-weight: 500; color: var(--ink-3); font-size: 0.85rem; padding: 0 12px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.pay td { padding: 14px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pay th:first-child, .pay td:first-child { padding-right: 0; }
.pay tr:hover td { background: rgba(255, 122, 26, 0.04); }
.pay .state { font-size: 0.88rem; }
.row-link { color: var(--ink-2); font-size: 0.9rem; }

/* security */
.sec-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .sec-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.pw { display: grid; gap: 16px; align-content: start; }
.pw .notice { margin: 0; }
.pw .btn { justify-self: start; }
.everywhere { display: grid; gap: 12px; align-content: start; align-self: start; padding: 20px; border: 1px solid rgba(242, 135, 141, 0.25); background: rgba(242, 135, 141, 0.035); }
.everywhere p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.everywhere .btn { justify-self: start; }

/* the overview's tiles: a part at a glance, the whole tile a link to it */
.glance { display: grid; gap: 20px; }
@media (min-width: 640px) { .glance { grid-template-columns: 1fr 1fr; } }
.tile { display: flex; flex-direction: column; gap: 8px; padding: clamp(20px, 2.6vw, 28px); background: var(--night-2); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.tile:hover { border-color: rgba(255, 122, 26, 0.5); background: linear-gradient(180deg, rgba(255, 122, 26, 0.06), transparent 70%), var(--night-2); }
.tile-code { color: var(--ink-3); font-size: 0.6875rem; }
.tile-big { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.tile-big b { font-family: var(--f-display); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--fox); }
.tile-big span { color: var(--ink-2); }
.tile-big--text b { font-size: 1.5rem; font-weight: 800; line-height: 1.4; color: var(--ink); }
.tile-slots { display: flex; gap: 8px; }
.tile-slots i { display: grid; place-items: center; width: 34px; height: 34px; border: 1px dashed var(--line-2); color: var(--ink-3); }
.tile-slots i.is-in { border: 0; background: rgba(255, 122, 26, 0.12); color: var(--fox); }
.tile-slots svg { width: 18px; height: 18px; }
.tile-text { color: var(--ink-2); font-size: 0.92rem; }
.tile-text .state { font-size: 0.88rem; }
.tile-go { margin-top: auto; padding-top: 10px; color: var(--fox); font-size: 0.92rem; font-weight: 500; }
.tile-go::after { content: "←"; display: inline-block; margin-inline-start: 8px; transition: transform 0.25s var(--ease-out); }
.tile:hover .tile-go::after { transform: translateX(-4px); }

@media (max-width: 979px) {
  .pnav {
    flex-direction: row; overflow-x: auto; gap: 4px; top: var(--header-h); z-index: 20;
    margin-inline: calc(-1 * var(--gutter)); padding: 10px var(--gutter);
    background: rgba(6, 7, 11, 0.94); border-bottom: 1px solid var(--line); scrollbar-width: none;
  }
  .pnav::-webkit-scrollbar { display: none; }
  .pnav a { white-space: nowrap; padding: 6px 14px; border: 1px solid var(--line); font-size: 0.92rem; }
  .pnav a::before { display: none; }
  .pnav a.is-on { border-color: var(--fox); color: var(--fox); }
  .panel { padding-top: var(--header-h); gap: 18px; grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr 1fr; gap: 8px 20px; }
  .facts div:first-child { grid-column: 1 / -1; }
  .segs { gap: 3px; }
  .segs i { height: 12px; }
  .player-actions .btn { flex: 1 1 auto; }
  .slot { grid-template-columns: 40px 1fr; }
  .slot-ico { width: 40px; height: 40px; }
  .slot .btn { grid-column: 1 / -1; justify-self: start; }
}

/* =========================================================
   ADMIN PANEL (admin host only): the player panel's frame, denser
   ========================================================= */
.crumb { margin: 0; font-size: 0.92rem; }
.crumb a { color: var(--ink-2); text-decoration: none; }
.crumb a::before { content: "→"; margin-inline-end: 8px; color: var(--fox); }
.crumb a:hover { color: var(--ink); }
.pblock-head .tile-code { margin-bottom: 2px; justify-self: start; }
.acc-email { overflow-wrap: anywhere; }
.acc-email .num { font-family: var(--f-display); font-weight: 800; letter-spacing: 0; }
.pblock h1.acc-email { font-size: clamp(1.05rem, 0.75rem + 2.4vw, 1.5rem); }
.facts--admin { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px 32px; }
.facts--admin .id { font-size: 0.8rem; color: var(--ink-3); }
.adm-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .adm-grid { grid-template-columns: 1fr 1fr; } }
.adm-grid .pblock, .pmain > .pblock { display: grid; gap: 14px; align-content: start; }
.pmain > .pblock .pblock-head { margin-bottom: 4px; }
.pblock .help { max-width: 60ch; }
/* a search or a small create form: the fields, then the button on the line */
.inline-form { display: grid; gap: 12px; align-items: end; }
@media (min-width: 640px) {
  .inline-form { grid-template-columns: minmax(0, 1fr) auto; }
  .inline-form--2 { grid-template-columns: minmax(0, 140px) minmax(0, 140px) auto; justify-content: start; }
}
.inline-form .btn { min-height: 52px; }
/* filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips a { padding: 4px 12px; border: 1px solid var(--line); color: var(--ink-2); font-size: 0.88rem; text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.chips a:hover { border-color: var(--line-2); color: var(--ink); }
.chips a.is-on { border-color: var(--fox); color: var(--fox); }
/* tables */
.pay--admin td { vertical-align: middle; }
.pay--admin td:last-child { width: 1%; }
.pay--admin .masked { color: var(--ink-2); letter-spacing: 0.06em; }
.pay--admin .detail { font-family: var(--f-hud); font-size: 0.82rem; color: var(--ink-2); }
.row-link--strong { color: var(--ink); text-decoration: none; }
.row-link--strong:hover { color: var(--fox-glow); }
.row-meta { display: inline-block; margin-inline-start: 8px; color: var(--ink-3); font-size: 0.82rem; }
.pay--admin .state + .row-meta { display: block; margin: 0; }
/* phones: each row a small card, the cells stacked with their labels */
@media (max-width: 640px) {
  .pay--admin thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pay--admin, .pay--admin tbody, .pay--admin tr, .pay--admin td { display: block; }
  .pay--admin tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .pay--admin td, .pay--admin th:first-child, .pay--admin td:first-child { padding: 2px 0; border: 0; white-space: normal; width: auto; }
  .pay--admin td:first-child { font-weight: 500; }
  .pay--admin td[data-l]::before { content: attr(data-l); display: inline-block; min-width: 5.5em; color: var(--ink-3); font-size: 0.8rem; }
  .pay--admin td:last-child { width: auto; }
  .pay--admin td:last-child:has(details) { margin-top: 6px; }
  .pay--admin tr:hover td { background: none; }
  .pay--admin .state + .row-meta { display: inline-block; margin-inline-start: 8px; }
}
/* device rows */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 14px; background: var(--deck); border: 1px solid var(--line); }
.row-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; }
/* "are you sure?" without a script: the button opens the real one */
.confirm { position: relative; }
.confirm > summary { list-style: none; white-space: nowrap; width: max-content; }
.confirm > summary::-webkit-details-marker { display: none; }
.confirm[open] > summary { --edge: var(--line-2); --fg: var(--ink-3); }
.confirm form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; padding: 10px 12px; background: var(--night); border: 1px solid rgba(242, 135, 141, 0.35); font-size: 0.88rem; color: var(--ink-2); white-space: normal; min-width: min(280px, 70vw); }
.pay--admin .confirm form { width: 260px; }
/* the one-time reset link */
.code--link .code-v { font-size: 0.85rem; letter-spacing: 0; overflow-wrap: anywhere; word-break: break-all; }
/* sales */
.sales-big { margin: 18px 0 0; font-family: var(--f-display); font-weight: 900; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); line-height: 1.2; }
.sales--open .sales-big { color: var(--ok); }
.sales--closed .sales-big { color: var(--fox); }
.sales .facts--admin { margin-top: 18px; }

/* =========================================================
   LOGIN, SIGNUP, RESET: one card over the idle route map
   ========================================================= */
.login { position: relative; min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 18px; padding: calc(var(--header-h) + 32px) var(--gutter) 48px; }
.login-map { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; }
.login-zone { position: fixed; left: 6%; top: 18%; width: 88%; height: 70%; pointer-events: none; }
.login-veil { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(42% 60% at 50% 52%, rgba(6, 7, 11, 0.88), rgba(6, 7, 11, 0.35) 75%); }
.login-card { width: min(440px, calc(100vw - 2 * var(--gutter))); padding: 28px; background: rgba(12, 14, 20, 0.94); border: 1px solid var(--line-2); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line-2); margin-bottom: 24px; }
.tab { position: relative; display: block; text-align: center; padding: 10px 0 12px; color: var(--ink-3); font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; line-height: 1.5; text-decoration: none; }
a.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { color: var(--ink); }
.tab[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--fox); }
.login-code { margin: 0 0 6px; color: var(--fox); }
.login-h { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 1.9rem; line-height: 1.3; }
.login-lead { margin: 8px 0 0; color: var(--ink-2); font-size: 0.95rem; line-height: 1.85; }
.login-card > .notice { margin-top: 16px; }
.login-form { display: grid; gap: 16px; margin-top: 22px; }
.login-form > .notice { margin: 0; }
.login-form .fine { text-align: center; }
.forgot { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.forgot summary { cursor: pointer; list-style: none; text-align: center; color: var(--ink-2); font-size: 0.92rem; }
.forgot summary::-webkit-details-marker { display: none; }
.forgot summary:hover { color: var(--fox); }
.forgot p { margin: 12px 0 0; color: var(--ink-2); font-size: 0.9rem; line-height: 1.85; }
.forgot .contact { justify-content: center; }
.login-foot { color: var(--ink-3); font-size: 0.6875rem; }

/* ---------- reduced motion: the final still state, nothing hidden ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .ticker-track { animation: none; }
  .lane-line i { animation: none; }
  .lane-line i:nth-child(2) { right: 33%; }
  .lane-line i:nth-child(3) { right: 70%; }
  .blink { animation: none; }
  .hero-veil::after { display: none; }
  .wait-bar i { animation: none; width: 100%; opacity: 0.5; }
}
