/* ==========================================================================
   VixRola - High-Speed Instagram Reels & Facebook Video Downloader
   Production-Ready Pure CSS3 Stylesheet
   Optimized for 95+ PageSpeed, Mobile-First Responsiveness & Accessibility
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Design System Tokens)
   -------------------------------------------------------------------------- */
:root {
  --bg-dark: #070a12;
  --bg-surface: #0e1424;
  --bg-card: rgba(18, 26, 45, 0.75);
  --bg-card-hover: rgba(26, 38, 66, 0.85);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-glow: rgba(99, 102, 241, 0.4);
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --secondary: #06b6d4;
  --accent-pink: #ec4899;
  --accent-green: #10b981;
  --accent-green-hover: #059669;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --ig-gradient: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  --fb-color: #1877f2;
  --brand-gradient: linear-gradient(135deg, #6366f1, #06b6d4);
  --btn-gradient: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.25);
  --shadow-glow-green: 0 0 30px rgba(16, 185, 129, 0.3);
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(6, 182, 212, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
}

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

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

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --------------------------------------------------------------------------
   3. Navigation Bar (Sticky Glass Header)
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 18, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--brand-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
  color: #fff;
}

.brand-text {
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--secondary);
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-main);
}

.legal-btn-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-ghost-sm {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-ghost-sm:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

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

/* --------------------------------------------------------------------------
   4. Hero Downloader Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 3.5rem 0 4rem;
  text-align: center;
}

.feature-badge-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

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

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

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 850px;
  margin: 0 auto 1.25rem;
}

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

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

/* Downloader Core Box */
.downloader-box {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 840px;
  margin: 0 auto;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.downloader-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-gradient);
}

.input-group-wrapper {
  display: flex;
  align-items: center;
  background: rgba(7, 10, 18, 0.7);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.4rem;
  transition: var(--transition);
}

.input-group-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.input-icon {
  padding-left: 0.8rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
}

.url-input {
  flex: 1;
  background: transparent;
  color: var(--text-main);
  padding: 0.85rem 0.8rem;
  font-size: 1rem;
}

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

.input-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon-action {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.btn-icon-action:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
}

.btn-clear {
  display: none;
  background: transparent;
  color: var(--text-dim);
  padding: 0.5rem;
}

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

.btn-download-primary {
  background: var(--btn-gradient);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  white-space: nowrap;
}

.btn-download-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

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

/* Supported Platforms Bar */
.supported-platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.platform-pill svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   5. Animated Processing & Loading Indicator
   -------------------------------------------------------------------------- */
.processing-container {
  display: none;
  margin-top: 2rem;
  padding: 2rem 1rem;
  text-align: center;
  background: rgba(7, 10, 18, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.spinner-wrapper {
  position: relative;
  width: 70px;
  height: 70px;
  margin: 0 auto 1.25rem;
}

.glow-spinner {
  width: 100%;
  height: 100%;
  border: 4px solid rgba(99, 102, 241, 0.15);
  border-top-color: var(--primary);
  border-right-color: var(--secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.spinner-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--secondary);
}

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

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

.progress-bar-bg {
  width: 100%;
  max-width: 400px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  margin: 0 auto;
  overflow: hidden;
}

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

/* --------------------------------------------------------------------------
   6. Extracted Result Display Card
   -------------------------------------------------------------------------- */
.result-container {
  display: none;
  margin-top: 2rem;
  text-align: left;
}

.result-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.75rem;
  background: rgba(7, 10, 18, 0.8);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-glow-green);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.media-preview-wrapper {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  aspect-ratio: 9/16;
  max-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-preview-wrapper img, .media-preview-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-platform-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  backdrop-filter: blur(8px);
}

.badge-ig { background: rgba(131, 58, 180, 0.85); }
.badge-fb { background: rgba(24, 119, 242, 0.85); }

.result-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-header-meta {
  margin-bottom: 1rem;
}

.result-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-author {
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 600;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

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

.spec-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.download-btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-file-download {
  background: var(--success-gradient);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  text-align: center;
}

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

.btn-audio-download {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-audio-download:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-reset-download {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.5rem;
  text-align: center;
  transition: var(--transition);
}

.btn-reset-download:hover {
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   7. SEO Section Header & Common Content Styling
   -------------------------------------------------------------------------- */
.section-padding {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

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

/* --------------------------------------------------------------------------
   8. Step-by-Step Guide Section
   -------------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.step-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  position: relative;
  transition: var(--transition);
}

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

.step-number {
  position: absolute;
  top: -15px;
  left: 20px;
  width: 36px;
  height: 36px;
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.step-icon {
  width: 52px;
  height: 52px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.step-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   9. Features Bento Grid
   -------------------------------------------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
}

.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--glass-border-glow);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.12);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

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

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

/* --------------------------------------------------------------------------
   10. FAQ Accordion Section
   -------------------------------------------------------------------------- */
.faq-wrapper {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.faq-item.active {
  border-color: var(--glass-border-glow);
  background: var(--bg-card-hover);
}

.faq-header {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-chevron {
  color: var(--secondary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

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

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  background: rgba(7, 10, 18, 0.4);
}

.faq-content {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   11. Footer & Legal Section
   -------------------------------------------------------------------------- */
.site-footer {
  background: #04060c;
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
  max-width: 320px;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}

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

.footer-links a, .footer-links button {
  font-size: 0.9rem;
  color: var(--text-muted);
  background: transparent;
  text-align: left;
  transition: var(--transition);
}

.footer-links a:hover, .footer-links button:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   12. Legal Modals & Contact Popup
   -------------------------------------------------------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: fadeIn 0.2s ease-out;
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

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

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

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

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

.modal-body h3 {
  color: var(--text-main);
  margin: 1rem 0 0.4rem;
  font-size: 1.05rem;
}

.modal-body p {
  margin-bottom: 0.85rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(7, 10, 18, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.btn-submit-form {
  width: 100%;
  background: var(--btn-gradient);
  color: #fff;
  font-weight: 700;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  margin-top: 0.5rem;
}

.btn-submit-form:hover {
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* --------------------------------------------------------------------------
   13. Toast Notification Component
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--primary);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  pointer-events: auto;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.toast-success { border-left-color: var(--accent-green); }
.toast.toast-error { border-left-color: #ef4444; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --------------------------------------------------------------------------
   14. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .steps-grid, .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card.span-2 {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .legal-btn-group {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-menu-mobile {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(7, 10, 18, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem;
    gap: 1rem;
  }

  .downloader-box {
    padding: 1.25rem;
  }
  
  .input-group-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.6rem;
  }
  
  .input-actions {
    justify-content: flex-end;
  }
  
  .btn-download-primary {
    width: 100%;
    justify-content: center;
    padding: 0.9rem;
  }
  
  .result-card {
    grid-template-columns: 1fr;
  }
  
  .steps-grid, .bento-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
}
