/* ============================================================
   YT2Audio — Premium YouTube to MP3/WAV Converter Styles
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark:       #0a0b14;
  --bg-card:       rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --border:        rgba(255,255,255,0.10);
  --border-glow:   rgba(139,92,246,0.5);
  --primary:       #8b5cf6;
  --primary-dark:  #7c3aed;
  --accent:        #06b6d4;
  --accent2:       #f59e0b;
  --red:           #ef4444;
  --green:         #22c55e;
  --text:          #f1f5f9;
  --text-muted:    #94a3b8;
  --text-faint:    #475569;
  --radius:        18px;
  --radius-sm:     10px;
  --shadow:        0 25px 60px rgba(0,0,0,0.5);
  --shadow-glow:   0 0 40px rgba(139,92,246,0.3);
  --font:          'Inter', sans-serif;
  --transition:    0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Animated Background ── */
.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 50% -20%, rgba(139,92,246,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 80%, rgba(6,182,212,0.08) 0%, transparent 50%),
    #0a0b14;
  z-index: 0;
  pointer-events: none;
}

.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: floatOrb 20s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; background: #8b5cf6; top: -200px; left: -150px; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: #06b6d4; bottom: -100px; right: -100px; animation-delay: -7s; }
.orb-3 { width: 350px; height: 350px; background: #f59e0b; top: 40%; left: 60%; animation-delay: -14s; }

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -30px) scale(1.1); }
  66%       { transform: translate(-20px, 20px) scale(0.95); }
}

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10,11,20,0.7);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: white;
  box-shadow: 0 4px 15px rgba(239,68,68,0.4);
}
.logo-icon.small { width: 28px; height: 28px; font-size: 13px; border-radius: 6px; }
.logo-text { font-size: 1.4rem; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.logo-accent { color: var(--primary); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color var(--transition); }
.nav-links a:hover { color: var(--text); }
.header-badge {
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Hero ── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.3);
  color: #c4b5fd;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.83rem;
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease both;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
  animation: fadeInDown 0.6s ease 0.1s both;
}
.gradient-text {
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInDown 0.6s ease 0.2s both;
}
.hero-subtitle strong { color: var(--text); }

/* ── Converter Card ── */
.converter-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  padding: 36px;
  max-width: 760px;
  margin: 0 auto 48px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow), var(--shadow-glow);
  animation: fadeInUp 0.7s ease 0.3s both;
  position: relative;
  overflow: hidden;
}
.converter-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

/* URL Input */
.url-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 4px 4px 16px;
  gap: 8px;
  margin-bottom: 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.url-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.2);
}
.url-icon { color: #ef4444; font-size: 1.2rem; flex-shrink: 0; }
.url-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
  padding: 14px 0;
}
.url-input::placeholder { color: var(--text-faint); }
.paste-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  flex-shrink: 0;
}
.paste-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* Options Row */
.options-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.option-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 140px;
}
.option-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Toggle Group */
.toggle-group { display: flex; background: rgba(255,255,255,0.05); border-radius: var(--radius-sm); padding: 3px; border: 1px solid var(--border); }
.toggle-btn {
  flex: 1;
  padding: 8px 14px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 7px;
  transition: all var(--transition);
  font-family: var(--font);
}
.toggle-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 2px 10px rgba(139,92,246,0.4);
}
.toggle-btn:not(.active):hover { color: var(--text); background: rgba(255,255,255,0.06); }

/* Quality Select */
.select-wrapper { position: relative; }
.quality-select {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 36px 10px 14px;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}
.quality-select:focus { border-color: var(--primary); }
.quality-select option, .quality-select optgroup { background: #1a1b2e; color: var(--text); }
.select-arrow {
  position: absolute;
  right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.75rem;
  pointer-events: none;
}

/* Convert Button */
.convert-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 50%, #6d28d9 100%);
  border: none;
  border-radius: var(--radius);
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition);
  box-shadow: 0 6px 25px rgba(139,92,246,0.45);
  position: relative;
  overflow: hidden;
}
.convert-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s;
}
.convert-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 35px rgba(139,92,246,0.55); }
.convert-btn:hover::after { left: 100%; }
.convert-btn:active { transform: translateY(0); }

.disclaimer {
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--text-faint);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ── Loading Step ── */
.loading-area {
  text-align: center;
  padding: 20px 0;
}
.spinner-ring {
  width: 100px; height: 100px;
  margin: 0 auto 28px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--accent);
  animation: spin 1.2s linear infinite;
}
.ring-inner {
  width: 70px; height: 70px;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-area h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.loading-area p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }

.progress-bar-wrap {
  background: rgba(255,255,255,0.06);
  border-radius: 30px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 30px;
  transition: width 0.4s ease;
}

.progress-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pstep {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-faint);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  transition: all 0.4s ease;
}
.pstep.active {
  color: var(--primary);
  background: rgba(139,92,246,0.12);
  border-color: rgba(139,92,246,0.4);
}
.pstep.done {
  color: var(--green);
  background: rgba(34,197,94,0.1);
  border-color: rgba(34,197,94,0.3);
}

/* ── Result Step ── */
.result-area {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.result-thumb-wrap {
  position: relative;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: 160px;
  aspect-ratio: 16/9;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
}
.result-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.result-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  color: white;
  font-size: 1.4rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.result-thumb-wrap:hover .result-play-overlay { opacity: 1; }

.result-info { flex: 1; min-width: 0; }
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  color: var(--green);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.result-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.result-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.result-meta span { display: flex; align-items: center; gap: 5px; }
.result-meta i { color: var(--primary); }

.result-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--green), #16a34a);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(34,197,94,0.35);
}
.download-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(34,197,94,0.5); }
.convert-another-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--transition);
}
.convert-another-btn:hover { background: rgba(255,255,255,0.1); color: var(--text); }

.audio-preview-wrap {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.audio-preview-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.audio-player {
  width: 100%;
  height: 42px;
  border-radius: var(--radius-sm);
  accent-color: var(--primary);
}
.audio-player::-webkit-media-controls-panel { background: rgba(139,92,246,0.1); }

/* ── Error Step ── */
.error-area { text-align: center; padding: 20px 0; }
.error-icon {
  font-size: 3rem;
  color: var(--red);
  margin-bottom: 16px;
  display: block;
}
.error-area h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.error-area p { color: var(--text-muted); margin-bottom: 24px; }

/* ── Utility ── */
.hidden { display: none !important; }
.converter-step { animation: fadeIn 0.4s ease; }

/* ── Stats Row ── */
.stats-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  max-width: 640px;
  margin: 0 auto;
  animation: fadeInUp 0.7s ease 0.5s both;
  flex-wrap: wrap;
}
.stat-item { text-align: center; padding: 8px 24px; flex: 1; min-width: 100px; }
.stat-num { display: block; font-size: 1.3rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; display: block; }
.stat-divider { width: 1px; background: var(--border); height: 40px; flex-shrink: 0; }

/* ── Section Styles ── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-pill {
  display: inline-block;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.25);
  color: #c4b5fd;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.section-header p { color: var(--text-muted); font-size: 1rem; max-width: 480px; margin: 0 auto; }

/* ── Features Section ── */
.features-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(139,92,246,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.feature-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.feature-icon.purple  { background: rgba(139,92,246,0.15); color: #a78bfa; }
.feature-icon.blue    { background: rgba(59,130,246,0.15); color: #60a5fa; }
.feature-icon.green   { background: rgba(34,197,94,0.15);  color: #4ade80; }
.feature-icon.orange  { background: rgba(245,158,11,0.15); color: #fbbf24; }
.feature-icon.red     { background: rgba(239,68,68,0.15);  color: #f87171; }
.feature-icon.teal    { background: rgba(20,184,166,0.15); color: #2dd4bf; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ── How It Works ── */
.how-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.steps-row {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  transition: all var(--transition);
  position: relative;
}
.step-card:hover { border-color: rgba(139,92,246,0.4); transform: translateY(-4px); }
.step-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(139,92,246,0.15);
  line-height: 1;
  position: absolute;
  top: 14px; right: 18px;
}
.step-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-card p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.step-arrow { color: var(--text-faint); font-size: 1.2rem; flex-shrink: 0; }

/* ── Formats Section ── */
.formats-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}
.format-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}
.format-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.mp3-card:hover { border-color: rgba(139,92,246,0.4); }
.wav-card:hover { border-color: rgba(6,182,212,0.4); }
.format-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.format-header i {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.wav-card .format-header i {
  background: linear-gradient(135deg, var(--accent), #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
}
.format-name { font-size: 1.4rem; font-weight: 800; }
.format-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.format-badge.popular { background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.3); }
.format-badge.lossless { background: rgba(6,182,212,0.15); color: #22d3ee; border: 1px solid rgba(6,182,212,0.3); }
.format-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.format-options { display: flex; flex-direction: column; gap: 8px; }
.fopt {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 7px 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.fopt.best {
  color: var(--primary);
  background: rgba(139,92,246,0.08);
  border-color: rgba(139,92,246,0.25);
  font-weight: 600;
}
.wav-card .fopt.best { color: var(--accent); background: rgba(6,182,212,0.08); border-color: rgba(6,182,212,0.25); }

/* ── FAQ Section ── */
.faq-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: rgba(139,92,246,0.35); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--transition);
}
.faq-q:hover { color: #c4b5fd; }
.faq-q i { transition: transform var(--transition); flex-shrink: 0; font-size: 0.85rem; color: var(--text-muted); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p { padding: 0 20px 18px; font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: rgba(0,0,0,0.2);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-copy { font-size: 0.8rem; color: var(--text-faint); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.82rem; color: var(--text-faint); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: var(--text-muted); }

/* ── Animations ── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .header-inner { gap: 16px; }
  .nav-links { display: none; }
  .hero { padding: 50px 0 40px; }
  .converter-card { padding: 22px; }
  .options-row { gap: 12px; }
  .result-area { flex-direction: column; }
  .result-thumb-wrap { width: 100%; max-width: 300px; }
  .stats-row { gap: 0; }
  .stat-divider { display: none; }
  .stat-item { min-width: 80px; }
  .step-arrow { display: none; }
  .steps-row { gap: 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .converter-card { padding: 18px; border-radius: 16px; }
  .hero-title { letter-spacing: -1px; }
  .option-group { min-width: 100%; }
}
