:root {
  color-scheme: dark;
  --bg: #030305;
  --surface: #0b0c10;
  --raised: #14161c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --ink: #f5f6f8;
  --text: #a5acb8;
  --muted: #8a919e;
  --crimson: #e63946;
  --crimson-bright: #ff4757;
  --crimson-glow: rgba(230, 57, 70, 0.36);
  font-family: 'Segoe UI Variable Text', 'Segoe UI', Inter, -apple-system, sans-serif;
  font-size: 15px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--raised); border: 1px solid var(--border-strong);
  color: var(--ink); font-size: 13px; font-weight: 600;
  transition: top 0.18s ease;
}
.skip-link:focus-visible { top: 12px; }
code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  color: #ff858f;
  background: rgba(230, 57, 70, 0.12);
  padding: 2px 6px;
  border-radius: 5px;
}

.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  background: rgba(3, 3, 5, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.topbar__inner {
  height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.wordmark {
  font-family: 'Segoe UI Variable Display', 'Segoe UI', sans-serif;
  font-size: 21px; font-weight: 800; letter-spacing: -0.8px; color: #fff;
}
.wordmark span { color: var(--crimson); }
.wordmark--sm { font-size: 17px; }
.nav { display: flex; gap: 28px; color: var(--text); font-size: 13.5px; font-weight: 500; }
.nav a:hover { color: #fff; }
.topbar__auth { display: flex; align-items: center; gap: 10px; }
.topbar__user { font-size: 13px; color: var(--ink); font-weight: 600; }
.link-plain { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.link-plain:hover { color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 10px;
  font-size: 14px; font-weight: 600; font-family: inherit;
  border: 1px solid var(--border-strong); background: var(--raised); color: var(--ink);
  cursor: pointer; white-space: nowrap;
  transition: background .16s, border-color .16s, box-shadow .16s;
}
.btn--sm { height: 34px; padding: 0 15px; font-size: 12.5px; border-radius: 8px; }
.btn--lg { height: 52px; padding: 0 30px; font-size: 15px; border-radius: 12px; }
.btn--crimson {
  background: #cf2431; border-color: rgba(255, 255, 255, 0.16); color: #fff;
  box-shadow: 0 12px 36px var(--crimson-glow);
}
.btn--crimson:hover { background: #e63946; box-shadow: 0 16px 46px rgba(255, 71, 87, 0.5); }
.btn--glass {
  background: rgba(14, 15, 20, 0.72); backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.14); color: #fff;
}
.btn--glass:hover { background: rgba(26, 28, 36, 0.9); border-color: rgba(255, 255, 255, 0.28); }
.btn--block { width: 100%; }

/* ---------- OLED Black + Real-Time 3D Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid; place-items: center;
  padding: 96px 0 64px;
  overflow: hidden;
  background: radial-gradient(55% 45% at 50% 45%, rgba(230, 57, 70, 0.14), transparent 70%), var(--bg);
}
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
}
.hud-corners {
  position: absolute; inset: 88px 28px 28px; z-index: 1; pointer-events: none;
  font-family: ui-monospace, Consolas, monospace; font-size: 10.5px; letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.28);
}
.hud-corners span { position: absolute; }
.hud-tl { top: 0; left: 0; }
.hud-tr { top: 0; right: 0; }
.hud-bl { bottom: 0; left: 0; }
.hud-br { bottom: 0; right: 0; color: rgba(230, 57, 70, 0.65); }

.hero__center {
  position: relative; z-index: 2;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero__kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--crimson-bright); margin-bottom: 18px;
}
h1 {
  font-family: 'Segoe UI Variable Display', 'Segoe UI', sans-serif;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.hero__brand {
  display: block;
  font-size: clamp(54px, 9.5vw, 112px);
  line-height: 0.94; letter-spacing: -3.5px; font-weight: 900;
  background: linear-gradient(180deg, #ffffff 30%, #9ba2b0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}
.hero__dot {
  background: linear-gradient(180deg, #ff5e6c 0%, #c82333 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* The keyword line lives inside the h1 for crawlers but stays visually quiet. */
.hero__sub {
  max-width: 30ch;
  font-size: clamp(13px, 1.6vw, 15px);
  font-weight: 600; line-height: 1.45; letter-spacing: 0.02em;
  color: #d7dbe2;
  background: none; -webkit-text-fill-color: currentColor;
  text-shadow: none;
}
.lead {
  margin-top: 22px; font-size: 17px; color: var(--text); max-width: 520px;
}
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Steps & FAQ ---------- */
.section { padding: 64px 0; border-top: 1px solid var(--border); }
.steps-bar {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  margin-bottom: 24px;
}
.steps-bar > div {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s;
}
.steps-bar > div:hover { border-color: rgba(230, 57, 70, 0.45); transform: translateY(-3px); }
.steps-bar b { display: block; font-size: 15px; color: #fff; margin-bottom: 6px; }
.steps-bar span { font-size: 13px; color: var(--text); }

.specs-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px; margin-bottom: 24px;
}
.specs-box__head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.specs-box__head > span { font-size: 15px; font-weight: 700; color: #fff; }
.specs-box__head small { font-size: 12px; color: var(--muted); }
.specs-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.specs-grid > div { display: flex; flex-direction: column; gap: 4px; }
.specs-grid small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.specs-grid b { font-size: 13.5px; color: #fff; font-weight: 600; }
.specs-grid span { font-size: 12px; color: var(--text); line-height: 1.45; }

.faq-list { display: grid; gap: 10px; }
.faq-list details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px;
}
.faq-list summary {
  cursor: pointer; font-weight: 600; font-size: 14px; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-list summary::after { content: '+'; color: var(--crimson); font-size: 19px; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { margin-top: 8px; font-size: 13px; color: var(--text); }

.footer {
  border-top: 1px solid var(--border); padding: 24px 0;
  font-size: 13px; color: var(--muted);
}
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__inner > div { display: flex; gap: 22px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a:hover { color: #fff; }

.modal {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border-strong); border-radius: 16px;
  padding: 24px; width: 420px; max-width: calc(100vw - 24px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72);
}
.modal.modal--cabinet {
  width: 780px;
  padding: 26px 28px;
  background: linear-gradient(180deg, rgba(16, 18, 24, 0.98), rgba(9, 10, 14, 0.99));
}
.modal::backdrop { background: rgba(2, 2, 4, 0.82); backdrop-filter: blur(6px); }
.modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal__head h2 { font-size: 18px; }
.modal__close {
  background: transparent; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; padding: 4px 8px;
}
.modal__note { font-size: 13px; color: var(--text); margin-bottom: 20px; }

.seg-tabs {
  position: relative; display: inline-flex; flex-wrap: wrap; gap: 4px;
  padding: 4px; border-radius: 10px;
  background: #060709; border: 1px solid var(--border);
}
.seg-pill {
  position: absolute; top: 4px; left: 4px;
  border-radius: 7px; background: #cf2431;
  pointer-events: none; z-index: 0;
}
.seg-btn {
  position: relative; z-index: 1;
  border: 0; background: transparent; color: var(--text);
  padding: 7px 14px; border-radius: 7px; font-family: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: color .16s;
}
.seg-btn:hover { color: #fff; }
.seg-btn.is-active { color: #fff; }

.auth-form { display: grid; gap: 14px; margin-top: 16px; }
.auth-form label { display: grid; gap: 6px; font-size: 12.5px; color: var(--text); font-weight: 500; }
.auth-form label[hidden] { display: none; }
.auth-form input {
  width: 100%; padding: 11px 12px; border-radius: 9px;
  border: 1px solid var(--border-strong); background: #050608; color: #fff;
  font: inherit; font-size: 14px; outline: none; transition: border-color .15s;
}
.auth-form input:focus { border-color: var(--crimson); }
.auth-err {
  margin: 0; padding: 10px 12px; border-radius: 8px;
  background: rgba(230, 57, 70, 0.14); border: 1px solid rgba(230, 57, 70, 0.4);
  color: #ff9aa2; font-size: 12.5px;
}
.auth-err[hidden] { display: none; }

.cab-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.cab-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cab-avatar {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--crimson), #8f1621);
  color: #fff; font-weight: 700; font-size: 18px; text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.25);
}
.cab-name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cab-name-row strong { font-size: 16px; color: #fff; font-weight: 600; }
.cab-role {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); color: var(--text);
}
.cab-role.is-admin { background: rgba(230, 57, 70, 0.18); color: #ff8e97; }
.cab-presence {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted);
}
.cab-presence .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #525968;
}
.cab-presence.is-online { color: #7ae582; }
.cab-presence.is-online .dot { background: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, 0.7); }
.cab-email { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

.cab-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 14px;
}
.cab-metric {
  padding: 14px 16px; border-radius: 12px;
  background: #060709; border: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center;
}
.cab-metric small { font-size: 11.5px; color: var(--muted); }
.cab-metric b { margin-top: 5px; font-size: 16px; color: #fff; font-weight: 600; }
.cab-metric b.is-active { color: #7ae582; }
.cab-metric__hint { margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.cab-metric--action {
  flex-direction: row; align-items: center; justify-content: space-between; gap: 10px;
}

.cab-notice {
  margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; font-size: 13px;
  border: 1px solid transparent;
}
.cab-notice[hidden] { display: none; }
.cab-notice.is-ok {
  background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.35); color: #9bf6c0;
}
.cab-notice.is-err {
  background: rgba(230, 57, 70, 0.14); border-color: rgba(230, 57, 70, 0.4); color: #ff9aa2;
}

.cab-tabs { margin-bottom: 14px; }
.cab-panel[hidden] { display: none; }

.cab-plans-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px;
}
.cab-plan-card {
  padding: 16px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .18s, transform .18s;
}
.cab-plan-card:hover { border-color: rgba(230, 57, 70, 0.45); transform: translateY(-2px); }
.cab-plan-card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cab-plan-card__name { font-size: 14px; font-weight: 600; color: #fff; }
.cab-plan-card__days { font-size: 12px; color: var(--muted); }
.cab-plan-card__price { font-size: 20px; font-weight: 700; color: var(--crimson-bright); }

.cab-key-form {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end;
}
.cab-key-form label { display: grid; gap: 6px; font-size: 12.5px; color: var(--text); font-weight: 500; }
.cab-key-form input {
  width: 100%; padding: 11px 12px; border-radius: 9px;
  border: 1px solid var(--border-strong); background: #050608; color: #fff;
  font: inherit; font-size: 14px; outline: none; transition: border-color .15s;
}
.cab-key-form input:focus { border-color: var(--crimson); }
.cab-hint { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }

.cab-history {
  display: grid; gap: 8px; max-height: 250px; overflow-y: auto; padding-right: 2px;
}
.cab-hist-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center;
  padding: 10px 14px; border-radius: 10px;
  background: #060709; border: 1px solid var(--border); font-size: 13px;
}
.cab-hist-row small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.cab-hist-amt { font-weight: 600; font-variant-numeric: tabular-nums; }
.cab-hist-amt.is-pos { color: #7ae582; }
.cab-hist-amt.is-neg { color: #ff9aa2; }
.cab-hist-bal { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cab-empty {
  padding: 24px; text-align: center; border-radius: 12px;
  background: #060709; border: 1px dashed var(--border); color: var(--muted); font-size: 13px;
}

.cab-page {
  min-height: calc(100vh - 130px);
  padding: 112px 0 72px;
  background: radial-gradient(circle at 50% 0%, rgba(230, 57, 70, 0.08), transparent 55%);
}
.cab-page__wrap { max-width: 920px; }
.cab-page__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: 24px;
}
.cab-page__head h1 { margin-top: 8px; font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.02em; }
.cab-guest-card {
  max-width: 440px; padding: 26px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
.cab-board {
  padding: 24px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 18, 24, 0.96), rgba(9, 10, 14, 0.98));
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

@media (max-width: 820px) {
  .steps-bar, .specs-grid, .cab-metrics { grid-template-columns: 1fr; }
  .cab-key-form { grid-template-columns: 1fr; }
  .cab-hero, .cab-page__head { flex-direction: column; align-items: flex-start; }
  .hud-corners { display: none; }
  /* The header wraps instead of dropping navigation: mobile visitors keep
     direct links to the download page and the FAQ. */
  .topbar__inner { height: auto; flex-wrap: wrap; padding: 10px 0; row-gap: 10px; }
  .nav {
    order: 3; width: 100%; gap: 16px; font-size: 12.5px;
    overflow-x: auto; scrollbar-width: none; white-space: nowrap;
  }
  .nav::-webkit-scrollbar { display: none; }
  .hero { padding-top: 118px; }
  .dl-page, .cab-page { padding-top: 118px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

.hero__bg-art {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.hero__bg-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 28%;
  opacity: 0.24; filter: saturate(1.05) contrast(1.08);
  mask-image: radial-gradient(75% 75% at 50% 45%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 75% at 50% 45%, #000 35%, transparent 100%);
}

.scenes-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-bottom: 16px;
}
.scenes-head h2 { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: -0.2px; }
.scenes-head small { font-size: 12px; color: var(--muted); }

.seo-text { max-width: 78ch; display: grid; gap: 12px; }
.seo-text p { font-size: 13.5px; line-height: 1.65; color: var(--text); }
.seo-text a { color: #ff9aa2; text-decoration: underline; text-underline-offset: 3px; }
.seo-text a:hover { color: #fff; }

.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px 30px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.14), rgba(20, 22, 28, 0.9));
  border: 1px solid rgba(230, 57, 70, 0.32);
}
.cta-band h2 { font-size: clamp(20px, 2.6vw, 26px); line-height: 1.2; letter-spacing: -0.02em; color: #fff; }
.cta-band p { margin-top: 8px; font-size: 13.5px; color: var(--text); max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.scenes-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.scene-card {
  padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--surface); cursor: zoom-in; aspect-ratio: 16 / 9;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s;
}
.scene-card:hover { transform: translateY(-4px); border-color: rgba(230, 57, 70, 0.55); }
.scene-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lightbox {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(2, 3, 5, 0.92); backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox__close {
  position: fixed; top: 18px; right: 22px;
  background: var(--raised); border: 1px solid var(--border-strong); color: #fff;
  width: 38px; height: 38px; border-radius: 10px; font-size: 22px; cursor: pointer;
}
.lightbox__figure { margin: 0; max-width: 1120px; width: 100%; }
.lightbox__figure img { width: 100%; border-radius: 12px; border: 1px solid var(--border-strong); }
.lightbox__figure figcaption { margin-top: 10px; text-align: center; font-size: 13px; color: var(--text); }

/* ---------- Dedicated /download/ page ---------- */
.dl-page {
  position: relative; min-height: 100dvh;
  display: grid; place-items: center;
  padding: 96px 0 48px; overflow: hidden;
}
.dl-wrap { position: relative; z-index: 2; display: flex; justify-content: center; }
.dl-card {
  width: 100%; max-width: 640px;
  background: rgba(11, 12, 16, 0.88); backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong); border-radius: 20px; padding: 34px;
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.8), 0 0 60px rgba(230, 57, 70, 0.1);
}
.dl-card[hidden] { display: none; }
.dl-title {
  font-size: clamp(32px, 5vw, 48px); letter-spacing: -1.5px; margin-top: 8px;
}
.dl-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 24px; padding: 16px; border-radius: 12px;
  background: #060709; border: 1px solid var(--border);
}
.dl-meta small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; }
.dl-meta b { display: block; margin-top: 4px; font-size: 15px; color: #fff; font-variant-numeric: tabular-nums; }
.dl-hash {
  margin-top: 12px; padding: 12px 14px; border-radius: 10px;
  background: #060709; border: 1px solid var(--border);
  display: grid; gap: 4px;
}
.dl-hash small { font-size: 10.5px; color: var(--muted); letter-spacing: 0.06em; }
.dl-hash code { word-break: break-all; font-size: 11px; background: none; padding: 0; color: var(--text); }
.dl-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.dl-notes {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border);
  display: grid; gap: 6px; font-size: 12.5px; color: var(--text);
}
.dl-notes b { color: #fff; }
.dl-guide {
  margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.dl-step {
  padding: 14px; border-radius: 12px;
  background: #060709; border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.dl-step__num {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--crimson-bright);
}
.dl-step b { display: block; font-size: 13.5px; color: #fff; margin-bottom: 4px; }
.dl-step p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 14px; font-size: 12px; color: var(--muted);
}
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { opacity: 0.45; }
.dl-subhead {
  margin-top: 26px; margin-bottom: 2px;
  font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -0.01em;
}
.dl-notes--foot { margin-top: 18px; }
.dl-notes a { color: #ff9aa2; text-decoration: underline; text-underline-offset: 3px; }
.dl-notes a:hover { color: #fff; }

@media (max-width: 820px) {
  .scenes-grid { grid-template-columns: 1fr 1fr; }
  .dl-meta { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .scenes-grid { grid-template-columns: 1fr; }
  .dl-card { padding: 24px; }
}

/* ---------- Launcher-matched Cabinet Page ---------- */
.cab-body { position: relative; min-height: 100vh; background: #0e1014; }
.cab-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(230, 57, 70, 0.14), transparent 46%),
    radial-gradient(circle at 86% 80%, rgba(223, 199, 159, 0.08), transparent 44%),
    linear-gradient(180deg, rgba(14, 16, 20, 0.88), rgba(9, 10, 14, 0.98)),
    url('/assets/img/prison-scene-clean.webp') center/cover no-repeat;
}
.cab-page { min-height: calc(100vh - 130px); padding: 96px 0 64px; background: none; }
.cab-page__wrap { max-width: 1120px; }

.cab-auth-split {
  display: grid; grid-template-columns: 1.08fr 1fr;
  border-radius: 20px; overflow: hidden;
  background: #141517; border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.68);
}
.cab-auth-split[hidden] { display: none; }
.cab-auth-art {
  position: relative; min-height: 520px; padding: 32px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 22px;
  overflow: hidden; background: #101114;
}
.cab-auth-art img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% center;
  opacity: 0.65;
}
.cab-auth-art__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 16, 0.25) 0%, rgba(11, 13, 16, 0.72) 55%, rgba(11, 13, 16, 0.96) 100%);
}
.cab-auth-art__body { position: relative; z-index: 1; }
.cab-auth-art__body h2 { margin-top: 12px; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; color: #fff; }
.cab-auth-art__body p { margin-top: 10px; font-size: 13.5px; line-height: 1.55; color: #b6b9bd; max-width: 38ch; }
.cab-mini-pass {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; border-radius: 14px;
  background: rgba(23, 25, 28, 0.88); border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}
.cab-mini-pass small { display: block; font-size: 10.5px; letter-spacing: 0.12em; color: #dfc79f; font-weight: 700; }
.cab-mini-pass strong { display: block; margin-top: 2px; font-size: 15px; color: #fff; }
.cab-mini-pass > span { font-size: 12px; color: #9fa3ab; text-align: right; }

.cab-auth-pane {
  padding: 40px 38px; display: flex; flex-direction: column; justify-content: center;
  background: #141517;
}
.cab-auth-pane__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.cab-brand-icon { border-radius: 11px; border: 1px solid rgba(255, 255, 255, 0.12); object-fit: cover; }
.cab-auth-pane__head h1 { font-size: 22px; color: #fff; letter-spacing: -0.01em; }
.cab-auth-pane__head p { font-size: 13px; color: var(--muted); margin-top: 2px; }

.cab-shell {
  display: grid; grid-template-columns: 270px 1fr;
  border-radius: 20px; overflow: hidden;
  background: rgba(20, 21, 24, 0.94); border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
}
.cab-shell[hidden] { display: none; }
.cab-rail {
  display: flex; flex-direction: column; gap: 20px;
  padding: 24px 18px;
  background: #101114; border-right: 1px solid rgba(255, 255, 255, 0.07);
}
.cab-rail__profile {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07);
}
.cab-avatar-wrap { position: relative; flex-shrink: 0; }
.cab-avatar-img {
  width: 46px; height: 46px; border-radius: 12px; object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.cab-presence-dot {
  position: absolute; right: -2px; bottom: -2px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #525968; border: 2px solid #101114;
}
.cab-presence-dot.is-online { background: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, 0.8); }
.cab-rail__meta { min-width: 0; }
.cab-rail__meta .cab-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cab-nav { display: grid; gap: 6px; }
.cab-nav__btn {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 11px 14px; border-radius: 11px; border: 1px solid transparent;
  background: transparent; color: #a4a7ae; font: inherit; font-size: 13.5px; font-weight: 500;
  cursor: pointer; text-decoration: none; text-align: left;
  transition: background .16s, color .16s, border-color .16s;
}
.cab-nav__btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.cab-nav__btn:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.cab-nav__btn.is-active {
  background: rgba(230, 57, 70, 0.13); border-color: rgba(230, 57, 70, 0.35); color: #fff;
}
.cab-nav__btn.is-active svg { color: var(--crimson-bright); }
.cab-rail__foot { margin-top: auto; display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.cab-nav__btn--dl { color: #dfc79f; }
.cab-nav__btn--dl:hover { background: rgba(223, 199, 159, 0.1); color: #f5e5c6; }
.cab-nav__btn--logout:hover { background: rgba(230, 57, 70, 0.1); color: #ff9aa2; }

.cab-main { padding: 26px 28px; display: flex; flex-direction: column; gap: 18px; }
.cab-bento { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
.cab-pass {
  perspective: 1100px; cursor: pointer; min-height: 192px; outline: none;
}
.cab-pass:focus-visible .cab-pass__face {
  border-color: var(--crimson);
}
.cab-pass__inner {
  position: relative; width: 100%; height: 100%; min-height: 192px;
  transform-style: preserve-3d;
  transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}
.cab-pass.is-flipped .cab-pass__inner { transform: rotateY(180deg); }
.cab-pass__face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  padding: 20px 22px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(23, 25, 28, 0.98), rgba(34, 21, 26, 0.98));
  border: 1px solid rgba(223, 199, 159, 0.25);
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.cab-pass__face--back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, rgba(17, 19, 24, 0.99), rgba(26, 20, 24, 0.99));
}
.cab-pass__flip-hint { font-size: 11.5px; color: #8c919b; }
.cab-pass__progress {
  height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden;
}
.cab-pass__progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--crimson), #dfc79f);
  border-radius: 999px; transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.cab-pass__back-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px;
}
.cab-pass__back-grid small { display: block; font-size: 11px; color: var(--muted); }
.cab-pass__back-grid b { display: block; margin-top: 2px; font-size: 13.5px; color: #fff; }

.cab-plan-card.is-featured {
  border-color: rgba(230, 57, 70, 0.55);
  background: linear-gradient(180deg, rgba(230, 57, 70, 0.09), rgba(255, 255, 255, 0.02));
  box-shadow: 0 12px 32px rgba(230, 57, 70, 0.12);
}
.cab-plan-badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: rgba(230, 57, 70, 0.2); color: #ff9aa2;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.cab-pass__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cab-pass__badge { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: #dfc79f; }
.cab-pass__status {
  font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); color: var(--muted);
}
.cab-pass__status.is-active { background: rgba(52, 211, 153, 0.15); color: #7ae582; }
.cab-pass__days { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cab-pass__days b { font-size: 42px; line-height: 1; letter-spacing: -0.03em; color: #f1ede3; font-variant-numeric: tabular-nums; }
.cab-pass__days span { font-size: 13px; color: #a5a8ae; }
.cab-pass__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px; color: var(--muted);
}
.cab-pass__foot strong { color: #fff; font-weight: 600; }

.cab-side-cards { display: grid; gap: 14px; }
.cab-stat-card {
  padding: 16px 18px; border-radius: 14px;
  background: #101114; border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; flex-direction: column; justify-content: center;
}
.cab-stat-card small { font-size: 11.5px; color: var(--muted); }
.cab-stat-card b { margin-top: 4px; font-size: 20px; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.cab-stat-card span { margin-top: 4px; font-size: 12px; color: var(--muted); }
.cab-stat-card--launcher {
  flex-direction: row; align-items: center; justify-content: space-between; gap: 12px;
}
.cab-stat-card--launcher b { font-size: 16px; }
.cab-stat-card--launcher span { display: block; }

.cab-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cab-section-head h3 { font-size: 16px; color: #fff; font-weight: 600; }
.cab-section-head span { font-size: 12.5px; color: var(--muted); }

.cab-ref-box { display: grid; gap: 12px; margin-bottom: 14px; }
.cab-ref-code {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 12px;
  background: #101114; border: 1px solid rgba(223, 199, 159, 0.22);
}
.cab-ref-code small { display: block; font-size: 11px; color: var(--muted); }
.cab-ref-code b { display: block; margin-top: 2px; font-size: 18px; letter-spacing: 0.06em; color: #dfc79f; font-family: ui-monospace, monospace; }
.cab-ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cab-ref-stats > div {
  padding: 12px 14px; border-radius: 12px; background: #101114; border: 1px solid var(--border);
}
.cab-ref-stats small { display: block; font-size: 11px; color: var(--muted); }
.cab-ref-stats b { display: block; margin-top: 4px; font-size: 16px; color: #fff; }

.cab-settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cab-set-card {
  padding: 16px; border-radius: 14px; background: #101114; border: 1px solid var(--border);
  display: grid; gap: 12px; align-content: start;
}
.cab-set-card h4 { margin: 0; font-size: 14.5px; color: #fff; }
.cab-set-card p { margin: 0; font-size: 13px; color: var(--text); }
.cab-set-card label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.cab-set-card input {
  width: 100%; padding: 10px 12px; border-radius: 9px;
  border: 1px solid var(--border-strong); background: #050608; color: #fff;
  font: inherit; font-size: 13.5px; outline: none; transition: border-color .15s;
}
.cab-set-card input:focus { border-color: var(--crimson); }
.cab-set-card--tg { grid-column: 1 / -1; }
.cab-tg-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.cab-topup-form {
  display: flex; gap: 8px; margin-top: 8px; align-items: center;
}
.cab-topup-form input {
  width: 96px; padding: 7px 10px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: #050608; color: #fff;
  font: inherit; font-size: 13px; outline: none;
}
.cab-topup-form input:focus { border-color: var(--crimson); }
.cab-promo-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px;
}
.cab-promo-bar input {
  width: 220px; padding: 8px 12px; border-radius: 9px;
  border: 1px solid var(--border-strong); background: #050608; color: #fff;
  font: inherit; font-size: 13px; text-transform: uppercase; outline: none;
}
.cab-promo-bar input:focus { border-color: var(--crimson); }
.cab-promo-badge {
  font-size: 12.5px; color: #7ae582; font-weight: 600;
}
.cab-promo-badge[hidden] { display: none; }
.cab-ref-code b { font-size: 14px; letter-spacing: 0.01em; word-break: break-all; }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.35);
  color: #9bf6c0; font-size: 13px; font-weight: 600;
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, 0.8); }
.status-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px;
}
.changelog-list { display: grid; gap: 12px; }
.changelog-item {
  padding: 16px 18px; border-radius: 14px;
  background: #101114; border: 1px solid var(--border);
}
.changelog-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.changelog-item__head b { font-size: 15px; color: #fff; }
.changelog-item p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text); }

.feat-shell { display: grid; gap: 16px; }
.feat-tabs { justify-self: start; }
.feat-card {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  border-radius: 18px; overflow: hidden;
  background: rgba(16, 18, 24, 0.92); border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.feat-preview { position: relative; min-height: 290px; background: #090a0d; overflow: hidden; }
.feat-preview img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.feat-card:hover .feat-preview img { transform: scale(1.03); }
.feat-preview__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 11, 15, 0.05) 35%, rgba(16, 18, 24, 0.95) 100%),
              linear-gradient(180deg, transparent 55%, rgba(10, 11, 15, 0.85) 100%);
}
.feat-tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(12, 13, 18, 0.82); border: 1px solid rgba(230, 57, 70, 0.45);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: #ff9aa2;
}
.feat-copy {
  padding: 28px 30px; display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.feat-copy h3 { font-size: 22px; line-height: 1.2; color: #fff; letter-spacing: -0.01em; }
.feat-copy p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text); }
.feat-points {
  margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px;
}
.feat-points li {
  position: relative; padding-left: 18px; font-size: 13px; color: #d6d9e0;
}
.feat-points li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--crimson);
}

@media (max-width: 900px) {
  .cab-auth-split, .cab-shell, .cab-bento, .cab-settings-grid, .cab-ref-stats, .status-grid, .dl-guide, .feat-card { grid-template-columns: 1fr; }
  .feat-preview { min-height: 200px; }
  .cab-auth-art { min-height: 280px; }
  .cab-rail { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
  .cab-nav { grid-template-columns: repeat(3, 1fr); }
  .cab-nav__btn { justify-content: center; padding: 10px 8px; font-size: 12px; }
  .cab-nav__btn svg { display: none; }
  .cab-rail__foot { grid-template-columns: 1fr 1fr; }
}
