:root {
  --bg: #1f1039;
  --glass: rgba(31, 16, 57, 0.14);
  --glass-hover: rgba(42, 24, 80, 0.22);
  --text: #d4d4d4;
  --text-muted: #87888c;
  --accent: #9b6dff;
  --accent-glow: rgba(155, 109, 255, 0.35);
  --cyan: #5ce1e6;
  --cyan-dim: #3db8bc;
  --cyan-text: #9ef0f3;
  --cyan-border: rgba(92, 225, 230, 0.5);
  --cyan-glow: rgba(92, 225, 230, 0.28);
  --border: rgba(212, 212, 212, 0.1);
  --border-bright: rgba(212, 212, 212, 0.18);
  --max-width: 72rem;
  --header-h: 4rem;
  --transition: 180ms ease;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body > main {
  flex: 1 0 auto;
}

#vanta-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  overflow: hidden;
}

#vanta-bg canvas {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 300;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 1.5rem, var(--max-width));
  margin-inline: auto;
  padding-inline: max(0px, env(safe-area-inset-left)) max(0px, env(safe-area-inset-right));
}

/* Glass panels */

.glass-panel {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.glass-panel:hover {
  border-color: var(--border-bright);
  background: var(--glass-hover);
}

.panel-body {
  padding: 1rem 1.25rem 1.25rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(31, 16, 57, 0.72);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  width: 100%;
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: var(--header-h);
  width: 100%;
  max-width: 100%;
  padding:
    0.5rem
    max(0.75rem, env(safe-area-inset-right))
    0.5rem
    max(0.75rem, env(safe-area-inset-left));
}

.header-brand-group {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 1 1 auto;
  min-width: 0;
  justify-self: start;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.25rem 0;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.brand:hover .brand-name {
  color: #fff;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem 1.5rem;
  min-width: 0;
}

.site-nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.site-nav a:hover {
  color: #fff;
  border-bottom-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.header-actions[hidden] {
  display: none !important;
}

.btn-login,
.btn-register {
  min-height: 2.5rem;
  padding: 0.5rem 1.125rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 4px;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

.btn-login {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(92, 225, 230, 0.22);
}

.btn-login:hover {
  color: var(--cyan-text);
  border-color: rgba(92, 225, 230, 0.42);
  background: rgba(92, 225, 230, 0.06);
  box-shadow: 0 0 12px rgba(92, 225, 230, 0.14);
}

.btn-register {
  background: rgba(92, 225, 230, 0.07);
  color: var(--cyan-text);
  border: 1px solid var(--cyan-border);
  font-weight: 600;
  box-shadow:
    0 0 10px var(--cyan-glow),
    0 0 22px rgba(92, 225, 230, 0.1),
    inset 0 0 14px rgba(92, 225, 230, 0.06);
}

.btn-register:hover {
  background: rgba(92, 225, 230, 0.12);
  border-color: rgba(92, 225, 230, 0.72);
  color: #cff9fb;
  box-shadow:
    0 0 14px rgba(92, 225, 230, 0.38),
    0 0 28px rgba(92, 225, 230, 0.14),
    inset 0 0 16px rgba(92, 225, 230, 0.1);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  padding-left: 1rem;
  margin-left: 0.25rem;
  border-left: 1px solid var(--border-bright);
}

.lang-link {
  min-width: 2rem;
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
  color: var(--text-muted);
}

.lang-link.is-active {
  color: #fff;
  font-weight: 600;
}

.lang-divider {
  color: var(--text-muted);
  opacity: 0.45;
  padding: 0 0.25rem;
  user-select: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: var(--border-bright);
  box-shadow: 0 0 16px var(--accent-glow);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: #fff;
}

.btn-primary {
  background: linear-gradient(135deg, #7c4dff, #5b2fd4);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 24px rgba(124, 77, 255, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-lg {
  min-height: 3.25rem;
  width: 100%;
  font-size: 1rem;
}

.btn-plan {
  width: 100%;
  margin-top: auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-bright);
  color: #fff;
}

.icon {
  flex-shrink: 0;
  color: currentColor;
}

/* Sections */

.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section-title {
  margin: 0 0 1.75rem;
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
  color: #fff;
}

.section-title--inset {
  margin-top: 0;
}

.section-lead {
  margin: 0 0 1.5rem;
  text-align: center;
  color: var(--text-muted);
  max-width: 52ch;
  margin-inline: auto;
}

.panel-stage {
  position: relative;
}

/* Hero */

.hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.hero-panel {
  width: min(100%, 40rem);
  text-align: center;
}

.hero-panel .panel-body {
  padding: 1rem 1.5rem 1.5rem;
}

.hero-panel h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: min(100%, 36rem);
}

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

.stat-card .panel-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem 1.25rem;
  min-height: 5.5rem;
}

.stat-value {
  display: block;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Features */

.features-stage .features-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.feature-card {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.feature-card .panel-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 0.75rem 1.25rem 1.25rem;
}

.feature-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: #fff;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #fff;
  line-height: 1.3;
}

.feature-card p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 28ch;
  margin-inline: auto;
}

/* Platforms */

.platforms-section .section-panel .panel-body {
  padding: 1rem 1.5rem 1.5rem;
  text-align: center;
}

.platforms-section .section-panel {
  max-width: 48rem;
  margin-inline: auto;
}

.platforms-section .section-lead {
  margin-bottom: 1.25rem;
}

.platforms-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
}

.platform-chip--accent {
  border-color: var(--accent);
}

/* Steps */

.steps-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.step-card .panel-body {
  padding: 0.75rem 1.25rem 1.25rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0 0 0.75rem;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
}

.step-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  color: #fff;
  line-height: 1.3;
}

.step-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.step-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--accent);
}

/* Pricing */

.pricing-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.plan-card .panel-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.75rem 1.25rem 1.25rem;
  text-align: center;
}

.plan-badge {
  display: block;
  width: fit-content;
  margin: 0 auto 0.75rem;
  padding: 0.3rem 0.85rem;
  background: linear-gradient(135deg, #7c4dff, #5b2fd4);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #fff;
}

.plan-name {
  margin: 0;
  font-size: 1.0625rem;
  color: #fff;
  line-height: 1.3;
}

.plan-price {
  margin: 0.75rem 0 1rem;
}

.plan-features {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  flex: 1;
  text-align: left;
}

.plan-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 28px var(--accent-glow);
}

.plan-amount {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.plan-period {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.plan-features li:last-child {
  border-bottom: none;
}

/* Trial */

.trial-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.trial-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.trial-perks {
  display: grid;
  gap: 0.75rem;
}

.trial-perk .panel-body,
.trial-perk-inner {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 0.75rem 1rem 1rem;
  width: 100%;
}

.trial-perk-icon {
  flex-shrink: 0;
  color: #fff;
  margin-top: 0.1rem;
}

.trial-perk h3 {
  margin: 0 0 0.2rem;
  font-size: 0.9375rem;
  color: #fff;
  line-height: 1.3;
}

.trial-perk p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.trial-card .panel-body {
  padding: 1rem 1.25rem 1.25rem;
}

.trial-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  color: #fff;
  line-height: 1.35;
}

.trial-card .panel-body > p {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.trial-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.trial-tag {
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.6875rem;
}

.trial-tag::before {
  content: "✓ ";
  color: var(--accent);
}

.trial-note {
  margin: 0.75rem 0 0;
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-align: center;
}

/* Footer */

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 2.5rem 0 max(1.5rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: #12081f;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.footer-brand-col .brand {
  margin-bottom: 0.35rem;
}

.footer-tagline {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin: 0;
  max-width: 14rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.footer-tagline-line {
  display: block;
}

.footer-label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.social-links a:hover {
  border-color: var(--accent);
  color: #fff;
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.payment-icon {
  flex-shrink: 0;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Legal */

.legal-main {
  padding: 2.5rem 0 4rem;
}

.legal-panel {
  max-width: 46rem;
  margin-inline: auto;
}

.legal-body {
  padding: 2rem 1.75rem;
}

.legal-intro {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.legal-index {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(212, 212, 212, 0.12);
}

.legal-index li {
  border-bottom: 1px solid rgba(212, 212, 212, 0.12);
}

.legal-index a {
  display: block;
  padding: 1rem 0;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.15s ease;
}

.legal-index a:hover {
  color: var(--text-muted);
}

.legal-doc h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.35;
  color: #fff;
  font-weight: 600;
}

.legal-doc h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.05rem;
  line-height: 1.4;
  color: #fff;
  font-weight: 600;
}

.legal-doc p {
  margin: 0 0 0.85rem;
  color: rgba(212, 212, 212, 0.88);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal-doc p.legal-en {
  margin-top: -0.35rem;
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(212, 212, 212, 0.18);
  color: rgba(212, 212, 212, 0.62);
  font-style: italic;
  font-size: 0.875rem;
}

.legal-doc ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: rgba(212, 212, 212, 0.88);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal-doc li {
  margin-bottom: 0.35rem;
}

.legal-doc strong {
  color: #fff;
  font-weight: 600;
}

.legal-doc hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid rgba(212, 212, 212, 0.15);
}

.legal-doc a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-doc a:hover {
  color: var(--text-muted);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 212, 212, 0.12);
  font-size: 0.875rem;
}

.legal-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.legal-nav a:hover {
  color: #fff;
}

.legal-nav-sep {
  color: rgba(212, 212, 212, 0.35);
}

/* Responsive */

@media (max-width: 639px) {
  :root {
    --header-h: 3.5rem;
  }

  .section {
    padding: 2rem 0;
  }

  .section-title {
    margin-bottom: 1.25rem;
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    padding-inline: 0.25rem;
  }

  .hero-stage {
    gap: 0.5rem;
    padding-top: 0.25rem;
  }

  .hero-panel .panel-body {
    padding: 0.875rem 1rem 1.125rem;
  }

  .hero-panel h1 {
    font-size: clamp(1.5rem, 6.5vw, 2.25rem);
    hyphens: auto;
  }

  .stats-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
  }

  .stat-card .panel-body {
    padding: 0.625rem 0.375rem 0.75rem;
    min-height: 4.5rem;
  }

  .stat-value {
    font-size: clamp(1rem, 4vw, 1.35rem);
  }

  .stat-label {
    font-size: 0.625rem;
    line-height: 1.25;
  }

  .feature-card p {
    max-width: none;
  }

  .feature-card .panel-body,
  .step-card .panel-body,
  .trial-card .panel-body,
  .platforms-section .section-panel .panel-body {
    padding-inline: 1rem;
  }

  .platforms-row {
    gap: 0.5rem;
  }

  .platform-chip {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }

  .trial-perk-inner {
    padding: 0.625rem 0.875rem 0.875rem;
  }

  .trial-card h3 {
    font-size: 1rem;
  }

  .btn-lg {
    min-height: 3rem;
    font-size: 0.9375rem;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }

  .brand-logo {
    width: 1.5rem;
    height: 1.5rem;
  }

  .brand-name {
    font-size: 1.125rem;
  }

  .lang-switch {
    padding-left: 0.5rem;
    margin-left: 0;
    gap: 0.25rem;
    font-size: 0.75rem;
    border-left: 1px solid var(--border);
  }

  .lang-link {
    min-width: 1.625rem;
    min-height: 1.875rem;
    padding: 0;
  }

  .btn-login,
  .btn-register {
    min-height: 2rem;
    padding: 0.35rem 0.625rem;
    font-size: 0.6875rem;
    letter-spacing: 0.02em;
  }

  .site-footer {
    padding-top: 2rem;
  }

  .footer-grid {
    gap: 1.5rem;
    text-align: center;
  }

  .footer-nav {
    align-items: center;
  }

  .social-links,
  .payment-icons {
    justify-content: center;
  }

  .legal-main {
    padding: 1.5rem 0 2.5rem;
  }

  .legal-body {
    padding: 1.25rem 1rem;
  }

  .legal-doc h1 {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    word-break: break-word;
  }

  .legal-doc p,
  .legal-doc ul {
    font-size: 0.875rem;
  }

  .glass-panel {
    background: rgba(31, 16, 57, 0.12);
  }
}

@media (max-width: 359px) {
  .header-inner {
    flex-wrap: wrap;
    row-gap: 0.375rem;
  }

  .header-brand-group {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  .header-actions {
    flex: 1 1 100%;
    justify-content: stretch;
    margin-left: 0;
  }

  .btn-login,
  .btn-register {
    flex: 1 1 0;
    justify-content: center;
  }

  .stats-row {
    gap: 0.375rem;
  }

  .stat-label {
    font-size: 0.5625rem;
  }
}

@media (min-width: 640px) {
  .features-stage .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .trial-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .trial-title {
    justify-content: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .header-inner {
    padding: 0 1.5rem 0 1rem;
  }

  .features-stage .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    align-items: start;
  }
}

@media (max-width: 899px) {
  .header-inner {
    padding-block: 0.5rem;
  }
}

html[lang="ru"] .hero-panel h1 {
  font-size: clamp(1.35rem, 5.5vw, 2.5rem);
}

/* Auth pages */
.auth-main {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 8vw, 5rem);
}

.auth-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.5rem;
}

.auth-root {
  width: min(100%, 24rem);
}

.auth-panel {
  width: 100%;
  color-scheme: dark;
}

.auth-panel--static:hover {
  border-color: var(--border);
  background: var(--glass);
}

.auth-panel-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem 1.5rem 1.5rem;
}

.auth-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  text-align: center;
}

.auth-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(155, 109, 255, 0.35);
  background: rgba(155, 109, 255, 0.12);
  color: #fff;
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

.auth-icon-badge .icon {
  width: 1.375rem;
  height: 1.375rem;
}

.auth-title {
  margin: 0;
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.auth-lead {
  margin: 0;
  max-width: 30ch;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  width: 100%;
}

.auth-field,
.auth-otp-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  width: 100%;
}

.auth-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.auth-panel .auth-field input[type="email"],
.auth-panel .auth-field input[type="password"],
.auth-panel .auth-field input[type="text"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: 0.65rem 0.875rem;
  border-radius: 8px;
  border: 1px solid rgba(155, 109, 255, 0.22);
  background: rgba(31, 16, 57, 0.55);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.auth-panel .auth-field input::placeholder {
  color: rgba(135, 136, 140, 0.7);
}

.auth-panel .auth-field input:hover {
  border-color: rgba(155, 109, 255, 0.38);
  background: rgba(42, 24, 80, 0.5);
}

.auth-panel .auth-field input:focus {
  outline: none;
  border-color: rgba(155, 109, 255, 0.65);
  background: rgba(42, 24, 80, 0.65);
  box-shadow: 0 0 0 3px rgba(155, 109, 255, 0.18);
}

.auth-panel .auth-field input:-webkit-autofill,
.auth-panel .auth-field input:-webkit-autofill:hover,
.auth-panel .auth-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  border: 1px solid rgba(155, 109, 255, 0.35);
  -webkit-box-shadow: 0 0 0 1000px rgba(42, 24, 80, 0.95) inset;
  box-shadow: 0 0 0 1000px rgba(42, 24, 80, 0.95) inset;
}

.auth-captcha-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.625rem;
  border-radius: 8px;
  border: 1px solid rgba(155, 109, 255, 0.15);
  background: rgba(31, 16, 57, 0.4);
  min-height: 100px;
}

.auth-captcha-wrap--compact {
  min-height: 100px;
}

.auth-captcha-mount {
  width: 100%;
  min-height: 100px;
}

.auth-panel .auth-submit {
  width: 100%;
  min-height: 2.75rem;
  margin-top: 0.125rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.auth-panel .auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-status {
  margin: 0;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  line-height: 1.45;
  text-align: center;
  border: 1px solid rgba(155, 109, 255, 0.25);
  background: rgba(155, 109, 255, 0.1);
  color: var(--text);
}

.auth-status--error {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
}

.auth-otp-step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.auth-otp-step[hidden],
.auth-panel .auth-form[hidden],
.auth-header[hidden] {
  display: none !important;
}

.auth-otp-header {
  text-align: center;
}

.auth-otp-title {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
}

.auth-otp-body {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.auth-otp-single {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(212, 212, 212, 0.18);
  border-radius: 0.6rem;
  background: rgba(42, 24, 80, 0.55);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.35rem;
  letter-spacing: 0.35em;
  text-align: center;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.auth-otp-single:focus {
  outline: none;
  border-color: rgba(155, 109, 255, 0.65);
  background: rgba(42, 24, 80, 0.7);
  box-shadow: 0 0 0 3px rgba(155, 109, 255, 0.18);
}

.auth-otp-single::placeholder {
  color: rgba(135, 136, 140, 0.55);
  letter-spacing: 0.2em;
}

.auth-otp-digits {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem;
  width: 100%;
}

.auth-otp-digit {
  width: 100%;
  aspect-ratio: 1;
  min-height: 2.5rem;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(155, 109, 255, 0.22);
  background: rgba(31, 16, 57, 0.55);
  color: #fff;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.auth-otp-digit:focus {
  outline: none;
  border-color: rgba(155, 109, 255, 0.65);
  background: rgba(42, 24, 80, 0.65);
  box-shadow: 0 0 0 3px rgba(155, 109, 255, 0.18);
}

.auth-otp-digit.auth-otp-digit--filled {
  border-color: rgba(155, 109, 255, 0.45);
  background: rgba(42, 24, 80, 0.7);
}

.auth-resend-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}

.auth-resend {
  padding: 0;
  border: none;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.auth-resend:hover {
  color: #c4a0ff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.auth-resend:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(212, 212, 212, 0.1);
  text-align: center;
}

.auth-switch {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--accent);
  font-weight: 500;
  margin-left: 0.2rem;
}

.auth-nav a {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.auth-nav a:hover {
  color: #fff;
}

@media (max-width: 380px) {
  .auth-panel-body {
    padding: 1.5rem 1.125rem 1.125rem;
  }

  .auth-otp-digits {
    gap: 0.3rem;
  }
}

/* Support widget */
.support-widget {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 252;
}

.support-fab {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.65rem 1rem;
  margin: 0;
  border: 1px solid rgba(212, 212, 212, 0.2);
  border-radius: 999px;
  background: rgba(31, 16, 57, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.support-fab:hover {
  transform: translateY(-2px);
  background: rgba(42, 24, 80, 0.58);
  border-color: rgba(155, 109, 255, 0.45);
  box-shadow: 0 12px 36px rgba(124, 77, 255, 0.22);
}

.support-fab:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(155, 109, 255, 0.35),
    0 8px 32px rgba(0, 0, 0, 0.28);
}

.support-fab .icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.support-fab-label {
  line-height: 1;
}

.support-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(15, 8, 28, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.support-panel {
  position: fixed;
  bottom: 5.25rem;
  right: 1.25rem;
  z-index: 251;
  width: min(22rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 7rem);
  overflow-y: auto;
  animation: support-slide-in 200ms ease;
}

@keyframes support-slide-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.support-panel-body {
  padding: 1.25rem;
}

.support-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.support-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.support-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.support-close:hover {
  color: var(--text);
  border-color: var(--border-bright);
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.support-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.support-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.support-field input,
.support-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.support-field input::placeholder,
.support-field textarea::placeholder {
  color: rgba(135, 136, 140, 0.7);
}

.support-field input:focus,
.support-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(155, 109, 255, 0.2);
}

.support-field textarea {
  resize: vertical;
  min-height: 5.5rem;
}

.support-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.support-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.support-status {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

.support-status--pending {
  color: var(--text-muted);
}

.support-status--success {
  color: #6ee7a0;
}

.support-status--error {
  color: #f87171;
}

body.support-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .support-fab-label {
    display: none;
  }

  .support-fab {
    width: 3rem;
    height: 3rem;
    min-height: 3rem;
    padding: 0;
    border-radius: 50%;
  }

  .support-panel {
    right: 1rem;
    left: 1rem;
    width: auto;
    bottom: 4.75rem;
  }
}

/* Header — logged-in state */
.header-actions--user {
  align-items: center;
  gap: 0.65rem;
}

.header-user-email {
  display: inline-flex;
  align-items: center;
  max-width: min(14rem, 42vw);
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(92, 225, 230, 0.28);
  border-radius: 999px;
  background: rgba(92, 225, 230, 0.06);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    border-color var(--transition),
    background var(--transition),
    color var(--transition);
}

.header-user-email:hover {
  border-color: rgba(92, 225, 230, 0.5);
  background: rgba(92, 225, 230, 0.1);
  color: #fff;
}

.header-user-email span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#header-logout {
  flex-shrink: 0;
}

/* User panel */
.panel-main {
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}

.panel-root {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.panel-surface {
  background: rgba(31, 16, 57, 0.82);
  border-color: rgba(155, 109, 255, 0.22);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel-account-section.glass-panel:hover,
.panel-link-card.glass-panel:hover,
.panel-connect-section.glass-panel:hover,
.panel-plans-section.glass-panel:hover {
  background: rgba(31, 16, 57, 0.82);
  border-color: rgba(155, 109, 255, 0.22);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel-surface-body {
  padding: 1.5rem 1.5rem 1.35rem;
}

.panel-hero {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.panel-hero--inset {
  text-align: left;
  max-width: none;
  margin: 0 0 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-account-section .panel-stats-grid {
  margin-top: 0.15rem;
}

.panel-account-section .panel-stat-card,
.panel-account-section .panel-stat-card--ai {
  background: rgba(20, 10, 38, 0.55);
  border-color: rgba(155, 109, 255, 0.16);
}

.panel-account-section .panel-stat-card:hover,
.panel-account-section .panel-stat-card--ai:hover {
  background: rgba(28, 14, 52, 0.68);
  border-color: rgba(155, 109, 255, 0.24);
}

.panel-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.panel-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  color: #fff;
}

.panel-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.panel-status-msg {
  margin: 0;
  text-align: center;
  color: var(--text-muted);
}

.panel-status-msg--error {
  color: #f87171;
}

.panel-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.panel-stat-card .panel-body {
  padding: 1.25rem 1.35rem;
}

.panel-stat-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 8.5rem;
}

.panel-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.panel-stat-value-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0;
}

.panel-stat-value {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.panel-stat-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.panel-plan-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.panel-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.panel-badge--trial {
  background: rgba(155, 109, 255, 0.18);
  color: #c4a0ff;
  border: 1px solid rgba(155, 109, 255, 0.35);
}

.panel-badge--paid {
  background: rgba(92, 225, 230, 0.12);
  color: #8ef6fa;
  border: 1px solid rgba(92, 225, 230, 0.28);
}

.panel-status-pill {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.panel-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.panel-status--active {
  background: rgba(110, 231, 160, 0.12);
  color: #6ee7a0;
  border: 1px solid rgba(110, 231, 160, 0.28);
}

.panel-status--inactive {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.28);
}

.panel-status--online {
  background: rgba(59, 130, 246, 0.14);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.32);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.12);
}

.panel-status--offline {
  background: rgba(107, 114, 128, 0.14);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.28);
}

.panel-progress {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.panel-progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 500ms ease;
}

.panel-progress-bar--days {
  background: linear-gradient(90deg, #9b6dff, #c4a0ff);
}

.panel-progress-bar--data {
  background: linear-gradient(90deg, #5ce1e6, #8ef6fa);
}

/* AI resource meters */
.panel-stat-card--ai {
  position: relative;
  overflow: hidden;
  --ai-color-a: #9b6dff;
  --ai-color-b: #5ce1e6;
  --ai-glow: rgba(155, 109, 255, 0.28);
}

.panel-stat-card--ai.ai-urgency--mid {
  --ai-color-a: #c4a0ff;
  --ai-color-b: #fbbf24;
  --ai-glow: rgba(251, 191, 36, 0.22);
}

.panel-stat-card--ai.ai-urgency--low {
  --ai-color-a: #f59e0b;
  --ai-color-b: #f87171;
  --ai-glow: rgba(245, 158, 11, 0.28);
}

.panel-stat-card--ai.ai-urgency--critical {
  --ai-color-a: #ef4444;
  --ai-color-b: #f97316;
  --ai-glow: rgba(239, 68, 68, 0.35);
  animation: ai-critical-pulse 1.4s ease-in-out infinite;
}

.panel-stat-card--ai.ai-urgency--empty {
  --ai-color-a: #6b7280;
  --ai-color-b: #4b5563;
  --ai-glow: rgba(107, 114, 128, 0.2);
  opacity: 0.82;
}

@keyframes ai-critical-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--ai-glow);
  }
  50% {
    box-shadow: 0 0 28px 2px var(--ai-glow);
  }
}

.ai-metric-aura {
  position: absolute;
  inset: -30% -10%;
  background:
    radial-gradient(circle at 30% 40%, var(--ai-glow), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(92, 225, 230, 0.12), transparent 50%);
  pointer-events: none;
  opacity: 0.9;
  animation: ai-aura-drift 8s ease-in-out infinite alternate;
}

@keyframes ai-aura-drift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(2%, 1%, 0) scale(1.04);
  }
}

.panel-stat-card--ai .panel-body {
  position: relative;
  z-index: 1;
}

.ai-metric {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
}

.ai-metric-visual {
  position: relative;
  width: 7.5rem;
  height: 7.5rem;
}

.ai-metric-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0.85;
}

.ai-metric-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ai-metric-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 6;
}

.ai-metric-ring-fill {
  fill: none;
  stroke: url(#ai-ring-gradient);
  stroke: var(--ai-color-b);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 8px var(--ai-glow));
  transition:
    stroke-dashoffset 900ms cubic-bezier(0.22, 1, 0.36, 1),
    stroke 400ms ease;
}

.panel-stat-card--ai[data-ai-metric="days"] .ai-metric-ring-fill {
  stroke: var(--ai-color-a);
}

.panel-stat-card--ai[data-ai-metric="data"] .ai-metric-ring-fill {
  stroke: var(--ai-color-b);
}

.ai-metric-core {
  position: absolute;
  inset: 22%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(15, 8, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 18px rgba(155, 109, 255, 0.12),
    0 0 24px rgba(92, 225, 230, 0.08);
}

.ai-metric-pct {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.ai-metric-data {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.ai-metric-value-row {
  margin: 0;
}

.ai-metric-value {
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px var(--ai-glow);
  transition: text-shadow 400ms ease;
}

.ai-metric-unit {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.ai-metric-status {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ai-color-b);
  min-height: 1rem;
}

.panel-stat-card--ai.ai-urgency--critical .ai-metric-value {
  animation: ai-value-glitch 2.2s steps(2, end) infinite;
}

@keyframes ai-value-glitch {
  0%,
  92%,
  100% {
    transform: translate(0);
    filter: none;
  }
  93% {
    transform: translate(-1px, 0);
    filter: hue-rotate(12deg);
  }
  95% {
    transform: translate(1px, 0);
  }
}

.ai-metric-bar {
  position: relative;
  height: 0.5rem;
  margin-top: 0.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ai-metric-bar-fill {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ai-color-a), var(--ai-color-b));
  box-shadow: 0 0 14px var(--ai-glow);
  transition: width 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ai-metric-bar-glow {
  position: absolute;
  inset: 0 auto 0 0;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: ai-bar-glow 2.4s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
}

.ai-metric-bar-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 6px,
    rgba(255, 255, 255, 0.03) 6px,
    rgba(255, 255, 255, 0.03) 7px
  );
  z-index: 1;
  pointer-events: none;
}

@keyframes ai-bar-glow {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateX(320%);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel-stat-card--ai.ai-urgency--critical,
  .ai-metric-aura,
  .ai-metric-bar-glow,
  .panel-stat-card--ai.ai-urgency--critical .ai-metric-value {
    animation: none;
  }

  .ai-metric-ring-fill,
  .ai-metric-bar-fill {
    transition: none;
  }
}

.panel-link-card .panel-body,
.panel-connect-section .panel-surface-body,
.panel-plans-section .panel-surface-body {
  padding: 1.35rem;
}

.home-how-section .panel-connect-section {
  margin: 0;
}

#home.section {
  padding-bottom: clamp(1.25rem, 3vw, 2.25rem);
}

.home-how-section.section {
  padding-top: clamp(1.25rem, 3vw, 2.25rem);
}

.panel-plans-section.panel-surface .panel-plans-header {
  text-align: left;
  margin-bottom: 0.15rem;
}

.panel-plans-section.panel-surface .panel-section-lead {
  margin-bottom: 1rem;
}

.panel-plans-section.panel-surface .panel-plan-card {
  background: rgba(20, 10, 38, 0.55);
  border-color: rgba(155, 109, 255, 0.16);
}

.panel-plans-section.panel-surface .panel-plan-card:hover {
  background: rgba(28, 14, 52, 0.68);
  border-color: rgba(155, 109, 255, 0.24);
}

.panel-connect-hero {
  margin: 0.35rem auto 1.35rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.panel-connect-hero img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 0.65rem;
}

.panel-connect-stores {
  margin-bottom: 1.35rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-connect-instructions {
  display: grid;
  gap: 0.75rem;
}

.panel-connect-lead {
  margin: 0;
}

.panel-connect-steps {
  margin: 0;
  padding: 0 0 0 0.15rem;
  list-style: none;
  counter-reset: connect-step;
  display: grid;
  gap: 0;
}

.panel-connect-step {
  position: relative;
  margin: 0;
  padding: 0.7rem 0 0.7rem 1.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.55;
  counter-increment: connect-step;
}

.panel-connect-step::before {
  content: counter(connect-step) ".";
  position: absolute;
  left: 0;
  top: 0.7rem;
  color: rgba(106, 174, 180, 0.72);
  font-weight: 600;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.panel-connect-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.panel-connect-ready {
  margin: 0.15rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.panel-connect-stores-title {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.panel-store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.panel-store-badge {
  display: inline-flex;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.panel-store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.panel-store-badge img {
  display: block;
  height: 2.75rem;
  width: auto;
  max-width: 100%;
}

.panel-store-badge--apk .panel-store-badge-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(212, 212, 212, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.panel-section-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.panel-section-lead {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.panel-setup-note {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.6rem;
  background: rgba(155, 109, 255, 0.1);
  border: 1px solid rgba(155, 109, 255, 0.22);
  color: #d8c4ff;
  font-size: 0.85rem;
}

.panel-link-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.panel-link-input {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
}

.panel-link-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(155, 109, 255, 0.18);
}

.panel-plans-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.panel-plans-header {
  text-align: center;
}

.panel-pricing-currency {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(106, 174, 180, 0.72);
}

.panel-plan-status {
  margin: 0.75rem 0 0;
  min-height: 1.25rem;
  color: var(--accent);
  font-size: 0.875rem;
}

.panel-plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.panel-plan-card .panel-body {
  padding: 1.25rem;
  height: 100%;
}

.panel-plan-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.panel-plan-top {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.panel-plan-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.panel-plan-price {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  color: rgba(106, 174, 180, 0.9);
}

.panel-plan-period {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.panel-plan-features {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.panel-plan-cta {
  width: 100%;
  margin-top: auto;
}

@media (max-width: 1100px) {
  .panel-plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .panel-stats-grid,
  .panel-plans-grid {
    grid-template-columns: 1fr;
  }

  .panel-stat-body {
    min-height: auto;
  }

  .ai-metric {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }

  .ai-metric-visual {
    width: 6.5rem;
    height: 6.5rem;
  }
}

@media (max-width: 640px) {
  .header-actions--user {
    gap: 0.45rem;
  }

  .header-user-email {
    max-width: 9.5rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }

  #header-logout {
    padding-inline: 0.75rem;
    font-size: 0.75rem;
  }

  .panel-link-row .btn {
    width: 100%;
  }
}
