/* ============================================================
   YouTube Downloader — Redesigned Design System
   Grency AI Systems (Grency Enterprise)
   Dual Theme · Glassmorphism 2.0 · Animated Gradient Mesh
   ============================================================ */

/* ---- Google Font Import ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================
   DESIGN TOKENS — DARK THEME (Permanent)
   ============================================================ */
:root {
  /* Core palette (Deep Midnight Slate aligned with squircle icon) */
  --bg-primary: #040711;
  --bg-secondary: #0a0f1d;
  --bg-tertiary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-solid: #0f172a;
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  --bg-input: rgba(255, 255, 255, 0.05);

  /* Text */
  --text-primary: #f8fafc;
  --text-secondary: rgba(241, 245, 249, 0.7);
  --text-tertiary: rgba(203, 213, 225, 0.45);
  --text-accent: #fb7185;
  --text-on-accent: #ffffff;

  /* Main Icon Brand Accents (Infinite Stream Ribbon / Y-Shape) */
  --accent-primary: #f43f5e;
  --accent-secondary: #7c3aed;
  --accent-tertiary: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-violet: #7c3aed;
  --accent-amber: #f59e0b;
  --accent-green: #10b981;
  --accent-cyan: #06b6d4;

  /* === THE 3 FORMAT TABS PALETTE (Matching Extension Popup Exactly) === */
  /* 1. Video (MP4) Tab Theme */
  --tab-video: #ff3b5c;
  --tab-video-hover: #ff5271;
  --tab-video-glow: rgba(255, 59, 92, 0.35);
  --tab-video-border: rgba(255, 59, 92, 0.3);
  --tab-video-bg: rgba(255, 59, 92, 0.08);
  --tab-video-grad: linear-gradient(135deg, #ff3366 0%, #9333ea 100%);
  --tab-video-grad-hover: linear-gradient(135deg, #ff4d79 0%, #a855f7 100%);
  --tab-video-tag: #ff6b8b;

  /* 2. Audio (MP3) Tab Theme */
  --tab-audio: #8b5cf6;
  --tab-audio-hover: #a78bfa;
  --tab-audio-glow: rgba(139, 92, 246, 0.35);
  --tab-audio-border: rgba(139, 92, 246, 0.3);
  --tab-audio-bg: rgba(139, 92, 246, 0.08);
  --tab-audio-grad: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --tab-audio-grad-hover: linear-gradient(135deg, #a78bfa 0%, #f472b6 100%);
  --tab-audio-tag: #c084fc;

  /* 3. Lossless Audio Tab Theme */
  --tab-lossless: #10b981;
  --tab-lossless-hover: #34d399;
  --tab-lossless-glow: rgba(16, 185, 129, 0.35);
  --tab-lossless-border: rgba(16, 185, 129, 0.3);
  --tab-lossless-bg: rgba(16, 185, 129, 0.08);
  --tab-lossless-grad: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --tab-lossless-grad-hover: linear-gradient(135deg, #34d399 0%, #22d3ee 100%);
  --tab-lossless-tag: #34d399;

  /* Brand Gradients */
  --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #f43f5e 50%, #f59e0b 100%);
  --gradient-hero: linear-gradient(135deg, #7c3aed 0%, #f43f5e 50%, #f59e0b 100%);
  --gradient-cta: linear-gradient(135deg, #f43f5e 0%, #7c3aed 100%);
  --gradient-cta-hover: linear-gradient(135deg, #ff5271 0%, #8b5cf6 100%);
  --gradient-ribbon: linear-gradient(135deg, #7c3aed 0%, #f43f5e 50%, #f59e0b 100%);
  --gradient-donation: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --gradient-mesh-1: #7c3aed;
  --gradient-mesh-2: #f43f5e;
  --gradient-mesh-3: #f59e0b;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(244, 63, 94, 0.35);
  --border-card: rgba(255, 255, 255, 0.08);

  /* Shadows */
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(244, 63, 94, 0.18);
  --shadow-glow-strong: 0 0 60px rgba(244, 63, 94, 0.28);
  --shadow-cta: 0 6px 25px rgba(244, 63, 94, 0.4);
  --shadow-donation: 0 6px 25px rgba(244, 63, 94, 0.4);
  --shadow-nav: 0 4px 30px rgba(0, 0, 0, 0.35);
  --shadow-float: 0 20px 60px rgba(0, 0, 0, 0.45);

  /* Overlay */
  --overlay-bg: rgba(0, 0, 0, 0.75);

  /* Icon containers */
  --icon-bg: rgba(244, 63, 94, 0.1);
  --icon-border: rgba(244, 63, 94, 0.22);

  /* Particle canvas */
  --particle-color: rgba(244, 63, 94, 0.3);

  /* Scrollbar */
  --scrollbar-thumb: rgba(255, 255, 255, 0.16);
  --scrollbar-thumb-hover: rgba(255, 255, 255, 0.32);
  --scrollbar-track: transparent;
}



/* ============================================================
   SHARED DESIGN TOKENS
   ============================================================ */
:root {
  /* Spacing */
  --nav-height: 84px;
  --nav-height-scrolled: 70px;
  --section-padding: 110px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(244, 63, 94, 0.25);
  --shadow-float: 0 20px 40px -15px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

html,
body {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color var(--transition-base), color var(--transition-base);
}

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--accent-primary);
}

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

::selection {
  background: rgba(244, 63, 94, 0.35);
  color: var(--text-primary);
}

/* ==========================================================================
   Universal Sleek Transparent Scrollbar (Vertical & Horizontal)
   Identical to Extension Glass Design
   ========================================================================== */
::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  background: transparent !important;
}

::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16) !important;
  border-radius: 4px !important;
  border: none !important;
}

::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32) !important;
}

::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner {
  background: transparent !important;
}

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

/* ============================================================
   ANIMATED GRADIENT MESH BACKGROUND
   ============================================================ */
.gradient-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  will-change: transform;
  animation: meshFloat 25s ease-in-out infinite;
}

.mesh-blob--1 {
  width: 700px;
  height: 700px;
  background: var(--gradient-mesh-1);
  top: -20%;
  left: -15%;
  animation-delay: 0s;
}

.mesh-blob--2 {
  width: 500px;
  height: 500px;
  background: var(--gradient-mesh-2);
  top: 30%;
  right: -20%;
  animation-delay: -8s;
}

.mesh-blob--3 {
  width: 600px;
  height: 600px;
  background: var(--gradient-mesh-3);
  bottom: -15%;
  left: 20%;
  animation-delay: -16s;
}

@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  25% { transform: translate(40px, -60px) scale(1.08) rotate(5deg); }
  50% { transform: translate(-30px, 30px) scale(0.92) rotate(-3deg); }
  75% { transform: translate(20px, 50px) scale(1.04) rotate(2deg); }
}

/* Particle canvas */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   NAVIGATION BAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--nav-height);
  padding: 16px 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: min-height var(--transition-base), padding var(--transition-base), background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  min-height: var(--nav-height-scrolled);
  padding: 10px 0;
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-nav);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1360px;
  padding: 0 36px;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(244, 63, 94, 0.35);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  flex-shrink: 0;
}

.nav-brand:hover .nav-brand-icon {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(244, 63, 94, 0.55);
}

.nav-brand-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.navbar-stream-beam {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7c3aed 20%, #f43f5e 50%, #f59e0b 80%, transparent);
  background-size: 200% 100%;
  animation: ribbonStreamFlow 4s linear infinite;
  opacity: 0.95;
  pointer-events: none;
}

@keyframes ribbonStreamFlow {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-brand-name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.3px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-brand-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}



/* Nav CTA button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  color: white;
  background: var(--gradient-cta);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-cta);
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: var(--gradient-cta-hover);
  box-shadow: 0 6px 25px rgba(244, 63, 94, 0.55);
  color: white;
}

.nav-cta svg {
  width: 14px;
  height: 14px;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--accent-tertiary);
  background: var(--bg-glass-hover);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  padding: 160px 0 80px;
  position: relative;
  z-index: 1;
  text-align: center;
  overflow: hidden;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-accent);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-accent);
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

/* Hero Infinite Stream Ribbon Badge */
.hero-ribbon-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 24px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(244, 63, 94, 0.35);
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 24px rgba(244, 63, 94, 0.2);
  transition: all var(--transition-base);
  animation: fadeInUp 0.8s ease-out;
}

.hero-ribbon-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 63, 94, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 32px rgba(244, 63, 94, 0.35);
}

.ribbon-badge-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(244, 63, 94, 0.15), rgba(124, 58, 237, 0.15), transparent);
  pointer-events: none;
}

.ribbon-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.6));
  animation: ribbonPulse 3s ease-in-out infinite;
}

.ribbon-badge-text {
  background: linear-gradient(135deg, #ffffff 20%, #fbcfe8 60%, #fed7aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.2px;
}

.ribbon-badge-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  animation: ribbonShimmer 4s infinite;
}

@keyframes ribbonPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.5));
  }
  50% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 16px rgba(244, 63, 94, 0.9));
  }
}

@keyframes ribbonShimmer {
  0% {
    left: -100%;
  }
  30%, 100% {
    left: 200%;
  }
}

/* Hero heading */
.hero h1 {
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2.5px;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradientShift 6s ease-in-out infinite;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 44px;
  line-height: 1.75;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  color: white;
  background: var(--gradient-cta);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-cta);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: var(--gradient-cta-hover);
  box-shadow: 0 8px 30px rgba(244, 63, 94, 0.55);
  color: white;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-accent);
  transform: translateY(-3px);
  color: var(--text-primary);
}

.btn-secondary svg {
  width: 18px;
  height: 18px;
}

/* Hero mockup / floating elements */
.hero-mockup {
  margin-top: 64px;
  position: relative;
  animation: fadeInUp 1s ease-out 0.5s both;
}

/* Floating badges around hero */
.hero-float {
  position: absolute;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 6s ease-in-out infinite;
  box-shadow: var(--shadow-float);
  white-space: nowrap;
}

.hero-float--1 {
  top: 15%;
  left: 3%;
  animation-delay: 0s;
  border-color: rgba(255, 59, 92, 0.4);
  color: #ff6b8b;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 59, 92, 0.25);
}

.hero-float--1 svg {
  color: #ff3b5c;
}

.hero-float--2 {
  top: 25%;
  right: 3%;
  animation-delay: -2s;
  border-color: rgba(139, 92, 246, 0.4);
  color: #c084fc;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(139, 92, 246, 0.25);
}

.hero-float--2 svg {
  color: #8b5cf6;
}

.hero-float--3 {
  bottom: 15%;
  left: 8%;
  animation-delay: -4s;
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(16, 185, 129, 0.25);
}

.hero-float--3 svg {
  color: #10b981;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

/* ============================================================
   CHROME BROWSER WINDOW WITH YOUTUBE & EXTENSION SHOWCASE
   ============================================================ */
.hero-browser {
  text-align: left;
  max-width: 1060px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  background: #0f0f0f;
  border: 1px solid var(--border-card);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 50px rgba(244, 63, 94, 0.15), 0 0 40px rgba(124, 58, 237, 0.15);
  overflow: hidden;
  position: relative;
  transition: all var(--transition-base);
}

/* 1. Chrome Tab Strip */
.chrome-tab-strip {
  display: flex;
  align-items: center;
  background: #181926;
  padding: 8px 14px 0;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chrome-window-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: 4px;
}

.browser-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.browser-dot--red { background: #ef4444; }
.browser-dot--yellow { background: #f59e0b; }
.browser-dot--green { background: #10b981; }

.chrome-tabs-list {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  flex: 1;
  overflow: hidden;
}

.chrome-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: #222436;
  border-radius: 9px 9px 0 0;
  color: #f1f5f9;
  font-size: 12px;
  max-width: 380px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.chrome-tab-favicon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.chrome-tab-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  font-size: 11px;
}

.chrome-tab-close {
  font-size: 10px;
  color: #94a3b8;
  cursor: pointer;
  margin-left: 4px;
}

.chrome-new-tab-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 15px;
  cursor: pointer;
  margin-bottom: 4px;
}

.chrome-window-actions {
  display: flex;
  gap: 12px;
  color: #64748b;
  font-size: 11px;
}

/* 2. Chrome Toolbar / Omnibox */
.chrome-toolbar {
  display: flex;
  align-items: center;
  background: #222436;
  padding: 8px 16px;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 10;
}

.chrome-nav-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chrome-nav-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 3px;
  border-radius: 4px;
  transition: color 0.2s;
}

.chrome-nav-btn:hover {
  color: white;
}

.chrome-omnibox {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #141624;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  color: #cbd5e1;
  font-family: 'SF Mono', 'Fira Code', monospace;
  overflow: hidden;
}

.omnibox-lock {
  color: #10b981;
  flex-shrink: 0;
}

.omnibox-url {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.omnibox-star {
  color: #94a3b8;
  cursor: pointer;
  flex-shrink: 0;
}

/* Chrome Extensions Bar */
.chrome-extensions-area {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.chrome-ext-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.5);
  transition: all 0.2s;
}

.chrome-ext-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.75);
}

.ext-live-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  border: 1.5px solid #222436;
  box-shadow: 0 0 6px #10b981;
  animation: pulseDot 2s infinite;
}

.ext-tooltip-hint {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: linear-gradient(135deg, #7c3aed, #f43f5e);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 20;
}

.chrome-ext-btn:hover .ext-tooltip-hint {
  opacity: 1;
}

.chrome-puzzle-btn {
  color: #94a3b8;
  display: flex;
  align-items: center;
  padding: 4px;
}

/* ============================================================
   INTERACTIVE DEMO BAR (Separate Section Above Browser Tab View)
   ============================================================ */
.interactive-demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(22, 24, 46, 0.75);
  border: 1px solid rgba(244, 63, 94, 0.28);
  border-radius: 16px;
  padding: 12px 20px;
  margin-top: 24px;
  margin-bottom: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 25px rgba(244, 63, 94, 0.12);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 10;
  transition: all 0.3s ease;
}


.demo-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
}

.demo-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-primary);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(244, 63, 94, 0.4);
  white-space: nowrap;
}

.demo-bar-pulse {
  width: 7px;
  height: 7px;
  background: #ffffff;
  border-radius: 50%;
  animation: demoPulseDot 1.5s infinite;
}

@keyframes demoPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.demo-bar-text {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.demo-bar-text strong {
  color: var(--text-primary);
  font-weight: 700;
}

.demo-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.demo-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.demo-bar-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(244, 63, 94, 0.28);
}

.demo-bar-btn:active {
  transform: translateY(0);
}

.demo-btn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.demo-btn-dot--blue {
  background: #7c3aed;
  box-shadow: 0 0 8px #7c3aed;
}

.demo-btn-dot--red {
  background: #ff3b5c;
  box-shadow: 0 0 8px #ff3b5c;
}

.demo-btn-dot--purple {
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

.demo-btn-dot--green {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* ============================================================
   3. LOADED YOUTUBE PAGE VIEWPORT
   ============================================================ */
.chrome-page-viewport {
  background: #0f0f0f;
  color: #f1f1f1;
  position: relative;
  min-height: 540px;
  font-family: "Roboto", "Arial", sans-serif;
}

/* YouTube Top Header Bar */
.yt-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  background: #0f0f0f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.yt-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yt-menu-icon {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.yt-logo-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-size: 16px;
  color: white;
  letter-spacing: -0.5px;
}

.yt-logo-text {
  font-family: "YouTube Sans", "Roboto", sans-serif;
  font-weight: 700;
}

.yt-header-center {
  display: flex;
  align-items: center;
}

.yt-search-box {
  display: flex;
  align-items: center;
  background: #121212;
  border: 1px solid #303030;
  border-radius: 20px 0 0 20px;
  overflow: hidden;
}

.yt-search-input {
  background: transparent;
  border: none;
  color: #f1f1f1;
  padding: 6px 14px;
  font-size: 12px;
  width: 240px;
  outline: none;
}

.yt-search-btn {
  background: #222222;
  border: 1px solid #303030;
  border-left: none;
  padding: 6px 14px;
  color: #94a3b8;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.yt-mic-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #222222;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  cursor: pointer;
}

.yt-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.yt-action-icon {
  color: #f1f1f1;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.yt-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
}

/* YouTube Watch Page Content Body */
.yt-watch-body {
  padding: 16px 24px 32px;
  position: relative;
}

.yt-video-player-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 16:9 Video Canvas */
.yt-video-canvas {
  aspect-ratio: 16 / 9;
  max-height: 400px;
  width: 100%;
  border-radius: 12px;
  background: linear-gradient(135deg, #090a14 0%, #15102a 50%, #2b1130 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.yt-stage-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.yt-stage-spotlight {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 300px;
  background: radial-gradient(ellipse at top, rgba(168, 85, 247, 0.35) 0%, rgba(236, 72, 153, 0.15) 50%, transparent 80%);
}

.yt-stage-stars {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(white 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.2;
}

.yt-stage-silhouette {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 120px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.yt-mic-stand {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 3px;
  height: 80px;
  background: rgba(255, 255, 255, 0.4);
}

.yt-player-center-play {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.yt-player-center-play:hover {
  transform: scale(1.1);
  background: rgba(255, 0, 0, 0.8);
  border-color: white;
}

.yt-player-live-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  z-index: 2;
  letter-spacing: 0.5px;
}

.yt-player-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
  padding: 10px 14px 8px;
  z-index: 2;
}

.yt-red-scrubber-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  border-radius: 2px;
  margin-bottom: 8px;
  cursor: pointer;
}

.yt-red-scrubber-fill {
  height: 100%;
  background: #ff0000;
  border-radius: 2px;
}

.yt-red-scrubber-dot {
  position: absolute;
  left: 38%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff0000;
  box-shadow: 0 0 6px rgba(255, 0, 0, 0.9);
}

.yt-player-buttons-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
}

.yt-pb-left, .yt-pb-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yt-pb-time {
  font-family: monospace;
  font-size: 11px;
}

.yt-hd-chip {
  background: rgba(255, 255, 255, 0.15);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
}

/* Video Metadata Title */
.yt-meta-title {
  text-align: left;
  font-size: 18px;
  font-weight: 700;
  color: #f1f1f1;
  margin: 4px 0 0;
  line-height: 1.35;
}

/* YouTube Actions Row */
.yt-actions-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 4px;
}

.yt-channel-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yt-channel-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: white;
}

.yt-channel-text {
  display: flex;
  flex-direction: column;
}

.yt-channel-title-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.yt-channel-title {
  font-size: 14px;
  font-weight: 700;
  color: #f1f1f1;
}

.yt-channel-subs {
  font-size: 12px;
  color: #aaaaaa;
}

.yt-sub-btn {
  background: #ffffff;
  color: #0f0f0f;
  border: none;
  border-radius: 18px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 6px;
  transition: opacity 0.2s;
}

.yt-sub-btn:hover {
  opacity: 0.9;
}

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

.yt-like-dislike-pill {
  display: flex;
  align-items: center;
  background: #272727;
  border-radius: 18px;
  height: 36px;
  padding: 0 4px;
}

.yt-like-btn, .yt-dislike-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #f1f1f1;
  font-size: 13px;
  font-weight: 500;
  padding: 0 12px;
  cursor: pointer;
}

.yt-pill-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
}

.yt-native-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #272727;
  border: none;
  border-radius: 18px;
  height: 36px;
  padding: 0 14px;
  color: #f1f1f1;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

/* ==========================================================================
   THE EXACT 3 INJECTED BUTTONS (as defined in content.css)
   ========================================================================== */
#yt-downloader-group.yt-downloader-btn-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-left: 6px !important;
  vertical-align: middle !important;
  height: 36px !important;
  position: relative !important;
  z-index: 5 !important;
}

.yt-downloader-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  line-height: 36px !important;
  padding: 0 16px 0 12px !important;
  border-radius: 18px !important;
  font-family: "Roboto", "Arial", sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  position: relative !important;
}

.yt-downloader-btn span {
  font-size: 14px !important;
  font-weight: 500 !important;
  display: inline-block !important;
}

.yt-downloader-btn svg {
  color: #ffffff !important;
  flex-shrink: 0 !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)) !important;
}

.yt-downloader-btn:active {
  transform: scale(0.96) !important;
}

/* 1. MP4 1080p - Solid Red/Coral Gradient Fill */
.yt-downloader-btn-mp4 {
  background: linear-gradient(135deg, #ff3b5c 0%, #e11d48 100%) !important;
}

.yt-downloader-btn-mp4:hover {
  background: linear-gradient(135deg, #ff5271 0%, #f43f5e 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(255, 59, 92, 0.5) !important;
}

/* 2. MP3 320Kbps - Solid Royal Violet Gradient Fill */
.yt-downloader-btn-mp3 {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
}

.yt-downloader-btn-mp3:hover {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.5) !important;
}

/* 3. Lossless WAV - Solid Emerald Studio Gradient Fill */
.yt-downloader-btn-wav {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.yt-downloader-btn-wav:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5) !important;
}

/* Injected Button Hover Tooltip */
.yt-btn-hover-tt {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 6px;
  background: #0f172a;
  color: #f1f5f9;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 100;
}

.yt-downloader-btn:hover .yt-btn-hover-tt {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

/* ==========================================================================
   FLOATING BOTTOM POPUP / PROGRESS TOAST (#yt-dl-toast-container)
   ========================================================================== */
#yt-dl-toast-container.yt-dl-toast-container {
  position: absolute !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 50 !important;
  display: flex !important;
  flex-direction: column-reverse !important;
  gap: 12px !important;
  pointer-events: none !important;
}

.yt-dl-toast {
  position: relative !important;
  width: 340px !important;
  max-width: calc(100vw - 48px) !important;
  background: rgba(15, 23, 42, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(139, 92, 246, 0.3) !important;
  font-family: "Roboto", "Arial", sans-serif !important;
  color: #f1f5f9 !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease !important;
  pointer-events: auto !important;
  overflow: visible !important;
}

.yt-dl-toast.is-complete {
  border-color: rgba(16, 185, 129, 0.6) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 32px rgba(16, 185, 129, 0.4) !important;
}

.yt-dl-toast-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  cursor: pointer;
  padding: 2px;
  transition: color 0.2s;
}

.yt-dl-toast-close:hover {
  color: white;
}

.yt-dl-toast-header {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
}

.yt-dl-toast-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  overflow: hidden !important;
  flex: 1 !important;
}

.yt-dl-format-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 2px 7px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.4px !important;
}

.yt-dl-format-badge-mp4 {
  background: rgba(255, 59, 92, 0.18) !important;
  color: #ff3b5c !important;
  border: 1px solid rgba(255, 59, 92, 0.3) !important;
}

.yt-dl-format-badge-mp3 {
  background: rgba(139, 92, 246, 0.18) !important;
  color: #a78bfa !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
}

.yt-dl-format-badge-lossless,
.yt-dl-format-badge-wav {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

/* Completed Badge State - Exact replica of extension content.css */
.yt-dl-format-badge.completed {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: rgba(16, 185, 129, 0.6) !important;
  color: #4ade80 !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35) !important;
}

.yt-dl-format-badge.completed .yt-dl-arrow-looping {
  display: none !important;
}

.yt-dl-format-badge.completed .yt-dl-badge-arrow-box::after {
  content: '✓' !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  color: #4ade80 !important;
  display: inline-block !important;
  animation: checkPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes checkPop {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Toast Theme Specific Shadows & Fill Bar Gradients */
.yt-dl-toast.toast-theme-mp4 {
  border-color: rgba(255, 59, 92, 0.4) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(255, 59, 92, 0.35) !important;
}
.yt-dl-toast.toast-theme-mp4 .yt-dl-toast-fill {
  background: linear-gradient(90deg, #ff3b5c 0%, #e11d48 100%) !important;
  box-shadow: 0 0 12px rgba(255, 59, 92, 0.6) !important;
}

.yt-dl-toast.toast-theme-mp3 {
  border-color: rgba(139, 92, 246, 0.4) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(139, 92, 246, 0.35) !important;
}
.yt-dl-toast.toast-theme-mp3 .yt-dl-toast-fill {
  background: linear-gradient(90deg, #8b5cf6 0%, #6d28d9 100%) !important;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6) !important;
}

.yt-dl-toast.toast-theme-lossless,
.yt-dl-toast.toast-theme-wav {
  border-color: rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(16, 185, 129, 0.35) !important;
}
.yt-dl-toast.toast-theme-lossless .yt-dl-toast-fill,
.yt-dl-toast.toast-theme-wav .yt-dl-toast-fill {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6) !important;
}

.yt-dl-toast.toast-hidden {
  opacity: 0 !important;
  transform: translateY(16px) scale(0.95) !important;
  pointer-events: none !important;
  display: none !important;
}

.yt-dl-arrow-looping {
  animation: downloadLoopArrow 1.5s infinite;
}

@keyframes downloadLoopArrow {
  0% { transform: translateY(-3px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(3px); opacity: 0; }
}

.yt-dl-toast-title {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  flex: 1 !important;
}

.yt-dl-toast-bar {
  height: 6px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border-radius: 3px !important;
  overflow: hidden !important;
  margin-bottom: 6px !important;
  position: relative !important;
}

.yt-dl-toast-fill {
  height: 100% !important;
  background: var(--gradient-ribbon) !important;
  border-radius: 3px !important;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.8) !important;
  transition: width 0.3s ease !important;
}

.yt-dl-toast-info {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #cbd5e1 !important;
  margin-bottom: 6px !important;
}

.yt-dl-toast-stats-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.toast-chip {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

.toast-chip.highlight {
  color: #38bdf8;
  font-weight: 700;
}

/* Progress Content vs Complete Box */
.toast-progress-content {
  display: block;
  transition: opacity 0.2s ease;
}

.yt-dl-toast .yt-dl-toast-complete-box {
  display: none;
}

.yt-dl-toast.is-complete .toast-progress-content {
  display: none !important;
}

.yt-dl-toast.is-complete .yt-dl-toast-complete-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 6px 0 4px 0 !important;
  gap: 4px !important;
  animation: toastCompleteBounce 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.yt-dl-toast-complete-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #4ade80 !important;
  letter-spacing: 0.2px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.yt-dl-toast-complete-file {
  font-size: 11px !important;
  color: #cbd5e1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 290px !important;
}

@keyframes toastCompleteBounce {
  0% { transform: scale(0.92); opacity: 0; }
  50% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.yt-dl-confetti-canvas {
  position: absolute !important;
  bottom: 0 !important;
  right: 0 !important;
  width: 340px !important;
  height: 200px !important;
  pointer-events: none !important;
  z-index: 999999999 !important;
}

/* ==========================================================================
   TOP POPUP: EXACT CHROME EXTENSION DROPDOWN (Mirrors popup.html)
   ========================================================================== */
.chrome-ext-popup-wrapper {
  position: absolute !important;
  top: 8px !important;
  right: 14px !important;
  z-index: 999 !important;
  width: 450px !important;
  max-width: calc(100% - 28px) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.chrome-ext-popup-wrapper.open {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

.chrome-ext-popup-wrapper:not(.open) {
  opacity: 0 !important;
  transform: translateY(-10px) scale(0.96) !important;
  pointer-events: none !important;
}

.chrome-ext-popup-pointer {
  position: absolute;
  top: -7px;
  right: 24px;
  width: 14px;
  height: 14px;
  background: rgba(17, 19, 39, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  transform: rotate(45deg);
  z-index: 1000;
}

.app-container-mock {
  text-align: left;
  background: rgba(11, 15, 29, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(244, 63, 94, 0.25), 0 0 25px rgba(124, 58, 237, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Header Mock */
.header-mock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 16px;
}

.brand-mock {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-logo-mock {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.35);
  flex-shrink: 0;
}

.brand-info-mock {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name-mock {
  font-size: 12.5px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-sub-mock {
  font-size: 9px;
  color: #94a3b8;
  white-space: nowrap;
}

.header-right-mock {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 12px;
}

.server-status-mock {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  color: #34d399;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-text-mock {
  white-space: nowrap;
}

.status-dot-mock {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.settings-toggle-mock, .popup-close-mock {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
}

.settings-toggle-mock:hover, .popup-close-mock:hover {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.main-content-mock {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* License banner mock */
.license-banner-mock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.12) 0%, rgba(124, 58, 237, 0.15) 100%);
  border: 1px solid rgba(244, 63, 94, 0.28);
  font-size: 11px;
}

.license-banner-content-mock {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  color: #f8fafc;
}

.license-banner-action-mock {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fb7185;
  font-weight: 700;
  font-size: 10px;
}

/* Website Activate Strip */
.website-activate-strip-mock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 10px;
  color: #cbd5e1;
}

.activate-left-mock {
  display: flex;
  align-items: center;
  gap: 5px;
}

.activate-highlight-mock {
  color: #38bdf8;
}

/* Video Card Mock */
.video-card-mock {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  padding: 7px;
}

.thumb-container-mock {
  width: 68px;
  height: 46px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1e1b4b, #4c1d95);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-art-mock {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff3b5c, #a855f7);
}

.duration-badge-mock {
  position: absolute;
  bottom: 2px;
  right: 3px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 8px;
  font-weight: 700;
  padding: 1px 3px;
  border-radius: 2px;
}

.thumb-overlay-mock {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-details-mock {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.video-title-mock {
  font-size: 11px;
  font-weight: 700;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-meta-mock {
  font-size: 9px;
  color: #94a3b8;
}

/* URL Box Mock */
.url-input-box-mock {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  padding: 5px 8px;
}

.url-field-mock {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 10px;
  font-family: monospace;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fetch-btn-mock {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  border-radius: 4px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Format 3-Tab Selector Mock */
.format-tabs-mock {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}

.tab-btn-mock {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 6px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn-mock:hover {
  color: white;
}

.tab-btn-mock.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.4);
}

.tab-btn-mock[data-type="mp4"].active {
  background: rgba(255, 59, 92, 0.18);
  color: #ff6b8b;
  border: 1px solid rgba(255, 59, 92, 0.45);
  box-shadow: 0 2px 10px rgba(255, 59, 92, 0.3);
}

.tab-btn-mock[data-type="mp3"].active {
  background: rgba(139, 92, 246, 0.18);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.45);
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}

.tab-btn-mock[data-type="lossless"].active {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

/* Qualities Section Mock */
.qualities-group-mock {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-header-mock {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-badge-wrap-mock {
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-badge-mock {
  font-size: 9px;
  font-weight: 800;
  background: rgba(255, 59, 92, 0.15);
  color: #ff6b8b;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 59, 92, 0.25);
  transition: all 0.25s ease;
}

.section-label-mock {
  font-size: 10px;
  font-weight: 800;
  color: #cbd5e1;
  letter-spacing: 0.4px;
}

.section-sub-mock {
  font-size: 9px;
  color: #64748b;
}

.quality-grid-mock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.quality-card-mock {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  padding: 6px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all 0.2s;
}

.quality-card-mock:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(244, 63, 94, 0.35);
}

.quality-card-mock.active {
  background: rgba(255, 59, 92, 0.15);
  border-color: #ff3b5c;
  box-shadow: 0 0 10px rgba(255, 59, 92, 0.3);
}

.qc-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qc-name {
  font-size: 10px;
  font-weight: 700;
  color: #f1f5f9;
}

.qc-badge {
  font-size: 8px;
  padding: 1px 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.qc-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qc-size {
  font-size: 9px;
  color: #94a3b8;
}

.qc-check {
  font-size: 10px;
  font-weight: 800;
  color: #ff6b8b;
  transition: color 0.25s ease;
}

/* Download CTA Mock */
.download-cta-mock {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 9px;
  background: var(--tab-video-grad);
  border: none;
  color: white;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 59, 92, 0.4);
  transition: all 0.2s;
}

.download-cta-mock:hover {
  transform: translateY(-1px);
  background: var(--tab-video-grad-hover);
  box-shadow: 0 6px 18px rgba(255, 59, 92, 0.55);
}

/* --- Dynamic Format Theme Modes for Extension Popup Mockup --- */
/* 1. Video MP4 Mode */
.app-container-mock.mock-mode-mp4 .section-badge-mock {
  background: rgba(255, 59, 92, 0.16);
  color: #ff6b8b;
  border-color: rgba(255, 59, 92, 0.3);
}
.app-container-mock.mock-mode-mp4 .quality-card-mock:hover {
  border-color: rgba(255, 59, 92, 0.4);
}
.app-container-mock.mock-mode-mp4 .quality-card-mock.active {
  background: rgba(255, 59, 92, 0.14);
  border-color: #ff3b5c;
  box-shadow: 0 0 12px rgba(255, 59, 92, 0.3);
}
.app-container-mock.mock-mode-mp4 .qc-check {
  color: #ff6b8b;
}
.app-container-mock.mock-mode-mp4 .download-cta-mock {
  background: var(--tab-video-grad);
  box-shadow: 0 4px 16px rgba(255, 59, 92, 0.45);
}
.app-container-mock.mock-mode-mp4 .download-cta-mock:hover {
  background: var(--tab-video-grad-hover);
  box-shadow: 0 6px 20px rgba(255, 59, 92, 0.6);
}

/* 2. Audio MP3 Mode */
.app-container-mock.mock-mode-mp3 .section-badge-mock {
  background: rgba(139, 92, 246, 0.16);
  color: #c084fc;
  border-color: rgba(139, 92, 246, 0.3);
}
.app-container-mock.mock-mode-mp3 .quality-card-mock:hover {
  border-color: rgba(139, 92, 246, 0.4);
}
.app-container-mock.mock-mode-mp3 .quality-card-mock.active {
  background: rgba(139, 92, 246, 0.14);
  border-color: #8b5cf6;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}
.app-container-mock.mock-mode-mp3 .qc-check {
  color: #c084fc;
}
.app-container-mock.mock-mode-mp3 .download-cta-mock {
  background: var(--tab-audio-grad);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.45);
}
.app-container-mock.mock-mode-mp3 .download-cta-mock:hover {
  background: var(--tab-audio-grad-hover);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

/* 3. Lossless Audio Mode */
.app-container-mock.mock-mode-lossless .section-badge-mock {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}
.app-container-mock.mock-mode-lossless .quality-card-mock:hover {
  border-color: rgba(16, 185, 129, 0.4);
}
.app-container-mock.mock-mode-lossless .quality-card-mock.active {
  background: rgba(16, 185, 129, 0.14);
  border-color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}
.app-container-mock.mock-mode-lossless .qc-check {
  color: #34d399;
}
.app-container-mock.mock-mode-lossless .download-cta-mock {
  background: var(--tab-lossless-grad);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.45);
}
.app-container-mock.mock-mode-lossless .download-cta-mock:hover {
  background: var(--tab-lossless-grad-hover);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

/* Mock Popup Confetti Canvas */
.mock-popup-confetti-canvas {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 99999 !important;
}

/* Active Progress Box Mock (Identical to extension popup.css) */
.progress-box-mock {
  background: rgba(30, 41, 59, 0.8) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(139, 92, 246, 0.25) !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
  animation: popInSuccess 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.progress-box-mock.hidden {
  display: none !important;
}

.progress-header-mock {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

.progress-status-mock { color: #f1f5f9 !important; }
.progress-percent-mock { color: #38bdf8 !important; font-weight: 800 !important; }

.progress-bar-container-mock {
  width: 100% !important;
  height: 7px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 5px !important;
  overflow: hidden !important;
}

.progress-bar-fill-mock {
  position: relative !important;
  height: 100% !important;
  width: 0%;
  background: linear-gradient(90deg, #06b6d4 0%, #8b5cf6 35%, #ec4899 70%, #ff3b5c 100%) !important;
  background-size: 200% 100% !important;
  animation: smoothGradientLoop 3s infinite linear !important;
  transition: width 0.15s ease !important;
  border-radius: 5px !important;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4) !important;
}

.progress-bar-fill-mock::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%) !important;
  animation: progressShimmer 1.5s infinite ease-in-out !important;
}

.progress-stats-mock {
  display: flex !important;
  gap: 8px !important;
}

.stat-badge-mock {
  font-size: 9px !important;
  padding: 2px 6px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 4px !important;
  color: #94a3b8 !important;
  font-weight: 600 !important;
}

/* Completion Banner Mock (Identical to extension popup.css) */
.completion-banner-mock {
  background: rgba(16, 185, 129, 0.08) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  border-radius: 12px !important;
  padding: 8px 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1), 0 0 16px rgba(16, 185, 129, 0.1) !important;
  animation: popInSuccess 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.completion-banner-mock.hidden {
  display: none !important;
}

@keyframes popInSuccess {
  0% { transform: scale(0.95) translateY(4px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.completion-icon-mock {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: white !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4) !important;
}

.completion-text-mock {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  overflow: hidden !important;
}

.completion-title-mock {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #4ade80 !important;
  letter-spacing: 0.1px !important;
}

.completion-sub-mock {
  font-size: 9px !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .yt-header-center {
    display: none;
  }
  .yt-actions-container {
    flex-direction: column;
    align-items: flex-start;
  }
  /* Floating Top Extension Popup - Above YouTube page, just below the extension icon */
  .chrome-ext-popup-wrapper {
    position: absolute !important;
    top: 6px !important;
    right: 10px !important;
    left: auto !important;
    width: min(390px, calc(100% - 20px)) !important;
    max-width: calc(100% - 20px) !important;
    margin-top: 0 !important;
    z-index: 1000 !important;
  }
  .chrome-ext-popup-wrapper:not(.open) {
    display: none !important;
  }
  .chrome-ext-popup-wrapper.open {
    display: block !important;
  }
  .chrome-ext-popup-pointer {
    display: block !important;
    position: absolute !important;
    top: -7px !important;
    right: 16px !important;
    z-index: 1001 !important;
  }
  #yt-dl-toast-container.yt-dl-toast-container {
    position: absolute !important;
    bottom: 16px !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: calc(100% - 24px) !important;
    margin-top: 0 !important;
    z-index: 50 !important;
  }
  .yt-dl-toast {
    width: 100% !important;
  }
}

/* ============================================================
   STATS / SOCIAL PROOF BAR
   ============================================================ */
.stats-bar {
  padding: 48px 0;
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(12px);
  transition: all var(--transition-base);
}

.stat-item:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--icon-bg);
  border: 1px solid var(--icon-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent-primary);
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  background: var(--icon-bg);
  border: 1px solid var(--icon-border);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.section-tag svg {
  width: 14px;
  height: 14px;
}

.section-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

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

.feature-card {
  padding: 36px 28px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow-strong);
}

.feature-card:hover::before {
  opacity: 1;
}

/* Feature Card Ribbon Specialty */
.feature-card--ribbon {
  border-color: rgba(244, 63, 94, 0.35) !important;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 20, 50, 0.75) 100%) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 24px rgba(244, 63, 94, 0.15) !important;
}

.feature-card--ribbon:hover {
  border-color: rgba(244, 63, 94, 0.65) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5), 0 0 36px rgba(244, 63, 94, 0.3) !important;
}

.feature-card-ribbon-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, #f43f5e, #f59e0b, #7c3aed);
  background-size: 200% 100%;
  animation: ribbonStreamFlow 3s linear infinite;
}

.feature-icon--ribbon {
  background: rgba(244, 63, 94, 0.12) !important;
  border: 1px solid rgba(244, 63, 94, 0.3) !important;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.35) !important;
  animation: ribbonPulse 3.5s ease-in-out infinite;
}

.feature-ribbon-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #fb7185;
  margin-bottom: 8px;
  display: inline-block;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--icon-bg);
  border: 1px solid var(--icon-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: all var(--transition-base);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  color: var(--accent-primary);
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 6px 24px rgba(244, 63, 94, 0.4);
}

.feature-card:hover .feature-icon svg {
  color: white;
}

/* Feature Card 1: Video (MP4) Tab Theme */
.feature-card--video::before {
  background: var(--tab-video-grad) !important;
}
.feature-card--video .feature-icon {
  background: rgba(255, 59, 92, 0.1);
  border-color: rgba(255, 59, 92, 0.28);
}
.feature-card--video .feature-icon svg {
  color: #ff3b5c;
}
.feature-card--video:hover {
  border-color: rgba(255, 59, 92, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 32px rgba(255, 59, 92, 0.25);
}
.feature-card--video:hover .feature-icon {
  background: var(--tab-video-grad) !important;
  box-shadow: 0 6px 24px rgba(255, 59, 92, 0.45) !important;
}

/* Feature Card 2: Audio (MP3) Tab Theme */
.feature-card--audio::before {
  background: var(--tab-audio-grad) !important;
}
.feature-card--audio .feature-icon {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.28);
}
.feature-card--audio .feature-icon svg {
  color: #8b5cf6;
}
.feature-card--audio:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 32px rgba(139, 92, 246, 0.25);
}
.feature-card--audio:hover .feature-icon {
  background: var(--tab-audio-grad) !important;
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.45) !important;
}

/* Feature Card 3: Lossless Audio Tab Theme */
.feature-card--lossless::before {
  background: var(--tab-lossless-grad) !important;
}
.feature-card--lossless .feature-icon {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.28);
}
.feature-card--lossless .feature-icon svg {
  color: #10b981;
}
.feature-card--lossless:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 32px rgba(16, 185, 129, 0.25);
}
.feature-card--lossless:hover .feature-icon {
  background: var(--tab-lossless-grad) !important;
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45) !important;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ============================================================
   HOW IT WORKS SECTION
   ============================================================ */
.how-it-works {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

/* Connecting line */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  transform: translateY(-50%);
  left: calc(16.67% - 10px);
  right: calc(16.67% - 10px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
  opacity: 0.35;
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: white;
  margin: 0 auto 22px;
  box-shadow: 0 4px 24px rgba(244, 63, 94, 0.35);
  position: relative;
  transition: all var(--transition-base);
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid var(--border-accent);
  transition: all var(--transition-base);
}

.step-card:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(244, 63, 94, 0.55);
}

.step-card:hover .step-number::after {
  inset: -10px;
  border-color: var(--accent-primary);
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

/* ============================================================
   PRICING CARD (2-COLUMN STRUCTURE)
   ============================================================ */
.pricing-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 44px 44px;
  border-radius: var(--radius-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

/* Spotlight effect on hover */
.pricing-card::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.12), transparent 70%);
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  transition: all var(--transition-slow);
}

.pricing-card:hover::after {
  top: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.18), transparent 70%);
}

.pricing-card-2col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.pricing-col-main {
  display: flex;
  flex-direction: column;
}

.pricing-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.pricing-badge {
  display: inline-flex;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  font-size: 10.5px;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.pricing-crown-mini {
  font-size: 20px;
}

.pricing-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.pricing-subtitle {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 22px;
  line-height: 1.6;
}

.pricing-features-wrap {
  margin-bottom: 20px;
}

.pricing-features-heading {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-tertiary);
  margin-bottom: 12px;
}

.pricing-features {
  text-align: left;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-feature:last-child {
  border-bottom: none;
}

.pricing-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.pricing-perks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.pricing-perk-item {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  padding: 4px 10px;
  border-radius: 6px;
}

/* Pricing Checkout Box (Right Column) */
.pricing-col-side {
  display: flex;
  flex-direction: column;
}

.pricing-checkout-box {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 20px;
  padding: 34px 28px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 24px rgba(124, 58, 237, 0.25), 0 0 20px rgba(244, 63, 94, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
}

.pricing-box-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.35);
  font-size: 10.5px;
  font-weight: 700;
  color: #c4b5fd;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 4px;
}

.pricing-currency {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-tertiary);
}

.pricing-number {
  font-size: 72px;
  font-weight: 900;
  letter-spacing: -3px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.pricing-period {
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

.pricing-usd {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 22px;
}

.pricing-device-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  font-size: 11px;
  color: #fbbf24;
  margin-top: 16px;
  line-height: 1.4;
  text-align: center;
}

.pricing-guarantee-note {
  margin-top: 12px;
  font-size: 11px;
  color: #4ade80;
  font-weight: 600;
}

.btn-buy {
  width: 100%;
  padding: 16px;
  font-size: 15.5px;
  font-weight: 700;
  font-family: inherit;
  color: white;
  background: var(--gradient-cta);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.btn-buy::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.btn-buy:hover {
  transform: translateY(-2px);
  background: var(--gradient-cta-hover);
  box-shadow: 0 8px 30px rgba(244, 63, 94, 0.55);
}

.btn-buy:hover::before {
  left: 100%;
}

/* ============================================================
   DONATION SECTION (2-COLUMN STRUCTURE)
   ============================================================ */
.donation {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.donation-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 44px 44px;
  border-radius: var(--radius-2xl);
  background: var(--bg-card);
  border: 1px solid rgba(236, 72, 153, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(236, 72, 153, 0.15);
}

.donation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-donation);
}

.donation-card-2col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.donation-col-main {
  display: flex;
  flex-direction: column;
}

.donation-heart-wrap {
  margin-bottom: 10px;
}

.donation-heart {
  font-size: 36px;
  display: inline-block;
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.18); }
  28% { transform: scale(1); }
  42% { transform: scale(1.12); }
  56% { transform: scale(1); }
}

.donation-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.donation-subtitle {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 22px;
  line-height: 1.6;
}

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

.donation-impact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.impact-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1.2;
}

.impact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.impact-text strong {
  font-size: 13px;
  color: #f8fafc;
}

.impact-text span {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* Donation Checkout Box (Right Column) */
.donation-col-side {
  display: flex;
  flex-direction: column;
}

.donation-checkout-box {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 20px;
  padding: 34px 28px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(236, 72, 153, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.donation-box-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.donation-box-sub {
  font-size: 12.5px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.donation-chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.donation-chip {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-base);
}

.donation-chip:hover,
.donation-chip.active {
  background: rgba(236, 72, 153, 0.16);
  border-color: rgba(236, 72, 153, 0.45);
  color: #f472b6;
}

.donation-custom-wrap {
  margin-bottom: 18px;
  display: none;
}

.donation-custom-wrap.visible {
  display: block;
}

.donation-custom-input {
  width: 100%;
  max-width: 240px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  outline: none;
  transition: border-color var(--transition-fast);
}

.donation-custom-input:focus {
  border-color: #ec4899;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}

.donation-custom-input::placeholder {
  color: var(--text-tertiary);
}

.btn-donate {
  width: 100%;
  padding: 16px;
  font-size: 15.5px;
  font-weight: 700;
  font-family: inherit;
  color: white;
  background: var(--gradient-donation);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-donation);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-donate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.5);
}

.donation-trust-note {
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

@media (max-width: 992px) {
  .pricing-card-2col,
  .donation-card-2col {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pricing-card,
  .donation-card {
    padding: 32px 24px;
  }
  .install-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .faq-columns {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ============================================================
   INSTALL GUIDE SECTION
   ============================================================ */
.install-guide {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.install-steps {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.install-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 28px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-base);
  height: 100%;
}

.install-step:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.install-step-num {
  width: 44px;
  height: 44px;
  min-width: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: white;
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.35);
}

.install-step-content {
  flex: 1;
}

.install-step-content h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.install-step-content p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.install-step-content code {
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  background: var(--icon-bg);
  color: var(--text-accent);
  font-size: 12px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.faq-columns {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: start;
}

.faq-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-list {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--border-subtle-hover, rgba(255, 255, 255, 0.15));
}

.faq-item.open {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--text-accent);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-base), color var(--transition-base);
  color: var(--text-tertiary);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-answer-inner {
  padding: 0 24px 22px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-answer-inner a {
  color: var(--text-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 72px 0 36px;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.5;
}

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

.footer-brand-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 16px;
  line-height: 1.75;
  max-width: 300px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-tertiary);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  font-size: 13.5px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer-col ul a:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-tertiary);
}

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

.footer-bottom-links a {
  color: var(--text-tertiary);
  font-size: 12px;
  transition: color var(--transition-fast);
}

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

.footer-stealth-link {
  opacity: 0.18;
  font-size: 11px !important;
  color: var(--text-tertiary) !important;
  text-decoration: none;
  transition: opacity 0.3s ease, color 0.3s ease;
  display: inline-flex;
  align-items: center;
  user-select: none;
}

.footer-stealth-link:hover {
  opacity: 0.65;
  color: var(--text-secondary) !important;
}

/* ============================================================
   LEGAL PAGES (Terms, Privacy, Refund, Contact)
   ============================================================ */
.legal-page {
  padding: 140px 0 80px;
  position: relative;
  z-index: 1;
}

.legal-page .container {
  max-width: 800px;
}

.legal-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 40px;
}

.legal-content {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 44px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-content a {
  color: var(--text-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-highlight {
  padding: 22px 26px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
  margin: 24px 0;
  color: var(--accent-red);
  font-weight: 600;
  line-height: 1.7;
}

.legal-highlight.info {
  background: var(--icon-bg);
  border-color: var(--icon-border);
  color: var(--text-accent);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.contact-card {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: all var(--transition-base);
}

.contact-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
}

.contact-card-label {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-card-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

/* ============================================================
   PAYMENT MODAL OVERLAY
   ============================================================ */
.payment-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.payment-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.payment-modal {
  max-width: 460px;
  width: 90%;
  padding: 44px 36px;
  border-radius: var(--radius-2xl);
  background: var(--bg-card-solid);
  border: 1px solid var(--border-card);
  text-align: center;
  position: relative;
  animation: modalSlideUp 0.4s ease-out;
  box-shadow: var(--shadow-float);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.payment-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.payment-modal-close:hover {
  background: rgba(239, 68, 68, 0.12);
  color: var(--accent-red);
  border-color: rgba(239, 68, 68, 0.2);
}

.payment-modal h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.payment-modal p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.payment-status-icon {
  font-size: 56px;
  margin-bottom: 16px;
  display: block;
}

.payment-spinner {
  width: 52px;
  height: 52px;
  border: 3px solid var(--border-glass);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  margin: 0 auto 22px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.payment-txn-id {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: var(--text-accent);
  margin: 12px 0;
  word-break: break-all;
}

.payment-modal .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

.web-profile-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm, 8px);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.12));
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.web-profile-input:focus {
  border-color: rgba(99, 102, 241, 0.7);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.web-profile-input::placeholder {
  color: rgba(148, 163, 184, 0.5);
  font-size: 0.82rem;
}

select.web-profile-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 36px;
  cursor: pointer;
}

select.web-profile-input option {
  background-color: #0f172a;
  color: #f8fafc;
  padding: 8px 12px;
}

select.web-profile-input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.06);
  background-color: rgba(15, 23, 42, 0.35);
}

.input-error,
.web-profile-input.input-error,
.donation-custom-input.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25) !important;
  background-color: rgba(239, 68, 68, 0.06) !important;
}

/* ============================================================
   PAYMENT EXIT CONFIRMATION SAFEGUARD
   ============================================================ */
.exit-confirm-layer {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: rgba(10, 15, 29, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: inherit;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: exitModalPopIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes exitModalPopIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.exit-confirm-content {
  width: 100%;
  max-width: 390px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.exit-confirm-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.exit-confirm-icon {
  font-size: 26px;
  line-height: 1;
}

.exit-confirm-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
  text-align: center;
}

.exit-confirm-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0 0 14px 0;
  text-align: center;
  line-height: 1.4;
}

.exit-confirm-warning-banner {
  width: 100%;
  box-sizing: border-box;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.12);
}

.exit-confirm-warn-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.exit-confirm-warn-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fb7185;
  background: rgba(239, 68, 68, 0.2);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.exit-confirm-warn-text {
  font-size: 0.77rem;
  color: #fecdd3;
  line-height: 1.45;
  margin: 0;
}

.exit-confirm-txn-card {
  width: 100%;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  text-align: left;
}

.exit-confirm-txn-label {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.exit-confirm-txn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.exit-confirm-txn-code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #38bdf8;
  word-break: break-all;
}

.exit-confirm-copy-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.exit-confirm-copy-btn:hover {
  background: rgba(56, 189, 248, 0.28);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

.exit-confirm-guide {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  text-align: left;
}

.exit-confirm-guide-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.exit-confirm-steps {
  margin: 0 0 0 16px;
  padding: 0;
  font-size: 0.73rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.exit-confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.exit-btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35) !important;
  padding: 11px 16px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.exit-btn-primary:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5) !important;
  transform: translateY(-1px);
}

.exit-btn-secondary {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: var(--text-primary) !important;
  padding: 10px 16px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.exit-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.exit-btn-link {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 0.74rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
  text-align: center;
}

.exit-btn-link:hover {
  color: #f8fafc;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.40s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================================================
   RESPONSIVE (Mobile & Tablet Optimization)
   ============================================================ */

/* Global container and body protections */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* 1. Large Tablets & Small Laptops (<= 1200px) */
@media (max-width: 1200px) {
  :root {
    --container-padding: 0 20px;
  }

  /* Prevent floating badges from overlapping the browser mockup */
  .hero-float {
    display: none !important;
  }

  .nav-links {
    gap: 4px;
  }

  .nav-links a {
    padding: 6px 10px;
    font-size: 13px;
  }

  .nav-cta {
    padding: 8px 16px;
    font-size: 12.5px;
  }

  .hero-browser {
    max-width: 100%;
  }
}

/* 2. Tablets in Portrait & Medium Devices (<= 992px) */
@media (max-width: 992px) {
  :root {
    --section-padding: 80px 0;
  }

  /* Switch desktop nav to smooth mobile drawer to prevent awkward wrapping */
  .nav-links {
    display: none !important;
  }

  .nav-cta.desktop-only {
    display: none !important;
  }

  .nav-hamburger {
    display: flex !important;
  }

  .mobile-nav {
    display: flex;
  }

  .hero {
    padding: 130px 0 60px;
  }

  .hero h1 {
    font-size: clamp(34px, 5.5vw, 44px);
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 16px;
    max-width: 600px;
  }

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

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .steps-grid::before {
    display: none;
  }

  .pricing-card-2col,
  .donation-card-2col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pricing-card,
  .donation-card {
    padding: 36px 28px;
  }

  .install-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .faq-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .stats-grid {
    gap: 16px;
  }

  /* Top Extension Popup on tablets - floating ABOVE YouTube page right below extension icon */
  .chrome-ext-popup-wrapper {
    position: absolute !important;
    top: 8px !important;
    right: 14px !important;
    left: auto !important;
    width: min(420px, calc(100% - 28px)) !important;
    max-width: calc(100% - 28px) !important;
    margin-top: 0 !important;
    z-index: 1000 !important;
  }

  .chrome-ext-popup-pointer {
    display: block !important;
    position: absolute !important;
    top: -7px !important;
    right: 24px !important;
    z-index: 1001 !important;
  }
}

/* 3. Small Tablets & Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
    --nav-height: 64px;
    --nav-height-scrolled: 58px;
    --container-padding: 0 16px;
  }

  .navbar {
    min-height: var(--nav-height);
    padding: 10px 0;
  }

  .navbar.scrolled {
    min-height: var(--nav-height-scrolled);
    padding: 6px 0;
  }

  .navbar .container {
    padding: 0 16px;
  }

  /* Hero Section */
  .hero {
    padding: 105px 0 40px;
  }

  .hero-badge,
  .hero-ribbon-badge {
    font-size: 11.5px;
    padding: 6px 14px;
    margin-bottom: 20px;
    gap: 8px;
    max-width: 95%;
  }

  .hero-ribbon-badge .ribbon-badge-text {
    font-size: 11.5px;
    white-space: normal;
  }

  .hero h1 {
    font-size: clamp(28px, 6.5vw, 36px);
    letter-spacing: -0.8px;
    line-height: 1.2;
    margin-bottom: 14px;
  }

  .hero-subtitle {
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 22px;
    padding: 0 4px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    gap: 10px;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 14px;
  }

  .hero-cta-secondary-row {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    margin-top: 12px;
  }

  .hero-cta-sep {
    display: none;
  }

  .hero-mockup {
    margin-top: 32px;
  }

  .hero-browser {
    margin: 0;
    width: 100%;
    border-radius: 14px;
  }

  /* Chrome tab strip & toolbar inside mockup */
  .chrome-tab-strip {
    padding: 6px 10px 0;
    gap: 6px;
  }

  .chrome-tab {
    padding: 6px 10px;
    font-size: 10.5px;
    max-width: 180px;
  }

  .chrome-tab-close {
    display: none;
  }

  .chrome-window-actions {
    display: none;
  }

  .chrome-toolbar {
    padding: 6px 10px;
    gap: 6px;
  }

  .chrome-nav-buttons {
    gap: 2px;
  }

  .chrome-nav-btn {
    padding: 2px;
  }

  .chrome-omnibox {
    font-size: 11px;
    padding: 5px 10px;
    gap: 6px;
  }

  .omnibox-star {
    display: none;
  }

  .chrome-puzzle-btn {
    display: none;
  }

  .ext-tooltip-hint {
    display: none;
  }

  /* Mockup YouTube Content */
  .yt-header-bar {
    padding: 6px 10px;
  }

  .yt-header-center {
    display: none;
  }

  .yt-meta-title {
    font-size: 13.5px;
    line-height: 1.35;
    margin: 10px 0 8px;
  }

  .yt-actions-container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .yt-channel-block {
    width: 100%;
    justify-content: space-between;
  }

  .yt-channel-subs {
    font-size: 10px;
  }

  .yt-sub-btn {
    font-size: 11.5px;
    padding: 5px 12px;
  }

  .yt-right-actions {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    gap: 6px;
  }

  .yt-right-actions::-webkit-scrollbar {
    display: none;
  }

  .yt-like-dislike-pill {
    height: 32px;
  }

  .yt-native-btn {
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .yt-downloader-btn {
    height: 32px;
    padding: 0 11px;
    font-size: 11.5px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .yt-btn-hover-tt {
    display: none !important;
  }

  /* In-Mockup Extension Dropdown Popup - Floating ABOVE YouTube page right below extension button */
  .chrome-ext-popup-wrapper {
    position: absolute !important;
    top: 6px !important;
    right: 10px !important;
    left: auto !important;
    width: min(390px, calc(100% - 20px)) !important;
    max-width: calc(100% - 20px) !important;
    margin-top: 0 !important;
    z-index: 1000 !important;
  }

  .chrome-ext-popup-wrapper:not(.open) {
    display: none !important;
  }

  .chrome-ext-popup-wrapper.open {
    display: block !important;
  }

  .chrome-ext-popup-pointer {
    display: block !important;
    position: absolute !important;
    top: -7px !important;
    right: 16px !important;
    z-index: 1001 !important;
  }

  #yt-dl-toast-container.yt-dl-toast-container {
    position: absolute !important;
    bottom: 16px !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: calc(100% - 24px) !important;
    margin-top: 0 !important;
    z-index: 50 !important;
  }

  .yt-dl-toast {
    width: 100% !important;
  }

  /* Stats / Social Proof */
  .stats-bar {
    padding: 28px 0;
  }

  .stats-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    align-items: stretch;
  }

  .stat-item {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 18px;
  }

  /* Section Headers */
  .section-header {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: clamp(24px, 5.5vw, 32px);
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .section-subtitle {
    font-size: 14px;
    line-height: 1.6;
    padding: 0 4px;
  }

  /* Grids to 1 column */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 24px 18px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step-card {
    padding: 24px 18px;
  }

  /* Comparison Section */
  .comp-scroll-hint {
    display: inline-flex;
  }

  .comparison-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px auto 0;
    border-radius: 14px;
  }

  .comparison-table {
    min-width: 580px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 14px;
  }

  .comp-col-feature { width: 34%; }
  .comp-col-us { width: 36%; }
  .comp-col-them { width: 30%; }

  .comp-cta-box {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
    gap: 16px;
  }

  .comp-cta-box .btn-buy {
    width: 100%;
    max-width: 100% !important;
    justify-content: center;
  }

  /* Pricing & Donation */
  .pricing-card,
  .donation-card {
    padding: 28px 18px;
    border-radius: 16px;
  }

  .pricing-number {
    font-size: 46px;
  }

  .pricing-feature {
    font-size: 13.5px;
  }

  .donation-chips {
    gap: 8px;
    justify-content: center;
  }

  .donation-chip {
    padding: 8px 14px;
    font-size: 12.5px;
  }

  /* iOS Safari Auto-zoom Prevention on Form Inputs */
  .web-profile-input {
    font-size: 16px !important;
  }

  /* Payment & Checkout Modal */
  .payment-modal {
    width: calc(100% - 24px);
    max-width: 100%;
    padding: 32px 18px;
    border-radius: 18px;
  }

  .payment-modal h3 {
    font-size: 20px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* 4. Small Mobile Devices (<= 640px) */
@media (max-width: 640px) {
  /* Install Method Switcher */
  .install-method-switch {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 28px;
    gap: 10px;
  }

  .install-method-btn {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    font-size: 13.5px;
  }

  /* Dual-Option Download Modal (#extDownloadModal) */
  .ext-modal-overlay {
    padding: 10px;
  }

  .ext-modal-card {
    padding: 24px 14px;
    border-radius: 18px;
    max-height: 92vh;
  }

  .ext-modal-title {
    font-size: 1.22rem;
  }

  .ext-opt-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 12px;
    padding: 16px 14px;
  }

  .ext-opt-icon-wrap {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .ext-opt-tag {
    position: static;
    margin-bottom: 4px;
    align-self: flex-start;
  }

  .ext-opt-arrow {
    display: none;
  }

  .ext-step-item {
    gap: 10px;
    padding: 12px;
  }

  .ext-step-badge {
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 11px;
  }

  .ext-copy-box {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .ext-copy-text {
    word-break: break-all;
    font-size: 11.5px;
  }

  .ext-copy-btn {
    width: 100%;
    text-align: center;
    padding: 8px 12px;
  }

  .ext-guide-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 12px;
  }

  .ext-guide-footer .btn-primary {
    width: 100%;
    justify-content: center;
  }

  /* Browser mockup toolbar */
  .chrome-nav-btn:not(:first-child) {
    display: none;
  }

  .chrome-tab {
    max-width: 130px;
  }
}

/* 5. Mobile Portrait (<= 480px) */
@media (max-width: 480px) {
  :root {
    --container-padding: 0 14px;
  }

  .navbar .container {
    padding: 0 14px;
  }

  .nav-brand-sub {
    display: none;
  }

  .nav-brand-name {
    font-size: 14px;
  }

  .hero {
    padding: 95px 0 32px;
  }

  .hero h1 {
    font-size: 27px;
    letter-spacing: -0.5px;
    line-height: 1.22;
  }

  .hero-browser-content {
    padding: 12px;
  }

  .stat-item {
    padding: 10px 14px;
  }

  .stat-number {
    font-size: 20px;
  }

  .pricing-number {
    font-size: 40px;
  }

  .pricing-curr {
    font-size: 22px;
  }

  .pricing-card,
  .donation-card {
    padding: 22px 14px;
  }

  .feature-card {
    padding: 20px 14px;
  }

  .section-title {
    font-size: 22px;
  }

  .section-subtitle {
    font-size: 13px;
  }

  .contact-card {
    padding: 20px 14px;
  }

  .payment-modal {
    padding: 24px 14px;
  }

  .payment-modal h3 {
    font-size: 18px;
  }

  /* Top Extension Popup on narrow phones - floating ABOVE YouTube page right below extension icon */
  .chrome-ext-popup-wrapper {
    position: absolute !important;
    top: 6px !important;
    left: 8px !important;
    right: 8px !important;
    width: calc(100% - 16px) !important;
    max-width: calc(100% - 16px) !important;
    margin-top: 0 !important;
    z-index: 1000 !important;
  }

  .chrome-ext-popup-pointer {
    display: block !important;
    position: absolute !important;
    top: -7px !important;
    right: 18px !important;
    z-index: 1001 !important;
  }

  .app-container-mock {
    padding: 10px;
    gap: 8px;
  }
}

/* 6. Extra Narrow Devices (<= 360px) */
@media (max-width: 360px) {
  :root {
    --container-padding: 0 10px;
  }

  .navbar .container {
    padding: 0 10px;
  }

  .hero h1 {
    font-size: 23px;
  }

  .pricing-number {
    font-size: 34px;
  }

  .pricing-curr {
    font-size: 18px;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    font-size: 13px;
    padding: 11px 14px;
  }

  .stat-number {
    font-size: 17px;
  }

  .stat-icon {
    width: 36px;
    height: 36px;
  }

  .chrome-ext-popup-wrapper {
    position: absolute !important;
    top: 6px !important;
    left: 6px !important;
    right: 6px !important;
    width: calc(100% - 12px) !important;
    max-width: calc(100% - 12px) !important;
    margin-top: 0 !important;
    z-index: 1000 !important;
  }

  .chrome-ext-popup-pointer {
    display: block !important;
    position: absolute !important;
    top: -7px !important;
    right: 16px !important;
    z-index: 1001 !important;
  }

  .app-container-mock {
    padding: 8px;
    gap: 8px;
  }

  .header-right-mock .server-status-mock {
    display: none;
  }
}

/* ============================================================
   COMPETITOR COMPARISON SECTION STYLES
   ============================================================ */
.comparison {
  padding: 80px 0;
  position: relative;
  background: radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
}

.comp-scroll-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px auto 0;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  width: fit-content;
}

.comp-scroll-hint svg {
  color: var(--accent-rose);
  animation: pulse 2s infinite;
}

.comparison-table-wrap {
  margin: 24px auto 0;
  max-width: 1000px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow-x: auto;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Header Columns */
.comp-col-feature {
  width: 38%;
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comp-col-us {
  width: 34%;
  background: rgba(99, 102, 241, 0.12);
  border-left: 2px solid rgba(99, 102, 241, 0.4);
  border-right: 2px solid rgba(99, 102, 241, 0.4);
  position: relative;
  padding-top: 24px;
}

.comp-col-them {
  width: 28%;
  background: rgba(0, 0, 0, 0.15);
  padding-top: 24px;
}

.comp-header-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 10px;
  background: linear-gradient(135deg, #6366f1, #d946ef);
  color: #ffffff;
  border-radius: 20px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.comp-header-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.comp-header-price {
  font-size: 18px;
  font-weight: 800;
  color: #38bdf8;
}

.comp-header-sub {
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
}

.comp-col-them .comp-header-name {
  color: #94a3b8;
}

.comp-col-them .comp-header-price {
  color: #cbd5e1;
  font-size: 16px;
}

/* Body Cells */
.comp-feature-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comp-feature-name strong {
  color: #f1f5f9;
  font-size: 15px;
}

.comp-feature-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.comp-cell-us {
  background: rgba(99, 102, 241, 0.05);
  border-left: 2px solid rgba(99, 102, 241, 0.3);
  border-right: 2px solid rgba(99, 102, 241, 0.3);
}

.comp-cell-us.highlight-best {
  background: rgba(99, 102, 241, 0.1);
}

.comp-cell-them {
  background: rgba(0, 0, 0, 0.1);
}

.comp-value-bold {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #38bdf8;
}

.comp-value-dim {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
}

.comp-tag-save {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.comp-icon-yes {
  display: block;
  font-weight: 700;
  color: #34d399;
  font-size: 14px;
}

.comp-icon-no {
  display: block;
  font-weight: 700;
  color: #f43f5e;
  font-size: 14px;
}

.comp-icon-warn {
  display: block;
  font-weight: 700;
  color: #fbbf24;
  font-size: 14px;
}

.comp-desc {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 3px;
}

/* Bottom CTA Banner */
.comp-cta-wrap {
  margin-top: 36px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.comp-cta-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 16px;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.comp-cta-text h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.comp-cta-text p {
  font-size: 14px;
  color: #94a3b8;
  margin: 0;
}

/* ============================================================
   HERO SECONDARY OPTIONS ROW
   ============================================================ */
.hero-cta-secondary-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-tertiary);
  flex-wrap: wrap;
}

.hero-cta-hint {
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-sub-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-rose);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(244, 63, 94, 0.4);
  transition: all var(--transition-fast);
  font-size: 13px;
}

.hero-sub-link:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

.hero-cta-sep {
  opacity: 0.35;
}

/* ============================================================
   INSTALL GUIDE DUAL-METHOD TABS
   ============================================================ */
.install-method-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.install-method-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  backdrop-filter: blur(8px);
}

.install-method-btn:hover {
  color: #ffffff;
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(30, 41, 59, 0.8);
  transform: translateY(-1px);
}

.install-method-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.22) 0%, rgba(124, 58, 237, 0.22) 100%);
  border-color: var(--accent-rose);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.25);
}

.install-method-btn svg {
  transition: transform var(--transition-fast);
}

.install-method-btn.active svg {
  color: var(--accent-rose);
  transform: scale(1.1);
}

.install-tab-pane {
  animation: fadeIn 0.3s ease-out;
}

.install-action-btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  padding: 10px 20px;
}

/* ============================================================
   EXTENSION DOWNLOAD / DUAL-OPTION MODAL
   ============================================================ */
.ext-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  padding: 16px;
}

.ext-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.ext-modal-card {
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-2xl);
  background: linear-gradient(180deg, #0f172a 0%, #080d1a 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(124, 58, 237, 0.15);
  padding: 36px 32px;
}

.ext-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
}

.ext-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: rotate(90deg);
}

.ext-modal-header {
  text-align: center;
  margin-bottom: 26px;
  position: relative;
}

.ext-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #c4b5fd;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.ext-modal-badge--success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.ext-modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.ext-modal-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Dual Options Cards */
.ext-modal-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.ext-opt-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 20px;
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
  overflow: hidden;
}

.ext-opt-card:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(124, 58, 237, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 25px rgba(124, 58, 237, 0.15);
}

.ext-opt-card--zip:hover {
  border-color: rgba(244, 63, 94, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 25px rgba(244, 63, 94, 0.15);
}

.ext-opt-tag {
  position: absolute;
  top: 10px;
  right: 14px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ext-opt-tag--recommend {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.ext-opt-tag--zip {
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fb7185;
}

.ext-opt-icon-wrap {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ext-opt-icon--cws {
  background: rgba(66, 133, 244, 0.08);
  border-color: rgba(66, 133, 244, 0.25);
}

.ext-opt-icon--zip {
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.25);
  color: var(--accent-rose);
}

.ext-opt-info {
  flex: 1;
}

.ext-opt-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.ext-opt-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.ext-opt-arrow {
  font-size: 16px;
  color: var(--text-tertiary);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.ext-opt-card:hover .ext-opt-arrow {
  color: #ffffff;
  transform: translate(2px, -2px);
}

.ext-opt-card--zip:hover .ext-opt-arrow {
  transform: translateY(2px);
}

.ext-opt-summary {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: 0 0 10px;
  line-height: 1.45;
}

.ext-opt-features {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ext-opt-features span {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-cyan);
}

/* Step-by-Step Guide View */
.ext-guide-back-btn {
  position: absolute;
  left: 0;
  top: 0;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.ext-guide-back-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.ext-guide-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0;
}

.ext-step-item {
  display: flex;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  align-items: flex-start;
}

.ext-step-badge {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-rose) 0%, var(--accent-violet) 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
}

.ext-step-content {
  flex: 1;
}

.ext-step-content h5 {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 3px;
}

.ext-step-content p {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
}

.ext-copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: 6px;
}

.ext-copy-text {
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 12px;
  color: #38bdf8;
  letter-spacing: 0.2px;
}

.ext-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.ext-copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

.ext-copy-btn.copied {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #34d399;
}

.ext-step-hint {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.ext-guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.ext-guide-redownload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.ext-guide-redownload:hover {
  color: #ffffff;
}


