/* ==========================================================================
   VideoMate Ultra - Premium Glassmorphism Design Systemheet
   ========================================================================== */

/* Design Tokens & CSS Variables */
:root {
  --font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', var(--font-primary);

  /* Color Palette */
  --bg-dark: #090d16;
  --bg-card: rgba(18, 26, 43, 0.7);
  --bg-card-hover: rgba(26, 37, 62, 0.85);
  --bg-input: rgba(13, 19, 33, 0.8);
  
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glass-glow: rgba(99, 102, 241, 0.5);

  --accent-purple: #6366f1;
  --accent-purple-glow: rgba(99, 102, 241, 0.4);
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-orange: #f97316;
  --accent-red: #ef4444;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.3);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

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

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

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

/* Ambient Background Glow Orbs */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  animation: pulseGlow 10s ease-in-out infinite alternate;
}

.bg-glow-1 {
  top: -10%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-purple), transparent 70%);
}

.bg-glow-2 {
  top: 40%;
  right: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--accent-pink), transparent 70%);
}

.bg-glow-3 {
  bottom: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
}

@keyframes pulseGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.3; }
  50% { transform: scale(1.15) translate(30px, -20px); opacity: 0.45; }
  100% { transform: scale(0.95) translate(-20px, 30px); opacity: 0.35; }
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.gradient-text {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }
.hidden { display: none !important; }
.space-between { display: flex; justify-content: space-between; align-items: center; }

/* Container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.navbar {
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  box-shadow: 0 0 20px var(--accent-purple-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.brand-title .highlight {
  color: var(--accent-pink);
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(18, 26, 43, 0.6);
  padding: 0.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

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

.nav-btn.active {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: white;
  box-shadow: 0 4px 15px var(--accent-purple-glow);
}

.badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--accent-green);
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Main Content Layout */
.main-wrapper {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.tab-content.active {
  display: block;
}

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

/* Hero Section */
.hero-section {
  margin-bottom: 2.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-purple);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

/* Platform Selection Hub */
.platform-hub {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.hub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.hub-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hub-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.platform-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.platform-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transition: var(--transition-fast);
}

.platform-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.platform-chip.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(236, 72, 153, 0.25));
  border-color: var(--border-glass-glow);
  color: white;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.icon-auto { color: var(--accent-purple); }
.icon-yt { color: #ff0000; }
.icon-ig { color: #e1306c; }
.icon-tt { color: #00f2fe; }
.icon-x { color: #ffffff; }
.icon-fb { color: #1877f2; }
.icon-pin { color: #e60023; }
.icon-rd { color: #ff4500; }
.icon-th { color: #ffffff; }
.icon-vm { color: #1ab7ea; }

/* Input Card */
.input-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
}

.input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.input-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.platform-detected-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.input-group-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-relative {
  position: relative;
  width: 100%;
}

.input-left-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.main-url-input {
  width: 100%;
  background: var(--bg-input);
  border: 2px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.1rem 3rem 1.1rem 3.25rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-primary);
  outline: none;
  transition: var(--transition-fast);
}

.main-url-input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px var(--accent-purple-glow);
}

.btn-clear {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-clear:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.input-actions-bar {
  display: flex;
  gap: 0.75rem;
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
  color: white;
  border: none;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: var(--transition-fast);
  box-shadow: 0 4px 20px var(--accent-purple-glow);
  flex: 2;
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  flex: 1;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* Sample Links Chips */
.sample-links-bar {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-glass);
}

.sample-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sample-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.sample-chip:hover {
  background: rgba(99, 102, 241, 0.15);
  color: white;
  border-color: var(--accent-purple);
}

/* Loading State Card */
.loading-container {
  margin-bottom: 2rem;
}

.loader-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass-glow);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-glow);
}

.spinner-ring {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--accent-purple);
  border-right-color: var(--accent-pink);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  animation: spin 0.9s linear infinite;
}

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

.loader-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.loader-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.progress-bar-track {
  width: 100%;
  max-width: 420px;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  margin: 0 auto;
  overflow: hidden;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink), var(--accent-cyan));
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

/* Extracted Result Card */
.result-card-container {
  margin-bottom: 2.5rem;
  animation: slideUp 0.5s ease-out;
}

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

.result-card {
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  border: 1px solid var(--border-glass-glow);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.2);
}

.media-preview-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.media-thumbnail-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
  border: 1px solid var(--border-glass);
}

.result-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.duration-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}

.play-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(236, 72, 153, 0.6);
  transition: var(--transition-fast);
}

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

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

.meta-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.platform-tag {
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-purple);
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hd-tag {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

.views-tag {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
}

.media-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: white;
}

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

.meta-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.quick-action-btns {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.action-pill-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.action-pill-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

/* Download Formats Tabs */
.download-tabs-wrapper {
  background: rgba(9, 13, 22, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  padding: 1.25rem;
}

.download-tab-headers {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
}

.dl-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-heading);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.dl-tab-btn:hover {
  color: var(--text-primary);
}

.dl-tab-btn.active {
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-purple);
}

.dl-tab-panel {
  display: none;
}

.dl-tab-panel.active {
  display: block;
}

.format-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.format-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.format-item-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.format-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.format-res-badge {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: white;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  font-family: var(--font-heading);
  min-width: 70px;
  text-align: center;
}

.format-res-badge.audio-badge {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-orange));
}

.format-res-badge.extra-badge {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
}

.format-title {
  font-weight: 700;
  font-size: 0.95rem;
}

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

.btn-download-format {
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: white;
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

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

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

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

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.icon-purple { background: rgba(99, 102, 241, 0.15); color: var(--accent-purple); }
.icon-pink { background: rgba(236, 72, 153, 0.15); color: var(--accent-pink); }
.icon-blue { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.icon-green { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }

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

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

/* Section Card (Batch, Converter, History, FAQ) */
.section-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.section-header {
  margin-bottom: 1.75rem;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.section-title-wrap h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

.section-title-wrap p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Batch Downloader */
.batch-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 2px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
  color: var(--text-primary);
  font-family: monospace;
  font-size: 0.95rem;
  outline: none;
  margin-bottom: 1rem;
  resize: vertical;
}

.batch-textarea:focus {
  border-color: var(--accent-purple);
}

.batch-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.batch-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.batch-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
}

/* Converter */
.converter-box {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.converter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.conv-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.conv-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.conv-input, .conv-select {
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
}

/* History Grid */
.history-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.history-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.history-thumb {
  width: 90px;
  height: 55px;
  object-fit: cover;
  border-radius: 8px;
}

.history-details {
  flex: 1;
  overflow: hidden;
}

.history-title {
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.empty-state {
  padding: 3rem 1rem;
}

.empty-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.25rem;
}

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

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass-glow);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

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

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-close:hover { color: white; }

.modal-body {
  padding: 1.25rem 1.5rem;
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  background: rgba(9, 13, 22, 0.6);
  border-top: 1px solid var(--border-glass);
}

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

.toast-msg {
  background: rgba(18, 26, 43, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass-glow);
  color: white;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease-out forwards;
}

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

/* Footer */
.app-footer {
  border-top: 1px solid var(--border-glass);
  background: rgba(9, 13, 22, 0.9);
  padding: 2.5rem 0;
  margin-top: 3rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.footer-disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.25rem;
}

.footer-links {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  margin: 0 0.4rem;
}

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

.copyright-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .media-preview-row {
    grid-template-columns: 1fr;
  }
  .converter-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */

/* Tablet & Smaller Laptops */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Devices & Small Tablets */
@media (max-width: 768px) {
  /* Navbar */
  .nav-container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem;
  }
  
  .nav-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
  
  .status-indicator {
    display: none; /* Hide on small mobile to save space */
  }

  /* Hero */
  .hero-title {
    font-size: 2rem;
  }
  .hero-lead {
    font-size: 1rem;
    padding: 0 1rem;
  }

  /* Search Input Area */
  .search-input-group {
    flex-direction: column;
    border-radius: var(--radius-md);
  }
  
  .url-input {
    border-radius: var(--radius-md);
    text-align: center;
    border-bottom: 1px solid var(--border-glass);
  }
  
  .btn-download-main {
    border-radius: var(--radius-md);
    width: 100%;
    margin-top: 0.5rem;
  }
  
  .input-actions-bar {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .btn-secondary {
    width: 100%;
  }

  /* Platform Grid */
  .platform-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Sample Links */
  .sample-links-bar {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Result Card */
  .media-preview-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .media-thumbnail-wrapper {
    width: 100%;
    max-width: 320px;
  }
  
  .media-meta-details {
    width: 100%;
    align-items: center;
  }
  
  .meta-tags {
    justify-content: center;
  }
  
  .quick-action-btns {
    justify-content: center;
    flex-wrap: wrap;
  }

  .download-tab-headers {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .dl-tab-btn {
    width: 100%;
  }

  .format-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
  }
  
  .fmt-info {
    width: 100%;
  }
  
  .fmt-actions {
    width: 100%;
    justify-content: flex-start;
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Small Phones */
@media (max-width: 480px) {
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .fmt-actions {
    flex-direction: column;
  }
  
  .btn-sm {
    width: 100%;
  }
}
