/* XVPN site — Akenai-style base (design tokens) */

:root {
  --site-font-sans: Manrope, system-ui, -apple-system, sans-serif;
  --site-font-headings: "Space Grotesk", system-ui, sans-serif;
  --site-container-max: 64rem;
  --site-radius: 0.5rem;
  --site-radius-lg: 1rem;
  --site-space: 1rem;
  --site-space-lg: 1.5rem;
  --site-space-xl: 2rem;
  /* Dark (Akenai) */
  --site-bg-dark: #15161a;
  --site-text-dark: #f0f0f2;
  --site-dimmed-dark: #8a8a94;
  --site-border-dark: rgba(255, 255, 255, 0.08);
  --site-accent: #7ed321;
  --site-accent-hover: #6fbe1d;
  --site-accent-light: rgba(126, 211, 33, 0.15);
  /* Light */
  --site-bg-light: #f6f7f9;
  --site-text-light: #1a1a1a;
  --site-dimmed-light: #45454d;
  --site-border-light: rgba(0, 0, 0, 0.08);
  --site-text: var(--site-text-dark);
  --site-text-muted: var(--site-dimmed-dark);
  --site-border: var(--site-border-dark);
  --site-panel: rgba(255, 255, 255, 0.04);
}

.luxury-light {
  --site-text: var(--site-text-light);
  --site-text-muted: var(--site-dimmed-light);
  --site-border: var(--site-border-light);
  --site-panel: rgba(255, 255, 255, 0.88);
}

/* Local preflight (Tailwind-like) to keep layout stable without CDN base reset */
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: currentColor;
}

html,
:host {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: var(--site-font-sans);
  font-feature-settings: normal;
  font-variation-settings: normal;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  line-height: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

p,
figure,
blockquote,
dl,
dd,
pre {
  margin: 0;
}

ol,
ul,
menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: inherit;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  vertical-align: middle;
}

img,
video {
  max-width: 100%;
  height: auto;
}

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}

button,
input,
optgroup,
select,
textarea {
  font: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
}

textarea {
  resize: vertical;
}

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--site-font-sans);
  overflow-x: hidden;
  scroll-behavior: smooth;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#site-app {
  overflow-x: hidden;
  max-width: 100vw;
}

.ui-title,
.page-title,
.card-title,
h1, h2, h3 {
  font-family: var(--site-font-headings);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.dark .ui-title,
.luxury-dark .ui-title {
  color: #f0f0f2;
}

.luxury-light .ui-title {
  color: #0f0f12;
}

.ui-subtitle {
  color: #72727c;
  letter-spacing: 0.01em;
}

.dark .ui-subtitle,
.luxury-dark .ui-subtitle {
  color: #9a9aa4;
}

.luxury-light .ui-subtitle {
  color: #4d4d57;
}

.ui-card {
  border-radius: var(--site-radius-lg);
  border: 1px solid var(--site-border-dark);
  margin-bottom: var(--site-space);
  background: rgba(21, 22, 26, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.2s ease;
}

.ui-card:hover {
  border-color: rgba(126, 211, 33, 0.28);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(126, 211, 33, 0.08), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  transform: translateY(-2px);
}

.luxury-light .ui-card {
  border-color: var(--site-border-light);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.luxury-light .ui-card:hover {
  border-color: rgba(126, 211, 33, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(126, 211, 33, 0.1), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transform: translateY(-2px);
}

.ui-btn {
  border-radius: 0.875rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ui-btn-primary {
  background: var(--site-accent);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(126, 211, 33, 0.3);
}

.ui-btn-primary:hover {
  transform: translateY(-2px);
  background: var(--site-accent-hover);
  box-shadow: 0 6px 16px rgba(126, 211, 33, 0.4);
}

.ui-btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--site-accent-light), 0 2px 8px rgba(126, 211, 33, 0.3);
}

.ui-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8e8ec;
  background: rgba(255, 255, 255, 0.04);
}

.ui-btn-secondary:hover {
  border-color: var(--site-accent);
  background: var(--site-accent-light);
  color: var(--site-accent);
}

.ui-btn-secondary:focus-visible {
  outline: none;
  border-color: var(--site-accent);
  box-shadow: 0 0 0 3px var(--site-accent-light);
}

.luxury-light .ui-btn-secondary {
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--site-text-light);
  background: rgba(0, 0, 0, 0.03);
}

.luxury-light .ui-btn-secondary:hover {
  border-color: var(--site-accent);
  background: var(--site-accent-light);
  color: var(--site-accent-hover);
}

.ui-input {
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #f0f0f2;
  padding: 0.75rem 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ui-input:focus,
.ui-input:focus-visible {
  outline: none;
  border-color: var(--site-accent);
  box-shadow: 0 0 0 3px var(--site-accent-light);
}

.luxury-light .ui-input {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: #0a0a0b;
}

.luxury-light .ui-input:focus {
  border-color: var(--site-accent);
  box-shadow: 0 0 0 3px var(--site-accent-light);
}

.method-dropdown {
  position: relative;
  width: 100%;
  z-index: 5;
}

.method-dropdown.is-open {
  z-index: 30;
}

.method-dropdown__trigger {
  width: 100%;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #f0f0f2;
  padding: 0.625rem 2.25rem 0.625rem 0.875rem;
  text-align: left;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.method-dropdown__trigger:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.method-dropdown.is-open .method-dropdown__trigger,
.method-dropdown__trigger:focus-visible {
  outline: none;
  border-color: var(--site-accent);
  box-shadow: 0 0 0 3px var(--site-accent-light);
}

.method-dropdown__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.method-dropdown__chevron {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  width: 0.9rem;
  height: 0.9rem;
  margin-top: -0.45rem;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.method-dropdown__chevron::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  clip-path: polygon(50% 70%, 10% 30%, 20% 20%, 50% 50%, 80% 20%, 90% 30%);
  opacity: 0.75;
}

.method-dropdown.is-open .method-dropdown__chevron {
  transform: rotate(180deg);
}

.method-dropdown__menu {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 0.4rem);
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #171920;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  padding: 0.35rem;
  display: none;
  max-height: min(18rem, calc(100vh - 2rem));
  overflow-y: auto;
}

.method-dropdown.is-open .method-dropdown__menu {
  display: block;
}

.method-dropdown.method-dropdown--up .method-dropdown__menu {
  top: auto;
  bottom: calc(100% + 0.4rem);
}

.method-dropdown__option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: inherit;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
}

.method-dropdown__option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.method-dropdown__option.is-selected {
  background: rgba(126, 211, 33, 0.2);
  color: #eaf9d9;
}

.luxury-light .method-dropdown__trigger {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: #0a0a0b;
}

.luxury-light .method-dropdown__trigger:hover {
  border-color: rgba(0, 0, 0, 0.22);
}

.luxury-light .method-dropdown__menu {
  border-color: rgba(0, 0, 0, 0.12);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.15);
}

.luxury-light .method-dropdown__option:hover {
  background: rgba(0, 0, 0, 0.05);
}

.luxury-light .method-dropdown__option.is-selected {
  background: rgba(126, 211, 33, 0.14);
  color: #2e5d31;
}

.seg-btn {
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #e8e8ec;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.seg-btn--plan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.plan-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}

.seg-btn:hover {
  border-color: var(--site-accent);
  background: var(--site-accent-light);
  color: var(--site-accent);
}

.seg-btn-active {
  border-color: var(--site-accent) !important;
  background: var(--site-accent-light) !important;
  color: var(--site-accent) !important;
}

.luxury-light .seg-btn {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
  color: var(--site-text-light);
}

.luxury-light .seg-btn:hover {
  border-color: var(--site-accent);
  background: var(--site-accent-light);
}

.luxury-light .seg-btn-active {
  border-color: var(--site-accent) !important;
  background: var(--site-accent-light) !important;
  color: var(--site-accent-hover) !important;
}

.hero-glow {
  background: radial-gradient(ellipse 90% 60% at 50% -15%, rgba(126, 211, 33, 0.12), transparent 55%),
              radial-gradient(ellipse 70% 50% at 85% 15%, rgba(126, 211, 33, 0.06), transparent 50%),
              radial-gradient(ellipse 50% 40% at 15% 30%, rgba(126, 211, 33, 0.04), transparent 45%);
  animation: heroGlow 12s ease-in-out infinite;
}

.luxury-light .hero-glow {
  background: radial-gradient(ellipse 90% 60% at 50% -15%, rgba(126, 211, 33, 0.08), transparent 55%),
              radial-gradient(ellipse 70% 50% at 85% 15%, rgba(126, 211, 33, 0.05), transparent 50%);
  animation: heroGlow 14s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.88;
  }
}

.header-glass {
  background: rgba(21, 22, 26, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--site-border-dark);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.luxury-light .header-glass {
  background: rgba(246, 247, 249, 0.9);
  border-bottom-color: var(--site-border-light);
}

.link-luxury:hover {
  color: var(--site-accent);
}

.link-luxury:focus-visible {
  outline: none;
  color: var(--site-accent);
  border-radius: 4px;
  box-shadow: 0 0 0 2px var(--site-accent-light);
}

.luxury-light .link-luxury:hover {
  color: var(--site-accent-hover);
}

.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

.luxury-dark {
  background-color: var(--site-bg-dark);
  color: var(--site-text-dark);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(126, 211, 33, 0.03) 0%, transparent 50%);
}

.luxury-light {
  background-color: var(--site-bg-light);
  color: var(--site-text-light);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(126, 211, 33, 0.04) 0%, transparent 45%);
}

/* Светлая тема: переопределяем утилиты Tailwind и общий текст для читаемости */
.luxury-light .text-luxury-platinum,
.luxury-light [class*="text-luxury-platinum"] {
  color: #1a1a20 !important;
}

.luxury-light .text-luxury-muted,
.luxury-light [class*="text-luxury-muted"] {
  color: #505059 !important;
}

.luxury-light main,
.luxury-light main * {
  color: inherit;
}

.luxury-light header a,
.luxury-light header button {
  color: #1a1a20;
}

.luxury-light header a:hover,
.luxury-light header button:hover {
  color: var(--site-accent-hover);
}

.luxury-light footer a {
  color: #505059;
}

.luxury-light footer a:hover {
  color: var(--site-accent-hover);
}

/* ========== Layout (вместо Tailwind) ========== */

.site-container {
  max-width: var(--site-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 767px) {
  .site-container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

/* --- Nav (Akenai-style) --- */
.nav-shell {
  border-bottom: 1px solid var(--site-border-dark);
}

.luxury-light .nav-shell {
  border-bottom-color: var(--site-border-light);
}

.site-header-inner.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4.75rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  flex-wrap: nowrap;
}

@media (min-width: 1361px) {
  .site-header-inner.nav-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
}

.nav-brand {
  font-family: var(--site-font-headings);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
  white-space: nowrap;
}

.nav-links {
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 700;
  min-width: 0;
}

.nav-close {
  display: none;
}

@media (min-width: 1361px) {
  .site-nav.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
  }

  .nav-close {
    display: none !important;
  }

  .nav-actions-mobile {
    display: none !important;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.55rem;
  padding: 0.55rem 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.025);
  color: inherit;
  text-decoration: none;
  opacity: 0.92;
  white-space: nowrap;
  transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.luxury-light .nav-link {
  border-color: rgba(20, 31, 44, 0.14);
  background: rgba(255, 255, 255, 0.68);
}

.nav-link:hover {
  opacity: 1;
  color: var(--site-accent);
  text-decoration: none;
  border-color: rgba(126, 211, 33, 0.42);
  background: rgba(126, 211, 33, 0.08);
}

.luxury-light .nav-link:hover {
  color: var(--site-accent-hover);
  background: rgba(126, 211, 33, 0.12);
}

.nav-link::before {
  display: none !important;
  content: none !important;
}

.nav-link-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex: 0 0 auto;
  margin-left: 0;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 0.78rem;
  font-size: 0.875rem;
  font-weight: 700;
  min-height: 2.55rem;
  border-radius: 0.55rem;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.035);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-nav:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}

.luxury-light .btn-nav {
  border-color: rgba(20, 31, 44, 0.18);
  background: rgba(255, 255, 255, 0.7);
}

.luxury-light .btn-nav:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.25);
}

.nav-settings-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 0.78rem;
  min-height: 2.55rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.nav-settings-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  color: inherit;
}

.luxury-light .nav-settings-link {
  border-color: rgba(20, 31, 44, 0.18);
  background: rgba(255, 255, 255, 0.7);
}

.nav-settings-link::after {
  display: none !important;
  content: none !important;
}

.nav-settings-alert {
  position: absolute;
  top: -0.34rem;
  right: -0.34rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  border: 2px solid var(--site-bg);
  background: #ff3f5f;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 7px 18px rgba(255, 63, 95, 0.34);
}

.nav-settings-alert[hidden] {
  display: none !important;
}

.luxury-light .nav-settings-alert {
  border-color: #f6f7f9;
}

.luxury-light .nav-settings-link:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.25);
}

.nav-icon {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-action-label {
  display: none;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* Theme toggle: one button, sun/moon icon by current theme */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
}

@media (min-width: 1181px) {
  .nav-actions .btn-nav,
  .nav-actions .nav-settings-link {
    width: 2.75rem;
    padding-inline: 0;
  }
}

.theme-toggle-btn .theme-icon {
  display: none;
  align-items: center;
  justify-content: center;
}
.luxury-light .theme-icon-sun,
.luxury-dark .theme-icon-moon {
  display: inline-flex !important;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.header-glass.nav-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  width: 100%;
}

/* Выравниваем ширину хедера с основным контентом ниже (.site-main = 72rem) */
.header-glass .site-container {
  max-width: none;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #e8e8ec;
  transition: color 0.3s ease;
}

.luxury-light .site-logo {
  color: #1a1a20;
}

.site-nav {
  display: none;
  color: var(--site-dimmed-dark);
}

.luxury-light .site-nav {
  color: var(--site-dimmed-light);
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-main {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 1.5rem;
  padding-top: 5.5rem; /* место под фиксированный header-glass */
}

@media (min-width: 768px) {
  .site-main {
    padding-top: 5.5rem;
    padding-bottom: 4rem;
  }
}

/* Hero (Akenai-style) */
.hero-section.hero {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  min-height: auto;
  position: relative;
  overflow: clip;
  isolation: isolate;
}

.hero-media-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-media-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: saturate(1.01) contrast(1.02) brightness(1);
}

.hero-media-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 15, 20, 0.24) 0%, rgba(13, 15, 20, 0.38) 100%);
}

.luxury-light .hero-media-bg img {
  opacity: 0.2;
  filter: saturate(0.96) contrast(1) brightness(1.08);
}

.luxury-light .hero-media-bg::after {
  background: linear-gradient(180deg, rgba(246, 247, 249, 0.22) 0%, rgba(246, 247, 249, 0.36) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 767px) {
  .hero-media-bg img {
    opacity: 0.29;
    object-position: center top;
  }

  .hero-point {
    width: 100%;
    justify-content: center;
  }

  .hero-visual-frame {
    min-height: 17rem;
  }

  .hero-device-collage {
    width: 100%;
    margin-top: 1.5rem;
  }
}

@media (min-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--site-space);
  max-width: 34rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-point {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid rgba(126, 211, 33, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f4f7ef;
  font-size: 0.84375rem;
  line-height: 1.35;
}

.luxury-light .hero-point {
  background: rgba(255, 255, 255, 0.68);
  color: #1d2320;
  border-color: rgba(126, 211, 33, 0.22);
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.hero-visual-frame {
  position: relative;
  min-height: 23rem;
  border-radius: 2rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(126, 211, 33, 0.26), transparent 34%),
    radial-gradient(circle at 82% 24%, rgba(70, 145, 255, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(9, 11, 15, 0.88), rgba(18, 22, 28, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.luxury-light .hero-visual-frame {
  background:
    radial-gradient(circle at 18% 18%, rgba(126, 211, 33, 0.2), transparent 34%),
    radial-gradient(circle at 82% 24%, rgba(70, 145, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(248, 250, 248, 0.92), rgba(233, 238, 234, 0.94));
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 40px rgba(34, 41, 39, 0.1);
}

.hero-device-collage {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 38rem);
  margin: 1rem auto 0;
  object-fit: contain;
  object-position: center bottom;
}

.hero-visual-frame.is-empty::before {
  content: "Product render";
  position: absolute;
  inset: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.5rem;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--site-font-headings);
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.luxury-light .hero-visual-frame.is-empty::before {
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(20, 26, 24, 0.52);
}

.hero-visual-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(18px);
  opacity: 0.55;
}

.hero-visual-orb--one {
  width: 8rem;
  height: 8rem;
  left: -1.25rem;
  bottom: 2rem;
  background: rgba(126, 211, 33, 0.2);
}

.hero-visual-orb--two {
  width: 7rem;
  height: 7rem;
  right: 1rem;
  top: 1rem;
  background: rgba(255, 93, 93, 0.12);
}

.hero-brand-block {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-self: flex-start;
}

.brand-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--site-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.brand-avatar:has(img) .brand-avatar-initial {
  display: none;
}

.brand-avatar-initial {
  font-family: var(--site-font-headings);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
}

.brand-text {
  min-width: 0;
}

.brand-name {
  font-family: var(--site-font-headings);
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.luxury-dark .brand-name {
  color: var(--site-text-dark);
}

.luxury-light .brand-name {
  color: var(--site-text-light);
}

.brand-subtitle {
  font-size: 0.8125rem;
  margin: 0.25rem 0 0 0;
  color: var(--site-dimmed-dark);
}

.luxury-light .brand-subtitle {
  color: var(--site-dimmed-light);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 9999px;
  background: var(--site-accent-light);
  color: var(--site-accent);
  border: 1px solid transparent;
}

.luxury-light .hero-badge {
  background: var(--site-accent-light);
  color: var(--site-accent-hover);
}

.hero-title {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 0;
}

.hero-title span {
  color: var(--site-accent);
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 4rem;
  }
}

.hero-subtitle {
  font-size: 1.0625rem;
  max-width: 32rem;
  margin-bottom: 0;
  line-height: 1.6;
  color: var(--site-dimmed-dark);
}

.luxury-light .hero-subtitle {
  color: var(--site-dimmed-light);
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.125rem;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.hero-actions .ui-btn {
  flex: 1 1 12rem;
}

.hero-proxy-block {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.45rem;
  padding: 0.88rem 0.88rem 0.8rem;
  border-radius: 1rem;
  border: 1px solid rgba(126, 211, 33, 0.16);
  background:
    linear-gradient(180deg, rgba(126, 211, 33, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(12, 16, 20, 0.72);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.luxury-light .hero-proxy-block {
  border-color: rgba(126, 211, 33, 0.18);
  background:
    linear-gradient(180deg, rgba(126, 211, 33, 0.07), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(27, 33, 28, 0.1);
}

.hero-proxy-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
}

.hero-proxy-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.26rem 0.58rem 0.26rem 0.44rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--site-accent);
  background: rgba(126, 211, 33, 0.12);
}

.hero-proxy-kicker__icon,
.hero-proxy-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--site-accent);
}

.hero-proxy-kicker__icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.hero-proxy-label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--site-text-dark);
}

.luxury-light .hero-proxy-label {
  color: var(--site-text-light);
}

.hero-proxy-count {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--site-dimmed-dark);
  background: rgba(255, 255, 255, 0.05);
}

.luxury-light .hero-proxy-count {
  color: var(--site-dimmed-light);
  background: rgba(0, 0, 0, 0.05);
}

.hero-proxy-note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
}

.hero-proxy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-proxy-btn {
  flex: 1 1 11rem;
  min-width: min(100%, 10rem);
  justify-content: space-between;
  gap: 0.55rem;
  text-align: left;
  font-weight: 700;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  background: rgba(255, 255, 255, 0.055);
}

.hero-proxy-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1 1 18rem;
  min-width: min(100%, 17rem);
}

.hero-proxy-row .hero-proxy-btn {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-proxy-icon-btn {
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 2.6rem;
  min-width: 2.6rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(126, 211, 33, 0.38);
  color: #b9f178;
  background: rgba(126, 211, 33, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.hero-proxy-icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(126, 211, 33, 0.55);
  background: rgba(126, 211, 33, 0.14);
}

.hero-proxy-icon-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(126, 211, 33, 0.2);
}

.hero-proxy-icon-btn svg {
  width: 1rem;
  height: 1rem;
}

.luxury-light .hero-proxy-btn {
  background: rgba(255, 255, 255, 0.75);
}

.luxury-light .hero-proxy-icon-btn {
  color: #5b8f20;
  background: rgba(126, 211, 33, 0.11);
  border-color: rgba(111, 190, 29, 0.45);
}

.hero-proxy-btn__icon svg {
  width: 1rem;
  height: 1rem;
}

.hero-proxy-btn__label {
  min-width: 0;
  font-size: 0.92rem;
}

.hero-proxy-btn__arrow {
  flex-shrink: 0;
  font-size: 1.1rem;
  opacity: 0.8;
}

.hero-proxy-btn:hover .hero-proxy-btn__arrow {
  transform: translate(1px, -1px);
}

.hero-card {
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  display: block;
  text-align: left;
  border-color: rgba(126, 211, 33, 0.14);
  background: rgba(14, 17, 22, 0.74);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.luxury-light .hero-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(126, 211, 33, 0.16);
}

.hero-card--link:hover {
  border-color: rgba(126, 211, 33, 0.35);
}

@media (min-width: 768px) {
  .hero-card {
    padding: 1.75rem;
  }
}

.hero-card .hero-brand-block {
  margin-bottom: 0.85rem;
}

.hero-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}
.hero-card-subtitle {
  margin-top: 0.5rem;
  margin-bottom: 0;
  line-height: 1.55;
}
.hero-card-list {
  margin-bottom: 1rem;
}

.hero-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.hero-chip {
  display: inline-block;
  padding: 0.34rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: var(--site-radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--site-dimmed-dark);
}

.luxury-light .hero-chip {
  background: rgba(0, 0, 0, 0.06);
  color: var(--site-dimmed-light);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  color: #e8e8ec;
}

.luxury-light .card-title {
  color: #1a1a20;
}

.list-spaced {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1rem;
}

.list-item-with-dot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.list-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: var(--site-accent);
  flex-shrink: 0;
}

/* Sections */
.section-plans {
  margin-top: 5rem;
}

@media (min-width: 768px) {
  .section-plans {
    margin-top: 7rem;
  }
}

.section-title {
  font-size: 1.875rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.page-title {
  font-size: 2.25rem;
  margin-top: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .page-title {
    font-size: 3rem;
  }
}

.pricing-card {
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .pricing-card {
    padding: 2rem;
  }
}

.pricing-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: #e8e8ec;
}

.luxury-light .pricing-card__title {
  color: #1a1a20;
}

.pricing-card__price {
  font-size: 2.25rem;
  font-weight: 700;
  margin-top: 0.25rem;
  color: var(--site-accent);
}

.pricing-card__meta {
  font-size: 0.875rem;
  margin-top: 0.25rem;
  color: #8a8a94;
}

.luxury-light .pricing-card__meta {
  color: #505059;
}

.pricing-card__list {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: #8a8a94;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.luxury-light .pricing-card__list {
  color: #505059;
}

.pricing-card__cta {
  margin-top: 1.5rem;
  display: inline-block;
}

.pricing-error {
  font-size: 0.875rem;
  color: #ef4444;
}

.pricing-grid,
.grid-4 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .pricing-grid,
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.grid-2 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.section-space-lg {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-showcase {
  position: relative;
  overflow: clip;
  padding: clamp(0.9rem, 2vw, 1.5rem);
  border-radius: 1.75rem;
  border: 1px solid rgba(126, 211, 33, 0.14);
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(126, 211, 33, 0.12), transparent 60%),
    radial-gradient(110% 140% at 100% 100%, rgba(71, 145, 255, 0.08), transparent 58%),
    linear-gradient(180deg, rgba(10, 13, 18, 0.9), rgba(11, 15, 20, 0.72));
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.luxury-light .product-showcase {
  border-color: rgba(15, 21, 20, 0.12);
  background:
    radial-gradient(85% 110% at 0% 0%, rgba(98, 170, 29, 0.14), transparent 62%),
    radial-gradient(95% 130% at 100% 100%, rgba(75, 118, 211, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(249, 251, 248, 0.96), rgba(240, 244, 239, 0.92));
  box-shadow: 0 22px 64px rgba(24, 29, 24, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.product-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 40%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 14px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 120%);
}

.product-showcase-head {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 58rem;
  position: relative;
  z-index: 1;
}

.product-showcase-title,
.product-showcase-intro {
  margin: 0;
}

.product-showcase-carousel {
  position: relative;
  z-index: 1;
}

.product-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.showcase-card {
  position: relative;
  padding: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(165deg, rgba(18, 22, 30, 0.8), rgba(12, 15, 20, 0.9));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(126, 211, 33, 0.14), transparent 35%);
  opacity: 0.28;
}

.luxury-light .showcase-card {
  border-color: rgba(15, 21, 20, 0.12);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 241, 0.96));
  box-shadow: 0 16px 36px rgba(20, 24, 20, 0.09);
}

.showcase-card--featured {
  border-color: rgba(126, 211, 33, 0.24);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.34);
}

.showcase-card--featured .showcase-title {
  font-size: 1.38rem;
}

.showcase-card--secondary {
  opacity: 0.96;
}

.showcase-shot {
  position: relative;
  min-height: 20rem;
  border-radius: 1.35rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(126, 211, 33, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(7, 10, 13, 0.98), rgba(10, 13, 16, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.luxury-light .showcase-shot {
  background:
    radial-gradient(circle at 50% 0%, rgba(126, 211, 33, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(246, 248, 246, 0.96), rgba(236, 240, 236, 0.97));
  border-color: rgba(0, 0, 0, 0.1);
}

.showcase-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.34));
}

.showcase-shot.is-empty::before {
  content: "Screenshot preview";
  position: absolute;
  inset: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--site-font-headings);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.luxury-light .showcase-shot.is-empty::before {
  border-color: rgba(0, 0, 0, 0.12);
  color: rgba(20, 26, 24, 0.52);
}

.showcase-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--site-accent);
}

.showcase-title {
  margin: 0;
  font-family: var(--site-font-headings);
  font-size: 1.22rem;
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.luxury-dark .showcase-title {
  color: var(--site-text-dark);
}

.luxury-light .showcase-title {
  color: var(--site-text-light);
}

.showcase-desc {
  display: none;
}

.product-showcase-controls {
  display: none;
}

@media (max-width: 767px) {
  .product-showcase {
    padding: 0.68rem;
    border-radius: 1rem;
  }

  .product-showcase-carousel {
    overflow: hidden;
  }

  .product-showcase-grid[data-showcase-track] {
    display: flex;
    gap: 0;
    transform: translate3d(0, 0, 0);
    transition: transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
  }

  .product-showcase-grid[data-showcase-track] .showcase-card {
    flex: 0 0 100%;
    width: 100%;
    min-height: 100%;
    padding: 0.8rem;
    transform: scale(0.95);
    opacity: 0.66;
    transition: transform 0.32s ease, opacity 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.09);
  }

  .product-showcase-grid[data-showcase-track] .showcase-card.is-active {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.38);
    border-color: rgba(126, 211, 33, 0.38);
  }

  .luxury-light .product-showcase-grid[data-showcase-track] .showcase-card {
    border-color: rgba(18, 24, 22, 0.14);
    box-shadow: 0 12px 26px rgba(19, 24, 20, 0.11);
  }

  .luxury-light .product-showcase-grid[data-showcase-track] .showcase-card.is-active {
    border-color: rgba(99, 170, 31, 0.42);
    box-shadow: 0 20px 42px rgba(19, 24, 20, 0.14);
  }

  .product-showcase-grid[data-showcase-track] .showcase-card .showcase-shot {
    min-height: 14rem;
  }

  .product-showcase-grid[data-showcase-track] .showcase-card .showcase-title {
    font-size: 0.85rem;
  }

  .product-showcase-controls {
    margin-top: 0.56rem;
    display: grid;
    grid-template-columns: 1.76rem 1fr 1.76rem;
    align-items: center;
    gap: 0.36rem;
  }

  .product-showcase-nav {
    width: 1.76rem;
    height: 1.76rem;
    border: 0;
    border-radius: 999px;
    padding: 0;
    font-size: 1.16rem;
    line-height: 1;
    color: #f7faf5;
    background: rgba(255, 255, 255, 0.09);
    transition: background-color 0.2s ease, transform 0.2s ease;
  }

  .product-showcase-nav:active {
    transform: scale(0.96);
  }

  .luxury-light .product-showcase-nav {
    color: #131816;
    background: rgba(0, 0, 0, 0.08);
  }

  .product-showcase-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
  }

  .product-showcase-dot {
    width: 0.38rem;
    height: 0.38rem;
    border: 0;
    border-radius: 999px;
    background: rgba(120, 126, 134, 0.45);
    padding: 0;
    transition: transform 0.2s ease, background-color 0.2s ease, width 0.2s ease;
  }

  .product-showcase-dot.is-active {
    width: 1.08rem;
    background: var(--site-accent);
    transform: translateY(-1px);
  }

  .luxury-light .product-showcase-dot {
    background: rgba(22, 28, 26, 0.26);
  }

  .luxury-light .product-showcase-dot.is-active {
    background: var(--site-accent);
  }
}

.why-choose-section {
  padding-top: 2rem;
}

.why-choose-title {
  margin-bottom: 0.5rem;
}

.why-choose-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.why-choose-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
}

.why-choose-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 0.18rem;
  background: linear-gradient(90deg, rgba(126, 211, 33, 0.9), rgba(126, 211, 33, 0.08));
  opacity: 0.65;
  pointer-events: none;
}

@media (min-width: 640px) {
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 992px) {
  .why-choose-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
  }

  .why-choose-card {
    grid-column: span 4;
  }

  .why-choose-card:nth-child(1) {
    grid-column: span 6;
  }

  .why-choose-card:nth-child(2),
  .why-choose-card:nth-child(3) {
    grid-column: span 3;
  }

  .why-choose-card:nth-child(4),
  .why-choose-card:nth-child(5),
  .why-choose-card:nth-child(6) {
    grid-column: span 4;
  }
}

.why-choose-card__title {
  font-family: var(--site-font-headings);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem 0;
  line-height: 1.3;
}

.luxury-dark .why-choose-card__title {
  color: var(--site-text-dark);
}

.luxury-light .why-choose-card__title {
  color: var(--site-text-light);
}

.why-choose-card__desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.58;
}

.why-choose-card:nth-child(1) .why-choose-card__title {
  font-size: 1.2rem;
}

.why-choose-card:nth-child(1) .why-choose-card__desc {
  font-size: 0.98rem;
}

.why-choose-card:nth-child(1) {
  background: linear-gradient(165deg, rgba(126, 211, 33, 0.08), rgba(12, 15, 20, 0.78));
}

.luxury-light .why-choose-card:nth-child(1) {
  background: linear-gradient(165deg, rgba(126, 211, 33, 0.08), rgba(255, 255, 255, 0.94));
}

.why-choose-card:nth-child(2),
.why-choose-card:nth-child(5) {
  background: linear-gradient(165deg, rgba(71, 145, 255, 0.06), rgba(12, 15, 20, 0.8));
}

.luxury-light .why-choose-card:nth-child(2),
.luxury-light .why-choose-card:nth-child(5) {
  background: linear-gradient(165deg, rgba(71, 145, 255, 0.05), rgba(255, 255, 255, 0.93));
}

.page-intro {
  font-size: 1.125rem;
  max-width: 42rem;
  margin-bottom: 1rem;
}

.download-card {
  display: block;
  padding: 2rem;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: #e8e8ec;
  text-decoration: none;
}

.luxury-light .download-card {
  color: #1a1a20;
}

/* Download page — как в миниаппе: переключатель платформ, иконки приложений, модалка по центру */
.download-page .download-steps {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
}

.download-step__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e8e8ec;
  margin: 0 0 0.5rem 0;
}

.luxury-light .download-step__title {
  color: #1a1a20;
}

.download-step__note {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  opacity: 0.9;
}

/* Переключатель платформ в стиле сайта */
.download-platform-toggle {
  position: relative;
  width: 100%;
  height: 50px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--site-border-dark);
  border-radius: var(--site-radius-lg);
  padding: 6px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.luxury-light .download-platform-toggle {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--site-border-light);
}

.download-platform-toggle .toggle-switch-amount__bg {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: calc(var(--site-radius-lg) - 2px);
}

.download-platform-toggle .toggle-switch-amount__indicator {
  position: absolute;
  height: calc(100% - 12px);
  top: 6px;
  background: var(--site-accent);
  border-radius: var(--site-radius);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  box-shadow: 0 2px 8px rgba(126, 211, 33, 0.25);
}

.luxury-light .download-platform-toggle .toggle-switch-amount__indicator {
  box-shadow: 0 2px 8px rgba(126, 211, 33, 0.2);
}

.download-platform-toggle .toggle-switch-amount__btn {
  flex: 1;
  position: relative;
  z-index: 2;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--site-dimmed-dark);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--site-radius);
  transition: color 0.2s, background 0.2s;
  padding: 0;
  min-width: 0;
  white-space: nowrap;
}

.luxury-light .download-platform-toggle .toggle-switch-amount__btn {
  color: var(--site-dimmed-light);
}

.download-platform-toggle .toggle-switch-amount__btn:hover:not(.toggle-switch-amount__btn--active) {
  color: var(--site-text-dark);
}

.luxury-light .download-platform-toggle .toggle-switch-amount__btn:hover:not(.toggle-switch-amount__btn--active) {
  color: var(--site-text-light);
}

.download-platform-toggle .toggle-switch-amount__btn--active {
  color: #fff;
  pointer-events: none;
}

.luxury-light .download-platform-toggle .toggle-switch-amount__btn--active {
  color: #fff;
}

@media (max-width: 480px) {
  .download-platform-toggle { height: 44px; padding: 5px; }
  .download-platform-toggle .toggle-switch-amount__indicator { top: 5px; height: calc(100% - 10px); }
  .download-platform-toggle .toggle-switch-amount__btn { font-size: 11px; }
}

/* Сетка иконок приложений (как в миниаппе) */
.download-platform-icons {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 8px 0;
}

.download-platform-icons.vpn_app_icons--active {
  display: grid;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.download-page .vpn-app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 24px;
  position: relative;
  min-height: 90px;
  justify-content: flex-start;
  border: none;
  background: transparent;
  color: #e8e8ec;
}

.luxury-light .download-page .vpn-app-icon {
  color: #1a1a20;
}

.download-page .vpn-app-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.luxury-light .download-page .vpn-app-icon:hover {
  background: rgba(0, 0, 0, 0.06);
}

.download-page .vpn-app-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  z-index: 2;
  white-space: nowrap;
}

.download-page .vpn-app-badge--recommended {
  background: linear-gradient(135deg, #4CAF50, #66BB6A);
  color: #fff;
}

.download-page .vpn-app-badge--alternative {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
}

.luxury-light .download-page .vpn-app-badge--alternative {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.7);
}

.download-page .vpn-app-badge--pro {
  background: linear-gradient(135deg, #9C27B0, #BA68C8);
  color: #fff;
}

.download-page .vpn-app-icon__image {
  width: 65px;
  height: 65px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.luxury-light .download-page .vpn-app-icon__image {
  border-color: rgba(0, 0, 0, 0.1);
}

.download-page .vpn-app-icon__name {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 480px) {
  .download-platform-icons { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .download-page .vpn-app-icon__image { width: 50px; height: 50px; }
  .download-page .vpn-app-icon__name { font-size: 11px; }
}

/* Модальное окно по центру (вместо bottom sheet) */
.download-modal {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  min-width: 100vw;
  min-height: 100vh;
  z-index: 10050;
  display: none;
  pointer-events: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.download-modal.is-open {
  display: flex;
  pointer-events: auto;
}

.download-modal__backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  min-width: 100vw;
  min-height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
}

.download-modal.is-open .download-modal__backdrop {
  animation: downloadModalBackdropIn 0.18s ease-out forwards;
}

@keyframes downloadModalBackdropIn {
  to { opacity: 1; }
}

.download-modal__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: #1c1e24;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: scale(0.95);
  opacity: 0;
}

.luxury-light .download-modal__box {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

.download-modal.is-open .download-modal__box {
  animation: downloadModalBoxIn 0.22s ease-out forwards;
}

@keyframes downloadModalBoxIn {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.download-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #e8e8ec;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.luxury-light .download-modal__close {
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a20;
}

.download-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.luxury-light .download-modal__close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.download-modal__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-right: 40px;
}

.download-modal__img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.luxury-light .download-modal__img {
  border-color: rgba(0, 0, 0, 0.1);
}

.download-modal__header-text {
  flex: 1;
  min-width: 0;
}

.download-modal__name {
  margin: 0 0 4px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #e8e8ec;
}

.luxury-light .download-modal__name {
  color: #1a1a20;
}

.download-modal__badge {
  display: inline-block;
  margin-bottom: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.download-modal__badge.badge--recommended {
  background: linear-gradient(135deg, #4CAF50, #66BB6A);
  color: #fff;
}

.download-modal__badge.badge--alternative {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.luxury-light .download-modal__badge.badge--alternative {
  background: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.7);
}

.download-modal__badge.badge--pro {
  background: linear-gradient(135deg, #9C27B0, #BA68C8);
  color: #fff;
}

.download-modal__platform {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.luxury-light .download-modal__platform {
  color: rgba(0, 0, 0, 0.5);
}

.download-modal__desc {
  margin: 0 0 20px 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}

.luxury-light .download-modal__desc {
  color: rgba(0, 0, 0, 0.75);
}

.download-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-modal__actions .ui-btn {
  width: 100%;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.proxy-qr-modal__box {
  max-width: 26rem;
}

.proxy-qr-modal__image-wrap {
  margin: 0.5rem auto 0.75rem;
  width: min(100%, 18rem);
  border-radius: 1rem;
  border: 1px solid rgba(126, 211, 33, 0.24);
  background: rgba(0, 0, 0, 0.25);
  padding: 0.85rem;
}

.proxy-qr-modal__image {
  width: 100%;
  height: auto;
  border-radius: 0.6rem;
  background: #fff;
}

.proxy-qr-modal__link {
  word-break: break-all;
  margin-top: 0.25rem;
}

.luxury-light .proxy-qr-modal__image-wrap {
  border-color: rgba(111, 190, 29, 0.3);
  background: rgba(0, 0, 0, 0.03);
}

.download-step__list {
  margin: 0;
  padding-left: 1.25rem;
}

.download-step__list li {
  margin-bottom: 0.25rem;
}

.download-step3-platforms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .download-step3-platforms {
    grid-template-columns: repeat(3, 1fr);
  }
}

.download-step3-block__title {
  font-size: 1rem;
  font-weight: 600;
  color: #e8e8ec;
  margin: 0 0 0.5rem 0;
}

.luxury-light .download-step3-block__title {
  color: #1a1a20;
}

.download-step3-block__list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
}

.download-step3-block__list li {
  margin-bottom: 0.35rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: #e8e8ec;
}

.luxury-light .faq-item summary {
  color: #1a1a20;
}

.faq-item__question {
  font-size: 1.125rem;
  margin: 0;
}

.faq-item {
  padding: 1.5rem;
}

.faq-item p {
  margin-top: 1rem;
  font-size: 1rem;
}

.form-section-card {
  padding: 2rem;
}

.faq-item a {
  color: var(--site-accent);
}

.form-section {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.form-section .ui-title {
  margin-bottom: 1rem;
}

.form-section .ui-subtitle {
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.login-divider {
  margin: 1.25rem 0 0.75rem;
  text-align: center;
  opacity: 0.85;
}

.login-providers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.5rem;
}

.login-google-wrap {
  display: block;
  margin-top: 0;
  width: 100%;
  min-height: 3rem;
  flex-shrink: 0;
}

.login-google-wrap > a,
.login-google-wrap > .ui-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  box-sizing: border-box;
}

.login-google-btn,
.login-yandex-btn,
.login-telegram-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3rem;
  text-decoration: none;
  box-sizing: border-box;
}

.login-provider-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.login-provider-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.google-linked-email {
  font-size: 0.9375rem;
  opacity: 0.9;
}

.settings-tg-link-wrap {
  margin-top: 0.5rem;
}

.login-status {
  margin-top: 1.5rem;
  font-size: 1rem;
}

.login-status--error {
  color: var(--site-accent);
  font-weight: 500;
}

.login-telegram-wrap {
  display: grid;
  gap: 0.75rem;
  width: 100%;
}

.login-telegram-btn {
  width: 100%;
}

.login-telegram-btn[aria-busy="true"] {
  cursor: progress;
  opacity: 0.72;
}

.login-telegram-wrap .form-section-card,
.login-telegram-wrap .pricing-login-widget {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
}

.login-telegram-wrap .form-section-card[hidden],
.login-telegram-wrap .pricing-login-widget[hidden] {
  display: none;
}

.login-status--warning {
  margin-top: 1rem;
  padding: 0.68rem 0.82rem;
  border: 1px solid rgba(227, 89, 89, 0.48);
  border-radius: 0.78rem;
  background: rgba(209, 59, 59, 0.14);
  color: #ffd2d2;
  font-weight: 600;
}

.login-status--warning::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.08rem;
  height: 1.08rem;
  margin-right: 0.45rem;
  border-radius: 999px;
  background: #ff8a8a;
  color: #2a1010;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  vertical-align: text-bottom;
}

.luxury-light .login-status--warning {
  border-color: rgba(210, 76, 76, 0.36);
  background: rgba(225, 89, 89, 0.12);
  color: #8b1f1f;
}

.luxury-light .login-status--warning::before {
  background: #d05353;
  color: #ffffff;
}

.legal-section {
  max-width: 48rem;
}

.legal-section .ui-title.page-title {
  margin-top: 1.25rem;
  margin-bottom: 2.5rem;
}

.legal-section .ui-title {
  margin-bottom: 1.5rem;
}

.legal-section .ui-subtitle {
  font-size: 1.125rem;
  line-height: 1.625;
}

.pricing-page .page-title {
  margin-bottom: 1rem;
}

.pricing-page-intro {
  margin-bottom: 1.5rem;
  max-width: 42rem;
}

.pricing-page-cta {
  display: inline-block;
}

.discounts-page .page-intro {
  max-width: 42rem;
  margin-bottom: 1rem;
}

.discounts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.discounts-card {
  padding: 1rem 1.1rem;
}

.discounts-card__title {
  margin: 0;
  font-weight: 600;
}

.discounts-flow {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

.discounts-steps {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
}

.discounts-note {
  margin: 0;
}

.discounts-link-help {
  margin-top: 0.65rem;
}

.discounts-cta {
  margin: 0;
  display: inline-flex;
}

@media (min-width: 768px) {
  .discounts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.pricing-cards-subtitle {
  margin-bottom: 1.5rem;
}

.pricing-trial-banner {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .pricing-trial-banner {
    padding: 2rem;
  }
}

.pricing-cards-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}

.pricing-plan-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.2rem 0.25rem 0.55rem;
  margin-left: -0.25rem;
  margin-right: -0.25rem;
  scrollbar-width: thin;
}

.pricing-plan-card {
  flex: 0 0 min(88%, 22rem);
  scroll-snap-align: start;
  padding: 1.15rem 1.1rem;
  border: 1px solid rgba(126, 211, 33, 0.16);
  background:
    linear-gradient(180deg, rgba(14, 18, 26, 0.95), rgba(10, 14, 22, 0.94)),
    radial-gradient(120% 130% at 0% 0%, rgba(126, 211, 33, 0.11), transparent 58%);
}

.pricing-plan-features {
  margin: 0.8rem 0 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.42rem;
}

.pricing-plan-features li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.4rem;
  line-height: 1.35;
}

.pricing-plan-features__name {
  font-size: 0.88rem;
  color: var(--site-dimmed-dark);
}

.pricing-plan-features__value {
  text-align: right;
  font-weight: 600;
  color: var(--site-text-dark);
}

.pricing-plan-price {
  margin: 0.95rem 0 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--site-accent);
}

@media (min-width: 640px) {
  .pricing-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .pricing-plan-grid {
    display: grid;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .pricing-plan-card {
    flex: initial;
  }
}

@media (min-width: 992px) {
  .pricing-cards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .pricing-plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.pricing-card__desc {
  margin: 0.5rem 0 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.pricing-card__plan {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem 0;
  color: var(--site-dimmed-dark);
}

.luxury-light .pricing-card__plan {
  color: var(--site-dimmed-light);
}

.pricing-card__period {
  font-family: var(--site-font-headings);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.luxury-dark .pricing-card__period {
  color: var(--site-text-dark);
}

.luxury-light .pricing-card__period {
  color: var(--site-text-light);
}

.pricing-card__price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.pricing-card__price-row .pricing-card__price {
  margin-top: 0;
}

.pricing-card__price-row .pricing-card__discount {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--site-accent);
  margin: 0;
  line-height: 1;
}

.pricing-card__feature {
  margin: 0.5rem 0 0 0;
  font-size: 0.875rem;
}

.pricing-card__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--site-accent);
  margin-bottom: 0.5rem;
}

.pricing-card--popular {
  border-color: rgba(126, 211, 33, 0.35);
  box-shadow: 0 0 0 1px rgba(126, 211, 33, 0.2);
}

.pricing-cards-cta {
  margin-top: 0.5rem;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.pricing-cards-cta .login-divider {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.pricing-login-label {
  margin-bottom: 0.75rem;
}

.pricing-login-widget {
  display: flex;
  justify-content: center;
  min-height: 48px;
}

/* Dashboard */
.app-card {
  padding: 1.5rem;
}

/* Секции страницы подписки */
.sub-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary, #1a1a1a);
  margin: 1.75rem 0 0.5rem;
}

.luxury-dark .sub-section-title {
  color: var(--site-text-dark);
}

.luxury-light .sub-section-title {
  color: #1a1a1a;
}

.sub-section-title:first-of-type {
  margin-top: 1rem;
}

.sub-section-title--secondary {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary, #555);
  margin-top: 2rem;
}

.luxury-dark .sub-section-title--secondary {
  color: var(--site-dimmed-dark);
}

.luxury-light .sub-section-title--secondary {
  color: #555;
}

.subscription-form-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sub-plan-passports {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 0.75rem;
  padding: 0.2rem 0.2rem 0.55rem;
  margin-left: -0.2rem;
  margin-right: -0.2rem;
  scrollbar-width: thin;
}

.sub-plan-passport {
  flex: 0 0 min(88%, 21rem);
  scroll-snap-align: start;
  padding: 1rem 0.95rem;
  border: 1px solid rgba(126, 211, 33, 0.15);
  background:
    linear-gradient(180deg, rgba(14, 18, 26, 0.95), rgba(10, 14, 22, 0.94)),
    radial-gradient(110% 110% at 0% 0%, rgba(126, 211, 33, 0.1), transparent 58%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sub-plan-passport.is-active {
  border-color: rgba(126, 211, 33, 0.45);
  box-shadow: 0 0 0 1px rgba(126, 211, 33, 0.26), 0 8px 22px rgba(0, 0, 0, 0.25);
}

.sub-form-block {
  margin-top: 0;
}
.sub-form-block + .sub-form-block {
  margin-top: 0;
}

@media (min-width: 768px) {
  .subscription-form-card {
    padding: 2rem;
    gap: 1.5rem;
  }

  .sub-plan-passports {
    display: grid;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .sub-plan-passport {
    flex: initial;
  }
}

.luxury-light .pricing-plan-features__name {
  color: var(--site-dimmed-light);
}

.luxury-light .pricing-plan-features__value {
  color: var(--site-text-light);
}

.whitelist-card {
  padding: 0;
}

.balance-block {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.balance-block.balance-block--dropdown-open {
  z-index: 60;
}

.payment-history-card {
  position: relative;
  z-index: 1;
}

.dash-extra-block {
  margin-top: 1rem;
}

.dash-trial-text {
  margin-top: 0.25rem;
}

.sub-promo-block {
  margin-top: 0.5rem;
}

.sub-price-detail .sub-price-rows,
.sub-summary-card .sub-price-rows {
  margin-top: 0.5rem;
}

.sub-summary-card {
  padding: 1.5rem;
}
.sub-payment-block {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color, #e5e5e5);
}
.dash-whitelist-only-card {
  margin-top: 1rem;
}

.tariff-row--total .tariff-value {
  font-size: 1.25rem;
}

.dashboard-cards {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-page .dashboard-cards {
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.dashboard-page .ui-card.app-card,
.dashboard-page .ui-card.dash-extra-block,
.dashboard-page .ui-card.dash-whitelist-only-card {
  margin-bottom: 0.5rem;
}

.dashboard-page .ui-card.app-card {
  margin-top: 0.25rem;
}

.dashboard-page .dash-whitelist-only-card {
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .dashboard-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tariff-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tariff-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.tariff-label {
  font-size: 0.875rem;
  opacity: 0.85;
}

.tariff-value {
  font-weight: 600;
  color: #e8e8ec;
}

.luxury-light .tariff-value {
  color: #1a1a20;
}

.card-label {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.card-value {
  font-size: 1.875rem;
  font-weight: 600;
  color: #e8e8ec;
}

.luxury-light .card-value {
  color: #1a1a20;
}

.card-value--lg {
  font-size: 2rem;
}

.card-action {
  margin-top: 1rem;
}

.field-label {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.input-group {
  display: flex;
  gap: 0.75rem;
}

.input-group .ui-input {
  flex: 1;
  font-size: 0.875rem;
}
.site-device-stepper { display: inline-flex; align-items: center; gap: 8px; }
.site-device-stepper__btn { min-width: 38px; padding: 8px 10px; }
.site-device-stepper__btn:disabled { opacity: 0.4; cursor: default; }
.site-device-purchase-row { justify-content: space-between; align-items: center; }

.subscription-form-card .tariff-recommendation {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(126, 211, 33, 0.34);
  border-radius: 1rem;
  background: rgba(126, 211, 33, 0.08);
}

.subscription-form-card .tariff-recommendation__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 0.75rem;
  background: rgba(126, 211, 33, 0.14);
}

.subscription-form-card .tariff-recommendation__content { min-width: 0; }
.subscription-form-card .tariff-recommendation__title {
  margin: 0;
  color: var(--site-accent, #7ed321);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
}
.subscription-form-card .tariff-recommendation__detail {
  margin: 0.2rem 0 0;
  color: var(--site-dimmed-dark, #9aa0a6);
  font-size: 0.75rem;
  line-height: 1.4;
}
.luxury-light .subscription-form-card .tariff-recommendation__detail {
  color: var(--site-dimmed-light, #62646c);
}
.subscription-form-card .tariff-recommendation__action {
  min-width: 8.5rem;
  padding: 0.62rem 0.8rem;
  white-space: nowrap;
}
.subscription-form-card .tariff-recommendation--warning {
  border-color: rgba(245, 166, 35, 0.46);
  background: rgba(245, 166, 35, 0.08);
}
.subscription-form-card .tariff-recommendation--warning .tariff-recommendation__icon {
  background: rgba(245, 166, 35, 0.15);
}
.subscription-form-card .tariff-recommendation--warning .tariff-recommendation__title {
  color: #f5a623;
}

@media (max-width: 520px) {
  .subscription-form-card .tariff-recommendation {
    grid-template-columns: 38px minmax(0, 1fr);
  }
  .subscription-form-card .tariff-recommendation__action {
    grid-column: 2;
    justify-self: start;
    min-width: 0;
  }
}

.dash-sub-url-qr-btn {
  width: 3.25rem;
  height: 2.95rem;
  flex: 0 0 3.25rem;
  min-width: 3.25rem;
  border-radius: 1rem;
}

.dash-sub-url-qr-btn svg {
  width: 1.08rem;
  height: 1.08rem;
}

.ui-input--topup {
  width: 100%;
}

@media (min-width: 768px) {
  .ui-input--topup {
    width: 14rem;
  }
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .form-row {
    flex-direction: row;
  }
}

.form-hint {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.form-hint--warning {
  margin-top: 0.75rem;
  padding: 0.62rem 0.75rem;
  border: 1px solid rgba(227, 89, 89, 0.5);
  border-radius: 0.75rem;
  background: rgba(209, 59, 59, 0.14);
  color: #ffd2d2;
  font-weight: 600;
}

.form-hint--warning::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-right: 0.45rem;
  border-radius: 999px;
  background: #ff8a8a;
  color: #2a1010;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  vertical-align: text-bottom;
}

.luxury-light .form-hint--warning {
  border-color: rgba(210, 76, 76, 0.38);
  background: rgba(225, 89, 89, 0.13);
  color: #8b1f1f;
}

.luxury-light .form-hint--warning::before {
  background: #d05353;
  color: #ffffff;
}

/* История платежей — аккордеон */
.payment-history-accordion {
  display: block;
}

.payment-history-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  margin: 0 0 0.75rem 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  color: #e8e8ec;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.luxury-light .payment-history-accordion__trigger {
  color: #1a1a20;
}

.payment-history-accordion__trigger:hover {
  color: var(--site-accent);
}

.payment-history-accordion__trigger:focus-visible {
  outline: 2px solid var(--site-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.payment-history-accordion__icon {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-left: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.payment-history-accordion__trigger[aria-expanded="false"] .payment-history-accordion__icon {
  transform: rotate(-135deg);
}

.payment-history-accordion__panel {
  max-height: 80vh;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.payment-history-accordion__panel--collapsed {
  max-height: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
}

.payment-history-list {
  margin-top: 0.25rem;
}

.payment-history-list--empty {
  color: var(--site-muted, #888);
  font-size: 0.9375rem;
  padding: 1.25rem 0;
  text-align: center;
}

.payment-history__head,
.payment-history__row {
  display: grid;
  grid-template-columns: 1fr minmax(6rem, auto) minmax(4.5rem, auto);
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.5rem 0;
}

.payment-history__head {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(232, 232, 236, 0.7);
}

.luxury-light .payment-history__head {
  border-bottom-color: rgba(0, 0, 0, 0.1);
  color: rgba(26, 26, 32, 0.65);
}

.payment-history__row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #e8e8ec;
  font-size: 0.9375rem;
}

.payment-history__row:last-child {
  border-bottom: none;
}

.luxury-light .payment-history__row {
  border-bottom-color: rgba(0, 0, 0, 0.06);
  color: #1a1a20;
}

.payment-history__cell--date {
  color: inherit;
  opacity: 0.9;
}

.payment-history__cell--price {
  font-weight: 600;
  color: var(--site-accent);
  text-align: right;
  white-space: nowrap;
}

.luxury-light .payment-history__cell--price {
  color: var(--site-accent);
}

.payment-history__badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  color: #e8e8ec;
}

.luxury-light .payment-history__badge {
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a20;
}

.payment-history__badge--yookassa,
.payment-history__badge--yookassa_subscription {
  background: rgba(126, 211, 33, 0.15);
  color: #6fbe1d;
}

.luxury-light .payment-history__badge--yookassa,
.luxury-light .payment-history__badge--yookassa_subscription {
  background: rgba(126, 211, 33, 0.12);
  color: #2e5d31;
}

.payment-history__badge--yookassa_topup {
  background: rgba(76, 175, 80, 0.15);
  color: #81c784;
}

.luxury-light .payment-history__badge--yookassa_topup {
  background: rgba(76, 175, 80, 0.12);
  color: #2e7d32;
}

.payment-history__badge--balance {
  background: rgba(156, 39, 176, 0.15);
  color: #ce93d8;
}

.luxury-light .payment-history__badge--balance {
  background: rgba(156, 39, 176, 0.12);
  color: #7b1fa2;
}

/* Subscription form */
.seg-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .seg-group {
    grid-template-columns: repeat(4, 1fr);
  }
}

.seg-group--methods {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .seg-group--methods {
    grid-template-columns: repeat(2, 1fr);
  }
}

.seg-btn--method {
  padding: 0.75rem 1rem;
  text-align: left;
}

.method-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  margin-bottom: 0.25rem;
}

.method-dropdown .method-icon {
  margin-bottom: 0;
  flex: 0 0 1rem;
}

.method-icon svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.method-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
}

.method-desc {
  display: block;
  font-size: 0.75rem;
}

.form-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-section-gap {
  margin-top: 1.5rem;
}

.action-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.whitelist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.whitelist-title {
  font-weight: 600;
  color: #e8e8ec;
}

.luxury-light .whitelist-title {
  color: #1a1a20;
}

.whitelist-desc {
  font-size: 0.875rem;
  margin-top: 0.125rem;
}

.settings-link-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
}

.settings-link-state {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  border: 1px solid transparent;
  white-space: nowrap;
}

.settings-link-state::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.settings-link-state--linked {
  color: #aef29d;
  background: rgba(55, 177, 72, 0.14);
  border-color: rgba(68, 190, 86, 0.45);
}

.settings-link-state--linked::before {
  content: "✓";
  color: #0f2614;
  background: #8be27d;
}

.settings-link-state--warning {
  color: #ffb2b2;
  background: rgba(209, 59, 59, 0.14);
  border-color: rgba(227, 89, 89, 0.45);
}

.settings-link-state--warning::before {
  content: "!";
  color: #2a1010;
  background: #ff8a8a;
}

.luxury-light .settings-link-state--linked {
  color: #225d2b;
  background: rgba(56, 161, 70, 0.14);
  border-color: rgba(49, 144, 63, 0.38);
}

.luxury-light .settings-link-state--linked::before {
  color: #ffffff;
  background: #2f9d41;
}

.luxury-light .settings-link-state--warning {
  color: #8b1f1f;
  background: rgba(225, 89, 89, 0.13);
  border-color: rgba(210, 76, 76, 0.34);
}

.luxury-light .settings-link-state--warning::before {
  color: #ffffff;
  background: #d05353;
}

.toggle-track {
  position: relative;
  width: 3.5rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.toggle-thumb {
  position: absolute;
  left: 0.25rem;
  top: 0.25rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: #e8e8ec;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.toggle-thumb--on {
  transform: translateX(1.5rem);
}

.toggle-track--on {
  background: var(--site-accent) !important;
}

.toggle-track--disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.price-display {
  font-size: 2.25rem;
  font-weight: 700;
  margin-top: 0.5rem;
  color: var(--site-accent);
}

.sub-status {
  margin-top: 1rem;
  font-size: 0.875rem;
}

/* Settings */
.settings-section {
  max-width: 42rem;
}

.devices-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.device-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.875rem;
  padding: 0.75rem;
}

.luxury-light .device-item {
  border-color: rgba(0, 0, 0, 0.12);
}

.device-item__main {
  min-width: 0;
}

.device-item__title {
  font-weight: 600;
}

.device-item__meta,
.device-item__hwid {
  font-size: 0.8rem;
  opacity: 0.8;
  word-break: break-word;
}

.settings-subscriptions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.settings-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  border: 1px solid var(--site-border-dark);
  border-radius: 0.875rem;
  padding: 0.75rem 1rem;
}

.luxury-light .settings-sub-row {
  border-color: var(--site-border-light);
}

.settings-sub-row--expired {
  opacity: 0.75;
}

.settings-sub-row__info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}

.settings-sub-row__plan {
  font-weight: 600;
}

.settings-sub-primary-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  background: var(--site-accent-light);
  color: var(--site-accent);
}

.settings-sub-row__until {
  font-size: 0.875rem;
  opacity: 0.85;
}

.settings-sub-row__link {
  display: block;
  width: 100%;
  font-size: 0.8rem;
  line-height: 1.35;
  word-break: break-all;
  opacity: 0.92;
}

.settings-sub-row__action {
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  margin-top: 5rem;
}

.luxury-light .site-footer {
  border-top-color: rgba(0, 0, 0, 0.08);
}

.site-footer-inner {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  font-size: 0.875rem;
  color: #6b6b76;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.luxury-light .site-footer-inner {
  color: #575762;
}

.site-footer-inner a {
  color: inherit;
  transition: color 0.3s ease;
}

.site-footer-inner a:hover {
  color: var(--site-accent);
}

/* Toast */
.toast {
    display: block;
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 50;
  background: rgba(26, 26, 32, 0.9);
  color: #e8e8ec;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.toast--success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(13, 33, 20, 0.9);
}

.toast.toast--error {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(46, 19, 22, 0.92);
}

.toast.toast--info {
  border-color: rgba(126, 211, 33, 0.35);
}

.toast.hidden {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.luxury-light .toast {
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a20;
  border-color: rgba(0, 0, 0, 0.08);
}

.luxury-light .toast.toast--success {
  background: rgba(240, 253, 244, 0.98);
  border-color: rgba(34, 197, 94, 0.35);
}

.luxury-light .toast.toast--error {
  background: rgba(254, 242, 242, 0.98);
  border-color: rgba(239, 68, 68, 0.35);
}

.luxury-light .toast.toast--info {
  background: rgba(243, 252, 233, 0.98);
  border-color: rgba(126, 211, 33, 0.35);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-up,
  .hero-glow,
  .luxury-light .hero-glow {
    animation: none;
  }
  .animate-fade-up {
    opacity: 1;
    transform: none;
  }
  .ui-card:hover,
  .luxury-light .ui-card:hover {
    transform: none;
  }
  .ui-btn-primary:hover {
    transform: none;
  }
}

.ref-label {
  color: inherit;
}

.ref-value {
  font-weight: 600;
}

.ref-row {
  margin-bottom: 0.5rem;
}

.ref-row--last {
  margin-bottom: 1rem;
}

/* ========== Адаптивность (мобильные устройства) ========== */

/* Контейнер: меньше отступы на узких экранах */
@media (max-width: 479px) {
  .site-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Кнопки и инпуты: удобная зона нажатия (минимум ~44px) */
.ui-btn,
.seg-btn {
  min-height: 2.75rem;
}

@media (max-width: 767px) {
  .ui-btn {
    min-height: 2.875rem;
    padding: 0.625rem 1rem;
  }

  .site-main {
    padding-top: 5rem;
    padding-bottom: 2rem;
  }

  .hero-section.hero {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }

  .hero-inner {
    gap: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .ui-btn {
    width: 100%;
    flex-basis: auto;
  }

  .hero-proxy-block {
    gap: 0.6rem;
    padding: 0.78rem 0.78rem 0.72rem;
  }

  .hero-proxy-head {
    gap: 0.35rem 0.45rem;
  }

  .hero-proxy-label {
    font-size: 0.88rem;
  }

  .hero-proxy-actions {
    flex-direction: column;
  }

  .hero-proxy-row {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    align-items: center;
  }

  .hero-proxy-btn {
    width: 100%;
    min-width: 0;
    min-height: 2.5rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .hero-proxy-btn__label {
    font-size: 0.86rem;
  }

  .hero-proxy-icon-btn {
    width: 2.25rem;
    height: 2.25rem;
    flex-basis: 2.25rem;
    min-width: 2.25rem;
    border-radius: 0.75rem;
  }

  .hero-proxy-icon-btn svg {
    width: 0.92rem;
    height: 0.92rem;
  }

  .hero-proxy-count {
    margin-left: 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-card {
    padding: 1.25rem;
  }

  .section-plans {
    margin-top: 3rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }

  .page-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pricing-card {
    padding: 1.25rem;
  }

  .pricing-card__price {
    font-size: 1.875rem;
  }

  .pricing-card__cta {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }

  .why-choose-grid {
    gap: 0.85rem;
  }

  .why-choose-card {
    padding: 1.05rem;
  }

  .why-choose-card:nth-child(1) .why-choose-card__title {
    font-size: 1.1rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .download-card {
    padding: 1.5rem;
    font-size: 1rem;
  }

  .dashboard-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .app-card {
    padding: 1.25rem;
  }

  .input-group {
    flex-direction: column;
  }

  .input-group .ui-input {
    min-height: 2.75rem;
    width: 100%;
  }

  .action-row {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .action-row .ui-btn {
    width: 100%;
    justify-content: center;
  }

  .seg-group {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .seg-btn {
    min-height: 2.75rem;
    padding: 0.625rem 0.75rem;
  }

  .subscription-form-card {
    padding: 1.25rem;
  }

  .whitelist-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .site-footer-inner {
    flex-direction: column;
    gap: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    align-items: flex-start;
  }

  .toast {
    left: max(1rem, env(safe-area-inset-left));
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    text-align: center;
  }

  .card-value {
    font-size: 1.5rem;
  }

  .card-value--lg {
    font-size: 1.625rem;
  }

  .price-display {
    font-size: 1.75rem;
  }

}

/* Планшеты: 2 колонки для тарифов */
@media (min-width: 480px) and (max-width: 767px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Кнопка гамбургера: показывать только на мобильных */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}

.luxury-light .nav-toggle {
  border-color: rgba(0, 0, 0, 0.15);
}

.luxury-light .nav-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-toggle__line {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1361px) {
  .nav-overlay {
    display: none !important;
  }
}

/* === Production Navigation Contract === */
@media (min-width: 1361px) {
  .site-header-inner.nav-inner {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) auto minmax(12rem, 1fr);
    align-items: center;
    gap: 1rem;
    min-height: 4.75rem;
  }

  .nav-brand {
    justify-self: start;
    max-width: 18rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-nav.nav-links {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: min(100%, 54rem);
    gap: 0.4rem;
  }

  .nav-link {
    min-height: 2.55rem;
    padding: 0.55rem 0.68rem;
    border-radius: 0.6rem;
  }

  .site-header-actions.nav-actions {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-actions .btn-nav,
  .nav-actions .nav-settings-link {
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    border-radius: 0.65rem;
  }
}

@media (max-width: 1360px) {
  body.nav-open {
    overflow: hidden;
  }

  .site-header-inner.nav-inner {
    display: flex;
    align-items: center;
    min-height: 4.5rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .nav-brand {
    max-width: calc(100vw - 6rem);
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(1.15rem, 4.8vw, 1.35rem);
  }

  .site-header-actions.nav-actions {
    display: none !important;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.7rem;
    color: #f2f4f8;
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.16);
  }

  .luxury-light .nav-toggle {
    color: #111827;
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(20, 31, 44, 0.16);
  }

  .site-nav.nav-links {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    width: min(92vw, 22rem);
    height: 100vh;
    height: 100dvh;
    padding: 5.1rem 1rem 1rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      radial-gradient(100% 70% at 100% 0%, rgba(126, 211, 33, 0.1), transparent 58%),
      linear-gradient(180deg, rgba(21, 22, 27, 0.98), rgba(15, 16, 20, 0.98));
    border-left: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: -24px 0 70px rgba(0, 0, 0, 0.42);
    transform: translateX(104%);
    visibility: hidden;
    transition: transform 0.26s ease, visibility 0.26s ease;
  }

  .luxury-light .site-nav.nav-links {
    background:
      radial-gradient(100% 70% at 100% 0%, rgba(126, 211, 33, 0.12), transparent 58%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 249, 251, 0.99));
    border-left-color: rgba(20, 31, 44, 0.1);
    box-shadow: -24px 0 70px rgba(20, 31, 44, 0.16);
  }

  body.nav-open .site-nav.nav-links {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.075);
    color: inherit;
  }

  .luxury-light .nav-close {
    border-color: rgba(20, 31, 44, 0.12);
    background: rgba(20, 31, 44, 0.045);
  }

  .site-nav__link.nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 3.45rem;
    padding: 0.86rem 1rem;
    gap: 0.65rem;
    border-radius: 0.85rem;
    font-size: 1rem;
    line-height: 1.2;
    color: rgba(246, 247, 251, 0.94);
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.12);
    opacity: 1;
  }

  .luxury-light .site-nav__link.nav-link {
    color: rgba(17, 24, 39, 0.92);
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(20, 31, 44, 0.13);
  }

  .site-nav__link.nav-link:hover {
    color: #ffffff;
    background: rgba(126, 211, 33, 0.12);
    border-color: rgba(126, 211, 33, 0.42);
  }

  .luxury-light .site-nav__link.nav-link:hover {
    color: #17210d;
    background: rgba(126, 211, 33, 0.14);
  }

  .site-nav__link .nav-link-icon {
    width: 1.05rem;
    height: 1.05rem;
  }

  .nav-support-badge {
    margin-left: auto;
  }

  .nav-actions-mobile {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .luxury-light .nav-actions-mobile {
    border-top-color: rgba(20, 31, 44, 0.11);
  }

  .nav-action-mobile-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    min-width: 2.85rem;
    height: 2.85rem;
    min-height: 2.85rem;
    padding: 0;
    overflow: visible;
    border-radius: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.055);
    color: inherit;
    text-decoration: none;
    font-size: 0;
  }

  .luxury-light .nav-action-mobile-btn {
    border-color: rgba(20, 31, 44, 0.14);
    background: rgba(255, 255, 255, 0.82);
  }

  .nav-action-mobile-btn .nav-icon {
    width: 1.1rem;
    height: 1.1rem;
    font-size: 1rem;
  }

  .nav-action-mobile-btn .theme-icon {
    font-size: 1rem;
  }

  .nav-settings-alert {
    top: -0.42rem;
    right: -0.42rem;
    z-index: 2;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.24s ease, visibility 0.24s ease;
  }

  body.nav-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  body.nav-open .header-glass.nav-shell {
    z-index: 10002;
  }
}

/* === Premium Non-Home Surfaces === */
#site-app[data-page-key]:not([data-page-key="home"]) .site-main {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

#site-app[data-page-key]:not([data-page-key="home"]) .site-main > section {
  position: relative;
  border-radius: 1.5rem;
  border: 1px solid rgba(126, 211, 33, 0.14);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(126, 211, 33, 0.1), transparent 62%),
    radial-gradient(120% 120% at 100% 100%, rgba(81, 136, 255, 0.09), transparent 58%),
    linear-gradient(180deg, rgba(10, 13, 18, 0.86), rgba(12, 15, 20, 0.82));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: clamp(1rem, 2.2vw, 1.6rem);
  overflow: clip;
}

#site-app[data-page-key]:not([data-page-key="home"]) .site-main > section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 15px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent 125%);
}

.luxury-light #site-app[data-page-key]:not([data-page-key="home"]) .site-main > section {
  border-color: rgba(18, 24, 20, 0.12);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(126, 211, 33, 0.11), transparent 62%),
    radial-gradient(120% 120% at 100% 100%, rgba(81, 136, 255, 0.08), transparent 58%),
    linear-gradient(180deg, rgba(249, 251, 248, 0.96), rgba(241, 245, 240, 0.94));
  box-shadow: 0 20px 48px rgba(18, 24, 20, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

#site-app[data-page-key]:not([data-page-key="home"]) .page-title {
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  letter-spacing: -0.035em;
  margin-bottom: 0.65rem;
}

#site-app[data-page-key]:not([data-page-key="home"]) .page-intro,
#site-app[data-page-key]:not([data-page-key="home"]) .ui-subtitle {
  color: rgba(218, 224, 232, 0.84);
}

.luxury-light #site-app[data-page-key]:not([data-page-key="home"]) .page-intro,
.luxury-light #site-app[data-page-key]:not([data-page-key="home"]) .ui-subtitle {
  color: rgba(30, 36, 34, 0.78);
}

#site-app[data-page-key]:not([data-page-key="home"]) .ui-card {
  border-radius: 1.15rem;
  border-color: rgba(255, 255, 255, 0.11);
  background: linear-gradient(165deg, rgba(17, 21, 28, 0.86), rgba(12, 15, 20, 0.93));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
}

#site-app[data-page-key]:not([data-page-key="home"]) .ui-card:hover {
  border-color: rgba(126, 211, 33, 0.34);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(126, 211, 33, 0.12) inset;
  transform: translateY(-3px);
}

.luxury-light #site-app[data-page-key]:not([data-page-key="home"]) .ui-card {
  border-color: rgba(15, 22, 20, 0.14);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(242, 246, 241, 0.95));
  box-shadow: 0 14px 34px rgba(18, 24, 20, 0.11);
}

.luxury-light #site-app[data-page-key]:not([data-page-key="home"]) .ui-card:hover {
  border-color: rgba(126, 211, 33, 0.38);
  box-shadow: 0 20px 40px rgba(18, 24, 20, 0.14), 0 0 0 1px rgba(126, 211, 33, 0.14) inset;
}

#site-app[data-page-key]:not([data-page-key="home"]) .ui-input,
#site-app[data-page-key]:not([data-page-key="home"]) .method-dropdown__trigger,
#site-app[data-page-key]:not([data-page-key="home"]) .seg-btn {
  min-height: 2.95rem;
  border-radius: 0.9rem;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

#site-app[data-page-key]:not([data-page-key="home"]) .ui-input:focus,
#site-app[data-page-key]:not([data-page-key="home"]) .ui-input:focus-visible,
#site-app[data-page-key]:not([data-page-key="home"]) .method-dropdown__trigger:focus-visible,
#site-app[data-page-key]:not([data-page-key="home"]) .seg-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(126, 211, 33, 0.24), 0 8px 24px rgba(126, 211, 33, 0.18);
}

#site-app[data-page-key]:not([data-page-key="home"]) .ui-btn {
  min-height: 2.95rem;
  font-weight: 700;
  letter-spacing: 0.018em;
}

#site-app[data-page-key]:not([data-page-key="home"]) .ui-btn-primary {
  box-shadow: 0 8px 22px rgba(126, 211, 33, 0.34);
}

#site-app[data-page-key]:not([data-page-key="home"]) .ui-btn-primary:hover {
  box-shadow: 0 12px 28px rgba(126, 211, 33, 0.42);
}

#site-app[data-page-key]:not([data-page-key="home"]) .pricing-card,
#site-app[data-page-key]:not([data-page-key="home"]) .pricing-trial-banner,
#site-app[data-page-key]:not([data-page-key="home"]) .download-page .vpn-app-icon,
#site-app[data-page-key]:not([data-page-key="home"]) .faq-item,
#site-app[data-page-key]:not([data-page-key="home"]) .payment-history__row,
#site-app[data-page-key]:not([data-page-key="home"]) .settings-sub-row {
  border-radius: 1rem;
}

#site-app[data-page-key]:not([data-page-key="home"]) .price-display,
#site-app[data-page-key]:not([data-page-key="home"]) .card-value {
  font-size: clamp(2rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
}

#site-app[data-page-key]:not([data-page-key="home"]) .tariff-row,
#site-app[data-page-key]:not([data-page-key="home"]) .settings-sub-row,
#site-app[data-page-key]:not([data-page-key="home"]) .payment-history__row {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

@media (max-width: 767px) {
  #site-app[data-page-key]:not([data-page-key="home"]) .site-main > section {
    border-radius: 1.1rem;
    padding: 0.9rem;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  }

  #site-app[data-page-key]:not([data-page-key="home"]) .ui-card {
    border-radius: 0.95rem;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
  }

  #site-app[data-page-key]:not([data-page-key="home"]) .page-title {
    font-size: 1.45rem;
    margin-bottom: 0.5rem;
  }

  #site-app[data-page-key]:not([data-page-key="home"]) .app-card,
  #site-app[data-page-key]:not([data-page-key="home"]) .subscription-form-card,
  #site-app[data-page-key]:not([data-page-key="home"]) .sub-summary-card {
    padding: 1rem;
  }

  #site-app[data-page-key]:not([data-page-key="home"]) .price-display,
  #site-app[data-page-key]:not([data-page-key="home"]) .card-value {
    font-size: 1.75rem;
  }
}

/* === Fixes: Payment Dropdown + Settings Layout === */
#site-app[data-page-key="app_balance"] .site-main > section {
  overflow: visible;
}

#site-app[data-page-key="app_balance"] .method-dropdown {
  z-index: 80;
}

#site-app[data-page-key="app_balance"] .method-dropdown.is-open {
  z-index: 140;
}

#site-app[data-page-key="app_balance"] .method-dropdown__menu {
  z-index: 150;
  max-height: min(22rem, calc(100vh - 1rem));
}

#site-app[data-page-key="app_settings"] .settings-section {
  max-width: none;
  width: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

#site-app[data-page-key="app_settings"] .settings-section > .page-title {
  grid-column: 1 / -1;
}

#site-app[data-page-key="app_settings"] .settings-section > .ui-card {
  grid-column: span 6;
}

#site-app[data-page-key="app_settings"] #settings-subscriptions-card,
#site-app[data-page-key="app_settings"] .settings-section > .ui-card:last-child {
  grid-column: 1 / -1;
}

@media (max-width: 991px) {
  #site-app[data-page-key="app_settings"] .settings-section > .ui-card {
    grid-column: 1 / -1;
  }
}


/* === Preventive: semantic status/readability on non-home pages === */
#site-app[data-page-key]:not([data-page-key="home"]) .login-status--error {
  color: var(--site-accent) !important;
}

#site-app[data-page-key="privacy"] .legal-section .ui-subtitle,
#site-app[data-page-key="terms"] .legal-section .ui-subtitle {
  color: rgba(232, 236, 242, 0.9);
}

.luxury-light #site-app[data-page-key="privacy"] .legal-section .ui-subtitle,
.luxury-light #site-app[data-page-key="terms"] .legal-section .ui-subtitle {
  color: rgba(22, 30, 28, 0.86);
}

/* === Fix: payment dropdown under footer due stacking context === */
#site-app[data-page-key="app_balance"] .site-main > section {
  position: relative;
  z-index: 30;
  isolation: isolate;
}

#site-app[data-page-key="app_balance"] .site-main > section::before {
  display: none;
}

#site-app[data-page-key="app_balance"] .method-dropdown__menu {
  z-index: 999;
}

/* Portal menu for payment dropdown */
.method-dropdown__menu--portal {
  z-index: 1200;
  margin: 0;
}

/* Support tickets */
#site-app[data-page-key="app_support"] .site-main {
  max-width: 72rem;
}

#site-app[data-page-key="app_support"] .site-main > .support-page {
  padding: 1.55rem;
}

.nav-support-link {
  position: relative;
}

.nav-support-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 999px;
  background: #ff5c7a;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.support-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.luxury-light .support-page-head {
  border-bottom-color: rgba(20, 31, 44, 0.12);
}

.support-unread-pill {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  color: var(--site-text);
  background: var(--site-panel);
  font-size: 13px;
  font-weight: 700;
}

.support-telegram-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.6rem;
  padding: 0.55rem 0.75rem 0.55rem 0.55rem;
  white-space: nowrap;
  text-align: left;
  border-radius: 0.75rem;
}

.support-telegram-link__logo {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  border-radius: 0.6rem;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(126, 211, 33, 0.32), 0 8px 18px rgba(126, 211, 33, 0.14);
}

.support-telegram-link__text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.support-telegram-link__title {
  color: var(--site-text);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.15;
}

.support-telegram-link__subtitle {
  color: var(--site-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
}

.luxury-light .support-telegram-link__title {
  color: #111827;
}

.luxury-light .support-telegram-link__subtitle {
  color: rgba(55, 65, 81, 0.68);
}

.support-telegram-link__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.75;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.35fr);
  gap: 1.15rem;
  align-items: start;
}

.support-panel {
  min-width: 0;
  border-radius: 0.95rem;
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(19, 23, 28, 0.92), rgba(14, 17, 22, 0.9));
}

.luxury-light .support-panel {
  border-color: rgba(20, 31, 44, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 250, 0.96));
  box-shadow: 0 18px 44px rgba(20, 31, 44, 0.12), 0 1px 0 rgba(255, 255, 255, 0.88) inset;
}

.support-panel--tickets {
  border-color: rgba(126, 211, 33, 0.24);
}

.luxury-light .support-panel--tickets {
  border-color: rgba(126, 211, 33, 0.38);
}

.support-form,
.support-reply-form {
  display: grid;
  gap: 0.85rem;
}

.support-textarea {
  min-height: 210px;
  resize: vertical;
  line-height: 1.5;
}

.support-textarea--reply {
  min-height: 170px;
}

.support-attach-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.045);
  color: var(--site-text);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.support-attach-icon {
  width: 1.15rem;
  height: 1.15rem;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-attach-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.luxury-light .support-attach-btn {
  border-color: rgba(20, 31, 44, 0.2);
  background: rgba(255, 255, 255, 0.78);
  color: #111827;
}

.support-attachment-preview,
.support-message__attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.2rem;
}

.support-attachment-preview[hidden] {
  display: none !important;
}

.support-attachment-chip {
  position: relative;
  display: inline-flex;
  width: 5.6rem;
  height: 5.6rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
}

.support-attachment-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.support-attachment-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6.75rem;
  height: 6.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--site-text);
  text-decoration: none;
}

.support-attachment-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.luxury-light .support-attachment-chip,
.luxury-light .support-attachment-link {
  border-color: rgba(20, 31, 44, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: #111827;
}

.support-attachment-link:hover {
  border-color: rgba(126, 211, 33, 0.45);
  color: var(--site-accent);
}

.support-attachment-link:hover img {
  transform: scale(1.04);
}

.support-attachment-remove {
  position: absolute;
  z-index: 3;
  top: 0.3rem;
  right: 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ef3f5f;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(239, 63, 95, 0.38), 0 0 0 1px rgba(15, 23, 42, 0.16);
}

.luxury-light .support-attachment-remove {
  border-color: #ffffff;
  background: #e93355;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(233, 51, 85, 0.34), 0 0 0 1px rgba(15, 23, 42, 0.18);
}

.support-image-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.support-image-modal.is-open {
  display: flex;
}

.support-image-modal__img {
  max-width: min(96vw, 72rem);
  max-height: 90vh;
  border-radius: 0.9rem;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.support-image-modal__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.8rem;
  background: rgba(20, 20, 24, 0.86);
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
}

#site-app[data-page-key="app_support"] #support-message {
  height: 10rem;
  min-height: 10rem !important;
}

#site-app[data-page-key="app_support"] #support-reply {
  height: 12rem;
  min-height: 12rem !important;
}

.support-page .ui-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.luxury-light .support-page .ui-input {
  border-color: rgba(20, 31, 44, 0.36);
  border-width: 1.5px;
  background: #ffffff;
  color: #111827;
  box-shadow:
    0 1px 0 rgba(16, 24, 40, 0.04) inset,
    0 0 0 1px rgba(20, 31, 44, 0.04),
    0 8px 18px rgba(20, 31, 44, 0.035);
}

.luxury-light .support-page .ui-input::placeholder {
  color: rgba(31, 41, 55, 0.58);
}

.luxury-light .support-page .ui-input:hover {
  border-color: rgba(20, 31, 44, 0.5);
  box-shadow:
    0 1px 0 rgba(16, 24, 40, 0.05) inset,
    0 0 0 1px rgba(20, 31, 44, 0.07),
    0 10px 22px rgba(20, 31, 44, 0.055);
}

.support-page .ui-input:focus {
  border-color: var(--site-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(126, 211, 33, 0.18), 0 10px 26px rgba(126, 211, 33, 0.12);
}

.luxury-light .support-page .ui-input:focus {
  border-color: #6fbe1d;
  box-shadow:
    0 0 0 3px rgba(126, 211, 33, 0.2),
    0 1px 0 rgba(16, 24, 40, 0.04) inset,
    0 12px 26px rgba(126, 211, 33, 0.14);
}

.support-page .field-label {
  margin: 0;
  color: rgba(240, 240, 242, 0.78);
  font-weight: 700;
}

.luxury-light .support-page .field-label {
  color: rgba(20, 31, 44, 0.72);
}

.support-list-head,
.support-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 1rem;
}

.support-list-head {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.luxury-light .support-list-head {
  border-bottom-color: rgba(20, 31, 44, 0.1);
}

.support-ticket-tabs {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.035);
}

.support-ticket-tab {
  min-height: 2.25rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--site-text-muted);
  cursor: pointer;
  font-weight: 800;
}

.support-ticket-tab.is-active {
  border-color: rgba(126, 211, 33, 0.5);
  background: rgba(126, 211, 33, 0.12);
  color: var(--site-text);
}

.luxury-light .support-ticket-tabs {
  border-color: rgba(20, 31, 44, 0.14);
  background: rgba(248, 250, 252, 0.85);
}

.luxury-light .support-ticket-tab.is-active {
  color: #111827;
}

.support-ticket-list {
  display: grid;
  gap: 10px;
}

.support-ticket-list[hidden],
.support-detail[hidden],
.support-ticket-pagination[hidden] {
  display: none !important;
}

.support-ticket-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.support-ticket-pagination .ui-btn {
  min-height: 2.35rem;
  padding: 0.45rem 0.85rem;
}

#support-page-label {
  color: var(--site-text-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.support-ticket-item {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: var(--site-text);
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  cursor: pointer;
}

.luxury-light .support-ticket-item {
  border-color: rgba(20, 31, 44, 0.16);
  background: rgba(248, 250, 252, 0.9);
}

.support-ticket-item:hover {
  border-color: var(--site-accent);
}

.support-ticket-item:focus-visible {
  outline: 2px solid var(--site-accent);
  outline-offset: 2px;
}

.support-ticket-item__main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.support-ticket-item__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.luxury-light .support-ticket-item__title,
.luxury-light .support-detail-title,
.luxury-light .support-panel .whitelist-title {
  color: #111827;
}

.support-ticket-item__meta,
.support-message__meta,
.support-ticket-id {
  color: var(--site-text-muted);
  font-size: 12px;
}

.luxury-light .support-ticket-item__meta,
.luxury-light .support-message__meta,
.luxury-light .support-ticket-id {
  color: rgba(55, 65, 81, 0.68);
}

.support-ticket-item__badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #ff5c7a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.support-detail-title {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.25;
}

.support-status {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--site-text);
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.035);
}

.luxury-light .support-status {
  border-color: rgba(20, 31, 44, 0.14);
  background: rgba(248, 250, 252, 0.94);
  color: #111827;
}

.support-status--open {
  border-color: rgba(126, 211, 33, 0.5);
}

.support-status--pending {
  border-color: rgba(255, 191, 87, 0.55);
}

.support-status--answered {
  border-color: rgba(70, 190, 130, 0.55);
}

.support-status--closed {
  opacity: 0.72;
}

.support-messages {
  max-height: 460px;
  overflow: auto;
  display: grid;
  gap: 0.75rem;
  padding: 0.15rem 0.1rem 1rem;
}

.support-message {
  width: min(88%, 650px);
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--site-text);
}

.luxury-light .support-message {
  border-color: rgba(20, 31, 44, 0.14);
  background: #fff;
  color: #1f2937;
  box-shadow: 0 8px 22px rgba(20, 31, 44, 0.06);
}

.support-message--user {
  justify-self: end;
}

.support-message--admin {
  justify-self: start;
  border-color: rgba(80, 150, 255, 0.42);
}

.luxury-light .support-message--admin {
  border-color: rgba(45, 108, 223, 0.42);
  background: rgba(245, 249, 255, 0.98);
}

.luxury-light .support-message--user {
  background: rgba(250, 252, 250, 0.98);
}

.support-message__text {
  margin-top: 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.support-actions {
  justify-content: flex-start;
  gap: 0.75rem;
}

.support-closed-note {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 191, 87, 0.5);
  border-radius: 8px;
  color: var(--site-text);
  background: rgba(255, 191, 87, 0.1);
  line-height: 1.45;
}

.luxury-light .support-closed-note {
  background: rgba(255, 191, 87, 0.16);
}

.luxury-light #site-app[data-page-key="app_support"] .support-page input.ui-input,
.luxury-light #site-app[data-page-key="app_support"] .support-page textarea.ui-input {
  border: 1.5px solid rgba(20, 31, 44, 0.42);
  background: #fff;
}

.luxury-light #site-app[data-page-key="app_support"] .support-page input.ui-input:hover,
.luxury-light #site-app[data-page-key="app_support"] .support-page textarea.ui-input:hover {
  border-color: rgba(20, 31, 44, 0.58);
}

.luxury-light #site-app[data-page-key="app_support"] .support-page input.ui-input:focus,
.luxury-light #site-app[data-page-key="app_support"] .support-page textarea.ui-input:focus {
  border-color: #6fbe1d;
}

@media (max-width: 900px) {
  .support-layout {
    grid-template-columns: 1fr;
  }

  .support-page-head,
  .support-list-head,
  .support-detail-head {
    align-items: stretch;
    flex-direction: column;
  }

  .support-message {
    width: 100%;
  }
}
