@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Oxanium:wght@700;800&display=swap");

:root {
  color-scheme: light;
  --bg: #f4f5fb;
  --panel: #ffffff;
  --panel-2: #eeeaff;
  --line: #e2ddec;
  --text: #20183f;
  --muted: #736d86;
  --accent: #755cff;
  --green: #18b88f;
  --red: #e05263;
  --shadow: 0 18px 50px rgba(49, 38, 91, 0.12);
  --shadow-strong: 0 28px 90px rgba(49, 38, 91, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shield-breathe {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 26px rgba(117, 92, 255, 0.14), 0 0 0 58px rgba(117, 92, 255, 0.07);
  }
  50% {
    transform: scale(1.035);
    box-shadow: 0 0 0 34px rgba(117, 92, 255, 0.12), 0 0 0 74px rgba(23, 184, 144, 0.08);
  }
}

@keyframes scan-line {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.miniapp {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 14px 30px;
}

.hero-card,
.plan-card,
.item-card,
.auth-panel,
.admin-section,
.summary-card,
.mobile-code-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 46%, rgba(117, 92, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #eeeaff 100%);
  animation: float-in 480ms ease both;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent),
    repeating-linear-gradient(135deg, rgba(117, 92, 255, 0.08) 0 1px, transparent 1px 18px);
  opacity: 0.55;
  transform: translateX(-120%);
  animation: scan-line 5.8s ease-in-out infinite;
}

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

.topbar,
.top-actions,
.admin-header,
.section-title,
.plan-head,
.item-head,
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.top-actions {
  gap: 8px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.logo-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-family: Oxanium, "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 800;
}

.brand-word {
  margin: 0;
  font-family: Oxanium, "Space Grotesk", sans-serif;
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.copy-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

.copy-line input {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.icon-button,
.ghost-button,
.primary-button,
.tab {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--panel);
}

.icon-button {
  width: 44px;
  display: grid;
  place-items: center;
}

.lang-toggle {
  font-size: 12px;
  font-weight: 900;
}

.icon-button svg,
.ghost-button svg,
.primary-button svg {
  width: 18px;
  height: 18px;
}

.orb {
  border: 0;
  width: 166px;
  height: 166px;
  display: grid;
  place-items: center;
  gap: 6px;
  margin: 28px auto 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  box-shadow:
    0 0 0 28px rgba(117, 92, 255, 0.16),
    0 0 0 58px rgba(117, 92, 255, 0.08);
  animation: shield-breathe 3.2s ease-in-out infinite;
  transition: transform 180ms ease, filter 180ms ease;
}

.orb:hover,
.primary-button:hover,
.ghost-button:hover,
.tab:hover,
.site-button:hover,
.promo-action:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.orb svg {
  width: 42px;
  height: 42px;
}

.orb span {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-copy {
  margin: 26px 0 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  font-weight: 800;
}

.plan-card .primary-button,
.item-card .primary-button,
.item-card .ghost-button,
.auth-panel .primary-button,
.cabinet-auth .primary-button,
.download-card,
.broadcast-form .primary-button {
  margin-top: 4px;
}

.card-action {
  margin-top: 12px;
  align-self: flex-start;
}

.primary-button {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.ghost-button {
  background: var(--panel-2);
}

.profile-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 12%, rgba(24, 184, 143, 0.14), transparent 30%),
    #fff;
  box-shadow: var(--shadow);
}

.profile-card h2 {
  margin: 0;
  overflow-wrap: anywhere;
}

.profile-status {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.profile-status strong {
  font-family: Oxanium, Manrope, sans-serif;
  font-size: 28px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: end center;
  padding: 16px;
  background: rgba(32, 24, 63, 0.28);
  backdrop-filter: blur(12px);
}

.modal-backdrop.is-visible {
  display: grid;
}

.modal-card {
  width: min(100%, 520px);
  max-height: min(86vh, 720px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px 14px 8px 8px;
  background: #fff;
  box-shadow: var(--shadow-strong);
  animation: float-in 260ms ease both;
}

.modal-plan-grid {
  display: grid;
  gap: 10px;
}

.modal-plan {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-weight: 900;
}

.modal-plan.is-active {
  border-color: var(--accent);
  background: var(--panel-2);
}

.access-actions {
  display: inline-flex;
  gap: 8px;
}

.mobile-code-box {
  display: grid;
  place-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 16px;
  text-align: center;
}

.mobile-code-box[hidden] {
  display: none;
}

.auth-panel {
  display: grid;
  gap: 14px;
  margin: 14px 0;
  padding: 16px;
  animation: float-in 520ms ease both;
}

.auth-panel[hidden],
.tabs[hidden],
.tab-panel[hidden] {
  display: none;
}

.auth-panel h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.05;
}

.email-input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--text);
  outline: none;
  font-weight: 800;
}

.email-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(117, 92, 255, 0.12);
}

.mobile-code-box span,
.mobile-code-box small {
  color: var(--muted);
  font-weight: 800;
}

.mobile-code-box strong {
  color: var(--accent);
  font-family: Oxanium, ui-monospace, monospace;
  font-size: 38px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.wide-tabs {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.tab {
  color: var(--muted);
  font-weight: 800;
}

.tab.is-active {
  color: var(--accent);
  background: var(--panel);
  border-color: var(--accent);
}

.promo-stack {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.promo-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(117, 92, 255, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 10%, rgba(23, 184, 144, 0.16), transparent 30%),
    linear-gradient(180deg, #ffffff, #f0edff);
  box-shadow: var(--shadow);
  animation: float-in 560ms ease both;
}

.promo-card::after {
  content: "";
  position: absolute;
  inset: auto -20% 0 auto;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(117, 92, 255, 0.22);
  border-radius: 50%;
}

.promo-card h3 {
  margin: 8px 0;
  font-size: 22px;
}

.promo-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.promo-action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  transition: transform 180ms ease, filter 180ms ease;
}

.tab-panel,
.admin-tab-panel {
  display: none;
}

.tab-panel.is-active,
.admin-tab-panel.is-active {
  display: block;
}

.plans-grid,
.stack {
  display: grid;
  gap: 12px;
}

.period-title {
  margin-bottom: 10px;
}

.section-title h2,
.section-title h3,
.admin-header h2 {
  margin: 0;
}

.period-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.period-button {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-weight: 900;
}

.period-button span {
  color: var(--muted);
  font-size: 11px;
}

.period-button.is-active {
  border-color: var(--accent);
  background: var(--panel-2);
}

.plan-card,
.item-card,
.summary-card {
  padding: 16px;
  animation: float-in 420ms ease both;
}

.plan-card {
  display: grid;
  gap: 14px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.plan-card:hover,
.item-card:hover,
.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(117, 92, 255, 0.28);
}

.plan-title,
.item-title {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
}

.price {
  font-size: 24px;
  font-weight: 950;
}

.muted {
  color: var(--muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.metric {
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.metric strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
}

.subscription-card {
  overflow: hidden;
  padding: 0;
}

.subscription-head {
  padding: 16px;
  background: var(--text);
  color: #fff;
}

.subscription-head .muted {
  color: rgba(255, 255, 255, 0.72);
}

.traffic-line {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f7f4ff;
}

.traffic-bar {
  height: 22px;
  overflow: hidden;
  border: 1px solid #d8cffd;
  border-radius: 999px;
  background: #fff;
}

.traffic-bar span {
  display: block;
  width: 38%;
  height: 100%;
  background: rgba(117, 92, 255, 0.24);
}

.vpn-link {
  overflow-wrap: anywhere;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--accent);
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.empty {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 32px));
  transform: translateX(-50%) translateY(24px);
  opacity: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: var(--panel);
}

.admin-main {
  width: min(100%, 1240px);
  padding: 24px;
}

.admin-locked {
  grid-template-columns: 1fr;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.admin-locked .admin-sidebar {
  position: static;
  width: min(100%, 430px);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-strong);
}

.admin-locked .admin-main,
.admin-locked .admin-private {
  display: none;
}

.admin-unlocked #adminLoginForm {
  display: none;
}

.token-box,
.broadcast-form {
  display: grid;
  gap: 8px;
}

.token-box input,
.broadcast-form textarea,
.broadcast-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  outline: none;
}

.token-box input {
  min-height: 44px;
  padding: 0 12px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.summary-card strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.summary-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}

.admin-section {
  padding: 16px;
}

.broadcast-form {
  grid-template-columns: minmax(0, 1fr) 280px auto;
  align-items: end;
  margin: 14px 0;
}

.broadcast-form textarea {
  resize: vertical;
  min-height: 96px;
  padding: 12px;
}

.broadcast-form input {
  min-height: 44px;
  padding: 9px;
}

.compact {
  gap: 8px;
}

.compact-summary {
  margin-top: -10px;
}

.admin-analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.admin-analytics-grid h3 {
  margin: 0 0 10px;
}

.mini-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cabinet-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  background:
    linear-gradient(90deg, rgba(117, 92, 255, 0.08), transparent 28%),
    var(--bg);
}

.cabinet-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
}

.cabinet-nav {
  display: grid;
  gap: 8px;
}

.cabinet-nav a,
.cabinet-nav button,
.ghost-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  text-decoration: none;
  font-weight: 900;
}

.cabinet-nav button {
  justify-content: flex-start;
  font: inherit;
  cursor: pointer;
}

.cabinet-nav button.is-active {
  border-color: #15171d;
  background: #15171d;
  color: #fff;
}

.cabinet-main {
  width: min(100%, 1280px);
  padding: 28px;
}

.cabinet-tab-panel {
  display: none;
}

.cabinet-tab-panel.is-active {
  display: block;
  animation: float-in 360ms ease both;
}

.cabinet-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 24px;
  align-items: end;
  min-height: 330px;
  padding: clamp(26px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 20%, rgba(23, 184, 143, 0.16), transparent 30%),
    radial-gradient(circle at 20% 80%, rgba(117, 92, 255, 0.16), transparent 34%),
    #fff;
  box-shadow: var(--shadow-strong);
  animation: float-in 520ms ease both;
}

.cabinet-hero h1 {
  margin: 0;
  max-width: 780px;
  font-family: Oxanium, Manrope, sans-serif;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.95;
  text-transform: uppercase;
}

.cabinet-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.cabinet-auth {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  animation: authFloatIn 520ms ease both;
}

.cabinet-auth-head {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.cabinet-auth-head img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  transform: translateZ(0);
  will-change: transform, opacity;
  animation: authLogoGlow 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.cabinet-auth-head strong {
  color: var(--ink);
  font-size: 28px;
  letter-spacing: 0;
}

.cabinet-auth-head span {
  max-width: 320px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.cabinet-code-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.otp-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  animation: otpAppear 260ms ease both;
}

.otp-grid[hidden] {
  display: none !important;
}

.otp-grid span {
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 1px solid rgba(5, 9, 25, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: #050919;
  font-size: 22px;
  font-weight: 800;
}

.otp-grid span.is-filled {
  border-color: rgba(38, 99, 235, 0.62);
  background: rgba(239, 246, 255, 0.95);
}

.debug-code-pill {
  border: 1px dashed rgba(38, 99, 235, 0.5);
  border-radius: 999px;
  padding: 10px 12px;
  background: rgba(239, 246, 255, 0.88);
  color: #1d4ed8;
  font-weight: 800;
  cursor: pointer;
}

.debug-code-pill[hidden] {
  display: none;
}

@keyframes authFloatIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes authLogoGlow {
  0%,
  100% {
    opacity: 0.94;
    transform: translate3d(0, 0, 0) scale(1);
    filter: drop-shadow(0 12px 18px rgba(38, 99, 235, 0.12));
  }
  50% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1.025);
    filter: drop-shadow(0 14px 22px rgba(38, 99, 235, 0.18));
  }
}

@keyframes otpAppear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-section,
.rich-strip,
.site-device,
.site-hero-copy {
  animation: siteSoftIn 620ms ease both;
}

.site-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.site-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes siteSoftIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-section,
  .rich-strip,
  .site-device,
  .site-hero-copy,
  .site-reveal {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.cabinet-auth[hidden] {
  display: none;
}

.cabinet-locked {
  grid-template-columns: 1fr;
  place-items: center;
  padding: 24px;
}

.cabinet-locked .cabinet-main {
  width: min(520px, 100%);
  padding: 0;
}

.cabinet-locked .cabinet-hero {
  min-height: min(720px, calc(100vh - 48px));
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 22px;
  text-align: center;
}

.cabinet-locked .cabinet-hero > div:first-child {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.cabinet-locked .cabinet-hero h1 {
  font-size: clamp(38px, 7vw, 64px);
}

.cabinet-locked .cabinet-hero p {
  margin: 0;
}

.cabinet-locked .cabinet-auth {
  width: min(380px, 100%);
}

.cabinet-locked .cabinet-private {
  display: none !important;
}

.cabinet-locked .cabinet-sidebar {
  position: fixed;
  inset: 20px 20px auto 20px;
  z-index: 5;
  width: auto;
  height: auto;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.cabinet-locked .cabinet-main {
  width: min(100%, 620px);
  padding: 92px 0 24px;
}

.cabinet-locked .cabinet-tab-panel {
  display: block;
  animation: none;
}

.cabinet-locked .cabinet-hero {
  grid-template-columns: 1fr;
  min-height: auto;
  align-items: start;
  gap: 22px;
}

.cabinet-locked .cabinet-hero h1 {
  font-size: clamp(40px, 12vw, 72px);
}

.cabinet-unlocked #cabinetAuth {
  display: none;
}

.cabinet-promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.cabinet-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  margin: 18px 0;
}

.cabinet-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.site-download-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.download-card {
  min-height: 150px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.download-card:hover {
  transform: translateY(-2px);
  border-color: rgba(117, 92, 255, 0.36);
  box-shadow: var(--shadow-strong);
}

.download-card svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.download-card strong {
  font-size: 22px;
}

.download-card span {
  color: var(--muted);
  line-height: 1.45;
}

.download-card.is-ready {
  background:
    radial-gradient(circle at 90% 8%, rgba(23, 184, 143, 0.16), transparent 34%),
    #fff;
}

.download-card.is-soon {
  opacity: 0.86;
}

.cabinet-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cabinet-plan-card {
  min-height: 320px;
}

@media (max-width: 860px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .summary-grid,
  .broadcast-form,
  .wide-tabs,
  .admin-analytics-grid {
    grid-template-columns: 1fr;
  }

  .cabinet-shell {
    grid-template-columns: 1fr;
  }

  .cabinet-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .cabinet-hero,
  .cabinet-grid,
  .cabinet-promo-grid,
  .cabinet-plans,
  .download-grid,
  .site-download-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .period-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

.site-shell {
  min-height: 100vh;
  background: #f7f7fb;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 251, 0.92);
  backdrop-filter: blur(18px);
}

.site-logo,
.site-nav a,
.site-button {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Oxanium, "Space Grotesk", sans-serif;
  font-size: 24px;
}

.vexo-logo-link img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.vexo-logo-link strong {
  font-family: Oxanium, "Space Grotesk", sans-serif;
  font-size: 30px;
}

.site-logo span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
}

.site-nav nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav nav a {
  color: var(--muted);
  font-size: 14px;
}

.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.site-button.is-dark {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.65fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(40px, 7vw, 96px) clamp(18px, 6vw, 88px);
}

.site-hero h1 {
  margin: 0;
  max-width: 780px;
  color: var(--text);
  font-family: Oxanium, Manrope, sans-serif;
  font-size: clamp(54px, 10vw, 124px);
  line-height: 0.88;
  letter-spacing: 0;
}

.site-hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.site-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.site-device {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: radial-gradient(circle at 50% 38%, rgba(117, 92, 255, 0.16), transparent 34%), #fff;
  box-shadow: 0 30px 80px rgba(49, 38, 91, 0.16);
  animation: float-in 620ms ease both;
}

.device-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 18px 35px rgba(117, 92, 255, 0.26));
}

.vexo-device {
  background:
    radial-gradient(circle at 50% 38%, rgba(33, 221, 255, 0.12), transparent 34%),
    radial-gradient(circle at 62% 62%, rgba(117, 92, 255, 0.14), transparent 36%),
    #fff;
}

.device-top {
  width: 70px;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
}

.device-orb {
  width: 178px;
  height: 178px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 34px rgba(117, 92, 255, 0.14), 0 0 0 72px rgba(117, 92, 255, 0.07);
  font-family: Oxanium, Manrope, sans-serif;
  font-size: 76px;
  font-weight: 800;
  animation: shield-breathe 3.4s ease-in-out infinite;
}

.pro-hero {
  position: relative;
  overflow: hidden;
}

.pro-hero::before {
  content: "";
  position: absolute;
  inset: 8% 6% auto auto;
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  border: 1px solid rgba(117, 92, 255, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-row span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.pro-device {
  position: relative;
  align-content: center;
}

.device-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-weight: 900;
}

.device-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(24, 184, 143, 0.12);
}

.device-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 260px);
}

.device-mini-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.device-mini-grid b,
.device-mini-grid small {
  display: block;
}

.device-mini-grid b {
  color: var(--text);
  font-size: 22px;
}

.device-mini-grid small {
  color: var(--muted);
  font-weight: 800;
}

.site-promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.site-promo-card {
  min-height: 220px;
  align-content: space-between;
}

.feature-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover,
.price-card:hover,
.site-doc:hover {
  transform: translateY(-2px);
  border-color: rgba(117, 92, 255, 0.28);
  box-shadow: var(--shadow-strong);
}

.site-device strong {
  color: var(--text);
  font-size: 24px;
}

.site-device span {
  color: var(--muted);
  font-weight: 800;
}

.site-section {
  padding: clamp(36px, 6vw, 82px) clamp(18px, 6vw, 88px);
}

.site-section-head {
  margin-bottom: 24px;
}

.site-section h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
}

.site-grid {
  display: grid;
  gap: 16px;
}

.site-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-grid article,
.site-doc,
.price-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.site-grid article,
.price-card {
  padding: 22px;
}

.site-kicker {
  color: var(--accent);
  font-family: Oxanium, Manrope, sans-serif;
  font-weight: 800;
}

.site-grid h2,
.price-card h3 {
  margin: 14px 0 12px;
  font-size: 24px;
}

.site-grid p,
.site-doc p,
.price-card p {
  color: var(--muted);
  line-height: 1.65;
}

.version-card {
  min-height: 360px;
}

.site-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.server-flow {
  margin-top: 16px;
}

.price-card strong {
  display: block;
  margin: 12px 0;
  color: var(--text);
  font-size: 34px;
}

.price-card.is-featured {
  border-color: var(--accent);
  background: var(--panel-2);
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.6fr) minmax(0, 1fr);
  gap: 24px;
}

.site-doc {
  padding: 24px;
}

@media (max-width: 820px) {
  .site-nav {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-hero,
  .split,
  .site-grid.three,
  .site-grid.two,
  .site-promo-grid {
    grid-template-columns: 1fr;
  }

  .site-device {
    min-height: 380px;
  }
}

/* Minimal premium refresh */
:root {
  --bg: #f7f8fb;
  --panel: #ffffff;
  --panel-2: #f1f4f8;
  --line: #e7ebf0;
  --text: #15171d;
  --muted: #6d7480;
  --accent: #2563eb;
  --green: #10a77a;
  --red: #d94a5f;
  --shadow: 0 10px 28px rgba(21, 23, 29, 0.06);
  --shadow-strong: 0 18px 48px rgba(21, 23, 29, 0.10);
}

body {
  background: var(--bg);
}

.hero-card,
.promo-card,
.site-device,
.cabinet-hero {
  background: var(--panel);
}

.hero-card::before,
.promo-card::after,
.pro-hero::before {
  display: none;
}

.hero-card,
.plan-card,
.item-card,
.auth-panel,
.admin-section,
.summary-card,
.mobile-code-box,
.cabinet-panel,
.site-grid article,
.site-doc,
.price-card,
.download-card {
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.logo-mark,
.site-logo span {
  border-radius: 14px;
  background: #15171d;
}

.orb,
.device-orb {
  background: #15171d;
  box-shadow: 0 0 0 18px rgba(37, 99, 235, 0.08);
}

.primary-button,
.site-button.is-dark {
  border-color: #15171d;
  background: #15171d;
}

.ghost-button,
.tab.is-active,
.period-button.is-active {
  background: var(--panel-2);
}

.site-nav,
.admin-sidebar,
.cabinet-sidebar {
  background: rgba(255, 255, 255, 0.88);
}

.site-hero {
  min-height: calc(92vh - 82px);
}

.site-hero h1,
.cabinet-hero h1 {
  letter-spacing: 0;
}

.legal-page {
  min-height: 100vh;
}

.legal-wrap {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
  padding: 64px 0 96px;
}

.legal-wrap.compact {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 0;
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-strong);
  padding: clamp(24px, 5vw, 52px);
}

.legal-card.center {
  text-align: center;
}

.legal-card h1 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.98;
}

.legal-card h2 {
  margin: 28px 0 10px;
  color: var(--text);
  font-size: 24px;
}

.legal-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.legal-grid article,
.legal-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  padding: 18px;
}

.legal-grid strong,
.legal-grid span {
  display: block;
}

.legal-grid strong {
  color: var(--text);
  margin-bottom: 8px;
}

.legal-grid span {
  color: var(--muted);
  line-height: 1.5;
}

.legal-list p {
  margin: 8px 0;
}

.legal-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 18px;
}

@media (max-width: 720px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }
}

.site-device,
.cabinet-hero,
.hero-card {
  border-radius: 14px;
}

.site-grid article,
.price-card,
.download-card,
.plan-card,
.item-card,
.summary-card,
.admin-section,
.cabinet-panel,
.auth-panel {
  border-radius: 12px;
}

.badge,
.trust-row span {
  background: var(--panel-2);
}

.promo-card {
  border-radius: 12px;
  background: #ffffff;
}

.promo-badge {
  background: #15171d;
}

.promo-action {
  background: #15171d;
}

.download-card {
  min-height: 132px;
}

.traffic-line {
  background: var(--panel-2);
}

.subscription-head {
  background: #15171d;
}

.promo-code-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}

.promo-code-box label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
}

.promo-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.promo-code-row .ghost-button {
  min-height: 44px;
  white-space: nowrap;
}

.price-summary {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
}

.price-summary .row {
  justify-content: space-between;
}

.price-summary strong {
  font-size: 22px;
}

.email-input,
.token-box input,
.broadcast-form textarea,
.broadcast-form input {
  border-radius: 10px;
  background: #ffffff;
}

.cabinet-locked {
  grid-template-columns: 1fr;
  place-items: center;
}

.cabinet-locked .cabinet-private {
  display: none !important;
}

.cabinet-locked .cabinet-sidebar {
  height: auto;
}

.cabinet-locked .cabinet-main {
  width: min(100%, 620px);
}

/* VEXO rich release refresh */
:root {
  --lux-bg: #f4f7fc;
  --lux-ink: #070b18;
  --lux-ink-2: #10192b;
  --lux-blue: #155dfc;
  --lux-cyan: #21d4fd;
  --lux-violet: #6d36ff;
  --lux-soft: #edf3fb;
  --lux-card: #ffffff;
}

.site-shell {
  background:
    radial-gradient(circle at 18% 8%, rgba(33, 212, 253, 0.12), transparent 30%),
    radial-gradient(circle at 78% 18%, rgba(109, 54, 255, 0.10), transparent 28%),
    var(--lux-bg);
}

.site-nav {
  top: 14px;
  width: min(1180px, calc(100% - 28px));
  margin: 14px auto 0;
  border: 1px solid rgba(210, 220, 235, 0.86);
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.site-nav nav a,
.cabinet-nav-item {
  border-radius: 14px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-nav nav a:hover,
.cabinet-nav-item:hover {
  color: var(--lux-blue);
  background: rgba(21, 93, 252, 0.08);
}

.site-logo strong,
.brand-word,
.site-hero h1,
.cabinet-hero h1 {
  font-family: Oxanium, "Space Grotesk", sans-serif;
  text-transform: uppercase;
}

.site-logo img {
  filter: drop-shadow(0 12px 20px rgba(21, 93, 252, 0.20));
}

.site-button,
.primary-button,
.promo-action {
  border-radius: 16px;
  min-height: 52px;
  box-shadow: 0 12px 26px rgba(21, 93, 252, 0.12);
}

.site-button.is-dark,
.primary-button,
.promo-action {
  background: linear-gradient(135deg, #07101f 0%, #14213b 100%);
  border-color: #07101f;
}

.rich-hero {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 120px);
  margin: 26px auto 0;
  padding: clamp(28px, 5vw, 72px);
  border: 1px solid rgba(210, 220, 235, 0.88);
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(236, 244, 255, 0.92) 100%);
  box-shadow: 0 30px 100px rgba(15, 23, 42, 0.12);
}

.rich-hero .site-hero-copy {
  max-width: 620px;
}

.rich-hero h1 {
  margin: 0;
  color: var(--lux-ink);
  font-size: clamp(62px, 12vw, 142px);
  line-height: 0.86;
}

.rich-hero .site-hero-copy > p:not(.eyebrow) {
  max-width: 580px;
  color: #44506a;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.45;
}

.trust-row {
  gap: 10px;
  flex-wrap: wrap;
}

.trust-row span {
  border: 1px solid rgba(210, 220, 235, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #23324d;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.vexo-device {
  min-height: 520px;
  border: 0;
  border-radius: 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at 28% 20%, rgba(33, 212, 253, 0.35), transparent 26%),
    radial-gradient(circle at 78% 28%, rgba(109, 54, 255, 0.46), transparent 30%),
    linear-gradient(160deg, #060a14 0%, #101a31 58%, #09111f 100%);
  box-shadow: 0 34px 90px rgba(7, 11, 24, 0.28);
}

.vexo-device::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  pointer-events: none;
}

.vexo-device .device-logo {
  width: 128px;
  height: 128px;
  margin: 40px auto 20px;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(33, 212, 253, 0.30));
}

.vexo-device strong {
  display: block;
  font-family: Oxanium, "Space Grotesk", sans-serif;
  font-size: 42px;
}

.device-status {
  width: fit-content;
  margin-left: auto;
  color: #b9f8dc;
  background: rgba(255, 255, 255, 0.08);
}

.device-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.device-mini-grid div,
.device-server-list span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.device-server-list {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
}

.device-server-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.78);
}

.device-server-list b {
  color: #ffffff;
}

.rich-strip {
  width: min(1180px, calc(100% - 32px));
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.rich-strip article {
  min-height: 118px;
  padding: 22px;
  border: 1px solid rgba(210, 220, 235, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.rich-strip strong {
  display: block;
  color: var(--lux-ink);
  font-size: 26px;
}

.rich-strip span {
  color: #667085;
}

.site-section {
  width: min(1180px, calc(100% - 32px));
}

.site-section-head h2 {
  color: var(--lux-ink);
  font-size: clamp(34px, 4vw, 58px);
}

.feature-card,
.price-card,
.download-card,
.site-doc,
.promo-card {
  border: 1px solid rgba(210, 220, 235, 0.86);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.feature-card:hover,
.price-card:hover,
.download-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 68px rgba(15, 23, 42, 0.12);
}

.version-card.is-featured,
.price-card.is-featured {
  color: #ffffff;
  background: linear-gradient(160deg, #07101f 0%, #162242 100%);
  border-color: rgba(255, 255, 255, 0.12);
}

.version-card.is-featured h3,
.version-card.is-featured p,
.version-card.is-featured li,
.price-card.is-featured h3,
.price-card.is-featured p,
.price-card.is-featured strong {
  color: #ffffff;
}

.download-card.is-ready::after {
  content: "download";
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--lux-blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.cabinet-shell {
  background:
    radial-gradient(circle at 50% -10%, rgba(21, 93, 252, 0.13), transparent 32%),
    #f4f7fc;
}

.cabinet-sidebar {
  border-right: 1px solid rgba(210, 220, 235, 0.86);
  box-shadow: 18px 0 52px rgba(15, 23, 42, 0.05);
}

.cabinet-main {
  gap: 18px;
}

.cabinet-hero {
  overflow: hidden;
  border: 1px solid rgba(210, 220, 235, 0.86);
  border-radius: 30px;
  background:
    radial-gradient(circle at 86% 18%, rgba(33, 212, 253, 0.18), transparent 26%),
    linear-gradient(145deg, #ffffff 0%, #eef5ff 100%);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.10);
}

.cabinet-hero h1 {
  margin: 0;
  color: var(--lux-ink);
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.95;
}

.cabinet-panel,
.subscription-card,
.order-card {
  border-radius: 26px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.subscription-card {
  overflow: hidden;
  background: #ffffff;
}

.subscription-head {
  background:
    radial-gradient(circle at 90% 10%, rgba(33, 212, 253, 0.20), transparent 24%),
    linear-gradient(145deg, #070b18 0%, #14213b 100%);
}

.cabinet-nav {
  gap: 8px;
}

.cabinet-nav-item.is-active {
  color: #ffffff;
  background: #070b18;
}

.cabinet-locked .cabinet-main {
  width: min(100%, 760px);
}

.cabinet-locked .cabinet-hero {
  min-height: 460px;
  align-content: center;
}

@media (max-width: 900px) {
  .site-nav {
    width: calc(100% - 20px);
    border-radius: 18px;
  }

  .rich-hero,
  .rich-strip,
  .site-section {
    width: calc(100% - 22px);
  }

  .rich-strip {
    grid-template-columns: 1fr 1fr;
  }

  .vexo-device {
    min-height: 430px;
  }
}

@media (max-width: 560px) {
  .rich-hero {
    padding: 24px;
    border-radius: 28px;
  }

  .rich-strip {
    grid-template-columns: 1fr;
  }

  .site-actions {
    grid-template-columns: 1fr;
  }

  .rich-hero h1 {
    font-size: 64px;
  }
}

/* Layout rescue: stable premium site + cabinet */
body {
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-nav,
.site-hero,
.site-section,
.rich-strip,
.cabinet-main {
  box-sizing: border-box;
}

.site-shell .site-nav {
  min-height: 72px;
  padding: 12px 16px;
}

.site-shell .site-nav nav {
  row-gap: 8px;
}

.site-shell .site-nav nav a {
  padding: 8px 10px;
  font-size: 14px;
}

.site-logo strong,
.brand-word {
  font-family: Oxanium, Manrope, sans-serif;
  letter-spacing: 0;
}

.rich-hero {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
  min-height: auto;
  padding: clamp(34px, 5vw, 64px);
}

.rich-hero .site-hero-copy {
  width: 100%;
  max-width: 620px;
}

.rich-hero h1 {
  max-width: 680px;
  font-size: clamp(58px, 9vw, 112px);
  line-height: 0.9;
}

.rich-hero .site-hero-copy > p:not(.eyebrow) {
  margin: 22px 0 0;
  max-width: 560px;
  color: #4a556c;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.55;
}

.site-actions {
  display: flex;
}

.vexo-device {
  width: min(100%, 410px);
  max-height: 540px;
  min-height: 0;
  height: auto;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  padding: 22px;
  text-align: left;
}

.vexo-device .device-status {
  margin: 0 0 4px auto;
}

.vexo-device .device-logo {
  width: 94px;
  height: 94px;
  margin: 4px auto 0;
  align-self: center;
}

.vexo-device strong {
  align-self: center;
  color: #ffffff;
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1;
}

.vexo-device > span {
  align-self: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.vexo-device .device-mini-grid {
  width: 100%;
  margin: 4px 0 0;
}

.vexo-device .device-mini-grid div {
  padding: 12px 10px;
  border-radius: 16px;
  text-align: center;
}

.vexo-device .device-mini-grid b {
  color: #ffffff;
  font-size: 22px;
}

.vexo-device .device-mini-grid small {
  color: rgba(255, 255, 255, 0.62);
}

.vexo-device .device-server-list {
  width: 100%;
  margin: 0;
  gap: 8px;
}

.vexo-device .device-server-list span {
  min-height: 46px;
  border-radius: 14px;
}

.rich-strip {
  padding: 0;
  margin: 22px auto 0;
}

.site-section:not(.rich-strip) {
  margin: 0 auto;
}

.site-section-head h2,
.site-section h2 {
  font-family: Manrope, Inter, system-ui, sans-serif;
  letter-spacing: 0;
}

.site-hero h1,
.cabinet-hero h1 {
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.cabinet-shell {
  font-family: Manrope, Inter, system-ui, sans-serif;
}

.cabinet-locked {
  align-items: start;
  justify-items: center;
  padding: 22px;
}

.cabinet-locked .cabinet-sidebar {
  position: relative;
  inset: auto;
  width: min(100%, 860px);
  margin: 0 auto 18px;
  padding: 12px 14px;
  border: 1px solid rgba(210, 220, 235, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.cabinet-locked .cabinet-main {
  width: min(100%, 860px);
  padding: 0 0 28px;
}

.cabinet-locked .cabinet-hero {
  min-height: auto;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 28px;
  align-content: start;
  background:
    radial-gradient(circle at 88% 0%, rgba(33, 212, 253, 0.16), transparent 28%),
    linear-gradient(145deg, #ffffff 0%, #eef5ff 100%);
}

.cabinet-locked .cabinet-hero h1 {
  max-width: 760px;
  color: #070b18;
  font-size: clamp(42px, 8vw, 74px);
  line-height: 0.96;
}

.cabinet-locked .cabinet-hero p {
  max-width: 600px;
  margin-bottom: 0;
  color: #536078;
  font-size: 17px;
}

.cabinet-auth {
  max-width: 560px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(210, 220, 235, 0.72);
}

.cabinet-auth .email-input,
.cabinet-auth .primary-button {
  min-height: 52px;
  border-radius: 14px;
}

.cabinet-unlocked .cabinet-sidebar {
  background: rgba(255, 255, 255, 0.92);
}

.cabinet-unlocked .cabinet-main {
  width: min(100%, 1180px);
}

.cabinet-unlocked .cabinet-hero,
.cabinet-panel,
.subscription-card,
.order-card {
  border-radius: 22px;
}

@media (max-width: 940px) {
  .rich-hero {
    grid-template-columns: 1fr;
  }

  .vexo-device {
    justify-self: center;
    width: min(100%, 440px);
  }
}

@media (max-width: 620px) {
  .site-shell .site-nav {
    width: calc(100% - 18px);
    margin-top: 9px;
  }

  .rich-hero {
    width: calc(100% - 18px);
    padding: 22px;
  }

  .rich-hero h1 {
    font-size: 56px;
  }

  .vexo-device {
    padding: 18px;
  }

  .cabinet-locked {
    padding: 12px;
  }

  .cabinet-locked .cabinet-sidebar,
  .cabinet-locked .cabinet-main {
    width: 100%;
  }
}
