@font-face {
  font-family: 'Inter';
  src: url("Inter-Variable-H_M6nIbt.ttf") format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ac: 167, 139, 250;
  --hl: 196, 181, 253;
  --shade: 31, 18, 55;
  --accent: #a78bfa;
  --accent-2: #c4b5fd;
  --accent-soft: rgba(var(--ac), 0.16);
  --btn-white-text: #241438;
  --bg: #05070b;
  --bg-2: #0a0e16;
  --card: rgba(255, 255, 255, 0.04);
  --card-strong: rgba(10, 13, 20, 0.62);
  --border: transparent;
  --border-strong: transparent;
  --text: #f3f5f8;
  --text-dim: #9aa4b2;
  --text-faint: #6b7686;
  --radius: 14px;
  --sky: linear-gradient(180deg, #090711 0%, #100b1c 55%, #171025 100%);
  --grid-line: rgba(255, 255, 255, 0.018);
  --block-glow: rgba(167, 139, 250, 0.045);
  --glow: rgba(139, 92, 246, 0.2);
  --cloud-opacity: 0.16;
  --header-bg: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.09);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --field-solid: #110d1d;
  --field-focus: #211832;
}

html[data-theme='light'] {
  --bg: #6e1431;
  --bg-2: #7c1a3a;
  --sky: linear-gradient(180deg, #661130 0%, #741636 50%, #821c3e 100%);
  --grid-line: rgba(255, 255, 255, 0.03);
  --block-glow: rgba(255, 255, 255, 0.025);
  --glow: rgba(255, 140, 170, 0.18);
  --cloud-opacity: 0.55;
  --accent: #f4a3b6;
  --accent-2: #ffffff;
  --accent-soft: rgba(255, 255, 255, 0.14);
  --ac: 240, 140, 165;
  --hl: 255, 200, 212;
  --shade: 50, 6, 20;
  --btn-white-text: #7a1838;
  --card: rgba(58, 8, 26, 0.5);
  --card-strong: rgba(52, 6, 22, 0.66);
  --border: transparent;
  --border-strong: transparent;
  --text-dim: rgba(255, 255, 255, 0.8);
  --text-faint: rgba(255, 255, 255, 0.58);
  --header-bg: rgba(255, 255, 255, 0.09);
  --field-solid: #4a0b21;
  --field-focus: #5a122c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: clip;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--sky) fixed, var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(1100px 620px at 50% -10%, var(--glow), transparent 70%);
}

.sky::after {
  content: '';
  position: absolute;
  inset: -4%;
  background: url("sky-clouds.webp") center / cover no-repeat;
  opacity: var(--cloud-opacity);
  animation: sky-drift 90s ease-in-out infinite alternate;
  transition: opacity 0.4s ease;
}

@keyframes sky-drift {
  from { transform: translate3d(-1.5%, 0.5%, 0) scale(1.02); }
  to { transform: translate3d(1.5%, -0.5%, 0) scale(1.05); }
}

.sky .stars { position: absolute; inset: 0; z-index: 1; }

.sky::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 0%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 0%, #000 20%, transparent 100%);
}

.block {
  position: absolute;
  width: 47px;
  height: 47px;
  background: var(--block-glow);
  opacity: 0;
  animation: block-pulse var(--t, 6s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes block-pulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.5; }
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 16px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  height: 56px;
  padding: 0 14px 0 18px;
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.brand-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: none;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  color: var(--text-dim);
  font-size: 15px;
  transition: color 0.15s ease;
}

.main-nav a:hover { color: var(--text); }

/* Header "Документы" dropdown (native <details>, works on click, no JS needed) */
.nav-docs { position: relative; }
.nav-docs > summary {
  list-style: none;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s ease;
  user-select: none;
}
.nav-docs > summary::-webkit-details-marker { display: none; }
.nav-docs > summary::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
  opacity: 0.8;
}
.nav-docs[open] > summary,
.nav-docs > summary:hover { color: var(--text); }
.nav-docs[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.nav-docs-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px;
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  z-index: 60;
}
.nav-docs-menu a {
  padding: 10px 13px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--text-dim);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-docs-menu a:hover { background: var(--accent-soft); color: var(--text); }

/* Toast notifications (e.g. "purchase unavailable") */
.ex-toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(92vw, 440px);
  z-index: 300;
  pointer-events: none;
}
.ex-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: var(--bg-2);
  border: 1px solid var(--accent-soft);
  border-left: 3px solid var(--accent);
  color: var(--text);
  padding: 14px 18px;
  border-radius: 13px;
  font-size: 14.5px;
  line-height: 1.5;
  box-shadow: 0 14px 38px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.ex-toast.show { opacity: 1; transform: translateY(0); }
.ex-toast svg { flex: none; width: 18px; height: 18px; color: var(--accent-2); margin-top: 1px; }

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  display: flex;
  position: relative;
  isolation: isolate;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  overflow: hidden;
  background: var(--glass);
}

.lang-toggle::before {
  content: '';
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 8px;
  background: var(--accent-soft);
  box-shadow: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

html[data-lang='en'] .lang-toggle::before { transform: translateX(100%); }

.lang-toggle button {
  flex: 1;
  min-width: 36px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 8px;
  transition: color 0.25s ease;
}

.lang-toggle button.active { color: var(--text); }

.icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover { background: var(--accent-soft); }

.icon-btn svg { width: 16px; height: 16px; }

.icon-btn .icon-sun,
.icon-btn .icon-moon {
  position: absolute;
  transition: transform 0.5s cubic-bezier(0.34, 1.3, 0.5, 1), opacity 0.3s ease;
}

.icon-btn .icon-moon { transform: rotate(-90deg) scale(0.4); opacity: 0; }
html:not([data-theme='light']) .icon-btn .icon-sun { transform: rotate(90deg) scale(0.4); opacity: 0; }
html:not([data-theme='light']) .icon-btn .icon-moon { transform: none; opacity: 1; }

.btn-login {
  border: 1px solid var(--border-strong);
  background: var(--glass);
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: #fff;
  color: var(--btn-white-text);
  box-shadow: 0 10px 30px rgba(var(--shade), 0.3);
}

.btn-outline {
  background: var(--glass);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-arrow {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.5, 0.5, 1);
}

.btn-wide { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 40px;
  text-align: center;
  position: relative;
}

.hero > .wrap { position: relative; z-index: 1; }

.script-tag {
  font-family: 'Caveat', cursive;
  font-size: 26px;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.5px;
}

.hero h1 .dim { color: #c7cdd6; }

.hero p.lede {
  max-width: 560px;
  margin: 22px auto 0;
  color: var(--text-dim);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

/* ---------- Section headings ---------- */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.4px;
  margin-top: 8px;
}

.section-head h2 .dim { color: #8d97a6; font-weight: 500; }

.section-head p {
  max-width: 520px;
  margin: 16px auto 0;
  color: var(--text-dim);
  font-size: 15.5px;
}

section { padding: 90px 0; }

/* ---------- Three steps ---------- */
.section-head .script-tag {
  font-size: 21px;
  max-width: none;
  margin: 0 auto;
  color: var(--accent-2);
}

.section-head.left { text-align: left; margin-bottom: 44px; }
.section-head.left .script-tag { margin-left: 0; }

.steps-section .section-head h2 {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -1px;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step { position: relative; }

.step-num {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.step-num .ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.85);
}

.step-num span {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.5s 0.5s ease, transform 0.6s 0.5s cubic-bezier(0.34, 1.5, 0.5, 1);
}

.step-link {
  position: absolute;
  top: 34px;
  left: calc(100% - 92px);
  width: 120px;
  height: 52px;
  color: rgba(255, 255, 255, 0.55);
}

.step svg path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.step .ring path:first-child { transition: stroke-dashoffset 1.1s calc(var(--d, 0ms) + 0.1s) cubic-bezier(0.6, 0, 0.3, 1); }
.step .ring path:last-child { transition: stroke-dashoffset 0.3s calc(var(--d, 0ms) + 1.15s) ease-out; }
.step .step-link path:first-child { transition: stroke-dashoffset 0.9s calc(var(--d, 0ms) + 1s) cubic-bezier(0.6, 0, 0.3, 1); }
.step .step-link path:last-child { transition: stroke-dashoffset 0.25s calc(var(--d, 0ms) + 1.85s) ease-out; }
.step .step-num span { transition-delay: calc(var(--d, 0ms) + 0.55s); }

.step.in svg path { stroke-dashoffset: 0; }
.step.in .step-num span { opacity: 1; transform: none; }

.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--text-dim); line-height: 1.6; max-width: 300px; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .step-link { display: none; }
  .steps-section .section-head h2 { font-size: 32px; }
}

/* ---------- FAQ ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.faq-aside { position: sticky; top: 110px; }
.faq-aside .section-head { margin-bottom: 18px; }

.faq-section .section-head h2 {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -1px;
}

.faq-note {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  max-width: 340px;
  margin-bottom: 24px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--glass);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover { transform: translateX(4px); }

.faq-item.open {
  background: var(--glass-strong);
  box-shadow: 0 18px 44px rgba(var(--shade), 0.28);
  transform: none;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

.faq-num {
  min-width: 22px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

.faq-item.open .faq-num { color: var(--accent); }

.faq-text { flex: 1; }

.faq-icon {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.5, 1), background 0.3s ease, color 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-item.open .faq-icon {
  transform: rotate(135deg);
  background: var(--accent);
  color: var(--bg);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq-a > div { overflow: hidden; }

.faq-a p {
  padding: 0 22px 22px 60px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.35s ease;
}

.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a p { opacity: 1; transform: none; transition-delay: 0.12s; }

@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; gap: 28px; }
  .faq-aside { position: static; }
  .faq-section .section-head h2 { font-size: 32px; }
  .faq-a p { padding-left: 22px; }
}

/* ---------- Client showcase ---------- */
.showcase-section {
  position: relative;
  padding: 90px 0 110px;
  background:
    radial-gradient(ellipse at 50% 62%, rgba(34,211,238,.10), transparent 42%),
    radial-gradient(ellipse at 50% 10%, rgba(124,58,237,.10), transparent 55%);
  overflow: hidden;
}
.showcase-head { text-align: center; }
.showcase-head .script-tag { display: inline-flex; align-items: center; gap: 7px; }
.showcase-head .script-tag::before {
  content: ""; width: 13px; height: 13px; flex: none;
  background: var(--accent-2, #c4b5fd);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.showcase-head h2 { margin-top: 10px; font-size: clamp(34px, 5.5vw, 60px); line-height: 1.12; }
.showcase-arrow { margin: 18px auto 0; width: 22px; height: 22px; color: var(--accent-2, #7dd3fc); animation: showcase-bob 2.2s ease-in-out infinite; }
.showcase-arrow svg { width: 100%; height: 100%; }
@keyframes showcase-bob { 0%,100% { transform: translateY(0); opacity: .85; } 50% { transform: translateY(6px); opacity: 1; } }

.laptop-stage { position: relative; max-width: 760px; margin: 56px auto 0; }
.laptop {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 11px 11px 0;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(160deg, #2b2b31, #0d0d12 60%);
  border: 2px solid #3a3a42;
  border-bottom: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 28px 60px rgba(0,0,0,.6);
}
.laptop-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: #07131a;
}
.laptop-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  background: #07131a;
}
/* The notch sits above the embedded video */
.laptop-video + .laptop-notch { z-index: 2; }
.laptop-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 8%; height: 9px; background: #08080c; border-radius: 0 0 6px 6px; }
.laptop-base {
  position: relative;
  width: 112%;
  height: 13px;
  margin-left: -6%;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #5a5a63, #23232a 70%, #15151b);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 12px 24px rgba(0,0,0,.55);
}
.laptop-notch-base { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 13%; height: 4px; border-radius: 0 0 5px 5px; background: #17171d; }
.laptop-shadow {
  position: absolute; bottom: -26px; left: 8%; width: 84%; height: 28px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.65), transparent 70%);
  filter: blur(10px);
}
@media (max-width: 650px) {
  .showcase-section { padding: 60px 0 70px; }
  .laptop-stage { margin-top: 36px; }
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured {
  box-shadow: 0 20px 50px rgba(var(--ac), 0.12);
}

.price-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  background: #fff;
  color: var(--btn-white-text);
  box-shadow: 0 6px 18px rgba(var(--shade), 0.25);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
}

.price-eyebrow {
  font-family: 'Caveat', cursive;
  color: var(--accent-2);
  font-size: 19px;
  line-height: 1.2;
}

.price-term { font-size: 20px; font-weight: 500; margin-top: 6px; line-height: 1.25; }
.price-amount { font-size: 38px; font-weight: 500; margin-top: 16px; line-height: 1.1; }

.price-features {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.price-features li svg {
  width: 14px; height: 14px;
  color: var(--accent-2);
  flex: none;
}

.price-card .btn { margin-top: 24px; }

.hwid-bar {
  margin-top: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hwid-bar h4 { font-size: 15px; font-weight: 600; }
.hwid-bar p { font-size: 13px; color: var(--text-dim); margin-top: 3px; }

.hwid-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}

.hwid-price { font-size: 18px; font-weight: 500; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }

.final-cta h1 { font-size: 48px; font-weight: 500; line-height: 1.15; }

.final-cta p.lede {
  color: var(--text-dim);
  margin-top: 16px;
  font-size: 15px;
}

.final-cta .hero-actions { margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0 44px;
  text-align: center;
}

.site-footer::before {
  content: '';
  display: block;
  width: calc(100% - 64px);
  max-width: 1200px;
  height: 1px;
  margin: 0 auto 36px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16) 18%, rgba(255, 255, 255, 0.16) 82%, transparent);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-dim);
}

.footer-links a:hover { color: var(--text); }

/* ---------- Login page ---------- */
body.login-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 40px 0;
}

.login-grid {
  display: flex;
  justify-content: center;
  width: 100%;
}

.login-copy {
  width: 100%;
  max-width: 460px;
  padding: 36px 34px 30px;
  border-radius: 24px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 70px rgba(var(--shade), 0.35);
  text-align: center;
}

.login-copy .script-tag { text-align: center; }

.login-copy h1 {
  font-size: 34px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--login-heading, var(--text));
}

.login-copy p.lede {
  text-align: center;
  margin: 14px auto 0;
  max-width: 360px;
  font-size: 14.5px;
  color: var(--login-body, var(--text-dim));
}

.login-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  width: 100%;
  margin: 26px 0 18px;
}

.login-tabs button { flex: 1; }

.login-tabs button {
  border: none;
  background: transparent;
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
}

.login-tabs button.active { background: var(--card-strong); color: var(--text); }

.field {
  position: relative;
  margin-bottom: 12px;
}

.field input {
  width: 100%;
  background: var(--field-solid);
  border: 0;
  border-radius: 12px;
  padding: 15px 44px 15px 16px;
  font-size: 14px;
  color: var(--text);
}

.field input::placeholder { color: var(--text-faint); }

.field svg {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  color: var(--text-faint);
}

.field-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--text-faint);
}

.field-eye:hover { color: var(--text); }
.field .field-eye svg { position: static; transform: none; color: inherit; }

.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 4px 0 12px;
  text-align: left;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-dim);
  cursor: pointer;
}
.auth-terms input[type="checkbox"] {
  appearance: none;
  flex: none;
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--field-solid);
  cursor: pointer;
}
.auth-terms input[type="checkbox"]:checked {
  background-color: var(--accent, #a78bfa);
  border-color: var(--accent, #a78bfa);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}
.auth-terms a { color: var(--accent-2, #c4b5fd); text-decoration: underline; text-underline-offset: 2px; }

.auth-submit { margin-top: 6px; }

.auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.forgot-link { color: var(--text-dim); transition: color 0.2s ease; }
.forgot-link:hover { color: var(--text); }

.auth-switch a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.auth-switch a:hover { text-decoration-color: currentColor; }

.auth-view { padding: 0; }
.auth-view[hidden] { display: none; }

.auth-view.view-enter { animation: view-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }

@keyframes view-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.help-row {
  margin-top: 18px;
}

.help-row .script-tag { font-size: 18px; margin-bottom: 8px; }

.help-icons { display: flex; justify-content: center; gap: 10px; }

/* ---------- Motion ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(26px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes header-drop {
  from { opacity: 0; transform: translateY(-24px); }
  to { opacity: 1; transform: none; }
}

@keyframes write-in {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(-10% -5% -10% 0); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 20px 50px rgba(var(--ac), 0.12); }
  50% { box-shadow: 0 24px 70px rgba(var(--ac), 0.28); }
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes nudge-down {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(3px); }
  70% { transform: translateY(-1px); }
}

@keyframes twinkle {
  from { opacity: 0.35; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.15); }
}

.site-header { animation: header-drop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }

.site-header .wrap { transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.site-header.scrolled .wrap {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  border-color: var(--border-strong);
}

.main-nav a { position: relative; }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.btn-login { transition: border-color 0.2s ease, background 0.2s ease; }
.btn-login:hover { background: var(--accent-soft); }

/* Hero entrance */
.hero .script-tag { animation: write-in 1.1s 0.35s cubic-bezier(0.6, 0, 0.3, 1) both; }
.hero h1 span { display: inline-block; animation: fade-up 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero h1 span:first-child { animation-delay: 0.15s; }
.hero h1 span.dim { animation-delay: 0.3s; }
.hero .lede { animation: fade-up 0.9s 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero .hero-actions { animation: fade-up 0.9s 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

/* Buttons */
.btn { position: relative; overflow: hidden; transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary:hover { box-shadow: 0 14px 38px rgba(var(--shade), 0.42); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.16); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(var(--ac), 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.75s ease;
  pointer-events: none;
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover .icon-download { animation: nudge-down 0.6s ease; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }
.reveal .script-tag { clip-path: inset(0 100% 0 0); transition: clip-path 1s 0.25s cubic-bezier(0.6, 0, 0.3, 1); }
.reveal.in .script-tag { clip-path: inset(-10% -5% -10% 0); }

/* Cards: lift + cursor spotlight */
.price-card, .hwid-bar {
  position: relative;
  isolation: isolate;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html[data-theme='light'] .section-head h2 .dim { color: rgba(255, 255, 255, 0.62); }
.price-card::before, .hwid-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--hl), 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  pointer-events: none;
}
.price-card:hover::before, .hwid-bar:hover::before { opacity: 1; }

.price-card.in {
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease;
}
.price-card:hover { transform: translateY(-6px); }

.price-card.featured.in { animation: glow-pulse 3.2s ease-in-out infinite; }

.faq-item.in {
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.35s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.faq-item.in:hover { transform: translateX(4px); }
.faq-item.in.open { transform: none; }
.price-badge { animation: badge-float 2.6s ease-in-out infinite; }
.price-amount { font-variant-numeric: tabular-nums; }

/* Language swap */
[data-i18n] { transition: opacity 0.18s ease; }
html.lang-fading [data-i18n] { opacity: 0; }

/* Login */
.field input { transition: background-color 0.2s ease; }

/* Chrome forces its own light background on autofilled fields; an opaque inset shadow paints over it. */
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--field-solid) inset;
  box-shadow: 0 0 0 1000px var(--field-solid) inset;
}

.field input:autofill {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px var(--field-solid) inset;
}

.field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--field-focus) inset;
  box-shadow: 0 0 0 1000px var(--field-focus) inset;
}

.field input:autofill:focus { box-shadow: 0 0 0 1000px var(--field-focus) inset; }
.field input:focus { outline: none; background: var(--field-focus); }
.login-tabs button { transition: background 0.25s ease, color 0.25s ease; }

/* ---------- Splash (first screen) ---------- */
.splash {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  margin-top: -70px;
  padding: 140px 0 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash .hero > .wrap,
.splash-content { position: relative; z-index: 2; }

.splash-content h1,
.splash-content .lede,
.splash-content .script-tag { text-shadow: 0 2px 24px rgba(var(--shade), 0.35); }

.splash .script-tag { color: rgba(255, 255, 255, 0.92); font-size: 22px; }

.splash h1 {
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -1.5px;
  line-height: 1.08;
}

.splash h1 .dim { color: rgba(255, 255, 255, 0.9); }

.splash .lede {
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  font-size: 15.5px;
}

/* Stars */
.star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
  animation: twinkle var(--t, 2.4s) ease-in-out var(--delay, 0s) infinite alternate;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  z-index: 3;
  width: fit-content;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  animation: fade-up 1s 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.scroll-hint i {
  position: relative;
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.scroll-hint i::after {
  content: '';
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: #fff;
  animation: scroll-line 1.8s ease-in-out infinite;
}

@keyframes scroll-line {
  from { top: -40%; }
  to { top: 100%; }
}

/* Header blends into the splash until the page scrolls */
.site-header:not(.scrolled) .wrap {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

@media (max-width: 900px) {
  .splash h1 { font-size: 40px; letter-spacing: -0.8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Auth form message ---------- */
.auth-msg { margin-top: 12px; font-size: 13px; min-height: 1px; text-align: center; }
.auth-msg.is-error { color: #ffc2cf; }

.auth-submit.is-loading { opacity: 0.75; pointer-events: none; }

/* ---------- Cabinet ---------- */
[hidden] { display: none !important; }

body.cabinet-page { display: flex; min-height: 100vh; flex-direction: column; }

.header-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: block;
  font-size: 0;
  color: transparent;
  background: #fff url("avatar.png") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
a.header-avatar:hover { transform: scale(1.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }

.cabinet-main { flex: 1; padding: 110px 0 16px; }
.cabinet-page .site-footer { padding-top: 24px; }
.cabinet-page .site-footer::before { margin-bottom: 26px; }

.cabinet-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 120px 0;
  color: var(--text-dim);
  font-size: 15px;
}

.spinner {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--text);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cabinet-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}

.cabinet-col { min-width: 0; }

.cab-hero { margin-bottom: 10px; }
.cab-hero .script-tag { color: var(--accent-2); font-size: 20px; }
.cab-hero h1 {
  font-size: 46px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -1px;
  margin-top: 6px;
}
.cab-hero h1 .dim { color: #c7cdd6; }

.cab-section { padding: 22px 0 0; margin-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.cab-section:first-of-type { border-top: 0; padding-top: 18px; margin-top: 8px; }
.cab-section h2 { font-size: 28px; font-weight: 500; letter-spacing: -0.5px; }
.cab-section h3 { font-size: 17px; font-weight: 600; }
.cab-note { color: var(--text-dim); font-size: 14px; line-height: 1.55; margin-top: 5px; max-width: 560px; }

.cab-sub-value { font-size: 26px; font-weight: 500; line-height: 1.25; margin: 10px 0 16px; letter-spacing: -0.4px; }
.cabinet-page.is-subscribed .cab-sub-value { color: var(--accent-2); }

.cab-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cab-section > .cab-note + .btn, .cab-section > .cab-note + .cab-inline-form { margin-top: 14px; }
.cab-section h2 + .btn, .cab-section h3 + .btn { margin-top: 12px; }

.cab-promo-card {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.cab-promo-icon {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-2);
}
.cab-promo-icon svg { width: 20px; height: 20px; }
.cab-promo-text h3 { font-size: 16px; font-weight: 600; }
.cab-promo-text p { color: var(--text-dim); font-size: 13.5px; line-height: 1.55; margin: 4px 0 14px; max-width: 480px; }

.cab-inline-form { display: flex; gap: 12px; margin-top: 16px; max-width: 540px; }
.cab-inline-form input {
  flex: 1;
  min-width: 0;
  background: var(--field-solid);
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14px;
  color: var(--text);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
}
.cab-inline-form input:focus { outline: none; background: var(--field-focus); }
.cab-inline-form .btn { flex: none; }

.cab-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.cab-subsection { margin-top: 20px; }
.cab-subsection:first-of-type { margin-top: 14px; }
.cab-stack-form { margin-top: 12px; max-width: 420px; }
.cab-stack-form .field { margin-bottom: 10px; }
.cab-stack-form .field input {
  width: 100%;
  background: var(--field-solid);
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14px;
  color: var(--text);
}
.cab-stack-form .field input:focus { outline: none; background: var(--field-focus); }
.cab-stack-form .btn { margin-top: 4px; }

.btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.3);
  box-shadow: none;
}
.btn.is-disabled:hover { transform: none; filter: grayscale(0.3); }

.cab-inline-msg { font-size: 12.5px; margin-top: 10px; min-height: 1px; }
.cab-inline-msg.is-ok { color: #b7f0c2; }
.cab-inline-msg.is-error { color: #ffc2cf; }

/* Aside */
.cabinet-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 22px; }

.cab-aside-card {
  padding: 22px;
  border-radius: 20px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cab-profile-top { display: flex; align-items: center; gap: 14px; }
.cab-avatar {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 12px;
  font-size: 0;
  color: transparent;
  background: #fff url("avatar.png") center / cover no-repeat;
  box-shadow: 0 8px 20px rgba(var(--shade), 0.3);
}
.cab-profile-name { font-size: 17px; font-weight: 600; }
.cab-profile-sub { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.cabinet-page.is-subscribed .cab-profile-sub { color: var(--accent-2); }

.cab-data { margin-top: 20px; }
.cab-data-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.cab-data dl { margin: 0; }
.cab-data dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.cab-data dt { font-size: 13px; color: var(--text-dim); flex: none; }
.cab-data dd {
  font-size: 13.5px;
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}
.cab-data-mail { font-size: 12.5px; }

.cab-aside-card .btn { margin-top: 18px; }

.cab-help { padding-left: 2px; }
.cab-help .script-tag { font-size: 18px; margin-bottom: 10px; color: var(--accent-2); }

@media (max-width: 920px) {
  .cabinet-layout { grid-template-columns: 1fr; gap: 32px; }
  .cabinet-aside { position: static; order: -1; }
  .cab-hero h1 { font-size: 34px; }
  .cab-section h2 { font-size: 24px; }
}

@media (max-width: 560px) {
  .cab-inline-form { flex-direction: column; }
  .cab-row { flex-direction: column; align-items: flex-start; }
}

/* ---------- Toggle switch ---------- */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 25px;
  flex: none;
}
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: background 0.2s ease;
}
.switch .track::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.5, 1);
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::before { transform: translateX(19px); }
.switch input:disabled + .track { opacity: 0.5; cursor: not-allowed; }

/* ---------- Chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 0;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--glass-strong);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.1s ease;
}
.chip:hover { background: rgba(255, 255, 255, 0.2); color: var(--text); }
.chip:active { transform: scale(0.96); }
.chip.active {
  background: #fff;
  color: var(--btn-white-text);
  font-weight: 600;
}

/* ---------- Admin panel ---------- */
.cab-admin-btn { margin-top: 0; margin-bottom: 10px; }

.admin .cabinet-head { margin-bottom: 24px; }
.admin .cabinet-head h2 { font-size: 40px; font-weight: 500; letter-spacing: -1px; }

.adm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.adm-stat {
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.adm-stat-label { display: block; font-size: 13px; color: var(--text-dim); }
.adm-stat-value { display: block; font-size: 30px; font-weight: 500; letter-spacing: -0.5px; margin-top: 10px; font-variant-numeric: tabular-nums; }

.adm-block { margin-bottom: 28px; }
.adm-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.adm-block-head h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.4px; }

.adm-loading-row, .adm-muted { color: var(--text-dim); font-size: 13.5px; }
.adm-loading-row { padding: 20px 16px; }

.adm-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
  align-items: start;
}
.adm-card {
  padding: 24px;
  border-radius: 20px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.adm-card h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.3px; }
.adm-card .cab-note { margin-bottom: 4px; }
.adm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.adm-card.adm-colors-card { margin-bottom: 18px; }

.adm-color-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.adm-color-swatch {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.adm-color-swatch:hover { transform: translateY(-2px); }
.adm-color-swatch.active { border-color: var(--text); }
.adm-color-swatch.active::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.adm-field-label { font-size: 12.5px; font-weight: 600; color: var(--text); margin: 16px 0 8px; }
.adm-issue-row { display: flex; gap: 10px; align-items: center; }
.adm-issue-row input {
  width: 96px;
  height: 46px;
  background: var(--field-solid);
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--text);
  -moz-appearance: textfield;
  appearance: textfield;
}
.adm-issue-row input::-webkit-outer-spin-button,
.adm-issue-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.adm-issue-row input:focus { outline: none; background: var(--field-focus); }
.adm-card .adm-issue-row .btn { height: 46px; padding: 0 24px; margin-top: 0; }
[data-key-custom-days] { margin-top: 14px; }
.adm-field-suffix { font-size: 13px; color: var(--text-dim); }
.adm-key-output {
  width: 100%;
  margin-top: 14px;
  background: var(--field-solid);
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: 'Courier New', monospace;
  font-size: 12.5px;
  color: var(--text);
  resize: vertical;
}

.adm-lastkeys {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
.adm-lastkeys::-webkit-scrollbar { width: 7px; }
.adm-lastkeys::-webkit-scrollbar-track { background: transparent; }
.adm-lastkeys::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.22); border-radius: 999px; }
.adm-lastkeys::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.36); }
.adm-key-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}
.adm-key-item code { font-size: 12.5px; font-family: 'Courier New', monospace; word-break: break-all; }
.adm-key-meta { font-size: 11.5px; color: var(--text-faint); }

.adm-versions-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.adm-version-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}
.adm-version-branch {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  flex: none;
}
.adm-version-branch[data-branch="STABLE"] { background: rgba(159, 230, 176, 0.18); color: #9fe6b0; }
.adm-version-branch[data-branch="BETA"] { background: rgba(255, 210, 122, 0.18); color: #ffd27a; }
.adm-version-branch[data-branch="ALPHA"] { background: rgba(255, 143, 163, 0.18); color: #ff8fa3; }
.adm-version-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.adm-version-info b { font-size: 13.5px; }
.adm-version-info span { font-size: 11.5px; color: var(--text-faint); }
.adm-version-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.adm-version-form input, .adm-version-form select {
  background: var(--field-solid);
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  color: var(--text);
}
.adm-version-form input:focus, .adm-version-form select:focus { outline: none; background: var(--field-focus); }
.adm-version-form .btn { grid-column: 1 / -1; }

.adm-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-dim); }
.adm-status i { width: 8px; height: 8px; border-radius: 50%; background: #8fe6a3; box-shadow: 0 0 8px #8fe6a3; }
.adm-status[data-state="warn"] i { background: #ffd27a; box-shadow: 0 0 8px #ffd27a; }
.adm-status[data-state="off"] i { background: #ff8fa3; box-shadow: 0 0 8px #ff8fa3; }

.adm-switch-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.adm-switch-row:first-of-type { margin-top: 10px; }
.adm-switch-text { display: flex; flex-direction: column; gap: 3px; }
.adm-switch-text b { font-size: 14px; font-weight: 600; }
.adm-switch-text span { font-size: 12.5px; color: var(--text-dim); line-height: 1.45; max-width: 320px; }
.adm-loader-note { font-size: 12.5px; color: var(--text-dim); margin-top: 12px; }
.adm-release-tag { font-size: 16px; color: var(--accent-2); }
.adm-card .btn { margin-top: 16px; }

.adm-search {
  position: relative;
  flex: 1;
  max-width: 340px;
}
.adm-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--text-faint);
}
.adm-search input {
  width: 100%;
  background: var(--field-solid);
  border: 0;
  border-radius: 12px;
  padding: 12px 16px 12px 40px;
  font-size: 14px;
  color: var(--text);
}
.adm-search input:focus { outline: none; background: var(--field-focus); }

.adm-count { font-size: 13px; color: var(--text-dim); }

.adm-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.adm-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.adm-table th, .adm-table td {
  text-align: left;
  padding: 13px 16px;
  font-size: 13.5px;
  vertical-align: middle;
}
.adm-table thead th {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-faint);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.adm-table tbody tr { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.adm-table tbody tr:last-child { border-bottom: 0; }
.adm-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

.adm-uid { color: var(--text-faint); font-variant-numeric: tabular-nums; }
.adm-user { font-weight: 600; }
.adm-mail { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

.adm-role {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--glass-strong);
  color: var(--text-dim);
}
.adm-role[data-kind="admin"] { background: #fff; color: var(--btn-white-text); }

.adm-role-dd { position: relative; display: inline-block; }
.adm-role-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: var(--glass-strong);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.adm-role-dd-btn:hover { background: rgba(255, 255, 255, 0.2); }
.adm-role-dd-btn:active { transform: scale(0.96); }
.adm-role-dd-btn:disabled { opacity: 0.5; pointer-events: none; }
.adm-role-dd-caret { width: 11px; height: 11px; flex: none; transition: transform 0.15s ease; opacity: 0.7; }
.adm-role-dd-btn[aria-expanded="true"] .adm-role-dd-caret { transform: rotate(180deg); }

.adm-role-menu {
  position: fixed;
  z-index: 200;
  padding: 6px;
  border-radius: 12px;
  background: var(--card-strong);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: adm-role-menu-in 0.12s ease;
}
@keyframes adm-role-menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.adm-role-menu-item {
  border: 0;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: var(--glass-strong);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.adm-role-menu-item:hover { background: rgba(255, 255, 255, 0.2); }
.adm-role-menu-item:active { transform: scale(0.97); }
.adm-role-menu-item[data-active] { background: #fff; color: var(--btn-white-text); }

.adm-uid-cell { white-space: nowrap; }
.adm-uid-view { display: inline-flex; align-items: center; gap: 6px; }
.adm-uid-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border: 0;
  border-radius: 7px;
  background: var(--glass-strong);
  color: var(--text);
  transition: background 0.15s ease, transform 0.1s ease;
}
.adm-uid-edit svg { width: 12px; height: 12px; }
.adm-uid-edit:hover { background: rgba(255, 255, 255, 0.2); }
.adm-uid-edit:active { transform: scale(0.94); }

.adm-uid-edit-row { display: inline-flex; align-items: center; gap: 5px; }
.adm-uid-input {
  width: 64px;
  background: var(--field-solid);
  border: 0;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 12.5px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.adm-uid-input::-webkit-outer-spin-button,
.adm-uid-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.adm-uid-input:focus { outline: none; box-shadow: none; background: var(--field-focus); }
.adm-uid-save, .adm-uid-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border: 0;
  border-radius: 7px;
  flex: none;
  background: var(--glass-strong);
  color: var(--text);
  transition: background 0.15s ease, transform 0.1s ease;
}
.adm-uid-save svg, .adm-uid-cancel svg { width: 12px; height: 12px; }
.adm-uid-save:hover, .adm-uid-cancel:hover { background: rgba(255, 255, 255, 0.2); }
.adm-uid-save:active, .adm-uid-cancel:active { transform: scale(0.94); }

.adm-sub { font-variant-numeric: tabular-nums; color: var(--text-dim); }
.adm-sub.is-active { color: var(--accent-2); }

.adm-ban { color: #ff9aae; font-weight: 600; }
.adm-ok { color: #9fe6b0; }

.adm-actions { white-space: nowrap; }
.adm-act {
  border: 0;
  background: var(--glass-strong);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  margin-right: 5px;
  transition: background 0.15s ease, transform 0.1s ease;
}
.adm-act:last-child { margin-right: 0; }
.adm-act:hover { background: rgba(255, 255, 255, 0.2); }
.adm-act:active { transform: scale(0.94); }
.adm-act:disabled { opacity: 0.5; pointer-events: none; }
.adm-act.is-danger { background: rgba(255, 90, 120, 0.25); color: #ffc2cf; }

.adm-empty { padding: 32px; text-align: center; color: var(--text-dim); }

.adm-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}
.adm-pager .btn { padding: 9px 18px; font-size: 14px; }
.adm-pager .btn:disabled { opacity: 0.4; pointer-events: none; }
.adm-page { font-size: 13.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }

@media (max-width: 980px) {
  .adm-stats { grid-template-columns: repeat(2, 1fr); }
  .adm-two { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .adm-block-head { flex-direction: column; align-items: stretch; }
  .adm-search { max-width: none; }
  .admin .cabinet-head h2 { font-size: 30px; }
}
@media (max-width: 520px) {
  .adm-stats { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .login-copy { padding: 28px 20px 24px; }
  .login-copy h1 { font-size: 28px; }
  .hero h1 { font-size: 38px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hwid-bar { flex-direction: column; align-items: flex-start; }
}


/* OMNIS visual refresh — deep graphite surfaces with a consistent violet identity */
:root {
  --accent: #a78bfa; --accent-2: #c4b5fd; --ac: 167, 139, 250; --hl: 196, 181, 253;
  --accent-soft: rgba(167, 139, 250, .15); --glow: rgba(139, 92, 246, .20);
  --bg: #090711; --bg-2: #100b1c; --field-solid: #110d1d; --field-focus: #211832;
  --sky: radial-gradient(ellipse at 50% -15%, rgba(124, 58, 237, .22), transparent 55%), linear-gradient(180deg, #090711 0%, #100b1c 58%, #171025 100%);
  --card: rgba(255,255,255,.045); --card-strong: rgba(19,13,31,.78);
}
html[data-theme='light'] {
  --bg: #171022; --bg-2: #211431; --sky: linear-gradient(180deg, #130d20 0%, #1b102b 50%, #241438 100%);
  --accent: #a78bfa; --accent-2: #c4b5fd; --ac: 167,139,250; --hl: 196,181,253;
  --accent-soft: rgba(196,181,253,.15); --glow: rgba(167,139,250,.2); --btn-white-text: #211431;
  --card: rgba(25,16,42,.5); --card-strong: rgba(22,13,36,.72); --field-solid: #211431; --field-focus: #302044;
}
.brand { gap: 11px; letter-spacing: -.045em; font-weight: 800; }
.brand-logo { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(139,92,246,.32)); }
.site-header { backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border-bottom: 1px solid rgba(196,181,253,.10); }
.btn-primary { box-shadow: 0 8px 30px rgba(124,58,237,.24); }
.btn-primary:hover { box-shadow: 0 12px 38px rgba(124,58,237,.34); transform: translateY(-1px); }
.price-card, .faq-item, .step { transition: border-color .25s ease, transform .25s ease, background .25s ease; }
.price-card:hover { border-color: rgba(196,181,253,.34); transform: translateY(-4px); }
::selection { background: rgba(139,92,246,.38); color: #fff; }

/* Omnis cleanup: remove the visible horizontal separator strips. */
.site-header {
  border-bottom: 0 !important;
}
.site-footer::before {
  display: none !important;
}

[hidden] { display: none !important; }
.account-card { max-width: 680px; margin: 30px auto; padding: clamp(20px, 5vw, 44px); background: var(--card-strong); border-radius: 24px; }
.account-card h1 { font-size: clamp(28px, 5vw, 44px); margin: 12px 0 24px; }
.account-card .auth-form { margin-top: 24px; }
.profile-data { display: grid; grid-template-columns: 1fr 2fr; gap: 18px; margin: 28px 0; }
.profile-data dt { color: var(--text-dim); }
.profile-data dd { overflow-wrap: anywhere; }
.account-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.account-note { margin-top: 30px; font-size: 14px; }
.auth-msg { overflow-wrap: anywhere; }
@media (max-width: 520px) { .profile-data { grid-template-columns: 1fr; gap: 10px; } .profile-data dd { margin-bottom: 12px; } }
