/* ============================================================
   DE IPTV – Main Stylesheet
   Structure:
   1. CSS Custom Properties (design tokens)
   2. Reset & Base
   3. Typography
   4. Layout Utilities
   5. Components (buttons, badges, tags)
   6. Navigation
   7. Hero Section
   8. Features Section
   9. Content Section
   10. Devices Section
   11. Pricing Section
   12. Testimonials Section
   13. FAQ Section
   14. CTA Section
   15. Footer
   16. Back to Top
   17. Animations & Reveals
   18. Responsive (tablet + mobile)
   19. Light Theme Overrides
============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES
============================================================ */
:root {
  /* Colors – dark theme (default) */
  --bg-base:         #080b14;
  --bg-surface:      #0d1220;
  --bg-elevated:     #131929;
  --bg-card:         #161e30;
  --bg-card-hover:   #1c2640;

  --border:          rgba(255, 255, 255, 0.07);
  --border-strong:   rgba(255, 255, 255, 0.12);

  --text-primary:    #f0f4ff;
  --text-secondary:  #8b9ab8;
  --text-muted:      #5a6a8a;

  /* Accent gradient */
  --accent-1:        #6c63ff;
  --accent-2:        #3d5af1;
  --accent-cyan:     #00d4ff;
  --accent-green:    #10d96e;
  --accent-orange:   #ff8c3b;
  --accent-pink:     #ff4d8f;

  --gradient-main:   linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
  --gradient-text:   linear-gradient(135deg, #a78bff 0%, var(--accent-cyan) 100%);
  --gradient-hero:   radial-gradient(ellipse 80% 60% at 50% -20%, rgba(108,99,255,.35) 0%, transparent 70%);

  /* Shadows */
  --shadow-sm:       0 1px 3px rgba(0,0,0,.4);
  --shadow-md:       0 4px 16px rgba(0,0,0,.5);
  --shadow-lg:       0 12px 40px rgba(0,0,0,.6);
  --shadow-accent:   0 8px 32px rgba(108,99,255,.35);
  --shadow-card:     0 2px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.04);

  /* Typography */
  --font-sans:       'Inter', system-ui, -apple-system, sans-serif;
  --font-display:    'Space Grotesk', 'Inter', sans-serif;

  --text-xs:   .75rem;
  --text-sm:   .875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing */
  --space-1:  .25rem;
  --space-2:  .5rem;
  --space-3:  .75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Borders */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-fast:   150ms cubic-bezier(.4,0,.2,1);
  --ease-base:   250ms cubic-bezier(.4,0,.2,1);
  --ease-slow:   400ms cubic-bezier(.4,0,.2,1);
  --ease-bounce: 500ms cubic-bezier(.34,1.56,.64,1);

  /* Layout */
  --container-max: 1200px;
  --nav-height:    70px;
  --section-gap:   var(--space-24);
}

/* Light theme overrides (defined at the bottom) */
[data-theme="light"] {
  --bg-base:        #f4f6fb;
  --bg-surface:     #ffffff;
  --bg-elevated:    #f0f2f9;
  --bg-card:        #ffffff;
  --bg-card-hover:  #f5f7ff;

  --border:         rgba(0,0,0,.08);
  --border-strong:  rgba(0,0,0,.14);

  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;

  --gradient-hero:  radial-gradient(ellipse 80% 60% at 50% -20%, rgba(108,99,255,.15) 0%, transparent 70%);
  --shadow-sm:      0 1px 3px rgba(0,0,0,.1);
  --shadow-md:      0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:      0 12px 40px rgba(0,0,0,.15);
  --shadow-card:    0 2px 12px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.8);
}

/* ============================================================
   2. RESET & BASE
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--ease-slow), color var(--ease-slow);
  overflow-x: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   3. TYPOGRAPHY
============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   4. LAYOUT UTILITIES
============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--section-gap) 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-16);
}

.section-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-1);
  background: rgba(108,99,255,.12);
  border: 1px solid rgba(108,99,255,.25);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
}

.hidden { display: none !important; }

/* ============================================================
   5. COMPONENTS – Buttons
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  padding: .75rem 1.5rem;
  transition: all var(--ease-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Ripple effect on btn click */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.1);
  opacity: 0;
  transition: opacity var(--ease-fast);
}
.btn:active::after { opacity: 1; }

/* Primary */
.btn--primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(108,99,255,.5);
}
.btn--primary:active { transform: translateY(0); }

/* Outline */
.btn--outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.btn--outline:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
  background: rgba(108,99,255,.06);
  transform: translateY(-2px);
}

/* Ghost */
.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}
.btn--ghost:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}

/* Sizes */
.btn--sm { font-size: var(--text-xs); padding: .5rem 1rem; }
.btn--lg { font-size: var(--text-base); padding: 1rem 2rem; border-radius: var(--radius-lg); }
.btn--full { width: 100%; }

/* ============================================================
   6. NAVIGATION
============================================================ */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background-color var(--ease-base), backdrop-filter var(--ease-base), box-shadow var(--ease-base);
}

/* Scrolled state – added by JS */
.nav-header.scrolled {
  background: rgba(8, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

[data-theme="light"] .nav-header.scrolled {
  background: rgba(244, 246, 251, 0.88);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: var(--space-8);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: opacity var(--ease-fast);
}
.nav-logo:hover { opacity: .85; }

.logo-icon {
  flex-shrink: 0;
  line-height: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--text-primary);
}
.logo-text strong { font-weight: 800; color: var(--accent-1); }

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--ease-fast), background var(--ease-fast);
}
.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}
.nav-link.active { color: var(--accent-1); }

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Theme toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: color var(--ease-fast), background var(--ease-fast), transform var(--ease-bounce);
}
.theme-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-card);
  transform: scale(1.08);
}

/* Show/hide sun/moon icon based on theme */
[data-theme="dark"] .theme-icon--moon { display: none; }
[data-theme="dark"] .theme-icon--sun  { display: flex; }
[data-theme="light"] .theme-icon--sun  { display: none; }
[data-theme="light"] .theme-icon--moon { display: flex; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--ease-base);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu drawer */
.mobile-menu {
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) var(--space-6) var(--space-6);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease-base), transform var(--ease-base);
  backdrop-filter: blur(20px);
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.mobile-nav-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: color var(--ease-fast), background var(--ease-fast);
}
.mobile-nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

/* ============================================================
   7. HERO SECTION
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

/* Animated background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: floatGlow 8s ease-in-out infinite;
}

.hero-glow--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108,99,255,.25) 0%, transparent 70%);
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
}

.hero-glow--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,212,255,.15) 0%, transparent 70%);
  top: 40%;
  right: -5%;
  animation-delay: -4s;
}

@keyframes floatGlow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-30px); }
}
.hero-glow--2 {
  animation: floatGlow2 8s ease-in-out infinite;
  animation-delay: -4s;
}
@keyframes floatGlow2 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-30px); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-20) var(--space-6);
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(16,217,110,.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16,217,110,.2); }
  50%       { box-shadow: 0 0 0 6px rgba(16,217,110,.1); }
}

/* Hero title */
.hero-title {
  font-size: clamp(var(--text-4xl), 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}
.hero-subtitle strong { color: var(--text-primary); }

/* CTA row */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-8);
}

/* Trust row */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.trust-item svg { color: var(--accent-green); flex-shrink: 0; }

/* Stats bar */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  max-width: 720px;
  margin: 0 auto;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 120px;
  padding: var(--space-4);
}

.stat-number, .stat-value {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: bounce 2s ease-in-out infinite;
  transition: color var(--ease-fast);
}
.scroll-indicator:hover { color: var(--accent-1); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   8. FEATURES SECTION
============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color var(--ease-base), box-shadow var(--ease-base), transform var(--ease-base);
  box-shadow: var(--shadow-card);
}
.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

/* Icon color variants */
.feature-icon--purple { background: rgba(108,99,255,.15); color: var(--accent-1); }
.feature-icon--blue   { background: rgba(61,90,241,.15);  color: #5b8af5; }
.feature-icon--cyan   { background: rgba(0,212,255,.12);  color: var(--accent-cyan); }
.feature-icon--green  { background: rgba(16,217,110,.12); color: var(--accent-green); }
.feature-icon--orange { background: rgba(255,140,59,.12); color: var(--accent-orange); }
.feature-icon--pink   { background: rgba(255,77,143,.12); color: var(--accent-pink); }

.feature-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.feature-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   9. CONTENT SECTION
============================================================ */
.content-section {
  background: var(--bg-surface);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.content-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color var(--ease-base), box-shadow var(--ease-base), transform var(--ease-base);
  box-shadow: var(--shadow-card);
}
.content-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Highlighted card */
.content-card--highlight {
  border-color: rgba(108,99,255,.35);
  background: linear-gradient(135deg, rgba(108,99,255,.08) 0%, rgba(0,212,255,.04) 100%);
}
.content-card--highlight:hover {
  border-color: var(--accent-1);
  box-shadow: var(--shadow-accent);
}

.content-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  color: #fff;
  background: var(--gradient-main);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  letter-spacing: .04em;
}

.content-card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
  line-height: 1;
}

.content-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.content-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.content-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-1);
  background: rgba(108,99,255,.1);
  border: 1px solid rgba(108,99,255,.2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

/* ============================================================
   10. DEVICES SECTION
============================================================ */
.devices-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}

.devices-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.device-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  transition: border-color var(--ease-base), transform var(--ease-base);
  box-shadow: var(--shadow-card);
}
.device-item:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
}

.device-icon {
  color: var(--accent-1);
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(108,99,255,.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.device-info strong { font-size: var(--text-base); font-weight: 600; }
.device-info span   { font-size: var(--text-sm); color: var(--text-secondary); }

.device-check {
  color: var(--accent-green);
  flex-shrink: 0;
}

/* Apps section */
.apps-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
}

.apps-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}

.apps-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.app-badge {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  transition: border-color var(--ease-fast), color var(--ease-fast);
}
.app-badge:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
}

/* ============================================================
   11. PRICING SECTION
============================================================ */
.pricing-section {
  background: var(--bg-surface);
}

/* Duration toggle */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-12);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: var(--space-2);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-sm);
}

.toggle-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  transition: all var(--ease-base);
}
.toggle-btn:hover { color: var(--text-primary); }
.toggle-btn.active {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.toggle-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(16,217,110,.12);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}
.toggle-btn.active .toggle-badge {
  background: rgba(255,255,255,.2);
  color: #fff;
}

/* Pricing grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: border-color var(--ease-base), box-shadow var(--ease-base), transform var(--ease-base);
  box-shadow: var(--shadow-card);
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Featured card */
.pricing-card--featured {
  border-color: var(--accent-1);
  background: linear-gradient(160deg, rgba(108,99,255,.08) 0%, rgba(0,212,255,.04) 100%);
  transform: scale(1.04);
  box-shadow: var(--shadow-accent), var(--shadow-card);
}
.pricing-card--featured:hover {
  transform: scale(1.04) translateY(-6px);
  box-shadow: 0 16px 48px rgba(108,99,255,.45);
}

.pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  font-weight: 700;
  color: #fff;
  background: var(--gradient-main);
  padding: var(--space-1) var(--space-5);
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: var(--shadow-accent);
}

.pricing-card-header {
  margin-bottom: var(--space-6);
}

.pricing-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(108,99,255,.12);
  color: var(--accent-1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.pricing-card--featured .pricing-icon {
  background: rgba(108,99,255,.2);
}

.pricing-plan {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.pricing-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.pricing-price {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.price-amount {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-2);
  transition: all var(--ease-base);
}

.price-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.price-per-month {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.price-savings {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent-green);
}

/* Pricing feature list */
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.pricing-features li::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: rgba(16,217,110,.12);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2310d96e' stroke-width='3' stroke-linecap='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Payment methods */
.payment-methods {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-12);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.payment-icons {
  display: flex;
  gap: var(--space-2);
}

.payment-icon {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  letter-spacing: .02em;
}

.payment-methods svg { color: var(--accent-green); }

/* ============================================================
   12. TESTIMONIALS SECTION
============================================================ */
.testimonials-section {
  background: var(--bg-base);
}

/* Rating summary */
.rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-4);
}

.rating-stars {
  display: flex;
  gap: 2px;
}

.star {
  font-size: var(--text-xl);
  color: var(--text-muted);
}
.star.filled { color: #f59e0b; }
.star.half   { color: #f59e0b; opacity: .6; }

.rating-summary strong {
  font-size: var(--text-lg);
  color: var(--text-primary);
}

/* Slider */
.testimonials-slider {
  overflow: hidden;
}

.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  transition: border-color var(--ease-base), transform var(--ease-base);
}
.testimonial-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.testimonial-stars {
  font-size: var(--text-base);
  color: #f59e0b;
  margin-bottom: var(--space-4);
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: var(--space-6);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.author-info strong {
  font-size: var(--text-sm);
  font-weight: 600;
}
.author-info span {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Slider controls */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease-fast);
}
.slider-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-1);
  background: rgba(108,99,255,.08);
}

.slider-dots {
  display: flex;
  gap: var(--space-2);
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  border: none;
  cursor: pointer;
  transition: all var(--ease-base);
}
.slider-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--accent-1);
}

/* ============================================================
   13. FAQ SECTION
============================================================ */
.faq-section {
  background: var(--bg-surface);
}

.faq-container {
  max-width: 780px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--ease-base);
  box-shadow: var(--shadow-card);
}
.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-color: var(--accent-1);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  text-align: left;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-sans);
  transition: color var(--ease-fast);
}
.faq-question:hover { color: var(--accent-1); }

.faq-icon {
  flex-shrink: 0;
  transition: transform var(--ease-base);
  color: var(--text-muted);
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-1);
}

.faq-answer {
  padding: 0 var(--space-6) var(--space-5);
}
.faq-answer p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.8;
}
.faq-answer strong { color: var(--text-primary); }

/* ============================================================
   14. CTA SECTION
============================================================ */
.cta-section {
  background: var(--bg-base);
}

.cta-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(108,99,255,.3);
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-8);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-accent), var(--shadow-card);
}

.cta-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(108,99,255,.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  margin-bottom: var(--space-4);
}

.cta-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-8);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-8);
}

.cta-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ============================================================
   15. FOOTER
============================================================ */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-logo {
  margin-bottom: var(--space-5);
  display: inline-flex;
}

.footer-brand-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  max-width: 320px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--ease-fast);
}
.footer-contact-link:hover { color: var(--accent-1); }

.footer-nav-title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--ease-fast);
}
.footer-nav a:hover { color: var(--accent-1); }

/* Service areas */
.service-areas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.service-area {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.footer-stats-mini {
  display: flex;
  gap: var(--space-6);
}

.mini-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mini-stat strong {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
}
.mini-stat span {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Footer bottom */
.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright,
.footer-disclaimer {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-disclaimer a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-disclaimer a:hover { color: var(--accent-1); }

/* ============================================================
   16. BACK TO TOP
============================================================ */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gradient-main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-accent);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--ease-base), transform var(--ease-base);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(108,99,255,.5);
}

/* ============================================================
   17. ANIMATIONS & SCROLL REVEALS
============================================================ */

/* Elements start hidden; JS adds .revealed when in view */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--ease-slow), transform var(--ease-slow);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside a grid */
.features-grid .reveal:nth-child(1),
.content-grid .reveal:nth-child(1),
.pricing-grid .reveal:nth-child(1) { transition-delay: 0ms; }

.features-grid .reveal:nth-child(2),
.content-grid .reveal:nth-child(2),
.pricing-grid .reveal:nth-child(2) { transition-delay: 80ms; }

.features-grid .reveal:nth-child(3),
.content-grid .reveal:nth-child(3),
.pricing-grid .reveal:nth-child(3) { transition-delay: 160ms; }

.features-grid .reveal:nth-child(4),
.content-grid .reveal:nth-child(4) { transition-delay: 240ms; }

.features-grid .reveal:nth-child(5),
.content-grid .reveal:nth-child(5) { transition-delay: 320ms; }

.features-grid .reveal:nth-child(6),
.content-grid .reveal:nth-child(6) { transition-delay: 400ms; }

/* ============================================================
   18. RESPONSIVE
============================================================ */

/* --- Tablet (max 1024px) --- */
@media (max-width: 1024px) {
  :root { --section-gap: var(--space-20); }

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

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }

  /* Reset featured scale so it doesn't overflow on tablet */
  .pricing-card--featured {
    transform: none;
    grid-column: span 2;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
  .pricing-card--featured:hover { transform: translateY(-6px); }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .devices-showcase {
    grid-template-columns: 1fr;
  }
}

/* --- Mobile (max 768px) --- */
@media (max-width: 768px) {
  :root {
    --section-gap: var(--space-16);
    --nav-height:  62px;
  }

  /* Hide desktop nav, show hamburger */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .btn--sm.btn { display: none; } /* hide desktop CTA in nav on small screens */

  .hero-title {
    font-size: clamp(2.2rem, 9vw, var(--text-5xl));
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-5);
  }
  .stat-divider { width: 100%; height: 1px; }

  .hero-trust {
    flex-direction: column;
    gap: var(--space-3);
  }

  .features-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card--featured {
    grid-column: auto;
    max-width: 100%;
    transform: none;
  }

  .testimonials-track {
    grid-template-columns: 1fr;
  }

  /* Hide all but first 3 testimonials on mobile (JS also handles this) */
  .testimonial-card:nth-child(n+4) { display: none; }

  .pricing-toggle {
    flex-wrap: wrap;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 340px;
  }
  .toggle-btn { flex: 1; text-align: center; justify-content: center; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-card { padding: var(--space-10) var(--space-5); }

  .back-to-top {
    bottom: var(--space-4);
    right: var(--space-4);
  }

  .devices-showcase { gap: var(--space-6); }
  .apps-list { padding: var(--space-6); }

  .footer-stats-mini { gap: var(--space-4); }

  .section-header { margin-bottom: var(--space-10); }
}

/* --- Small mobile (max 480px) --- */
@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  .hero-cta .btn { width: 100%; max-width: 320px; }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  .cta-actions .btn { width: 100%; max-width: 300px; }

  .hero-stats {
    padding: var(--space-4);
  }

  .rating-summary {
    flex-wrap: wrap;
    text-align: center;
  }

  .payment-methods {
    flex-direction: column;
    gap: var(--space-2);
  }
}

/* ============================================================
   19. LIGHT THEME — component overrides
============================================================ */
[data-theme="light"] .hero-grid {
  opacity: .5;
}

[data-theme="light"] .hero-badge {
  background: rgba(255,255,255,.8);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .feature-card,
[data-theme="light"] .content-card,
[data-theme="light"] .device-item,
[data-theme="light"] .apps-list,
[data-theme="light"] .pricing-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .faq-item,
[data-theme="light"] .cta-card {
  box-shadow: 0 1px 8px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04);
}

[data-theme="light"] .hero-stats {
  background: rgba(255,255,255,.95);
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

[data-theme="light"] .pricing-card--featured {
  background: linear-gradient(160deg, rgba(108,99,255,.06) 0%, rgba(0,212,255,.03) 100%);
}

/* ============================================================
   20. LANDING PAGE COMPONENTS
   (shared across iptv-totaal, iptv-pandora, iptv-kopen, iptv-nl, iptv-dutch)
============================================================ */

/* Breadcrumb */
.breadcrumb {
  padding: calc(var(--nav-height) + var(--space-4)) 0 0;
  margin-bottom: 0;
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.breadcrumb-list a {
  color: var(--text-secondary);
  transition: color var(--ease-fast);
}
.breadcrumb-list a:hover { color: var(--accent-1); }
.breadcrumb-sep { color: var(--text-muted); }
.breadcrumb-current { color: var(--text-primary); font-weight: 500; }

/* Page hero (smaller than homepage) */
.page-hero {
  padding: var(--space-16) 0 var(--space-20);
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.page-hero-glow {
  position: absolute;
  width: 500px;
  height: 400px;
  border-radius: 50%;
  filter: blur(90px);
  background: radial-gradient(circle, rgba(108,99,255,.2) 0%, transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.page-hero-title {
  font-size: clamp(var(--text-3xl), 5.5vw, var(--text-6xl));
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: var(--space-5);
}
.page-hero-desc {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto var(--space-8);
}

/* Intro prose block */
.prose-block {
  max-width: 780px;
  margin: 0 auto;
}
.prose-block p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: var(--space-5);
}
.prose-block p:last-child { margin-bottom: 0; }
.prose-block strong { color: var(--text-primary); }
.prose-block a {
  color: var(--accent-1);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--ease-fast);
}
.prose-block a:hover { opacity: .8; }

/* Step cards (how-to) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  box-shadow: var(--shadow-card);
  transition: border-color var(--ease-base), transform var(--ease-base);
}
.step-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 800;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-accent);
}
.step-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.step-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}
@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps-grid { grid-template-columns: 1fr; } }

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.comparison-table th,
.comparison-table td {
  padding: var(--space-4) var(--space-5);
  text-align: center;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--border);
}
.comparison-table th {
  background: var(--bg-elevated);
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}
.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: var(--bg-elevated); }
.comparison-table .th-us {
  background: rgba(108,99,255,.12);
  color: var(--accent-1);
}
.check-yes { color: var(--accent-green); font-size: var(--text-lg); }
.check-no  { color: var(--text-muted);   font-size: var(--text-lg); }
.check-partial { color: var(--accent-orange); font-size: var(--text-sm); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Channel categories grid */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  transition: border-color var(--ease-base), transform var(--ease-base);
  box-shadow: var(--shadow-card);
}
.channel-card:hover {
  border-color: var(--accent-1);
  transform: translateY(-3px);
}
.channel-card-icon { font-size: 2rem; margin-bottom: var(--space-3); line-height: 1; }
.channel-card h3 { font-size: var(--text-sm); font-weight: 700; margin-bottom: var(--space-2); }
.channel-card p  { font-size: var(--text-xs); color: var(--text-secondary); line-height: 1.6; }
.channel-count {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent-1);
  background: rgba(108,99,255,.1);
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
  margin-top: var(--space-2);
}
@media (max-width: 900px) { .channel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .channel-grid { grid-template-columns: repeat(2, 1fr); } }

/* Internal links / related pages section */
.internal-links-section {
  background: var(--bg-surface);
}
.internal-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.internal-link-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-decoration: none;
  transition: border-color var(--ease-base), transform var(--ease-base), box-shadow var(--ease-base);
  box-shadow: var(--shadow-card);
}
.internal-link-card:hover {
  border-color: var(--accent-1);
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent);
  color: inherit;
}
.internal-link-card .link-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.internal-link-card strong {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
}
.internal-link-card span {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.5;
}
.internal-link-card .link-arrow {
  font-size: var(--text-sm);
  color: var(--accent-1);
  margin-top: auto;
  padding-top: var(--space-2);
}
@media (max-width: 900px) { .internal-links-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .internal-links-grid { grid-template-columns: 1fr; } }

/* Highlight box (used inside prose) */
.highlight-box {
  background: linear-gradient(135deg, rgba(108,99,255,.08) 0%, rgba(0,212,255,.05) 100%);
  border: 1px solid rgba(108,99,255,.25);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  margin: var(--space-8) 0;
}
.highlight-box h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.highlight-box ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.highlight-box ul li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.highlight-box ul li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Mini pricing teaser on landing pages */
.pricing-teaser {
  background: var(--bg-card);
  border: 1px solid rgba(108,99,255,.3);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-accent), var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.pricing-teaser::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 300px;
  background: radial-gradient(ellipse, rgba(108,99,255,.15) 0%, transparent 70%);
  pointer-events: none;
}
.pricing-teaser-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-3);
}
.pricing-teaser-subtitle {
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  font-size: var(--text-lg);
}
.pricing-teaser-prices {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}
.teaser-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}
.teaser-price-amount {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.teaser-price-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.teaser-price-from {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}
@media (max-width: 600px) { .pricing-teaser { padding: var(--space-8) var(--space-4); } }

/* Page nav additions */
.nav-pages-divider {
  width: 1px;
  height: 18px;
  background: var(--border-strong);
  flex-shrink: 0;
}

/* ============================================================
   FIX: last closing brace for light theme was lost
============================================================ */
}

/* ============================================================
   SEO TEXT SECTION
============================================================ */
.seo-text-section { background: var(--bg-secondary); border-top: 1px solid var(--border); }
.seo-text-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-10); }
.seo-block h2 { font-size: var(--text-xl); font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-4); line-height: 1.3; }
.seo-block h3 { font-size: var(--text-lg); font-weight: 600; color: var(--text-primary); margin-bottom: var(--space-3); }
.seo-block p { color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.75; margin-bottom: var(--space-3); }
.seo-block p:last-child { margin-bottom: 0; }
.seo-block a { color: var(--accent-primary); text-decoration: underline; }
.seo-block a:hover { color: var(--accent-secondary); }
@media (max-width: 768px) { .seo-text-grid { grid-template-columns: 1fr; gap: var(--space-8); } }
