:root {
  --bg-primary: #0a0c16;
  --bg-secondary: #121526;
  --bg-card: rgba(22, 27, 46, 0.7);
  --bg-card-hover: rgba(28, 35, 60, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(139, 92, 246, 0.5);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --gradient-main: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f43f5e 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --border-color: #e2e8f0;
  --border-focus: rgba(139, 92, 246, 0.6);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 4px 10px -2px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 0 25px rgba(139, 92, 246, 0.12);
}

[data-theme="light"] .glow-orb {
  opacity: 0.14;
  filter: blur(140px);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Background Ambient Glow */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
  transition: opacity 0.5s ease;
}

.orb-1 {
  top: -10%;
  left: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
}

.orb-2 {
  top: 30%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #ec4899, transparent 70%);
}

.orb-3 {
  bottom: 0%;
  left: 30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #06b6d4, transparent 70%);
}

/* Header */
.header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  background: rgba(10, 12, 22, 0.6);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
}

[data-theme="light"] .header {
  background: rgba(248, 250, 252, 0.7);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(234, 179, 8, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #fff;
  transition: transform 0.25s ease;
}

.brand-logo-img:hover {
  transform: scale(1.05);
}

.brand-logo-img.small {
  width: 32px;
  height: 32px;
}

.brand-logo-img.large {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(234, 179, 8, 0.35);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-main);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  position: relative;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  border: 2px solid var(--accent-pink);
  animation: pulseAnim 2s infinite;
  opacity: 0.6;
}

@keyframes pulseAnim {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.logo-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

.logo-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.icon-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-container {
  padding-top: 45px;
  padding-bottom: 50px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--accent-purple);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  animation: fadeIn 0.8s ease;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 30px;
  font-weight: 400;
}

/* Engine Selector Bar */
.engine-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.engine-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.engine-switch {
  display: flex;
  gap: 6px;
}

.engine-opt {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.engine-opt.active {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.4);
}

/* Downloader Form Card */
.downloader-card {
  max-width: 850px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.input-form {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 16px;
  transition: var(--transition);
}

[data-theme="light"] .input-wrapper {
  background: rgba(0, 0, 0, 0.03);
}

.input-wrapper:focus-within {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.input-icon {
  color: #ef4444;
  font-size: 1.35rem;
  margin-right: 12px;
}

.input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  padding: 16px 0;
  width: 100%;
}

.input-wrapper input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.input-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.mini-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.primary-btn {
  background: var(--gradient-main);
  border: none;
  color: #fff;
  padding: 0 28px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.35);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(236, 72, 153, 0.5);
}

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

.quick-demos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
}

.demo-label {
  color: var(--text-muted);
  font-weight: 600;
}

.demo-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.demo-chip:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

/* Loading Box */
.loading-box {
  margin: 35px auto 0;
  max-width: 600px;
  padding: 40px 20px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  animation: fadeIn 0.4s ease;
}

.radar-spinner {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-spinner .circle {
  position: absolute;
  border: 2px solid var(--accent-purple);
  border-radius: 50%;
  animation: radarWave 2s infinite cubic-bezier(0, 0.2, 0.8, 1);
}

.circle-1 { animation-delay: 0s; }
.circle-2 { animation-delay: 0.6s; }
.circle-3 { animation-delay: 1.2s; }

@keyframes radarWave {
  0% { width: 10px; height: 10px; opacity: 1; }
  100% { width: 90px; height: 90px; opacity: 0; }
}

.center-icon {
  font-size: 1.6rem;
  color: var(--accent-pink);
  z-index: 2;
}

.loading-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Result Card */
.result-card {
  max-width: 950px;
  margin: 35px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  text-align: left;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
}

/* Thumbnail Column */
.thumb-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #000;
}

.thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.thumb-wrapper:hover img {
  transform: scale(1.05);
}

.duration-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-main);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.9;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.play-overlay:hover {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
}

/* Audio Player */
.audio-player-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  animation: fadeIn 0.3s ease;
}

.player-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-ctrl-btn {
  background: var(--accent-purple);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
}

.player-range {
  flex: 1;
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  accent-color: var(--accent-purple);
  cursor: pointer;
}

.volume-box {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.vol-range {
  width: 50px;
  height: 4px;
  accent-color: var(--accent-purple);
  cursor: pointer;
}

/* Metadata Section */
.details-section {
  display: flex;
  flex-direction: column;
}

.video-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.meta-item {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.badge-mp3 {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.78rem;
}

/* Quality Selector */
.quality-selector {
  margin-bottom: 22px;
}

.quality-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.quality-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 10px;
}

.quality-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quality-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

.quality-btn.active {
  background: rgba(139, 92, 246, 0.12);
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
}

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

.q-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.q-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-purple);
}

.q-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Download Action Button */
.download-action-area {
  margin-top: auto;
}

.download-btn {
  width: 100%;
  background: var(--gradient-main);
  border: none;
  color: #fff;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
}

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

.filename-notice {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
}

.filename-notice strong {
  color: var(--accent-cyan);
}

/* Progress Box */
.progress-box {
  margin-top: 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  animation: fadeIn 0.3s ease;
}

.progress-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

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

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-main);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.6);
}

.progress-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

/* History Section */
.history-section {
  max-width: 950px;
  margin: 50px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(16px);
  text-align: left;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.history-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.text-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.text-btn:hover {
  color: var(--accent-pink);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(139, 92, 246, 0.3);
}

.history-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.history-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.history-details {
  overflow: hidden;
}

.history-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 500px;
}

.history-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.history-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

.history-badge.fb {
  background: rgba(24, 119, 242, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(24, 119, 242, 0.4);
}

.history-badge.ig-video {
  background: rgba(225, 48, 108, 0.2);
  color: #f472b6;
  border: 1px solid rgba(225, 48, 108, 0.4);
}

.history-badge.tt-video {
  background: rgba(0, 242, 234, 0.2);
  color: #22d3ee;
  border: 1px solid rgba(0, 242, 234, 0.4);
}

.history-badge.yt-video {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.history-badge.yt-audio {
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.history-btn {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--accent-purple);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.history-btn:hover {
  background: var(--accent-purple);
  color: #fff;
}

.empty-history {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px 0;
}

/* Features Section */
.features-section {
  max-width: 1000px;
  margin: 60px auto 0;
}

.section-title {
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 35px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(16px);
  transition: var(--transition);
  text-align: left;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* FAQ Section */
.faq-section {
  max-width: 800px;
  margin: 60px auto 40px;
  text-align: left;
}

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: var(--transition);
}

.faq-item summary {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent-purple);
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-select, .form-input {
  background: rgba(0, 0, 0, 0.25);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
}

[data-theme="light"] .form-select,
[data-theme="light"] .form-input {
  background: rgba(0, 0, 0, 0.05);
}

.form-select:focus, .form-input:focus {
  border-color: var(--accent-purple);
}

.form-help {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.modal-footer {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease;
}

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

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.1);
}

/* Page Layouts (About / Privacy) */
.page-container {
  padding-top: 40px;
  padding-bottom: 60px;
}

.page-hero {
  margin-bottom: 45px;
}

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

.last-updated {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  margin-bottom: 35px;
  position: relative;
  overflow: hidden;
}

.about-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

/* Company Card */
.company-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 30px;
  align-items: center;
}

.company-info h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.company-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.website-link-box {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.ext-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.ext-link:hover {
  color: var(--accent-purple);
  text-decoration: underline;
}

.company-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

.stat-pill:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-num small {
  font-size: 0.9rem;
  color: var(--accent-purple);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

/* Founder Card */
.founder-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: center;
}

.founder-avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.avatar-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4);
}

.founder-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.founder-role {
  font-size: 0.8rem;
  color: var(--accent-purple);
  font-weight: 600;
  margin-top: 3px;
}

.company-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.founder-bio h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.founder-bio p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.founder-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.social-chip.facebook {
  background: rgba(24, 119, 242, 0.15);
  border: 1px solid rgba(24, 119, 242, 0.35);
  color: #38bdf8;
}

.social-chip.facebook:hover {
  background: #1877f2;
  color: #fff;
  transform: translateY(-2px);
}

.social-chip.website {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: var(--accent-purple);
}

.social-chip.website:hover {
  background: var(--accent-purple);
  color: #fff;
  transform: translateY(-2px);
}

/* Privacy Policy Styles */
.policy-card {
  text-align: left;
}

.policy-block {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.policy-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.policy-block h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.policy-block p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.policy-block ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.policy-block li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 6px;
}

.contact-pill-box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.contact-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-pill strong, .contact-pill a {
  color: var(--accent-cyan);
  text-decoration: none;
}

/* Enhanced Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 50px 0 32px;
  margin-top: 60px;
  background: #0d101e;
  backdrop-filter: blur(16px);
  transition: var(--transition);
}

[data-theme="light"] .footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.02);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 35px;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo-icon.small {
  width: 32px;
  height: 32px;
  font-size: 0.95rem;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.5;
}

[data-theme="light"] .footer-tagline {
  color: #64748b;
}

.footer-nav {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col h4,
.footer-nav h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.75px;
}

[data-theme="light"] .footer-col h4,
[data-theme="light"] .footer-nav h4 {
  color: #0f172a;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col a,
.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}

[data-theme="light"] .footer-col a,
[data-theme="light"] .footer-nav a {
  color: #475569;
}

.footer-col a:hover,
.footer-nav a:hover {
  color: var(--accent-purple);
  transform: translateX(3px);
}

[data-theme="light"] .footer-col a:hover,
[data-theme="light"] .footer-nav a:hover {
  color: var(--accent-purple);
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

[data-theme="light"] .footer-bottom {
  border-top-color: #e2e8f0;
  color: #64748b;
}

[data-theme="light"] .footer-bottom strong {
  color: #0f172a;
}

.footer-bottom a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
}

[data-theme="light"] .footer-bottom a {
  color: #0284c7;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

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

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

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

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

/* Platform Tabs Navigation */
.tabs-nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 1060px;
  margin: 0 auto 24px;
  background: rgba(18, 21, 38, 0.7);
  padding: 8px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  flex-wrap: wrap;
}

[data-theme="light"] .tabs-nav-bar {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.nav-tab-btn {
  flex: 1 1 180px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.nav-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transform: translateY(-2px);
}

[data-theme="light"] .nav-tab-btn:hover {
  background: rgba(0, 0, 0, 0.03);
}

.nav-tab-btn.active {
  background: var(--bg-card);
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--text-primary);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(139, 92, 246, 0.2);
}

[data-theme="light"] .nav-tab-btn.active {
  background: #ffffff;
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.12);
}

.tab-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.nav-tab-btn:hover .tab-icon {
  transform: scale(1.1);
}

.tab-icon.yt-music {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(139, 92, 246, 0.25) 100%);
  color: #ec4899;
  border: 1px solid rgba(236, 72, 153, 0.35);
}

.nav-tab-btn.active .tab-icon.yt-music {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.tab-icon.yt-video {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(244, 63, 94, 0.25) 100%);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.nav-tab-btn.active .tab-icon.yt-video {
  background: linear-gradient(135deg, #ef4444, #f43f5e);
  color: #fff;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.tab-icon.fb-brand {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.2) 0%, rgba(6, 182, 212, 0.25) 100%);
  color: #1877f2;
  border: 1px solid rgba(24, 119, 242, 0.35);
}

.nav-tab-btn.active .tab-icon.fb-brand {
  background: linear-gradient(135deg, #1877f2, #0284c7);
  color: #fff;
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.tab-icon.ig-brand {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.2) 0%, rgba(245, 96, 64, 0.25) 100%);
  color: #e1306c;
  border: 1px solid rgba(225, 48, 108, 0.35);
}

.nav-tab-btn.active .tab-icon.ig-brand {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #fff;
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
}

.tab-icon.tt-brand {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2) 0%, rgba(254, 44, 85, 0.25) 100%);
  color: #00f2fe;
  border: 1px solid rgba(0, 242, 254, 0.35);
}

.nav-tab-btn.active .tab-icon.tt-brand {
  background: linear-gradient(135deg, #00f2fe, #fe2c55);
  color: #fff;
  box-shadow: 0 4px 15px rgba(254, 44, 85, 0.4);
}

.tab-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.tab-text strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.tab-text small {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.tab-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.nav-tab-btn.active .tab-tag {
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Format Cards in Result Section (Facebook, Instagram, TikTok) */
.fb-options-grid,
.direct-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.fb-option-card,
.direct-option-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
  cursor: pointer;
}

.fb-option-card:hover,
.direct-option-card:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
}

.fb-opt-header,
.direct-opt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fb-opt-title,
.direct-opt-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.fb-opt-badge,
.direct-opt-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.fb-opt-desc,
.direct-opt-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.fb-opt-btn,
.direct-opt-btn {
  margin-top: 8px;
  background: var(--gradient-main);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  cursor: pointer;
}

.fb-option-card:hover .fb-opt-btn,
.direct-option-card:hover .direct-opt-btn {
  filter: brightness(1.1);
}

/* Responsive */
@media (max-width: 850px) {
  .hero-title { font-size: 2.1rem; }
  .result-grid { grid-template-columns: 1fr; }
  .thumb-wrapper { max-width: 420px; margin: 0 auto; }
  .input-form { flex-direction: column; }
  .primary-btn { padding: 14px; }
  .company-grid { grid-template-columns: 1fr; }
  .founder-grid { grid-template-columns: 1fr; text-align: center; }
  .founder-socials { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-nav { gap: 30px; }
  .nav-menu { display: none; }
  .tabs-nav-bar { flex-direction: column; gap: 8px; }
  .nav-tab-btn { width: 100%; }
}

/* ==================== COMPREHENSIVE LIGHT THEME OVERRIDES ==================== */
[data-theme="light"] body {
  background-color: #f8fafc;
  color: #0f172a;
}

[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .nav-link {
  color: #475569;
}

[data-theme="light"] .nav-link:hover {
  color: #0f172a;
  background: #f1f5f9;
}

[data-theme="light"] .nav-link.active {
  color: #7c3aed;
  background: rgba(139, 92, 246, 0.1);
}

[data-theme="light"] .icon-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .icon-btn:hover {
  background: #f8fafc;
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

[data-theme="light"] .hero-badge {
  background: rgba(139, 92, 246, 0.09);
  border-color: rgba(139, 92, 246, 0.25);
  color: #7c3aed;
}

[data-theme="light"] .hero-title {
  color: #0f172a;
}

[data-theme="light"] .hero-subtitle {
  color: #475569;
}

[data-theme="light"] .tabs-nav-bar {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .nav-tab-btn {
  color: #475569;
}

[data-theme="light"] .nav-tab-btn:hover {
  background: #f8fafc;
  color: #0f172a;
}

[data-theme="light"] .nav-tab-btn.active {
  background: #ffffff;
  border-color: rgba(139, 92, 246, 0.4);
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.12);
}

[data-theme="light"] .tab-text strong {
  color: #0f172a;
}

[data-theme="light"] .tab-text small {
  color: #64748b;
}

[data-theme="light"] .tab-tag {
  background: #f1f5f9;
  color: #64748b;
}

[data-theme="light"] .nav-tab-btn.active .tab-tag {
  background: rgba(139, 92, 246, 0.12);
  color: #7c3aed;
  border-color: rgba(139, 92, 246, 0.3);
}

[data-theme="light"] .downloader-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .input-wrapper {
  background: #f8fafc;
  border-color: #cbd5e1;
}

[data-theme="light"] .input-wrapper:focus-within {
  background: #ffffff;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

[data-theme="light"] .input-wrapper input {
  color: #0f172a;
}

[data-theme="light"] .input-wrapper input::placeholder {
  color: #94a3b8;
}

[data-theme="light"] .mini-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

[data-theme="light"] .mini-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .demo-label {
  color: #64748b;
}

[data-theme="light"] .demo-chip {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #334155;
}

[data-theme="light"] .demo-chip:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--accent-purple);
  color: #7c3aed;
}

[data-theme="light"] .loading-box {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .loading-box h3 {
  color: #0f172a;
}

[data-theme="light"] .loading-sub {
  color: #64748b;
}

[data-theme="light"] .result-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .video-title {
  color: #0f172a;
}

[data-theme="light"] .author-name {
  color: #475569;
}

[data-theme="light"] .views-count {
  color: #64748b;
}

[data-theme="light"] .quality-label {
  color: #0f172a;
}

[data-theme="light"] .quality-btn {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .quality-btn:hover {
  background: #f1f5f9;
  border-color: var(--accent-purple);
}

[data-theme="light"] .quality-btn.active {
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--accent-purple);
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.15);
}

[data-theme="light"] .q-name {
  color: #0f172a;
}

[data-theme="light"] .q-desc {
  color: #64748b;
}

[data-theme="light"] .fb-option-card,
[data-theme="light"] .direct-option-card {
  background: #f8fafc;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .fb-option-card:hover,
[data-theme="light"] .direct-option-card:hover {
  background: #ffffff;
  border-color: var(--accent-purple);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.14);
}

[data-theme="light"] .fb-opt-title,
[data-theme="light"] .direct-opt-title {
  color: #0f172a;
}

[data-theme="light"] .fb-opt-desc,
[data-theme="light"] .direct-opt-desc {
  color: #64748b;
}

[data-theme="light"] .audio-player-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .player-header {
  color: #334155;
}

[data-theme="light"] .player-play-btn {
  background: var(--accent-purple);
  color: #ffffff;
}

[data-theme="light"] .volume-box {
  color: #64748b;
}

[data-theme="light"] .filename-notice {
  color: #64748b;
}

[data-theme="light"] .filename-notice strong {
  color: #0f172a;
}

[data-theme="light"] .history-section {
  border-top-color: #e2e8f0;
}

[data-theme="light"] .history-title {
  color: #0f172a;
}

[data-theme="light"] .history-item {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .history-item:hover {
  background: #f8fafc;
  border-color: rgba(139, 92, 246, 0.35);
}

[data-theme="light"] .history-name {
  color: #0f172a;
}

[data-theme="light"] .history-sub {
  color: #64748b;
}

[data-theme="light"] .history-btn {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.25);
  color: var(--accent-purple);
}

[data-theme="light"] .history-btn:hover {
  background: var(--accent-purple);
  color: #ffffff;
}

[data-theme="light"] .section-title {
  color: #0f172a;
}

[data-theme="light"] .feature-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .feature-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.12);
}

[data-theme="light"] .feature-card h3 {
  color: #0f172a;
}

[data-theme="light"] .feature-card p {
  color: #475569;
}

[data-theme="light"] .feature-icon {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
}

[data-theme="light"] .faq-item {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .faq-item summary {
  color: #0f172a;
}

[data-theme="light"] .faq-item p {
  color: #475569;
}

[data-theme="light"] .about-card,
[data-theme="light"] .privacy-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .company-info h2,
[data-theme="light"] .founder-info h2,
[data-theme="light"] .privacy-section h2 {
  color: #0f172a;
}

[data-theme="light"] .company-desc,
[data-theme="light"] .founder-bio,
[data-theme="light"] .privacy-section p {
  color: #475569;
}

[data-theme="light"] .stat-pill {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .stat-num {
  color: #0f172a;
}

[data-theme="light"] .modal-box {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .modal-header {
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .modal-header h3 {
  color: #0f172a;
}

[data-theme="light"] .modal-footer {
  border-top-color: #e2e8f0;
}

[data-theme="light"] .form-group label {
  color: #334155;
}

[data-theme="light"] .form-select {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}
