:root {
  --bg: #090C08;
  --ink: #EAEAEA;
  --lav: #CBC5EA;
  --primary: #454E9E;
  --accent: #AF1B3F;
  --panel: rgba(14, 18, 12, 0.58);
  --line: rgba(203, 197, 234, 0.14);
  --font: "Nevanta", "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-oblique: "Nevanta Oblique", "Nevanta", "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* ---------- lite mode (weak devices / no GPU): static background ---------- */
body.lite {
  background:
    radial-gradient(70vw 55vh at 15% 10%, rgba(69, 78, 158, 0.38), transparent 65%),
    radial-gradient(55vw 45vh at 85% 80%, rgba(175, 27, 63, 0.30), transparent 65%),
    radial-gradient(90vw 70vh at 50% 115%, rgba(203, 197, 234, 0.12), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
body.lite #gl { display: none; }

/* ---------- topup converter ---------- */
.conv-panel { display: grid; gap: 14px; }
.conv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.conv-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(9, 12, 8, 0.45);
  color: var(--lav);
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}
.conv-chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.conv-chip:hover { color: var(--ink); border-color: rgba(203, 197, 234, 0.35); }
.conv-chip.active {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(69, 78, 158, 0.55), rgba(69, 78, 158, 0.2));
  box-shadow: inset 0 0 0 1px rgba(203, 197, 234, 0.25), 0 4px 18px rgba(69, 78, 158, 0.35);
}
.conv-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}
.conv-input { position: relative; }
.conv-input input {
  width: 100%;
  padding-right: 86px;
}
.conv-asset {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--lav);
  background: rgba(69, 78, 158, 0.25);
  border-radius: 8px;
  padding: 4px 10px;
}
.conv-arrow { color: var(--lav); display: flex; }
.conv-arrow svg { width: 22px; height: 22px; }
.conv-out { display: grid; gap: 4px; padding-left: 4px; }
.conv-tokens { font-size: 24px; font-weight: 700; }
.conv-usd { font-size: 14px; }
.conv-price { display: flex; align-items: center; gap: 8px; font-size: 13px; }
@media (max-width: 720px) {
  .conv-row { grid-template-columns: 1fr; }
  .conv-arrow { justify-content: center; transform: rotate(90deg); }
}

#vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 10%, transparent 40%, rgba(9, 12, 8, 0.55) 100%),
    linear-gradient(to top, rgba(9, 12, 8, 0.8), transparent 30%);
}

#grain {
  position: fixed;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='0.6'/></svg>");
  animation: grain 7s steps(8) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
}

.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.muted { color: var(--lav); opacity: 0.75; }

/* ---------- loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: var(--bg);
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-mark {
  display: grid;
  justify-items: center;
  gap: 16px;
}
.loader-mark img {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  box-shadow: 0 0 60px rgba(69, 78, 158, 0.45), 0 0 120px rgba(175, 27, 63, 0.25);
  animation: markFloat 3s ease-in-out infinite;
}
@keyframes markFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.loader-bar {
  width: 180px;
  height: 3px;
  border-radius: 99px;
  background: rgba(203, 197, 234, 0.15);
  overflow: hidden;
}
.loader-bar i {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--lav));
  animation: loadbar 1.2s var(--ease-out) infinite;
}
@keyframes loadbar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(320%); }
}
.loader-hint {
  margin: 0;
  color: var(--lav);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- topbar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(16px, 4vw, 48px);
  mask-image: linear-gradient(to bottom, black 70%, transparent);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 0 24px rgba(69, 78, 158, 0.5);
}
.brand-name {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  padding: 5px;
  border-radius: 99px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 99px;
  color: var(--lav);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.03em;
  transition: color var(--dur) var(--ease-out), background var(--dur) var(--ease-out), box-shadow var(--dur);
}
.nav-link svg { width: 15px; height: 15px; }
.nav-link:hover { color: var(--ink); }
.nav-link.active {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(69, 78, 158, 0.55), rgba(69, 78, 158, 0.2));
  box-shadow: inset 0 0 0 1px rgba(203, 197, 234, 0.25), 0 4px 18px rgba(69, 78, 158, 0.35);
}
.topbar-right { display: flex; align-items: center; gap: 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn svg { width: 15px; height: 15px; }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #5a63c4);
  border-color: transparent;
  box-shadow: 0 8px 30px rgba(69, 78, 158, 0.45);
}
.btn-primary:hover { box-shadow: 0 10px 42px rgba(69, 78, 158, 0.7); transform: translateY(-1px); }
.btn-ghost { background: var(--panel); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: rgba(203, 197, 234, 0.4); }
.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--lav);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}
.icon-btn:disabled { opacity: 0.45; cursor: default; }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- pages ---------- */
#stage { position: relative; z-index: 10; height: 100dvh; }
.page {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  padding: 96px clamp(20px, 6vw, 96px) 72px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.page.active { visibility: visible; opacity: 1; pointer-events: auto; }
.page-inner {
  width: min(680px, 100%);
  display: grid;
  gap: 26px;
  transition: transform 0.7s var(--ease-out), opacity 0.7s var(--ease-out), filter 0.7s;
  transform: translateY(26px);
  filter: blur(6px);
}
.page.active .page-inner { transform: translateY(0); filter: blur(0); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--lav);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow svg { width: 14px; height: 14px; }
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #7CFF9B;
  box-shadow: 0 0 12px #7CFF9B;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.display {
  margin: 0;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.display em, .page-head em {
  font-family: var(--font-oblique);
  font-style: italic;
  font-weight: 400;
  color: transparent;
  background: linear-gradient(120deg, var(--lav), var(--primary) 60%, var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
}
.lede {
  margin: 0;
  max-width: 52ch;
  color: var(--lav);
  font-size: 16px;
  line-height: 1.65;
}
.lede code {
  font-size: 13px;
  padding: 2px 7px;
  border-radius: 7px;
  background: rgba(69, 78, 158, 0.25);
  border: 1px solid var(--line);
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.page-head h2 {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 900;
  letter-spacing: -0.01em;
}

/* ---------- home scroll ---------- */
.page-scroll {
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 100px clamp(16px, 5vw, 72px) 110px;
  scroll-behavior: smooth;
}
.page-scroll.active { align-content: unset; }
.page-scroll::-webkit-scrollbar { width: 6px; }
.page-scroll::-webkit-scrollbar-thumb { background: rgba(203, 197, 234, 0.2); border-radius: 9px; }
.page-scroll::-webkit-scrollbar-track { background: transparent; }

.home-hero {
  max-width: 1200px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(460px, 1fr);
  gap: 48px;
  align-items: center;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 52px;
}
.home-hero-text { display: grid; gap: 18px; }
@media (max-width: 980px) {
  .home-hero { grid-template-columns: 1fr; gap: 28px; max-width: 720px; }
}
.home-hero-text { min-width: 0; }
.display .hero-savings {
  display: inline-block;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  vertical-align: middle;
  padding: .12em .19em .16em;
  border: 1px solid rgba(234, 234, 234, .24);
  border-radius: .24em;
  font-weight: 700;
  font-style: normal;
  white-space: nowrap;
  color: #EAEAEA;
  background: rgba(203, 197, 234, .08);
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  box-shadow: inset 0 1px 0 rgba(234, 234, 234, .25), inset 0 -1px 12px rgba(9, 12, 8, .25), 0 8px 24px rgba(9, 12, 8, .2);
  text-shadow: 0 2px 5px rgba(9, 12, 8, .45);
}
.hero-savings > span { position: relative; z-index: 4; }
.display .models-title-glass { white-space: normal; max-width: 100%; }
.hero-savings .num { letter-spacing: -.065em; }
.hero-savings-label { font-size: .8em; }
.savings-glow {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: .85;
}
.savings-glow > i {
  position: absolute;
  background: radial-gradient(ellipse, var(--glow-color) 10%, transparent 72%);
  box-shadow: inset 0 0 18px var(--glow-color);
  mix-blend-mode: screen;
}
.hero-savings::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background: url("/assets/glass-grain.svg") repeat;
  background-size: 128px 128px;
  opacity: .48;
  mix-blend-mode: multiply;
}
.model-conveyor {
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.model-conveyor:focus-visible { outline: 2px solid var(--lav); outline-offset: 4px; }
.model-conveyor-track { display: flex; width: max-content; }
.model-conveyor-track.is-ready { animation: model-conveyor 32s linear infinite; }
.model-conveyor-group {
  display: flex;
  flex: none;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 6px 22px 10px 0;
  list-style: none;
}
.model-conveyor-group li { display: flex; align-items: center; gap: 7px; color: var(--lav); font-size: 14px; white-space: nowrap; }
.model-conveyor-group img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .3)); }
.model-conveyor:hover .model-conveyor-track,
.model-conveyor:focus-within .model-conveyor-track,
.page:not(.active) .model-conveyor-track { animation-play-state: paused; }
@keyframes model-conveyor { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .model-conveyor { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .model-conveyor-track.is-ready { animation: none; }
  .model-conveyor-group[aria-hidden="true"] { display: none; }
}
.home-section {
  max-width: 840px;
  margin: 0 auto 52px;
  display: grid;
  gap: 18px;
}
.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.01em;
}
.section-sub {
  margin: 0;
  color: var(--lav);
  font-size: 15px;
  line-height: 1.7;
  max-width: 54ch;
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.feature {
  padding: 20px 22px;
  gap: 10px;
}
.feature svg { width: 22px; height: 22px; color: var(--primary); }
.feature h3 { margin: 0; font-size: 16px; font-weight: 700; }
.feature p { margin: 0; color: var(--lav); font-size: 14px; line-height: 1.6; }

.compare-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 4px 0 0;
  list-style: none;
}
.client-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  min-width: 0;
  border: 1px solid rgba(203, 197, 234, .16);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(203, 197, 234, .09), rgba(9, 12, 8, .3));
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(234, 234, 234, .06);
  transition: border-color .2s, background-color .2s;
}
.client-card:hover { border-color: rgba(203, 197, 234, .4); background-color: rgba(69, 78, 158, .12); }
.client-card img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .3)); }
.client-card div { display: grid; gap: 6px; }
.client-card b { font-size: 16px; color: var(--ink); }
.client-card span { font-size: 12px; color: var(--lav); }
.client-card-custom { border-style: dashed; }
.client-card-custom > svg { width: 72px; height: 72px; padding: 19px; color: var(--lav); stroke-width: 1.25; }
@media (max-width: 720px) {
  .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .client-card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .client-card { transition: none; }
}
.chip {
  padding: 9px 16px;
  border-radius: 99px;
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--lav);
  backdrop-filter: blur(8px);
}
.chip b { color: var(--ink); }

.faq-list { display: grid; gap: 12px; }
.faq {
  padding: 0;
  transition: box-shadow 0.3s;
}
.faq[open] { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(69, 78, 158, 0.2); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::after { content: "+"; font-size: 22px; color: var(--lav); transition: transform 0.25s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 22px 20px; color: var(--lav); font-size: 14px; line-height: 1.7; }

.home-cta {
  text-align: center;
  padding: 36px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 0 !important;
}
.home-cta .section-sub { margin: 0 auto 8px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 14px; }

/* ---------- calculator ---------- */
.calc-card {
  padding: 34px 36px 30px;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(69, 78, 158, 0.25);
}
.calc { display: grid; gap: 22px; }
.calc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calc-head b { font-size: 16px; letter-spacing: 0.04em; }
.calc-amount {
  font-family: "Space Grotesk", var(--font);
  font-feature-settings: "tnum";
  font-size: 48px;
  font-weight: 700;
  color: var(--lav);
  text-shadow: 0 0 24px rgba(69, 78, 158, 0.6);
}
.calc-amount output { font-size: inherit; }
.calc-scale {
  font-family: "Space Grotesk", var(--font);
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: var(--lav);
  opacity: 0.65;
  margin-top: -14px;
}
.calc-result {
  display: grid;
  gap: 4px;
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(69, 78, 158, 0.14);
  border: 1px solid var(--line);
}
.calc-result b {
  font-family: "Space Grotesk", var(--font);
  font-feature-settings: "tnum";
  font-size: 33px;
  font-weight: 700;
}
.calc-result span { font-size: 15px; color: var(--lav); }
.calc-rate-line { display: flex; align-items: center; gap: 8px; }
.calc-rate-line b {
  font-family: "Space Grotesk", var(--font);
  font-feature-settings: "tnum";
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.calc-result .mult {
  font-family: "Space Grotesk", var(--font);
  font-size: 21px;
  font-weight: 700;
  color: var(--lav);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 99px;
  background: var(--ink);
  border: 3px solid var(--primary);
  box-shadow: 0 0 18px rgba(69, 78, 158, 0.7);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 99px;
  background: var(--ink);
  border: 3px solid var(--primary);
  box-shadow: 0 0 18px rgba(69, 78, 158, 0.7);
  cursor: pointer;
}

/* ---------- numeric font ---------- */
.num, .kpi b {
  font-family: "Space Grotesk", var(--font);
  font-feature-settings: "tnum";
}
.mono {
  font-family: "JetBrains Mono", "Space Grotesk", monospace;
  font-feature-settings: "tnum";
  letter-spacing: 0.01em;
}
.loader-hint {
  font-family: "Space Grotesk", var(--font);
}

/* ---------- models value table ---------- */
.models-hero {
  max-width: none;
  min-height: calc(100dvh - 190px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 46px;
}
.models-hero .lede { margin: 0 auto; }
.models-scroll-cue { display: none; }
@media (min-width: 1024px) {
  .models-scroll-cue {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin: 32px auto 0;
    padding: 0;
    border: 1px solid rgba(203, 197, 234, .3);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, rgba(203, 197, 234, .18), rgba(69, 78, 158, .12));
    color: var(--lav);
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
  }
  .models-scroll-cue svg { width: 48px; height: 48px; stroke-width: 1.5; }
  .models-scroll-cue:hover { background: rgba(69, 78, 158, .35); color: var(--ink); }
  .models-scroll-cue:focus-visible { outline: 2px solid var(--lav); outline-offset: 5px; }
}
.models-section { scroll-margin-top: 100px; }
.models-tools { justify-content: center; margin-top: 14px; }
.filter-chip { cursor: pointer; user-select: none; transition: all 0.25s var(--ease-out); }
.filter-chip.active {
  color: var(--ink);
  border-color: rgba(69, 78, 158, 0.7);
  background: linear-gradient(135deg, rgba(69, 78, 158, 0.45), rgba(69, 78, 158, 0.15));
  box-shadow: 0 4px 18px rgba(69, 78, 158, 0.35);
}
.models-section { max-width: 980px; }
.models-panel { padding: 10px 14px 14px; }
.models-tbl th { padding: 14px 12px; white-space: nowrap; }
.models-tbl td { padding: 12px; vertical-align: middle; }
.models-tbl tr { transition: background 0.2s; }
.models-tbl tbody tr:hover {
  background: rgba(69, 78, 158, 0.14);
}
.sortable { cursor: pointer; }
.sortable:hover { color: var(--ink); }
.sortable::after {
  content: "↕";
  margin-left: 6px;
  opacity: 0.45;
  font-size: 12px;
}
.sortable.sorted-asc::after { content: "↑"; opacity: 1; color: var(--lav); }
.sortable.sorted-desc::after { content: "↓"; opacity: 1; color: var(--lav); }

.model-cell { display: flex; align-items: center; gap: 13px; min-width: 230px; }
.model-names { display: grid; gap: 1px; }
.model-names b { font-size: 14px; font-weight: 700; }
.model-company { font-size: 11px; color: var(--lav); opacity: 0.8; }
.model-company .mono { font-size: 10px; }

.mlogo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: transparent;
  flex-shrink: 0;
  color: #454e9e;
}
.mlogo-svg, .mlogo-img { width: 100%; height: 100%; object-fit: contain; }
.mlogo-img { filter: drop-shadow(0 5px 4px rgba(0, 0, 0, .3)); }
.mlogo-svg { fill: currentColor; }
.mlogo-fallback { position: relative; }
.mlogo-fallback::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.num-col {
  font-family: "Space Grotesk", var(--font);
  font-feature-settings: "tnum";
  white-space: nowrap;
}
.price { color: var(--lav); }
.price-hot {
  color: transparent;
  background: linear-gradient(120deg, #7CFF9B, var(--lav));
  background-clip: text;
  -webkit-background-clip: text;
  font-weight: 700;
}
.tok { font-weight: 700; }

.skills-cell { white-space: nowrap; }
.skill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  margin-right: 5px;
  border: 1px solid var(--line);
  background: rgba(203, 197, 234, 0.05);
  color: var(--lav);
}
.skill svg { width: 13px; height: 13px; }
.skill-brain {
  color: #CFFFD9;
  border-color: rgba(124, 255, 155, 0.3);
  background: rgba(124, 255, 155, 0.07);
}

.models-note { font-size: 12px; margin: 4px 6px 0; }

@media (max-width: 720px) {
  .model-cell { min-width: 180px; }
  .models-tbl td:nth-child(5), .models-tbl th:nth-child(5) { display: none; }
  .topbar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
    mask-image: none;
  }
  .brand-name { display: none; }
  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav-link { flex: 0 0 auto; padding: 9px 12px; }
  .nav-link span { display: none; }
  .topbar-right { gap: 6px; margin-left: auto; }
}

/* ---------- auth ---------- */
.auth-inner { width: min(460px, 100%); margin: 0 auto; }
.auth-card {
  padding: 30px 32px 24px;
  border-radius: 24px;
  display: grid;
  gap: 20px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.55), 0 0 44px rgba(69, 78, 158, 0.28);
}
.auth-head { display: flex; gap: 15px; align-items: center; }
.auth-head h2 { margin: 0; font-size: 26px; font-weight: 900; }
.auth-head p { margin: 3px 0 0; font-size: 13px; }
.auth-mark img {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  box-shadow: 0 0 26px rgba(69, 78, 158, 0.5);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(9, 12, 8, 0.55);
  border: 1px solid var(--line);
}
.auth-tab {
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--lav);
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}
.auth-tab.active {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(69, 78, 158, 0.55), rgba(69, 78, 158, 0.2));
  box-shadow: inset 0 0 0 1px rgba(203, 197, 234, 0.25);
}
.auth-form { display: grid; gap: 14px; }
.auth-step { display: grid; gap: 14px; }
.btn-full { width: 100%; justify-content: center; }
.auth-hint { margin: -2px 0 0; font-size: 12px; text-align: center; }

.field { display: grid; gap: 7px; }
.field span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lav);
}
.field input {
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(9, 12, 8, 0.55);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus {
  border-color: rgba(69, 78, 158, 0.8);
  box-shadow: 0 0 0 3px rgba(69, 78, 158, 0.25);
}
.field input::placeholder { color: rgba(203, 197, 234, 0.35); }
.totp-input {
  font-size: 24px !important;
  letter-spacing: 0.4em;
  text-align: center;
}

.auth-error {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #FFC2CC;
  background: rgba(175, 27, 63, 0.16);
  border: 1px solid rgba(175, 27, 63, 0.45);
}
.auth-ok {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #CFFFD9;
  background: rgba(124, 255, 155, 0.09);
  border: 1px solid rgba(124, 255, 155, 0.3);
}
.auth-foot {
  padding-top: 4px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
}
.auth-card.busy { opacity: 0.7; pointer-events: none; }

/* ---------- app pages (dash/topup/tickets/settings/guide/admin) ---------- */
.dash { max-width: 900px; }
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.dash-balance .balance-num {
  font-family: "Space Grotesk", var(--font);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.05;
  display: block;
  margin: 10px 0 4px;
  text-shadow: 0 0 30px rgba(69, 78, 158, 0.5);
}
.dash-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 6px; }
.key-view {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(9, 12, 8, 0.6);
  border: 1px solid var(--line);
  font-size: 13px;
  word-break: break-all;
  color: var(--lav);
  margin-top: 10px;
}
.panel-title { margin: 0 0 8px; font-size: 16px; font-weight: 700; }

/* ---------- topup ---------- */
.turnstile-box { width: 100%; min-height: 70px; margin-top: 10px; display: flex; justify-content: center; }

.net-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.net-card {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  color: var(--ink);
  transition: all 0.25s var(--ease-out);
}
.net-card:hover { border-color: rgba(69, 78, 158, 0.7); transform: translateY(-2px); }
.net-card b { font-size: 17px; }
.net-card .muted { font-size: 12px; }
.net-icon-3d, .coin-icon-3d {
  display: inline-grid;
  place-items: center;
  perspective: 500px;
  transform-style: preserve-3d;
}
.net-icon-3d { width: 48px; height: 48px; margin-bottom: 6px; }
.coin-icon-3d { width: 24px; height: 24px; margin-right: 7px; vertical-align: middle; }
.net-icon-face, .coin-icon-face {
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: rotateX(10deg) rotateY(-14deg);
  transform-style: preserve-3d;
  background: linear-gradient(145deg, #fff, #c5c9e8 48%, #686fae);
  box-shadow: 5px 7px 0 #7379ac, 0 7px 18px rgba(69, 78, 158, .42);
}
.net-icon-face { width: 42px; height: 42px; padding: 3px; animation: coin-float 4s ease-in-out infinite; }
.coin-icon-face { width: 21px; height: 21px; padding: 2px; }
.net-icon-face img, .coin-icon-face img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
@keyframes coin-float { 0%, 100% { transform: rotateX(10deg) rotateY(-14deg) translateY(0); } 50% { transform: rotateX(10deg) rotateY(14deg) translateY(-3px); } }
.net-card:hover .net-icon-face { animation-duration: 2s; }
.net-icon-3d { width: 100%; height: 112px; }
.net-icon-face { width: 108px; height: 108px; padding: 0; }
.net-icon-face, .coin-icon-face { background: transparent; box-shadow: none; }
.net-icon-face img, .coin-icon-face img { border-radius: 0; filter: drop-shadow(0 12px 9px rgba(0, 0, 0, .3)); }
.page:not(.active) .net-icon-face { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .net-icon-face { animation: none; }
  .net-card { transition: none; }
}
.addr-panel { margin-top: 4px; }
.req-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.req-create { display: grid; gap: 12px; }
.req-active { display: grid; gap: 12px; }
.req-active .addr-row { margin: 0; }
.addr-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.qr-box {
  background: #EAEAEA;
  padding: 10px;
  border-radius: 14px;
  line-height: 0;
}
.qr-box svg { width: 150px; height: 150px; }
.addr-copy { display: grid; gap: 10px; min-width: 240px; }
.addr-copy code {
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(9, 12, 8, 0.6);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  word-break: break-all;
  user-select: all;
}

/* ---------- tickets ---------- */
.tickets-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.ticket-list { display: grid; gap: 10px; }
.ticket-card { cursor: pointer; transition: all 0.25s var(--ease-out); }
.ticket-card:hover { border-color: rgba(69, 78, 158, 0.6); }
.ticket-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.thread-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.thread-head h3 { margin: 0; font-size: 18px; }
.thread-msgs {
  display: grid;
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
  padding: 4px;
}
.msg { padding: 12px 15px; border-radius: 14px; max-width: 85%; }
.msg p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; }
.msg-head { font-size: 11px; color: var(--lav); opacity: 0.75; letter-spacing: 0.04em; }
.msg-user { background: rgba(69, 78, 158, 0.18); border: 1px solid rgba(69, 78, 158, 0.35); justify-self: end; }
.msg-admin { background: rgba(124, 255, 155, 0.07); border: 1px solid rgba(124, 255, 155, 0.25); }
.msg-system { background: rgba(203, 197, 234, 0.06); font-size: 12px; }
.thread-reply { display: grid; gap: 10px; margin-top: 12px; }
.thread-reply textarea, .field textarea, .field select {
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(9, 12, 8, 0.55);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  resize: vertical;
}
.thread-actions { display: flex; gap: 10px; }
textarea:focus, select:focus { border-color: rgba(69, 78, 158, 0.8) !important; }

/* ---------- guide ---------- */
.guide-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.guide-tabs .chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 16px; }
.guide-client-icons { display: inline-flex; align-items: center; flex-shrink: 0; }
.guide-client-icons img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .3)); }
.guide-client-icons img + img { margin-left: -10px; }
.guide-tabs .chip:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; }
.guide-panel { gap: 12px; }
.guide-panel h4 { margin: 6px 0 2px; font-size: 15px; }
.guide-panel p { margin: 0; color: var(--lav); font-size: 14px; line-height: 1.6; }
.guide-panel pre {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(9, 12, 8, 0.65);
  border: 1px solid var(--line);
  overflow-x: auto;
}
.guide-panel code { color: #CFFFD9; font-size: 13px; }

/* ---------- settings ---------- */
.cred-list { display: grid; gap: 8px; margin: 10px 0; }
.totp-setup { display: grid; gap: 12px; place-items: start; }
.totp-qr img, .totp-qr svg { border-radius: 12px; background: #EAEAEA; padding: 6px; }
.totp-qr svg { width: 180px; height: 180px; }
.totp-secret { display: grid; gap: 6px; max-width: 100%; }
.totp-secret-row { display: flex; gap: 8px; align-items: flex-start; }
.totp-secret code {
  word-break: break-all;
  user-select: all;
  font-size: 13px;
  line-height: 1.5;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(69, 78, 158, 0.35);
  background: rgba(9, 12, 8, 0.55);
  color: var(--ink);
}
.wd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wd-row select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(120, 130, 200, 0.22);
  background: rgba(9, 12, 8, 0.55);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
}

/* ---------- admin ---------- */
.admin-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-search { max-width: 320px; }
.admin-tab { display: grid; gap: 16px; margin-top: 4px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- auth extras ---------- */
.hash-code {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(9, 12, 8, 0.65);
  border: 1px solid rgba(69, 78, 158, 0.5);
  color: #CFFFD9;
  font-size: 13px;
  word-break: break-all;
  user-select: all;
}
.hash-actions { margin: 4px 0; }
.auth-hint.left { text-align: left; }
.warn { color: #FFC2CC; }

/* ---------- home stat-strip override ---------- */

/* ---------- stats / panels ---------- */
.stat-strip {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.stat b { display: block; font-size: 24px; font-weight: 700; }
.stat span { color: var(--lav); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }

.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.panel { padding: 22px 24px; display: grid; gap: 14px; }
.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(203, 197, 234, 0.05);
  border: 1px solid var(--line);
}
.panel-row .muted { margin: 4px 0 0; font-size: 13px; }
.panel-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.badge {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--lav);
}
.badge-ok {
  color: #CFFFD9;
  border-color: rgba(124, 255, 155, 0.35);
  background: rgba(124, 255, 155, 0.08);
}

.usage-grid, .admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.kpi { position: relative; overflow: hidden; }
.kpi b {
  font-size: 54px;
  font-weight: 700;
  line-height: 1.05;
}
.kpi > span { color: var(--lav); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.kpi b .num, .kpi b span { font-size: inherit; }
.kpi-glow {
  position: absolute;
  right: -30px;
  top: -30px;
  width: 100px;
  height: 100px;
  border-radius: 99px;
  background: radial-gradient(circle, rgba(69, 78, 158, 0.5), transparent 70%);
  filter: blur(8px);
}

.chart-panel { gap: 10px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; }
.chart-head b { font-size: 14px; letter-spacing: 0.04em; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--lav); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 99px; }
.dot-primary { background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.dot-accent { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.chart { width: 100%; height: 180px; }
.chart .line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .line-in { stroke: var(--lav); filter: drop-shadow(0 0 6px rgba(203, 197, 234, 0.6)); }
.chart .line-out { stroke: var(--accent); filter: drop-shadow(0 0 6px rgba(175, 27, 63, 0.6)); }

.table-panel { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left;
  padding: 10px 14px;
  color: var(--lav);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.tbl td { padding: 13px 14px; border-bottom: 1px solid rgba(203, 197, 234, 0.07); }
.tbl tr:last-child td { border-bottom: none; }
.pill { font-size: 12px; padding: 4px 10px; border-radius: 99px; }
.pill-ok { color: #CFFFD9; background: rgba(124, 255, 155, 0.1); }

/* ---------- footer ---------- */
.foot {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  padding: 14px clamp(20px, 6vw, 96px);
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* ---------- fly mode ---------- */
.fly-hint {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(175, 27, 63, 0.25);
  border: 1px solid rgba(175, 27, 63, 0.5);
  backdrop-filter: blur(10px);
  font-size: 13px;
  letter-spacing: 0.05em;
}
.hidden { display: none !important; }

body.flying #stage,
body.flying .topbar,
body.flying .foot { pointer-events: none !important; }
body.flying #stage .page.active { visibility: hidden; }
body.flying #flyBtn { pointer-events: auto !important; }

/* ---------- station toast ---------- */
.fly-toast {
  position: fixed;
  z-index: 55;
  right: 24px;
  bottom: 64px;
  width: min(400px, calc(100vw - 48px));
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(14, 18, 12, 0.85);
  border: 1px solid rgba(69, 78, 158, 0.5);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(69, 78, 158, 0.25);
  font-size: 13px;
  animation: toastIn 0.4s var(--ease-out);
}
@keyframes toastIn {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.fly-toast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.fly-toast-head b { font-size: 14px; }
.fly-toast-actions { display: flex; gap: 8px; }
.fly-toast pre {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(9, 12, 8, 0.7);
  border: 1px solid var(--line);
  color: var(--lav);
  font-size: 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
.fly-toast .muted { margin: 0; font-size: 11px; }
.btn-sm { padding: 7px 12px; font-size: 12px; border-radius: 9px; }

@media (max-width: 720px) {
  .nav-link span { display: none; }
  .nav-link { padding: 10px 13px; }
  .page { padding-top: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
