/* ==========================================================================
   VixRola - High-Speed Instagram Reels & Facebook Video Downloader
   Lightweight, Ultra-Fast, Mobile-First Production Stylesheet
   ========================================================================== */

/* 1. CSS Variables & Design System */
:root {
  --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Brand Color Palette */
  --color-primary: #6366f1;
  --color-primary-hover: #4f46e5;
  --color-secondary: #8b5cf6;
  --color-accent-green: #10b981;
  --color-accent-green-hover: #059669;
  --color-gradient-brand: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --color-gradient-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --color-gradient-bg: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.12) 0%, rgba(248, 250, 252, 0) 70%);

  /* Neutral Tones */
  --bg-body: #f8fafc;
  --bg-slate: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-light: #e2e8f0;
  --border-focus: #a5b4fc;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 25px -5px rgba(99, 102, 241, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 30px -10px rgba(15, 23, 42, 0.12);

  /* Layout Constants */
  --header-height: 72px;
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-family: var(--font-primary);
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-body);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
  user-select: none;
}

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

/* Utilities */
.hidden {
  display: none !important;
}

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

.main-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-padding {
  padding: 5rem 0;
}

.bg-slate {
  background-color: var(--bg-slate);
}

/* 3. Sticky Glassmorphic Header */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-fast);
}

.header-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.logo-badge {
  width: 38px;
  height: 38px;
  background: var(--color-gradient-brand);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.brand-accent {
  color: var(--color-primary);
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

/* Legal Actions in Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-modal-btn {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-modal-btn:hover {
  color: var(--text-main);
  background-color: rgba(226, 232, 240, 0.5);
}

.btn-contact-nav {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  background-color: rgba(99, 102, 241, 0.08);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: var(--transition-fast);
}

.btn-contact-nav:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.mobile-menu-btn {
  display: none;
  padding: 0.5rem;
  color: var(--text-main);
  border-radius: var(--radius-sm);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
}

.mobile-drawer.active {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.mobile-nav-links a, .mobile-nav-links button {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  padding: 0.625rem;
  border-radius: var(--radius-sm);
}

.mobile-nav-links a:hover {
  background-color: var(--bg-slate);
}

.drawer-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 0.5rem 0;
}

.drawer-btn-contact {
  background: var(--color-primary) !important;
  color: #ffffff !important;
  text-align: center !important;
  border-radius: var(--radius-md) !important;
}

/* 4. Hero & Main Downloader Core */
.hero-section {
  position: relative;
  padding: 4rem 0 5rem;
  background: var(--color-gradient-bg);
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(248, 250, 252, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-section .main-container {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Feature Badge */
.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.08);
  margin-bottom: 1.5rem;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.badge-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Main Typography */
.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-subtitle strong {
  color: var(--color-primary);
  font-weight: 700;
}

/* SEO Target Keywords Chips Bar */
.keyword-chips-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 820px;
  margin-bottom: 2rem;
}

.chip-label {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.25rem;
}

.keyword-chip {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.keyword-chip:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

/* Downloader Input Card Component */
.downloader-card {
  width: 100%;
  max-width: 780px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
}

.downloader-card:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 15px 35px -5px rgba(99, 102, 241, 0.18);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-body);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.375rem 0.5rem 0.375rem 1rem;
  margin-bottom: 1rem;
  transition: var(--transition-fast);
}

.input-wrapper:focus-within {
  border-color: var(--color-primary);
  background: #ffffff;
}

.input-icon {
  color: var(--text-light);
  display: flex;
  align-items: center;
  margin-right: 0.75rem;
}

.url-input {
  width: 100%;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
}

.url-input::placeholder {
  color: var(--text-light);
}

.clear-btn {
  color: var(--text-light);
  padding: 0.375rem;
  display: flex;
  align-items: center;
  border-radius: 50%;
  transition: var(--transition-fast);

}

.clear-btn:hover {
  color: var(--text-main);
  background-color: var(--border-light);
}

.btn-paste {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(99, 102, 241, 0.08);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  margin-left: 0.5rem;
  transition: var(--transition-fast);
}

.btn-paste:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.btn-download {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: var(--color-gradient-brand);
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 800;
  padding: 1.125rem;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
  transition: var(--transition-fast);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(99, 102, 241, 0.4);
}

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

.input-supported-formats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
}

.format-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* Inline Unsupported Platform Alert Banner */
.platform-error-banner {
  margin-top: 1rem;
  padding: 0.875rem 1.125rem;
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: var(--radius-md);
  color: #991b1b;
  font-size: 0.875rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  text-align: left;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.08);
  animation: fadeIn 0.25s ease-out;
}

.platform-error-banner .alert-icon {
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.platform-error-banner .alert-text {
  flex: 1;
}

.platform-error-banner strong {
  font-weight: 800;
  color: #7f1d1d;
}

/* Animated Processing Indicator */
.processing-container {
  width: 100%;
  max-width: 780px;
  margin-top: 1.5rem;
}

.processing-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.spinner-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glow-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-gradient-brand);
  filter: blur(8px);
  opacity: 0.6;
  animation: rotate-spinner 2s linear infinite;
}

.css-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(226, 232, 240, 0.6);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: rotate-spinner 0.8s linear infinite;
  z-index: 1;
}

@keyframes rotate-spinner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.progress-details {
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.progress-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--bg-slate);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--color-gradient-brand);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

/* Extracted Result Card Component */
.result-container {
  width: 100%;
  max-width: 780px;
  margin-top: 1.5rem;
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  text-align: left;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border-light);
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
}

.ig-badge {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
}

.fb-badge {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.quality-tag {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--color-accent-green);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.result-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
  border-radius: var(--radius-md);
  display: block;
}

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

.result-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

.quality-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.options-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.format-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-format {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  background: var(--bg-slate);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.btn-format:hover, .btn-format.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-download-file {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: var(--color-gradient-green);
  color: #ffffff;
  font-size: 1.0625rem;
  font-weight: 800;
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
  transition: var(--transition-fast);
  margin-top: 0.5rem;
}

.btn-download-file:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(16, 185, 129, 0.35);
}

.btn-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.625rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.btn-reset:hover {
  color: var(--text-main);
  background: var(--bg-slate);
}

/* 5. Section Header Component */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
}

/* 6. Step-by-Step Guide Section */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.step-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-focus);
}

.step-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: 900;
  color: rgba(99, 102, 241, 0.15);
}

.step-icon-bg {
  width: 56px;
  height: 56px;
  background: rgba(99, 102, 241, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 7. Features Bento Grid Section */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.bento-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.bento-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-focus);
}

.bento-wide {
  grid-column: span 1;
}

@media (min-width: 992px) {
  .bento-wide {
    grid-column: span 2;
  }
}

.bento-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.bento-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bento-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 8. SEO FAQ Accordion Section */
.faq-accordion-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: left;
}

.faq-question:hover {
  background: rgba(248, 250, 252, 0.8);
}

.faq-icon {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  transition: max-height 0.35s ease-in-out;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 9. Legal Modals & Contact Popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: fadeIn 0.2s ease-out;
}

.modal-card {
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.modal-close-btn {
  font-size: 1.25rem;
  color: var(--text-muted);
  padding: 0.375rem;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: var(--bg-slate);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.modal-body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 1.25rem 0 0.5rem;
}

.modal-body ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.modal-body li {
  margin-bottom: 0.375rem;
}

/* Contact Form Styling inside Modal */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-body);
  font-size: 0.9375rem;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--color-primary);
  background: #ffffff;
}

.btn-submit-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  padding: 0.875rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
  transition: var(--transition-fast);
}

.btn-submit-contact:hover {
  background: var(--color-primary-hover);
}

/* 10. Footer Section */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

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

.footer-brand .footer-logo {
  margin-bottom: 1rem;
}

.footer-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.6;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-col a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.copyright-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.disclaimer-text {
  font-size: 0.78125rem;
  color: var(--text-light);
  max-width: 800px;
}

/* 11. Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #0f172a;
  color: #ffffff;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 0.875rem;
  font-weight: 600;
  animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-success {
  border-left: 4px solid var(--color-accent-green);
}

.toast-error {
  border-left: 4px solid #ef4444;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* 12. Responsive Breakpoints */
@media (max-width: 991px) {
  .hero-title { font-size: 2.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .desktop-nav, .nav-modal-btn { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero-title { font-size: 1.875rem; }
  .hero-subtitle { font-size: 1rem; }
  .downloader-card { padding: 1.125rem; }
  .result-body { grid-template-columns: 1fr; }
  .thumbnail-wrapper { max-height: 220px; aspect-ratio: 16/9; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .input-supported-formats { flex-direction: column; gap: 0.5rem; }
}
