/* ============================================================
   ClevVPN — Digital Amber Noir
   Syne (display) · Figtree (body) · JetBrains Mono (code)
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Palette */
  --amber:        #F5A623;
  --amber-light:  #FFB830;
  --amber-dim:    rgba(245,166,35,0.14);
  --amber-glow:   rgba(245,166,35,0.28);
  --mint:         #4ADE80;
  --mint-dim:     rgba(74,222,128,0.12);
  --red:          #F87171;

  /* Backgrounds */
  --bg-0:   #07080E;
  --bg-1:   #0D0F1C;
  --bg-2:   #13162A;
  --bg-3:   #191D33;

  /* Text */
  --t0:  #F0F0F6;
  --t1:  rgba(240,240,246,0.65);
  --t2:  rgba(240,240,246,0.38);

  /* Borders */
  --bd:       rgba(255,255,255,0.07);
  --bd-hover: rgba(245,166,35,0.35);

  /* Fonts */
  --font-display: 'Syne', sans-serif;
  --font-body:    'Figtree', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --s1: 0.5rem;   --s2: 1rem;    --s3: 1.5rem;
  --s4: 2rem;     --s5: 3rem;    --s6: 4rem;
  --s7: 5rem;     --s8: 5.5rem;

  /* Radius */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  /* Transitions */
  --ease:     cubic-bezier(0.25,0.46,0.45,0.94);
  --ease-out: cubic-bezier(0.16,1,0.3,1);
  --tf:  150ms var(--ease);
  --tb:  280ms var(--ease);
  --ts:  500ms var(--ease-out);

  /* Shadows */
  --sh-card:  0 0 0 1px var(--bd), 0 8px 32px rgba(0,0,0,0.5);
  --sh-amber: 0 0 28px rgba(245,166,35,0.22);
  --sh-glow:  0 0 0 1px rgba(245,166,35,0.3), 0 0 40px rgba(245,166,35,0.15);

  /* Legacy compat — keep JS and old HTML happy */
  --primary-yellow:       var(--amber);
  --primary-yellow-dark:  var(--amber);
  --primary-yellow-light: var(--amber-light);
  --black:         var(--bg-0);
  --black-light:   var(--bg-1);
  --black-lighter: var(--bg-2);
  --white:         var(--t0);
  --gray-100: #F5F5F5; --gray-200: #E5E5E5;
  --gray-300: var(--t1); --gray-400: var(--t2);
  --gray-600: rgba(255,255,255,0.25);
  --gray-800: var(--bg-3);
  --bg-primary:   var(--bg-0);
  --bg-secondary: var(--bg-1);
  --bg-tertiary:  var(--bg-2);
  --text-primary:   var(--t0);
  --text-secondary: var(--t1);
  --text-muted:     var(--t2);
  --border-color:   var(--bd);
  --card-bg:        var(--bg-1);
  --hover-bg:       var(--amber-dim);
  --gradient-primary: linear-gradient(135deg, var(--amber) 0%, #FFA940 100%);
  --gradient-dark:    linear-gradient(135deg, var(--bg-0) 0%, var(--bg-2) 100%);
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg:   0 8px 24px rgba(0,0,0,0.5);
  --shadow-xl:   0 16px 48px rgba(0,0,0,0.6);
  --shadow-glow: var(--sh-amber);
  --spacing-xs: var(--s1); --spacing-sm: var(--s2);
  --spacing-md: var(--s3); --spacing-lg: var(--s4);
  --spacing-xl: var(--s5); --spacing-2xl: var(--s6);
  --radius-sm: var(--r-sm); --radius-md: var(--r-md);
  --radius-lg: var(--r-lg); --radius-xl: var(--r-xl);
  --radius-2xl: var(--r-xl); --radius-full: var(--r-full);
  --transition-fast: var(--tf);
  --transition-base: var(--tb);
  --transition-slow: var(--ts);
  --font-primary: var(--font-body);
}

/* ── Light theme ───────────────────────────────────────────── */
body.light-theme {
  --bg-0: #F7F7FB; --bg-1: #FFFFFF; --bg-2: #EEEEF5; --bg-3: #E4E4EE;
  --t0: #0D0E18; --t1: rgba(13,14,24,0.6); --t2: rgba(13,14,24,0.35);
  --bd: rgba(0,0,0,0.08); --bd-hover: rgba(245,166,35,0.5);
  --bg-primary: var(--bg-0); --bg-secondary: var(--bg-1);
  --bg-tertiary: var(--bg-2); --card-bg: var(--bg-1);
  --text-primary: var(--t0); --text-secondary: var(--t1);
  --text-muted: var(--t2); --border-color: var(--bd);
  --black: var(--bg-0); --black-light: var(--bg-1);
  --black-lighter: var(--bg-2); --white: var(--t0);
  --gray-300: var(--t1); --gray-400: var(--t2);
  --hover-bg: rgba(245,166,35,0.08);
  --sh-card: 0 0 0 1px var(--bd), 0 4px 20px rgba(0,0,0,0.08);
}

body.light-theme .navbar {
  background: rgba(247,247,251,0.85);
  border-bottom-color: rgba(0,0,0,0.07);
}
body.light-theme .navbar.scrolled { background: rgba(247,247,251,0.97); }
body.light-theme .mobile-menu-toggle span { background: var(--t0); }
body.light-theme .mobile-menu-toggle:hover { background: rgba(0,0,0,0.05); }
@media (max-width: 768px) {
  body.light-theme .nav-links {
    background: rgba(247,247,251,0.98);
    border-bottom-color: rgba(0,0,0,0.07);
  }
  body.light-theme .nav-link { color: var(--t0); }
  body.light-theme .nav-link:hover { background: rgba(0,0,0,0.04); }
}
body.light-theme .hero-bg-animation {
  background: radial-gradient(ellipse at 20% 60%, rgba(245,166,35,0.12) 0%, transparent 55%),
              radial-gradient(ellipse at 80% 40%, rgba(245,166,35,0.08) 0%, transparent 55%);
}
body.light-theme .floating-card {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(245,166,35,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
body.light-theme .feature-card,
body.light-theme .pricing-card,
body.light-theme .account-card,
body.light-theme .guide-step { background: var(--bg-1); }
body.light-theme .feature-card:hover { box-shadow: 0 12px 40px rgba(245,166,35,0.18); }
body.light-theme .footer { background: var(--bg-2); }
body.light-theme .faq-item,
body.light-theme .platform-tab { background: var(--bg-1); }
body.light-theme .code-block { background: var(--bg-2); }
body.light-theme .nav-link { color: var(--t0); }
body.light-theme .hero-description,
body.light-theme .section-subtitle,
body.light-theme .feature-description,
body.light-theme .step-description { color: var(--t1); }
body.light-theme .device-item,
body.light-theme .support-option {
  background: transparent;
  border-color: var(--bd-hover);
}
body.light-theme .footer-description,
body.light-theme .footer-column a { color: var(--t1); }
body.light-theme .footer-column a:hover { color: var(--amber); }
body.light-theme .faq-answer p { color: var(--t1); }
body.light-theme .feature-item { color: var(--t0); }
body.light-theme .feature-item.disabled { color: var(--t2); }

/* Buttons: override hardcoded white-alpha borders for light bg */
body.light-theme .btn-secondary {
  background: transparent;
  border-color: rgba(0,0,0,0.15);
  color: var(--t0);
}
body.light-theme .btn-secondary:hover {
  background: rgba(245,166,35,0.08);
  border-color: var(--amber);
  color: var(--amber);
}
body.light-theme .btn-outline {
  border-color: rgba(0,0,0,0.15);
  color: var(--t0);
}
body.light-theme .btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber);
}
/* Auth tabs pill track */
body.light-theme .auth-tabs { background: rgba(0,0,0,0.05); }

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--t0);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background var(--tb), color var(--tb);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle noise texture on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

a { text-decoration: none; color: inherit; transition: color var(--tb); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

code, pre, .mono {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

code {
  background: var(--bg-2);
  color: var(--amber);
  padding: 0.2em 0.5em;
  border-radius: var(--r-sm);
}

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

/* ── Container ─────────────────────────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--s3);
}

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(7,8,14,0.75);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--bd);
  transition: background var(--tb), box-shadow var(--tb);
}

.navbar.scrolled {
  background: rgba(7,8,14,0.95);
  box-shadow: 0 1px 0 var(--bd), 0 4px 20px rgba(0,0,0,0.4);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--s1);
  transition: opacity var(--tb);
}
.logo:hover { opacity: 0.85; }
.logo-image { height: 36px; width: auto; }
.logo-img { display: block; }
.logo-img--light { display: none; }
body.light-theme .logo-img--dark { display: none; }
body.light-theme .logo-img--light { display: block; }

/* legacy compat */
.logo-icon { font-size: 1.6rem; }
.logo-text { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; }
.logo-text .highlight { color: var(--amber); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--t1);
  position: relative;
  transition: color var(--tb);
  padding: 0.4rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--amber);
  transition: width var(--tb);
  border-radius: var(--r-full);
}
.nav-link:hover,
.nav-link.active { color: var(--t0); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-link-account {
  background: var(--amber);
  color: #07080E !important;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--r-full);
  font-size: 0.88rem;
}
.nav-link-account::after { display: none; }
.nav-link-account:hover {
  background: var(--amber-light);
  transform: translateY(-1px);
  box-shadow: var(--sh-amber);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--r-sm);
  transition: background var(--tf);
}
.mobile-menu-toggle:hover { background: rgba(255,255,255,0.07); }
.mobile-menu-toggle span {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--t0);
  border-radius: var(--r-full);
  transition: transform var(--tb), opacity var(--tb);
}
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(7,8,14,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bd);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s2) 0 var(--s3);
  }
  .nav-links.active { display: flex; }

  .nav-link {
    font-size: 1rem;
    padding: var(--s2) var(--s3);
    border-radius: 0;
    color: var(--t0);
  }
  .nav-link::after { display: none; }
  .nav-link:hover { background: rgba(255,255,255,0.04); }

  .nav-link-account {
    margin: var(--s2) var(--s3) 0;
    text-align: center;
    border-radius: var(--r-md);
    padding: 0.75rem;
  }
  .nav-link-account:hover { transform: none; }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--tb);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--amber);
  color: #07080E;
  border-color: var(--amber);
}
.btn-primary:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
  transform: translateY(-2px);
  box-shadow: var(--sh-amber);
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--t0);
  border-color: rgba(255,255,255,0.18);
}
.btn-secondary:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(245,166,35,0.06);
}

.btn-outline {
  background: transparent;
  color: var(--t0);
  border-color: rgba(255,255,255,0.2);
}
.btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.btn-glow {
  box-shadow: 0 0 20px rgba(245,166,35,0.25);
  animation: pulse-glow 3.5s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 14px rgba(245,166,35,0.18); }
  50%       { box-shadow: 0 0 28px rgba(245,166,35,0.32); }
}

.btn-small  { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.btn-large  { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-full   { width: 100%; }
.btn-arrow  { transition: transform var(--tb); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ── Section basics ────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--s6);
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: var(--s2);
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums tabular-nums;
}
.section-subtitle {
  color: var(--t1);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  overflow: hidden;
}

.hero-bg-animation {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 55%, rgba(245,166,35,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 85% 30%, rgba(245,166,35,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(74,222,128,0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* grid dots background */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: center;
  padding: var(--s8) 0;
}

.hero-text { max-width: 560px; }

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: var(--s3);
}
.title-line { display: block; }
.highlight-gradient {
  color: var(--amber);
}

.hero-description {
  color: var(--t1);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.7;
  margin-bottom: var(--s4);
}

.hero-cta {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-bottom: var(--s5);
}

.hero-stats {
  display: flex;
  gap: var(--s4);
}
.stat {}
.stat-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--t2);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Floating cards */
.hero-visual {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid var(--bd);
  position: absolute;
  animation: spin-slow 20s linear infinite;
}
.hero-circle::before {
  content: '';
  position: absolute;
  top: -2px; left: 50%;
  width: 4px; height: 4px;
  background: var(--amber);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--amber);
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

.floating-card {
  position: absolute;
  background: var(--bg-1);
  border: 1px solid var(--bd);
  border-radius: var(--r-md);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--sh-card);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.card-icon { font-size: 1.1rem; }
.card-text { color: var(--t0); }

.card-1 { top: 8%;  left: 0;    animation: float-a 4s ease-in-out infinite; }
.card-2 { top: 28%; right: 0;   animation: float-b 5s ease-in-out infinite; }
.card-3 { bottom: 22%; left: 5%; animation: float-a 6s ease-in-out infinite 1s; }
.card-4 { bottom: 6%; right: 8%; animation: float-b 4.5s ease-in-out infinite 0.5s; }

@keyframes float-a {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes float-b {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(10px); }
}

/* ── Features ──────────────────────────────────────────────── */
.features {
  padding: var(--s8) 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  counter-reset: feature-n;
}

.feature-card {
  background: var(--bg-1);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: var(--s4);
  transition: border-color var(--tb), transform var(--tb), box-shadow var(--tb);
  position: relative;
  overflow: hidden;
  counter-increment: feature-n;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber-dim), transparent);
  opacity: 0.4;
  transition: opacity var(--tb);
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
  border-color: rgba(245,166,35,0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(245,166,35,0.1);
}

.feature-icon {
  font-size: 0;
  margin-bottom: var(--s3);
  display: block;
}
.feature-icon::after {
  content: "0" counter(feature-n);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.12em;
  opacity: 0.7;
  display: inline-block;
}
.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--s1);
}
.feature-description {
  color: var(--t1);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
}

/* ── How it works ──────────────────────────────────────────── */
.how-it-works {
  padding: var(--s8) 0;
  position: relative;
}
.how-it-works::before {
  content: '';
  position: absolute;
  left: 50%; top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--bd), transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  max-width: 640px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  background: var(--bg-1);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: var(--s3) var(--s4);
  transition: border-color var(--tb);
}
.step:hover { border-color: rgba(245,166,35,0.25); }

.step-number {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--amber);
  line-height: 1;
  min-width: 48px;
  letter-spacing: -0.02em;
  opacity: 0.75;
}
.step-content {}
.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.step-description { color: var(--t1); font-size: 0.9rem; }

/* ── CTA section ───────────────────────────────────────────── */
.cta-section {
  padding: var(--s8) 0;
}
.cta-content {
  background: var(--amber);
  border: 1px solid transparent;
  border-radius: var(--r-xl);
  padding: var(--s6) var(--s5);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-content::before { display: none; }
.cta-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin-bottom: var(--s2);
  color: #07080E;
}
.cta-description {
  color: rgba(7,8,14,0.6);
  font-size: 1.05rem;
  margin-bottom: var(--s4);
}
.cta-content .btn-primary {
  background: #07080E;
  color: var(--amber);
  border-color: #07080E;
  animation: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.cta-content .btn-primary:hover {
  background: var(--bg-2);
  color: var(--amber);
  border-color: var(--bg-2);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  transform: translateY(-2px);
}
.cta-content .btn-primary .btn-arrow { color: var(--amber); }

/* ── Pricing page ──────────────────────────────────────────── */
.pricing-section {
  padding-top: calc(64px + var(--s7));
  padding-bottom: var(--s8);
}
.pricing-header {
  text-align: center;
  margin-bottom: var(--s5);
}
.pricing-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--s2);
}
.pricing-header p { color: var(--t1); font-size: 1.05rem; }

/* Period tabs */
.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: var(--s1);
  margin-bottom: var(--s5);
  background: var(--bg-1);
  border: 1px solid var(--bd);
  border-radius: var(--r-full);
  padding: 5px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.pricing-tab {
  padding: 0.55rem 1.25rem;
  border-radius: var(--r-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--t1);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all var(--tb);
  white-space: nowrap;
}
.pricing-tab:hover { color: var(--t0); }
.pricing-tab.active {
  background: var(--amber);
  color: #07080E;
  box-shadow: var(--sh-amber);
}

/* Pricing cards grid */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s2);
  margin-bottom: var(--s5);
}

.pricing-card {
  background: var(--bg-1);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: var(--s3);
  display: flex;
  flex-direction: column;
  transition: all var(--tb);
  position: relative;
  overflow: hidden;
}
.pricing-card:hover {
  border-color: rgba(245,166,35,0.25);
  transform: translateY(-4px);
  box-shadow: var(--sh-card);
}
.pricing-card.popular {
  border-color: var(--amber);
  background: linear-gradient(160deg, var(--bg-2) 0%, var(--bg-1) 100%);
  box-shadow: var(--sh-amber);
  overflow: visible;
}

.popular-badge {
  position: absolute;
  top: var(--s2); right: var(--s2);
  background: var(--amber);
  color: #07080E;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--s1);
}
.plan-description {
  color: var(--t1);
  font-size: 0.85rem;
  margin-bottom: var(--s3);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 0.25rem;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--amber);
}
.price-currency { font-size: 1.1rem; color: var(--amber); font-weight: 600; }
.price-period { font-size: 0.8rem; color: var(--t2); }

.billing-info {
  font-size: 0.78rem;
  color: var(--t2);
  margin-bottom: var(--s3);
  min-height: 1rem;
}

.plan-features {
  flex: 1;
  list-style: none;
  margin-bottom: var(--s3);
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  padding: 0.3rem 0;
  color: var(--t1);
}
.feature-item::before {
  content: '✓';
  color: var(--amber);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.feature-item.disabled { color: var(--t2); }
.feature-item.disabled::before { content: '×'; color: var(--t2); }

.plan-cta { margin-top: auto; }

/* Guarantee / notice */
.guarantee-section, .pricing-notice {
  text-align: center;
  color: var(--t2);
  font-size: 0.88rem;
  padding: var(--s3);
  background: var(--bg-1);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  margin-top: var(--s4);
}

/* Custom tariff */
.custom-tariff-section {
  background: var(--bg-1);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: var(--s4);
  margin-top: var(--s4);
}
.custom-tariff-section h3 {
  font-size: 1.1rem;
  margin-bottom: var(--s3);
}
.custom-tariff-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--s2);
  align-items: end;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.82rem; color: var(--t1); }
.form-group input, .form-group select {
  background: var(--bg-0);
  border: 1px solid var(--bd);
  border-radius: var(--r-md);
  padding: 0.65rem 1rem;
  color: var(--t0);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--tf);
}
.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--amber);
}

/* FAQ */
.faq-section {
  padding: var(--s8) 0;
}
.faq-section .container {
  max-width: 760px;
}
.faq-item {
  background: var(--bg-1);
  border: 1px solid var(--bd);
  border-radius: var(--r-md);
  margin-bottom: var(--s2);
  overflow: hidden;
  transition: border-color var(--tb);
}
.faq-item:hover { border-color: rgba(245,166,35,0.2); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s3);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  gap: var(--s2);
}
.faq-arrow {
  color: var(--amber);
  font-size: 1.1rem;
  transition: transform var(--tb);
  flex-shrink: 0;
}
.faq-item.active .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms var(--ease-out), padding-bottom 280ms var(--ease-out);
  padding: 0 var(--s3);
  overflow: hidden;
}
.faq-answer > * {
  overflow: hidden;
  color: var(--t1);
  font-size: 0.9rem;
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
  padding-bottom: var(--s3);
}

/* ── Account page ──────────────────────────────────────────── */
.account-section {
  padding-top: calc(64px + var(--s5));
  padding-bottom: var(--s8);
  min-height: 100svh;
}

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s4);
}
.account-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s3);
}

.account-card {
  background: var(--bg-1);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: var(--s3);
  transition: border-color var(--tb);
}
.account-card:hover { border-color: rgba(245,166,35,0.15); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s3);
  gap: var(--s2);
  flex-wrap: wrap;
}
.card-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--t1);
}

/* Card grid placement */
.user-info-card      { grid-column: span 4; }
.subscription-card   { grid-column: span 8; }
.devices-card        { grid-column: span 6; }
.referral-card       { grid-column: span 6; }
.promo-card          { grid-column: span 6; }
.payment-card        { grid-column: span 6; }
.support-card        { grid-column: span 12; }

/* User info */
.user-avatar {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s3);
}
.avatar-circle {
  width: 52px; height: 52px;
  background: var(--bg-2);
  border: 1px solid var(--bd);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.user-details h4 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.user-details p  { font-size: 0.82rem; color: var(--t1); }

.user-stats { display: flex; flex-direction: column; gap: var(--s1); }
.stat-item  {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--bd);
}
.stat-item:last-child { border-bottom: none; }
.stat-item .stat-label { font-size: 0.82rem; color: var(--t2); }
.stat-item .stat-value { font-size: 0.88rem; font-weight: 600; font-family: var(--font-mono); }

/* Status badge */
.status-badge {
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-2);
  color: var(--t1);
  border: 1px solid var(--bd);
}
.status-badge.active {
  background: rgba(74,222,128,0.12);
  color: var(--mint);
  border-color: rgba(74,222,128,0.25);
}
.status-badge.expired {
  background: rgba(248,113,113,0.1);
  color: var(--red);
  border-color: rgba(248,113,113,0.2);
}

/* Subscription info */
.plan-name {
  display: flex;
  align-items: center;
  gap: var(--s1);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--s2);
}
.plan-icon { font-size: 1.3rem; }
.plan-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
  margin-bottom: var(--s2);
}
.detail-item {}
.detail-label { font-size: 0.75rem; color: var(--t2); text-transform: uppercase; letter-spacing: 0.04em; }
.detail-value { font-size: 1rem; font-weight: 700; margin-top: 2px; }

/* Subscription action buttons — unified system */
.subscription-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-top: var(--s2);
}

.sub-action-btn {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  border-radius: var(--r-full);
  border: 1.5px solid rgba(245,166,35,0.3);
  background: var(--amber-dim);
  color: var(--amber);
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--tb), border-color var(--tb), box-shadow var(--tb);
  box-sizing: border-box;
}
.sub-action-btn:hover {
  background: rgba(245,166,35,0.2);
  border-color: rgba(245,166,35,0.6);
  box-shadow: 0 0 14px rgba(245,166,35,0.1);
}

/* Full-row button */
.sub-action-full {
  flex-basis: 100%;
  flex-grow: 0;
  flex-shrink: 0;
}

/* Primary (connect) — slightly stronger accent */
.sub-action-primary {
  background: rgba(245,166,35,0.14);
  border-color: rgba(245,166,35,0.5);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
}

/* Telegram linking result box */
.link-tg-box {
  flex-basis: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(245,166,35,0.25);
  background: rgba(245,166,35,0.06);
}
.link-tg-box .sub-action-btn {
  flex: none;
  width: 100%;
  box-sizing: border-box;
}
.link-tg-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--t2);
  line-height: 1.4;
}
.link-tg-code {
  margin: 0;
  font-size: 0.8rem;
  color: var(--t2);
  text-align: center;
}
.link-tg-code code {
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.12em;
  color: var(--amber);
}

/* Device count badge */
.device-count {
  font-size: 0.8rem;
  color: var(--t1);
  background: var(--bg-2);
  border: 1px solid var(--bd);
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-full);
}

/* Devices list */
.devices-list { display: flex; flex-direction: column; gap: var(--s2); }
.device-item {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: 0.75rem var(--s2);
  background: var(--bg-2);
  border: 1px solid var(--bd);
  border-radius: var(--r-md);
  transition: border-color var(--tb);
}
.device-item:hover { border-color: rgba(245,166,35,0.2); }
.device-icon { font-size: 1.3rem; flex-shrink: 0; }
.device-info { flex: 1; min-width: 0; }
.device-info h4 { font-size: 0.88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-info p  { font-size: 0.75rem; color: var(--t2); }
.device-delete {
  background: transparent;
  border: 1px solid rgba(248,113,113,0.3);
  color: var(--red);
  padding: 0.35rem 0.7rem;
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all var(--tf);
  white-space: nowrap;
}
.device-delete:hover { background: rgba(248,113,113,0.1); }

/* Payments list */
.payment-list { display: flex; flex-direction: column; gap: var(--s2); }
.payment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem var(--s2);
  background: var(--bg-2);
  border: 1px solid var(--bd);
  border-radius: var(--r-md);
  gap: var(--s2);
}
.payment-info { flex: 1; min-width: 0; }
.payment-description {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.payment-date { font-size: 0.75rem; color: var(--t2); margin-top: 2px; }
.payment-amount {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--amber);
  white-space: nowrap;
}

/* Support options */
.support-options { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.support-option {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2);
  background: var(--bg-2);
  border: 1px solid var(--bd);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--tb);
}
.support-option:hover {
  border-color: rgba(245,166,35,0.3);
  background: var(--amber-dim);
}
.support-icon { font-size: 1.5rem; flex-shrink: 0; }
.support-option h4 { font-size: 0.88rem; font-weight: 600; }
.support-option p  { font-size: 0.78rem; color: var(--t2); }

/* Login screen (shown before auth) */
.login-screen {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(64px + var(--s4)) var(--s3) var(--s4);
}
.login-wrap {
  min-height: calc(100svh - calc(64px + var(--s5)));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--s3) var(--s4);
}

.login-card {
  background: var(--bg-1);
  border: 1px solid var(--bd);
  border-radius: var(--r-xl);
  padding: var(--s5) var(--s4);
  width: 100%;
  max-width: 420px;
}

.login-head { text-align: center; margin-bottom: var(--s4); }
.login-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 var(--s1);
  color: var(--t0);
  line-height: 1.15;
}
.login-sub { color: var(--t1); font-size: 0.9rem; margin: 0; }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--r-md);
  padding: 3px;
  margin-bottom: var(--s4);
}
.auth-tab {
  padding: 9px 12px;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: var(--t1);
  font-weight: 600;
  font-size: 0.88rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background var(--tf), color var(--tf);
}
.auth-tab.is-active { background: var(--amber); color: #07080E; }

.auth-field { margin-bottom: var(--s2); text-align: left; }
.auth-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--t1);
  margin-bottom: 6px;
}
.auth-label--dim { color: var(--t2); }
.auth-label-opt { opacity: 0.5; font-weight: 400; }
.auth-input--code {
  text-align: center !important;
  letter-spacing: 0.35em !important;
  font-family: var(--font-mono) !important;
  font-size: 1.1rem !important;
}

.auth-sep {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin: var(--s4) 0 var(--s3);
  color: var(--t2);
  font-size: 0.8rem;
}
.auth-sep::before, .auth-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bd);
}

.tg-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  background: transparent;
  border: 1px solid var(--bd);
  border-radius: var(--r-md);
  color: var(--t1);
  font-size: 0.88rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--tf), color var(--tf);
}
.tg-btn:hover { border-color: var(--bd-hover); color: var(--amber); }

.auth-text-link {
  background: none;
  border: none;
  color: var(--t2);
  font-size: 0.82rem;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--tf);
}
.auth-text-link:hover { color: var(--amber); }

.auth-back-link {
  display: inline-block;
  background: none;
  border: none;
  color: var(--t1);
  font-size: 0.82rem;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 0;
  margin-bottom: var(--s3);
  transition: color var(--tf);
}
.auth-back-link:hover { color: var(--amber); }

.auth-spam-hint {
  font-size: 0.78rem;
  color: var(--t2);
  margin-bottom: var(--s2);
  line-height: 1.5;
}

/* Form inputs (general) */
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], select, textarea {
  background: var(--bg-0);
  border: 1px solid var(--bd);
  border-radius: var(--r-md);
  padding: 0.7rem 1rem;
  color: var(--t0);
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 100%;
  transition: border-color var(--tf);
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--amber);
}
input::placeholder { color: var(--t2); }

/* Loading spinner */
.loading-spinner {
  width: 28px; height: 28px;
  border: 2.5px solid var(--bd);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast notifications ───────────────────────────────────── */
.clevvpn-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  background: var(--bg-2);
  border: 1px solid var(--bd);
  color: var(--t0);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.8rem 1rem 0.8rem 1.25rem;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 260px;
  max-width: min(400px, calc(100vw - 2rem));
  pointer-events: auto;
  opacity: 0;
  transition: opacity 250ms ease-out, transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.clevvpn-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.clevvpn-toast-msg { flex: 1; }
.clevvpn-toast-close {
  background: none;
  border: none;
  color: var(--t2);
  cursor: pointer;
  padding: 2px;
  line-height: 1;
  font-size: 0.9rem;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 150ms;
}
.clevvpn-toast-close:hover { opacity: 1; }
.clevvpn-toast[data-type="success"] { border-color: rgba(74,222,128,0.25); }
.clevvpn-toast[data-type="error"]   { border-color: rgba(248,113,113,0.3); }

/* ── Guides page ───────────────────────────────────────────── */
.guides-section {
  padding-top: calc(64px + var(--s7));
  padding-bottom: var(--s8);
}
.guides-header { text-align: center; margin-bottom: var(--s5); }
.guides-header h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: var(--s2); }
.guides-header p   { color: var(--t1); font-size: 1.05rem; }

.platform-tabs {
  display: flex;
  gap: var(--s1);
  margin-bottom: var(--s5);
  flex-wrap: wrap;
}
.platform-tab {
  padding: 0.55rem 1.1rem;
  background: var(--bg-1);
  border: 1px solid var(--bd);
  border-radius: var(--r-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--t1);
  cursor: pointer;
  transition: all var(--tb);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.platform-tab:hover { border-color: var(--amber); color: var(--t0); }
.platform-tab.active {
  background: var(--amber);
  border-color: var(--amber);
  color: #07080E;
}

.platform-content { display: none; }
.platform-content.active { display: block; }

.guide-step {
  background: var(--bg-1);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: var(--s3) var(--s4);
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
}
.step-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--amber);
  min-width: 2rem;
}
.guide-step h3,
.guide-step h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.guide-step p  { color: var(--t1); font-size: 0.88rem; line-height: 1.6; }

.guide-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  margin-bottom: var(--s4);
}
.guide-header h2 { font-size: 1.4rem; font-weight: 800; line-height: 1.25; }
.guide-header p  { color: var(--t1); font-size: 0.88rem; }

.code-block {
  background: var(--bg-0);
  border: 1px solid var(--bd);
  border-radius: var(--r-md);
  padding: var(--s2) var(--s3);
  margin: var(--s2) 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.code-block code {
  background: transparent;
  padding: 0;
  color: var(--amber);
  font-size: 0.85rem;
}
.code-block ul { list-style: none; padding: 0; }
.code-block ul li {
  padding: 0.2rem 0;
  color: var(--t1);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

/* Guide inline boxes */
.info-box, .success-box {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border-radius: var(--r-md);
  padding: 0.7rem 1rem;
  margin-top: var(--s2);
  font-size: 0.875rem;
}
.info-box {
  background: rgba(245,166,35,0.08);
  border: 1px solid rgba(245,166,35,0.2);
  color: var(--t1);
}
.success-box {
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.2);
  color: var(--mint);
}
.info-icon, .success-icon { flex-shrink: 0; }

/* Guide steps numbered circle */
.step-number-circle {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--amber-dim);
  border: 1px solid var(--amber-glow);
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Help section */
.help-section { padding: var(--s6) 0; }
.help-content {
  text-align: center;
  background: var(--bg-1);
  border: 1px solid var(--bd);
  border-radius: var(--r-xl);
  padding: var(--s5) var(--s4);
}
.help-content h2 { font-size: 1.4rem; margin-bottom: var(--s1); }
.help-content p  { color: var(--t1); margin-bottom: var(--s3); }
.help-buttons { display: flex; justify-content: center; gap: var(--s2); flex-wrap: wrap; }

/* Guides hero compat */
.guides-hero {
  padding-top: calc(64px + var(--s7));
  padding-bottom: var(--s4);
}
/* section-header/title/subtitle already defined globally above — no override needed here */
.platform-section { padding-bottom: var(--s5); }

/* Guide step content */
.guide-steps { display: flex; flex-direction: column; gap: var(--s2); }
.step-content { flex: 1; }
.step-content h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.step-content p  { color: var(--t1); font-size: 0.9rem; margin-bottom: 0.3rem; }
.step-content a:not(.btn)  { color: var(--amber); }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--bd);
  padding: var(--s6) 0 var(--s4);
}
.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s6);
  margin-bottom: var(--s5);
}
.footer-brand {}
.footer-description {
  color: var(--t1);
  font-size: 0.88rem;
  margin-top: var(--s2);
  line-height: 1.65;
  max-width: 280px;
}
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.footer-column {}
.footer-column h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--t2);
  margin-bottom: var(--s2);
}
.footer-column a {
  display: block;
  color: var(--t1);
  font-size: 0.88rem;
  padding: 0.25rem 0;
  transition: color var(--tb);
}
.footer-column a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid var(--bd);
  padding-top: var(--s3);
  text-align: center;
  color: var(--t2);
  font-size: 0.8rem;
}

/* ── Theme toggle ──────────────────────────────────────────── */
.theme-toggle {
  position: fixed;
  bottom: var(--s3);
  right: var(--s3);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-1);
  border: 1px solid var(--bd);
  border-radius: var(--r-full);
  padding: 0.5rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--t1);
  cursor: pointer;
  transition: all var(--tb);
  box-shadow: var(--sh-card);
}
.theme-toggle:hover { border-color: var(--amber); color: var(--t0); }
.theme-icon { font-size: 1rem; }

/* ── Notifications ─────────────────────────────────────────── */
.notification {
  position: fixed;
  bottom: calc(var(--s3) + 44px);
  right: var(--s3);
  z-index: 2000;
  background: var(--bg-2);
  border: 1px solid var(--bd);
  border-radius: var(--r-md);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  max-width: 320px;
  box-shadow: var(--sh-card);
  animation: notif-in 0.3s var(--ease-out);
}
@keyframes notif-in {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.notification.success { border-color: rgba(74,222,128,0.3); color: var(--mint); }
.notification.error   { border-color: rgba(248,113,113,0.3); color: var(--red); }

/* ── Scroll animations ─────────────────────────────────────── */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
[data-delay="100"] { transition-delay: 0.1s !important; }
[data-delay="200"] { transition-delay: 0.2s !important; }
[data-delay="300"] { transition-delay: 0.3s !important; }
[data-delay="400"] { transition-delay: 0.4s !important; }
[data-delay="500"] { transition-delay: 0.5s !important; }
[data-delay="600"] { transition-delay: 0.6s !important; }
[data-aos="fade-right"] { transform: translateX(-24px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }

/* ── Misc helpers ──────────────────────────────────────────── */
.text-amber { color: var(--amber); }
.text-muted { color: var(--t2); }
.text-center { text-align: center; }

/* Price notice */
.price-notice {
  background: var(--amber-dim);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: var(--r-md);
  padding: var(--s2) var(--s3);
  color: var(--t0);
  font-size: 0.88rem;
  margin-top: var(--s3);
  text-align: center;
}

/* Server details (guides compat) */
.server-details h4 { font-size: 0.9rem; font-weight: 600; }
.server-details p  { font-size: 0.8rem; color: var(--t2); }

/* Setting info */
.setting-info h4 { font-size: 0.9rem; font-weight: 600; }
.setting-info p  { font-size: 0.8rem; color: var(--t2); }

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */

/* ── Tablet (≤1024px) ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .pricing-cards { grid-template-columns: repeat(2, 1fr); }

  .account-grid { grid-template-columns: repeat(6, 1fr); }
  .user-info-card    { grid-column: span 3; }
  .subscription-card { grid-column: span 3; }
  .devices-card      { grid-column: span 3; }
  .referral-card     { grid-column: span 3; }
  .promo-card        { grid-column: span 3; }
  .payment-card      { grid-column: span 3; }
  .support-card      { grid-column: span 6; }

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

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--s7) 0 var(--s6);
  }
  .hero-text { max-width: 100%; }
  .hero-cta  { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }

  .footer-content { grid-template-columns: 1fr; gap: var(--s4); }
  .footer-description { max-width: 100%; }
}

/* ── Mobile (≤768px) ────────────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 var(--s2); }

  /* Hero */
  .hero-title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { gap: var(--s3); }

  /* Features */
  .features-grid { grid-template-columns: 1fr; }

  /* Section padding reduction on mobile */
  .features      { padding: var(--s6) 0; }
  .how-it-works  { padding: var(--s6) 0; }
  .cta-section   { padding: var(--s6) 0; }
  .faq-section   { padding: var(--s6) 0; }

  /* Steps */
  .steps { padding: 0 0; }
  .step  { flex-direction: column; gap: var(--s2); padding: var(--s3); }
  .step-number { font-size: 1.4rem; }

  /* CTA */
  .cta-content { padding: var(--s4) var(--s3); }

  /* Pricing */
  .pricing-cards { grid-template-columns: 1fr; }
  .pricing-tabs  { width: 100%; justify-content: flex-start; }
  .custom-tariff-form { grid-template-columns: 1fr; }

  /* Account */
  .account-grid { grid-template-columns: 1fr; }
  .user-info-card, .subscription-card, .devices-card,
  .referral-card, .promo-card, .payment-card,
  .support-card { grid-column: span 1; }

  .plan-details { grid-template-columns: 1fr; gap: var(--s2); }
  .support-options { grid-template-columns: 1fr; }

  .account-header h1 { font-size: 1.4rem; }

  /* Footer */
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: var(--s3); }

  /* Theme toggle */
  .theme-toggle .theme-text { display: none; }

  /* Modals */
  #extendModal > div,
  #linkEmailModal > div,
  #paymentModal > div { padding: var(--s3); border-radius: var(--r-lg); }

  /* Guides — mobile */
  .platform-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
    gap: 0.35rem;
    margin-bottom: var(--s3);
  }
  .platform-tabs::-webkit-scrollbar { display: none; }
  .platform-tab {
    flex-shrink: 0;
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
  }
  .tab-name { display: inline; }

  .guide-step { flex-direction: column; padding: var(--s2); gap: var(--s2); }
  .step-number-circle { width: 1.7rem; height: 1.7rem; font-size: 0.82rem; }
  .guide-header h2 { font-size: 1.1rem; }

  /* Download/install buttons in guide steps stack full-width */
  .guide-step .btn { width: 100%; box-sizing: border-box; justify-content: center; }

  .help-content { padding: var(--s3) var(--s2); }
  .section-title { font-size: clamp(1.5rem, 7vw, 2.2rem); }
}

/* ── Small mobile (≤480px) ──────────────────────────────────── */
@media (max-width: 480px) {
  .hero { padding-top: 64px; }
  .hero-content { padding: var(--s5) 0; }
  .hero-stats { flex-wrap: wrap; gap: var(--s2); }
  .stat-number { font-size: 1.4rem; }

  .section-title { font-size: 1.6rem; }

  .footer-links { grid-template-columns: 1fr; }
  .footer { padding: var(--s4) 0 var(--s3); }

  .feature-card { padding: var(--s3); }
  .account-card { padding: var(--s2); }

  /* Auth / login card */
  .login-card {
    padding: var(--s4) var(--s3);
    border-radius: var(--r-lg);
  }
  .login-title { font-size: 1.4rem; }
  .auth-sep { margin: var(--s3) 0 var(--s2); }
}

/* ── Steps: horizontal layout on desktop ───────────────────── */
@media (min-width: 769px) {
  .how-it-works::before { display: none; }

  .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 860px;
  }

  .step {
    flex-direction: column;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0 var(--s5) 0 0;
    gap: var(--s2);
    align-items: flex-start;
    position: relative;
  }
  .step:not(:last-child) {
    border-right: 1px solid var(--bd);
    padding-right: var(--s5);
    margin-right: 0;
  }
  .step:not(:first-child) { padding-left: var(--s5); }
  .step:hover { border-color: transparent; box-shadow: none; transform: none; }
  .step:not(:last-child):hover { border-right-color: var(--bd); }

  .step-number {
    font-size: 3rem;
    font-weight: 700;
    opacity: 1;
    min-width: unset;
    line-height: 1;
    margin-bottom: var(--s1);
    letter-spacing: -0.04em;
  }
  .step-title  { font-size: 1.05rem; font-weight: 700; }
}

/* ── Print ──────────────────────────────────────────────────── */
@media print {
  .navbar, .footer, .theme-toggle, .mobile-menu-toggle { display: none; }
  body { background: white; color: black; }
  .account-card { border: 1px solid #ccc; }
}
