/* ===================================
   Vertex Proxies — marketing & dashboard styles
   =================================== */

/* CSS Variables */
:root {
  --color-bg-primary: #0a0b0f;
  --color-bg-secondary: #0d0e14;
  --color-bg-card: #12141a;
  --color-border: #1e2028;
  --color-border-hover: #2a2d38;
  --color-blue-primary: #3b82f6;
  --color-blue-dark: #1d4ed8;
  --color-blue-light: #60a5fa;
  --color-blue-lighter: #93c5fd;
  --color-green: #22c55e;
  --color-yellow: #fbbf24;
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-muted: rgba(255, 255, 255, 0.5);
  --color-text-faint: rgba(255, 255, 255, 0.4);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --navbar-bg: rgba(10, 11, 15, 0.8);
  --navbar-bg-scrolled: rgba(10, 11, 15, 0.95);
  --navbar-border: rgba(255, 255, 255, 0.05);
  --hero-stat-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(18, 20, 26, 0.9) 100%);
  --hero-stat-border: rgba(255, 255, 255, 0.08);
  --hero-stat-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  --trust-strip-bg: rgba(0, 0, 0, 0.2);
  --cta-box-gradient: linear-gradient(135deg, #1e3a5f 0%, var(--color-bg-card) 100%);
  --cta-box-border: #234876;
  --dash-navbar-offset: 88px;
  --dash-top-nav-height: 56px;
  --dash-scroll-sticky-offset: calc(var(--dash-navbar-offset) + var(--dash-top-nav-height));
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

ul, ol {
  list-style: none;
}

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animate-in {
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* Scroll-triggered section reveals */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 max(20px, var(--safe-left)) 0 max(20px, var(--safe-right));
}

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

.gradient-text {
  background: linear-gradient(135deg, var(--color-blue-primary) 0%, var(--color-blue-light) 50%, var(--color-blue-lighter) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--color-blue-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.08s;
}

.btn-primary:active {
  box-shadow: 0 6px 22px rgba(59, 130, 246, 0.22);
}

.btn-secondary:active {
  background: rgba(255, 255, 255, 0.08);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-text-secondary);
  cursor: pointer;
  font: inherit;
  flex-shrink: 0;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: rgba(59, 130, 246, 0.15);
}

@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover {
    color: var(--color-text-primary);
    border-color: var(--color-border-hover);
    background: var(--color-bg-secondary);
  }
}

.theme-toggle:active {
  transform: scale(0.94);
}

.theme-toggle__icon {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.theme-toggle__icon--moon {
  display: none;
}

[data-theme="light"] .theme-toggle__icon--sun {
  display: none;
}

[data-theme="light"] .theme-toggle__icon--moon {
  display: block;
}

/* Light theme — default (no data-theme) is dark, optimized for night use */
[data-theme="light"] {
  --color-bg-primary: #eef1f7;
  --color-bg-secondary: #e4e9f2;
  --color-bg-card: #ffffff;
  --color-border: #d8dee9;
  --color-border-hover: #c5cdd9;
  --color-text-primary: #0f172a;
  --color-text-secondary: rgba(15, 23, 42, 0.78);
  --color-text-muted: rgba(15, 23, 42, 0.55);
  --color-text-faint: rgba(15, 23, 42, 0.42);
  --navbar-bg: rgba(255, 255, 255, 0.82);
  --navbar-bg-scrolled: rgba(255, 255, 255, 0.94);
  --navbar-border: rgba(15, 23, 42, 0.08);
  --hero-stat-bg: linear-gradient(145deg, #ffffff 0%, #f0f3f9 100%);
  --hero-stat-border: rgba(15, 23, 42, 0.1);
  --hero-stat-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
  --trust-strip-bg: rgba(15, 23, 42, 0.04);
  --cta-box-gradient: linear-gradient(135deg, #dbeafe 0%, #ffffff 100%);
  --cta-box-border: rgba(37, 99, 235, 0.35);
}

[data-theme="light"] .navbar-toggle span {
  background: var(--color-text-primary);
}

[data-theme="light"] .btn-secondary {
  border-color: rgba(15, 23, 42, 0.18);
}

@media (hover: hover) {
  [data-theme="light"] .btn-secondary:hover {
    border-color: rgba(15, 23, 42, 0.32);
    background: rgba(15, 23, 42, 0.04);
  }
}

[data-theme="light"] .btn-ghost {
  background: rgba(15, 23, 42, 0.03);
  color: var(--color-text-secondary);
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .feature-card--spotlight {
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(59, 130, 246, 0.15) inset;
}

[data-theme="light"] .feature-card--spotlight .feature-metric {
  color: var(--color-blue-dark);
}

[data-theme="light"] .purchase-modal-panel {
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.14);
}

[data-theme="light"] .purchase-modal-x {
  background: rgba(255, 255, 255, 0.96);
}

@media (hover: hover) {
  [data-theme="light"] .purchase-modal-x:hover {
    background: #f1f5f9;
  }
}

[data-theme="light"] .dash-mobile-nav {
  background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .dash-menu-toggle {
  background: rgba(15, 23, 42, 0.06);
}

@media (hover: hover) {
  [data-theme="light"] .dash-mobile-link:hover {
    background: rgba(15, 23, 42, 0.06);
  }
}

/* Dashboard nav — light: white rail vs page tint, readable active state */
[data-theme="light"] .dash-top-nav {
  background: #ffffff;
  border-bottom-color: rgba(15, 23, 42, 0.12);
}

@media (hover: hover) {
  [data-theme="light"] .dash-side-link:hover {
    color: var(--color-text-primary);
    background: rgba(15, 23, 42, 0.06);
  }
}

[data-theme="light"] .dash-side-link.active,
[data-theme="light"] .dash-mobile-link.active {
  color: #1d4ed8;
  background: #dbeafe;
  font-weight: 600;
}

[data-theme="light"] .auth-banner code {
  background: rgba(15, 23, 42, 0.06);
  color: var(--color-text-primary);
}

[data-theme="light"] .pricing-card:not(.popular) {
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .pricing-value-hint {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .hero-bg {
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.07) 1px, transparent 1px);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: calc(12px + var(--safe-top)) 0 12px;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--navbar-border);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.navbar.navbar--scrolled {
  background: var(--navbar-bg-scrolled);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo {
  width: auto;
  height: 36px;
  max-width: 120px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.navbar-name {
  font-size: 18px;
  font-weight: 600;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-link {
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar-link:hover {
  color: var(--color-text-primary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-actions .btn {
  padding: 10px 20px;
}

/* Mobile menu toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  -webkit-tap-highlight-color: rgba(59, 130, 246, 0.2);
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: calc(72px + var(--safe-top));
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  padding-bottom: max(24px, var(--safe-bottom));
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-glow-1 {
  position: absolute;
  top: 20%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: 20%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

@keyframes hero-badge-shimmer {
  0% {
    background-position: 120% 50%;
  }
  100% {
    background-position: -20% 50%;
  }
}

@keyframes hero-badge-dot-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
  }
  50% {
    opacity: 0.95;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
}

.hero-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #dbeafe;
  margin-bottom: 24px;
  border: 1px solid rgba(96, 165, 250, 0.45);
  background: linear-gradient(105deg, rgba(37, 99, 235, 0.35) 0%, rgba(88, 28, 135, 0.28) 50%, rgba(37, 99, 235, 0.32) 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) inset, 0 12px 40px rgba(59, 130, 246, 0.18);
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-badge {
    animation: hero-badge-shimmer 7s ease-in-out infinite alternate;
  }
}

.hero-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.12) 45%, transparent 70%);
  pointer-events: none;
}

.hero-badge-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  background: var(--color-green);
  border-radius: 50%;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-badge-dot {
    animation: hero-badge-dot-pulse 2.4s ease-in-out infinite;
  }
}

.hero-badge-text {
  position: relative;
  z-index: 1;
  text-align: left;
  line-height: 1.35;
}

.hero-badge-number {
  display: inline-block;
  min-width: 1.15em;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  background: linear-gradient(180deg, #fff 0%, #bfdbfe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  justify-content: center;
  align-items: center;
  margin-bottom: 60px;
}

.hero-cta-primary {
  min-width: min(280px, 100%);
  padding: 18px 36px;
  font-size: 17px;
  box-shadow: 0 14px 44px rgba(59, 130, 246, 0.35);
}

.hero-cta-secondary {
  min-width: 0;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 500;
}

@media (hover: hover) {
  .btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-primary);
    transform: none;
    box-shadow: none;
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
}

.hero-stat {
  text-align: left;
}

.hero-stat-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 16px 18px;
  background: var(--hero-stat-bg);
  border: 1px solid var(--hero-stat-border);
  border-radius: 14px;
  height: 100%;
  box-shadow: var(--hero-stat-shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .hero-stat-inner:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 12px 36px rgba(59, 130, 246, 0.12);
  }
}

.hero-stat-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--color-blue-light);
}

.hero-stat-icon svg {
  width: 20px;
  height: 20px;
}

.hero-stat-copy {
  min-width: 0;
}

.hero-stat-value {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.35;
}

/* Trust strip (replaces placeholder logos) */
.trust-strip {
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--trust-strip-bg);
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
}

.trust-pill {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  min-width: min(200px, 100%);
  text-align: center;
}

.trust-pill-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
}

.trust-pill-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* Section Styles */
.section {
  padding: 120px 0;
}

.section-dark {
  background: var(--color-bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

  .feature-card--spotlight {
    grid-column: span 2;
  }

  .feature-card:not(.feature-card--spotlight) {
    grid-column: span 2;
  }
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  border-color: var(--color-blue-primary);
  transform: translateY(-4px);
}

.feature-card--spotlight {
  position: relative;
  padding: 32px 28px 30px;
  border-color: rgba(59, 130, 246, 0.45);
  background: linear-gradient(155deg, rgba(59, 130, 246, 0.12) 0%, var(--color-bg-card) 42%, var(--color-bg-primary) 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(59, 130, 246, 0.12) inset;
}

.feature-card--spotlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, transparent, var(--color-blue-primary), rgba(139, 92, 246, 0.8), transparent);
  opacity: 0.9;
}

.feature-card--spotlight:hover {
  border-color: rgba(96, 165, 250, 0.65);
  box-shadow: 0 24px 56px rgba(59, 130, 246, 0.15), 0 0 0 1px rgba(59, 130, 246, 0.2) inset;
}

.feature-card--spotlight .feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(59, 130, 246, 0.18);
}

.feature-card--spotlight .feature-title {
  font-size: 20px;
}

.feature-metric {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 10px;
}

.feature-card--spotlight .feature-metric {
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #93c5fd;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-blue-primary);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-description {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step {
  text-align: center;
}

.step-number {
  font-size: 64px;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.3) 0%, transparent 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.step-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.step-description {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Pricing */
.pricing-toggle {
  display: inline-flex;
  background: var(--color-bg-card);
  border-radius: 30px;
  padding: 4px;
  border: 1px solid var(--color-border);
  margin-bottom: 48px;
}

.pricing-toggle-btn {
  padding: 10px 24px;
  border-radius: 26px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.pricing-toggle-btn.active {
  background: var(--color-blue-primary);
  color: white;
}

.pricing-toggle-btn:active {
  transform: scale(0.98);
}

.pricing-toggle-btn .save-badge {
  color: var(--color-green);
  margin-left: 6px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-grid.pricing-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  align-items: stretch;
}

.pricing-grid.pricing-grid-two .pricing-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-width: 2px;
  box-sizing: border-box;
}

.pricing-grid.pricing-grid-two .pricing-card:not(.popular) {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .pricing-grid.pricing-grid-two .pricing-card:not(.popular) {
  border-color: rgba(15, 23, 42, 0.1);
}

.pricing-grid.pricing-grid-two .pricing-card .btn {
  margin-top: auto;
}

.pricing-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-8px);
}

.pricing-card:not(.popular) {
  border-color: rgba(255, 255, 255, 0.06);
  background: var(--color-bg-card);
}

.pricing-card.popular {
  border: 2px solid rgba(59, 130, 246, 0.85);
  background: linear-gradient(165deg, rgba(59, 130, 246, 0.14) 0%, var(--color-bg-card) 38%, var(--color-bg-secondary) 100%);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2) inset, 0 24px 60px rgba(59, 130, 246, 0.12);
}

.pricing-value-hint {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-value-hint strong {
  color: var(--color-text-secondary);
  font-weight: 600;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-blue-primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.pricing-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-description {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.pricing-price {
  margin-bottom: 8px;
}

.pricing-amount {
  font-size: 48px;
  font-weight: 700;
}

.pricing-period {
  color: var(--color-text-muted);
  font-size: 14px;
}

.pricing-bandwidth {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.pricing-card .btn {
  margin-bottom: 28px;
}

.pricing-features {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.pricing-feature svg {
  width: 16px;
  height: 16px;
  color: var(--color-green);
  flex-shrink: 0;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-secondary) 100%);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease, filter 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .testimonial-card:hover {
    border-color: var(--color-blue-primary);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.14);
  }
}

.testimonial-stars {
  margin-bottom: 20px;
  color: var(--color-yellow);
  font-size: 16px;
  letter-spacing: 2px;
}

.testimonial-quote {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
  color: var(--color-text-secondary);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-blue-primary) 0%, #8b5cf6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.testimonial-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.testimonial-role {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

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

.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--color-border-hover);
}

.feature-card:active,
.pricing-card:active,
.testimonial-card:active,
.faq-item:active {
  filter: brightness(0.97);
  transition: filter 0.1s ease;
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--color-text-muted);
  line-height: 1.7;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* CTA Section */
.cta {
  padding: 120px 0;
}

.cta-box {
  background: var(--cta-box-gradient);
  border: 1px solid var(--cta-box-border);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.cta-glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.cta-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}

.cta-subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
}

/* Footer */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 280px;
}

.footer-brand .navbar-brand {
  margin-bottom: 16px;
}

.footer-brand .navbar-logo {
  height: 40px;
  max-width: 140px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 13px;
  color: var(--color-text-faint);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--color-text-faint);
  transition: color 0.2s ease;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .features-grid,
  .pricing-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card--spotlight {
    grid-column: span 2;
  }
  
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    display: none;
  }
  
  .navbar-toggle {
    display: flex;
  }
  
  .navbar-actions {
    display: none;
  }
  
  .hero-title {
    font-size: clamp(30px, 8vw, 42px);
  }
  
  .hero-subtitle {
    font-size: 16px;
    padding: 0 4px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .features-grid,
  .pricing-grid,
  .testimonials-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .feature-card--spotlight {
    grid-column: auto;
  }

  .pricing-grid.pricing-grid-two {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .pricing-card {
    padding: 24px 20px;
  }

  .pricing-amount {
    font-size: clamp(30px, 11vw, 48px);
  }

  .navbar-name {
    font-size: 16px;
    max-width: min(200px, 46vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .faq-question {
    padding: 16px 18px;
    gap: 12px;
    align-items: flex-start;
  }

  .dash-main {
    padding-left: max(16px, var(--safe-left));
    padding-right: max(16px, var(--safe-right));
    padding-bottom: max(64px, calc(40px + var(--safe-bottom)));
  }

  .dash-stats,
  .dash-product-stats-row {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .dash-mock-label {
    flex: 0 0 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .cta-box {
    padding: 40px 24px;
  }
  
  .cta-title {
    font-size: 28px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: max(14px, var(--safe-left));
    padding-right: max(14px, var(--safe-right));
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 12px;
  }

  .hero-stat-value {
    font-size: clamp(22px, 6vw, 28px);
  }

  .hero-stat-label {
    font-size: 12px;
  }

  .section {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: clamp(24px, 7vw, 32px);
  }

  .section-subtitle {
    font-size: 16px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
  }

  .cta-box {
    padding: 32px 18px;
    border-radius: 18px;
  }

  .cta-title {
    font-size: clamp(22px, 6vw, 28px);
  }

  .auth-main {
    padding: calc(100px + var(--safe-top)) max(16px, var(--safe-left)) max(48px, var(--safe-bottom)) max(16px, var(--safe-right));
  }

  .auth-card {
    padding: 28px 20px;
    border-radius: 14px;
  }

  .auth-title {
    font-size: 24px;
  }

  .dashboard-section-title {
    font-size: clamp(18px, 5vw, 22px);
  }

  .dash-hero-title {
    font-size: 22px;
  }

  .dash-product-title {
    font-size: 22px;
  }

  .dashboard-section {
    padding: 20px 16px;
  }

  .dash-stat-card {
    padding: 16px 14px;
  }
}

/* Auth & dashboard */
.auth-body {
  min-height: 100vh;
  background: var(--color-bg-primary);
}

.auth-body .navbar .container {
  justify-content: space-between;
}

.auth-main {
  padding: 120px 24px 80px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 40px 36px;
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.auth-lead {
  color: var(--color-text-secondary);
  font-size: 15px;
  margin-bottom: 28px;
  line-height: 1.5;
}

.auth-banner {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: var(--color-yellow);
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.auth-banner code {
  font-size: 12px;
  color: var(--color-text-primary);
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--color-text-primary);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-blue-primary);
}

.form-input[readonly] {
  opacity: 0.88;
  cursor: default;
  border-style: dashed;
}

.auth-error {
  color: #f87171;
  font-size: 14px;
  margin: 8px 0 16px;
}

.auth-hint-below-error {
  margin: -8px 0 16px;
}

.auth-success {
  color: var(--color-green);
  font-size: 14px;
  margin: 8px 0 16px;
  line-height: 1.5;
}

.auth-info {
  color: var(--color-text-secondary);
  font-size: 14px;
  margin-top: 12px;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.auth-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-footer-sep {
  color: var(--color-text-faint);
  user-select: none;
}

.auth-existing-hint {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

.auth-existing-hint-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text-primary);
}

.auth-existing-hint-note {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

.auth-existing-hint-note em {
  font-style: normal;
  color: var(--color-text-secondary);
}

.auth-link {
  color: var(--color-blue-light);
  font-weight: 500;
}

.auth-link:hover {
  color: var(--color-blue-lighter);
}

.auth-forgot-panel {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.auth-wait {
  text-align: center;
  padding: 16px 0;
}

.dashboard-body .dashboard-main {
  padding-top: 100px;
  padding-bottom: 80px;
}

.dashboard-header {
  margin-bottom: 40px;
}

.dashboard-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.dashboard-subtitle {
  color: var(--color-text-secondary);
  font-size: 16px;
}

.dashboard-section {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 20px;
}

.dashboard-section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.dashboard-placeholder {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* App dashboard layout */
.dash-app-body {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  .dash-app-body {
    scroll-behavior: auto;
  }
}

.dash-app-body .navbar.dash-navbar {
  position: fixed;
  padding-left: max(0px, var(--safe-left));
  padding-right: max(0px, var(--safe-right));
}

.dash-navbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.dash-navbar-inner .navbar-brand {
  flex-shrink: 0;
}

.dash-back-to-account {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-blue-light);
  padding: 8px 10px;
  border-radius: 8px;
  flex-shrink: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(220px, 40vw);
  text-decoration: none;
}

@media (max-width: 899px) {
  .dash-back-to-account {
    display: none;
  }
}

@media (hover: hover) {
  .dash-back-to-account:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.06);
  }
}

.dash-navbar-trail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.page-dashboard .dash-menu-toggle,
.page-dashboard .dash-mobile-nav {
  display: none !important;
}

.dash-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: rgba(59, 130, 246, 0.2);
}

.dash-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-text-primary);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dash-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.dash-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.dash-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
  .dash-menu-toggle {
    display: none !important;
  }
}

.dash-mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--dash-navbar-offset);
  z-index: 95;
  background: rgba(13, 14, 20, 0.98);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-height: calc(100vh - var(--dash-navbar-offset) - var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 900px) {
  .dash-mobile-nav {
    display: none !important;
  }
}

.dash-mobile-nav-inner {
  padding: 16px 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.dash-mobile-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  margin: 4px 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

@media (hover: hover) {
  .dash-mobile-link:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.06);
  }
}

.dash-mobile-link:focus-visible {
  outline: 2px solid var(--color-blue-primary);
  outline-offset: 2px;
}

.dash-mobile-link[hidden] {
  display: none !important;
}

.dash-page-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  margin-bottom: 6px;
}

.dash-side-link[hidden] {
  display: none !important;
}

.dash-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: var(--dash-navbar-offset);
  isolation: isolate;
}

.dash-page-no-sidebar .dash-main {
  width: 100%;
  max-width: none;
}

.dash-top-nav {
  display: block;
  flex-shrink: 0;
  width: 100%;
  position: sticky;
  top: var(--dash-navbar-offset);
  z-index: 90;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  -webkit-overflow-scrolling: touch;
}

.dash-top-nav-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  min-height: var(--dash-top-nav-height);
  padding: 10px max(16px, var(--safe-left)) 10px max(16px, var(--safe-right));
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.dash-top-nav-inner::-webkit-scrollbar {
  height: 6px;
}

.dash-top-nav-inner::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 3px;
}

.dash-nav-group {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding-right: 8px;
}

.dash-nav-group:not(:first-child) {
  border-left: 1px solid var(--color-border);
  padding-left: 16px;
  margin-left: 8px;
}

.dash-nav-group-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}

.dash-nav-group-links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
}

.dash-top-nav .dash-side-link {
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
}

/* `hidden` on nav must win over flex displays */
.dash-mobile-nav-inner[hidden],
.dash-sidebar-team[hidden] {
  display: none !important;
}

.dash-sidebar-team {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dash-sidebar-team.dash-nav-group {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
}

[data-theme="light"] .dash-nav-group:not(:first-child) {
  border-left-color: rgba(15, 23, 42, 0.1);
}

.dash-side-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  margin: 16px 12px 8px;
}

.dash-side-label:first-child {
  margin-top: 0;
}

.dash-top-nav .dash-side-label {
  margin: 0;
}

.dash-side-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
  z-index: 1;
  -webkit-tap-highlight-color: rgba(59, 130, 246, 0.2);
  text-decoration: none;
  box-sizing: border-box;
}

@media (hover: hover) {
  .dash-side-link:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.05);
  }
}

.dash-side-link:focus-visible {
  outline: 2px solid var(--color-blue-primary);
  outline-offset: 2px;
}

.dash-side-link.active,
.dash-mobile-link.active {
  color: var(--color-blue-light);
  background: rgba(59, 130, 246, 0.12);
}

.dash-main {
  flex: 1;
  min-width: 0;
  padding: 24px 20px 80px;
  position: relative;
  z-index: 0;
}

@media (min-width: 900px) {
  .dash-main {
    padding: 32px 40px 80px;
  }
}

.dash-banner {
  margin-bottom: 20px;
}

.admin-users-msg.dash-banner-ok {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.35);
  color: var(--color-green);
}

.admin-users-msg.dash-banner-warn {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.35);
  color: var(--color-yellow);
}

.admin-users-msg.dash-banner-err {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

[data-theme="light"] .admin-users-msg.dash-banner-err {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.22);
  color: #991b1b;
}

[data-theme="light"] .admin-users-msg.dash-banner-warn {
  color: #92400e;
}

[data-theme="light"] .admin-users-msg.dash-banner-ok {
  color: #166534;
}

.admin-users-hint {
  font-size: 13px;
  margin-bottom: 16px;
}

.admin-users-hint .dash-code {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  vertical-align: baseline;
  line-height: 1.4;
}

[data-theme="light"] .admin-users-hint .dash-code {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

.dash-table-muted {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-text-faint);
}

.dash-signed-out {
  max-width: 480px;
  margin: 40px auto;
}

.dash-content {
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.dash-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  scroll-margin-top: calc(var(--dash-scroll-sticky-offset) + 12px);
}

.dash-hero-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.dash-hero-email {
  color: var(--color-text-secondary);
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dash-hero-meta {
  font-size: 14px;
  color: var(--color-text-muted);
}

.dash-hero-meta strong {
  color: var(--color-text-secondary);
  font-weight: 500;
}

.dash-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 6px;
}

.dash-badge-ok {
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-green);
}

.dash-badge-warn {
  background: rgba(251, 191, 36, 0.15);
  color: var(--color-yellow);
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.dash-stats-admin {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin-top: 16px;
}

.dash-stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
}

.dash-stat-label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.dash-stat-value {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.dash-stat-hint {
  font-size: 12px;
  color: var(--color-text-faint);
  line-height: 1.4;
}

.dash-section {
  scroll-margin-top: calc(var(--dash-scroll-sticky-offset) + 12px);
}

.dash-section-head {
  margin-bottom: 8px;
}

.dash-credential-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.dash-code {
  display: inline-block;
  font-size: 13px;
  padding: 10px 12px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text-secondary);
  word-break: break-all;
}

.dash-mini-hint {
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* Client product panels (Residential / ISP) */
.dash-product-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.dash-product-head-text {
  min-width: min(100%, 320px);
}

.dash-product-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.dash-product-sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 520px;
}

.dash-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dash-soft-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.08);
  font-size: 14px;
  color: var(--color-text-secondary);
}

.dash-soft-banner-warn {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.06);
}

.dash-soft-banner-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-blue-light);
}

.dash-soft-banner-warn .dash-soft-banner-label {
  color: var(--color-yellow);
}

.dash-product-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.dash-product-stats-row-3 {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.dash-stat-card-accent {
  border-left: 3px solid var(--color-blue-primary);
}

.dash-stat-value-ok {
  color: var(--color-green);
}

.dash-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--color-border);
  overflow: hidden;
  margin-bottom: 8px;
}

.dash-progress-bar {
  height: 100%;
  border-radius: 3px;
  background: var(--color-green);
  transition: width 0.25s ease;
}

.dash-section-tight .dashboard-section-title {
  margin-bottom: 8px;
}

.dash-mock-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.dash-mock-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.dash-mock-label {
  flex: 0 0 88px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.dash-mock-value {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.dash-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dash-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.dash-chip-active {
  border-color: rgba(59, 130, 246, 0.5);
  color: var(--color-blue-light);
  background: rgba(59, 130, 246, 0.1);
}

.dash-full-btn {
  width: 100%;
  margin-top: 20px;
}

.dash-credential-row-mt {
  margin-top: 20px;
}

.dash-output-box {
  margin-top: 16px;
  min-height: 120px;
  padding: 16px;
  border-radius: 10px;
  border: 1px dashed var(--color-border);
  background: var(--color-bg-secondary);
}

.dash-output-placeholder {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-faint);
  font-family: ui-monospace, monospace;
}

.dash-section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.dash-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dash-filter-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.dash-filter-chip-active {
  border-color: rgba(59, 130, 246, 0.45);
  color: var(--color-blue-light);
  background: rgba(59, 130, 246, 0.08);
}

/* Profile tab */
.dash-profile-page-head {
  margin-bottom: 24px;
}

.dash-profile-card .dash-profile-form {
  margin-top: 8px;
}

.dash-profile-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
}

.dash-profile-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--color-blue-light);
}

.dash-profile-card-icon-warn {
  background: rgba(251, 191, 36, 0.1);
  color: var(--color-yellow);
}

.dash-profile-card-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}

.dash-profile-card-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.dash-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.dash-profile-inline-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}

.dash-profile-inline-row .form-input {
  flex: 1 1 160px;
  min-width: 0;
}

.dash-profile-inline-row .btn {
  flex-shrink: 0;
  align-self: stretch;
}

@media (max-width: 480px) {
  .dash-profile-inline-row .btn {
    width: 100%;
  }
}

.dash-profile-hint {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-text-faint);
}

.dash-profile-msg {
  min-height: 1.25em;
  margin: 4px 0 8px;
  font-size: 14px;
  color: var(--color-green);
}

.dash-profile-msg.dash-profile-msg-err {
  color: #f87171;
}

/* Overview: match marketing site — reuse .pricing-* and .dash-hero / .dash-stats */
.dash-overview-tagline {
  margin: 12px 0 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.dash-overview-products-wrap {
  margin-bottom: 8px;
}

.dash-overview-products-heading {
  margin-bottom: 0;
}

.dash-overview-products-wrap .pricing-card:hover {
  transform: none;
}

.dash-overview-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dash-overview-help-text {
  margin: 0;
  max-width: 480px;
}

.dash-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.dash-table th,
.dash-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
}

.dash-table th {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-table--piped thead th:not(:first-child)::before {
  content: '|';
  display: inline-block;
  margin-right: 12px;
  color: var(--color-text-faint);
  font-weight: 400;
  opacity: 0.55;
  letter-spacing: 0;
  text-transform: none;
}

.dash-table td {
  color: var(--color-text-secondary);
}

.dash-dl {
  margin-top: 8px;
}

.dash-dl-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
}

@media (max-width: 520px) {
  .dash-dl-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.dash-dl-row dt {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.dash-dl-row dd {
  font-size: 14px;
  color: var(--color-text-primary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.dash-admin-note {
  margin-bottom: 24px;
  color: var(--color-text-secondary);
}

.dash-admin-note strong {
  color: var(--color-text-primary);
}

.dash-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.dash-forbidden-title {
  font-size: 22px;
  margin-bottom: 12px;
}

/* Team tools tabs */
.dash-tabs-wrap {
  margin: 8px 0 24px;
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.dash-tabs {
  display: flex;
  align-items: stretch;
  gap: 4px;
  flex-wrap: nowrap;
  min-height: 48px;
  padding-bottom: 0;
}

.dash-tab {
  flex: 0 0 auto;
  padding: 12px 16px;
  margin: 0;
  border: none;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.dash-tab:focus-visible {
  outline: 2px solid var(--color-blue-primary);
  outline-offset: 2px;
}

@media (hover: hover) {
  .dash-tab:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.04);
  }
}

.dash-tab.active {
  color: var(--color-text-primary);
  background: rgba(59, 130, 246, 0.1);
  border-bottom-color: var(--color-blue-primary);
}

.dash-tab-panel {
  margin-top: 4px;
}

.dash-tab-panel[hidden] {
  display: none !important;
}

#dash-panels-admin[hidden] {
  display: none !important;
}

.dash-view-panel {
  scroll-margin-top: calc(var(--dash-scroll-sticky-offset) + 12px);
}

.dash-view-panel[hidden] {
  display: none !important;
}

.dash-table-empty {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
  padding: 28px 16px !important;
}

.dash-analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.dash-analytics-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  min-height: 140px;
}

.dash-analytics-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.dash-analytics-placeholder {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-text-faint);
}

/* —— Purchase modal (shared landing + dashboard) —— */
body.purchase-modal-open {
  overflow: hidden;
}

.purchase-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, var(--safe-top)) max(16px, var(--safe-right)) max(16px, var(--safe-bottom)) max(16px, var(--safe-left));
}

.purchase-modal-overlay[hidden] {
  display: none !important;
}

.purchase-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.purchase-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: min(90vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.purchase-modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: rgba(18, 20, 26, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

@media (hover: hover) {
  .purchase-modal-x:hover {
    color: var(--color-text-primary);
    background: rgba(30, 33, 42, 0.95);
    border-color: var(--color-border-hover);
  }
}

.purchase-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 18px 28px 26px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.purchase-modal-body::-webkit-scrollbar {
  width: 8px;
}

.purchase-modal-body::-webkit-scrollbar-track {
  background: transparent;
  margin: 10px 0;
}

.purchase-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 100px;
}

.purchase-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

.purchase-modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 48px 10px 0;
  line-height: 1.25;
}

.purchase-modal-lead {
  margin: 0 0 26px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.purchase-field {
  margin-bottom: 24px;
}

.purchase-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.purchase-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

.purchase-field-row .purchase-label {
  margin-bottom: 0;
}

.purchase-segment {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.purchase-segment-btn {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  color: var(--color-text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.purchase-segment-btn-active {
  border-color: var(--color-blue-primary);
  background: rgba(59, 130, 246, 0.12);
  color: var(--color-text-primary);
}

.purchase-hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--color-text-faint);
  line-height: 1.45;
}

.purchase-range {
  width: 100%;
  height: 6px;
  margin-top: 4px;
  border-radius: 3px;
  accent-color: var(--color-blue-primary);
  cursor: pointer;
}

.purchase-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--color-text-faint);
}

.purchase-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 4px;
  background: var(--color-bg-secondary);
}

.purchase-stepper-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-primary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

@media (hover: hover) {
  .purchase-stepper-btn:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}

.purchase-stepper-value {
  min-width: 56px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.purchase-inline {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.purchase-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 14px;
}

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

.purchase-input:focus {
  outline: 2px solid var(--color-blue-primary);
  outline-offset: 1px;
}

.purchase-inline-btn {
  flex-shrink: 0;
  padding-left: 16px;
  padding-right: 16px;
}

.purchase-coupon-msg {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

.purchase-validation-msg {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-yellow);
  line-height: 1.45;
}

.purchase-summary {
  margin: 26px 0 18px;
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
}

.purchase-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  color: var(--color-text-secondary);
  padding: 6px 0;
}

.purchase-summary-row span:first-child {
  color: var(--color-text-muted);
}

.purchase-summary-total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  font-size: 15px;
  color: var(--color-text-primary);
}

.purchase-summary-total strong {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.purchase-footnote {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--color-green);
  line-height: 1.45;
}

.purchase-cta {
  margin-top: 4px;
}

.purchase-footnote-warn {
  color: var(--color-yellow);
}

/* ISP purchase layout */
.purchase-modal-title-tight {
  margin-bottom: 4px;
}

.purchase-modal-lead-tight {
  margin-bottom: 0;
}

.purchase-isp-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding-right: 48px;
}

.purchase-isp-title-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--color-blue-light);
}

.purchase-isp-packages {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.purchase-isp-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  color: var(--color-text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.purchase-isp-tab-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.purchase-isp-tab-active {
  border-color: var(--color-blue-primary);
  background: rgba(59, 130, 246, 0.12);
  color: var(--color-text-primary);
}

.purchase-isp-config {
  padding: 18px 16px 16px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: var(--color-bg-primary);
  margin-bottom: 16px;
}

.purchase-isp-rate-line {
  margin: 0 0 16px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--color-text-primary);
}

.purchase-isp-rate-prefix {
  font-size: 1.25rem;
  color: var(--color-blue-light);
  vertical-align: top;
}

.purchase-isp-rate-num {
  font-size: 2rem;
  color: var(--color-blue-light);
  letter-spacing: -0.02em;
}

.purchase-isp-rate-suffix {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-left: 2px;
}

.purchase-select {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 18px;
  padding: 10px 36px 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.purchase-select:focus {
  outline: 2px solid var(--color-blue-primary);
  outline-offset: 1px;
}

.purchase-field-row-isp-qty {
  margin-bottom: 8px;
}

.purchase-label-inline {
  margin-bottom: 0;
  align-self: center;
}

.purchase-isp-qty-pill {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.purchase-isp-qty-pill span {
  color: var(--color-blue-light);
  font-weight: 700;
}

.purchase-field-inset {
  margin-bottom: 0;
  margin-top: 4px;
}

.purchase-field-inset .purchase-label {
  margin-top: 4px;
}

.purchase-isp-total-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.purchase-isp-total-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.purchase-isp-total-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-blue-light);
  letter-spacing: -0.02em;
}

.purchase-isp-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.purchase-isp-buy-arrow {
  font-size: 1.1em;
  font-weight: 600;
}

@media (max-width: 480px) {
  .purchase-modal-body {
    padding: 20px 12px 24px 16px;
  }

  .purchase-segment-btn {
    font-size: 12px;
    padding: 9px 8px;
  }

  .purchase-isp-tab {
    font-size: 12px;
    padding: 9px 8px;
  }

  .purchase-input,
  .purchase-select {
    font-size: 16px;
  }
}
