/* ==========================================================================
   UNIVERSAL HD VIDEO DOWNLOADER - ULTRA MODERN LUXURY DARK UI (v4.0)
   Designed with Glassmorphism, Aurora Gradients & Polished Micro-interactions
   ========================================================================== */

:root {
  /* Core Color Palette */
  --bg-dark: #070a13;
  --bg-surface: rgba(15, 23, 42, 0.72);
  --bg-surface-elevated: rgba(30, 41, 59, 0.75);
  --bg-input: rgba(15, 23, 42, 0.85);
  
  /* Borders & Glass Highlights */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.16);
  --glass-reflect: inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
  
  /* Vibrant Accents */
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --primary-hover: #4f46e5;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.35);
  --danger: #ef4444;
  
  /* Typography */
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  /* Radii */
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  
  /* Dimensions */
  --header-height: 64px;
  --bottom-nav-height: 64px;
  --max-content-width: 900px;
}

/* ================= RESET & GLOBAL STYLES ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(236, 72, 153, 0.10) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(6, 182, 212, 0.06) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Background Ambient Aurora Glows */
.bg-glow-1 {
  position: fixed;
  width: 650px;
  height: 650px;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(139, 92, 246, 0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
  animation: floatPulse 12s ease-in-out infinite alternate;
}

.bg-glow-2 {
  position: fixed;
  width: 500px;
  height: 500px;
  bottom: 80px;
  right: -100px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, rgba(6, 182, 212, 0.06) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
  animation: floatPulse 10s ease-in-out infinite alternate-reverse;
}

@keyframes floatPulse {
  0% { transform: translate(-50%, 0) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, 25px) scale(1.08); opacity: 1; }
}

/* ================= TOP STICKY APP HEADER ================= */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(7, 10, 19, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover .logo-icon {
  transform: scale(1.08) rotate(4deg);
}

.logo-text h1 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.1;
  color: #fff;
}

.logo-text h1 span {
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-pro {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Desktop Navigation Menu */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(15, 23, 42, 0.6);
  padding: 4px 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-link {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.25));
  color: #fff;
  border: 1px solid rgba(129, 140, 248, 0.35);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
}

.badge-count {
  background: var(--accent-pink);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

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

.btn-apk-header {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

.btn-apk-header:hover {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.apk-chip {
  background: rgba(0, 0, 0, 0.3);
  color: #a7f3d0;
  padding: 1px 5px;
  border-radius: 6px;
  font-size: 0.58rem;
  font-weight: 800;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 5px 11px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

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

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

/* ================= MAIN CONTAINER ================= */
.main-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-content-width);
  padding: calc(var(--header-height) + 1.8rem) 1.25rem calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 16px) + 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* View switching */
.app-view {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: viewFade 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Compact Non-Intrusive App Banner */
.apk-promo-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: var(--radius-md);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.banner-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(52, 211, 153, 0.2);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.banner-text h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.banner-text p {
  font-size: 0.7rem;
  color: #a7f3d0;
  line-height: 1.2;
  margin-top: 1px;
}

.banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-banner-download {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  outline: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-banner-download:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.btn-banner-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  transition: color 0.2s;
}

.btn-banner-close:hover {
  color: #fff;
}

/* ================= HERO SECTION ================= */
.hero-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding: 0.5rem 0 0.8rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: #fff;
  max-width: 680px;
}

.gradient-text {
  background: linear-gradient(135deg, #a5b4fc 0%, #c084fc 35%, #f472b6 70%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 35px rgba(168, 85, 247, 0.3);
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.5;
  font-weight: 400;
}

/* ================= PLATFORM PILLS ================= */
.platform-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.2rem;
  transition: all 0.3s ease;
}

.pill {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pill:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: var(--border-highlight);
  color: #fff;
  transform: translateY(-2px);
}

/* Platform-Specific Icons */
.pill.youtube i { color: #ff0000; font-size: 0.9rem; }
.pill.tiktok i { color: #25f4ee; font-size: 0.9rem; }
.pill.instagram i { color: #e1306c; font-size: 0.9rem; }
.pill.facebook i { color: #1877f2; font-size: 0.9rem; }
.pill.twitter i { color: #f8fafc; font-size: 0.9rem; }

/* Active & Auto-Detected Highlight States */
.pill.active-pill {
  transform: translateY(-3px) scale(1.08);
  font-weight: 700;
}

.pill.youtube.active-pill {
  background: rgba(255, 0, 0, 0.18);
  border-color: rgba(255, 0, 0, 0.8);
  color: #ff6b6b;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.4), inset 0 0 10px rgba(255, 0, 0, 0.15);
}

.pill.tiktok.active-pill {
  background: rgba(37, 244, 238, 0.18);
  border-color: rgba(37, 244, 238, 0.8);
  color: #25f4ee;
  box-shadow: 0 0 20px rgba(37, 244, 238, 0.4), inset 0 0 10px rgba(37, 244, 238, 0.15);
}

.pill.instagram.active-pill {
  background: rgba(225, 48, 108, 0.18);
  border-color: rgba(225, 48, 108, 0.8);
  color: #f472b6;
  box-shadow: 0 0 20px rgba(225, 48, 108, 0.4), inset 0 0 10px rgba(225, 48, 108, 0.15);
}

.pill.facebook.active-pill {
  background: rgba(24, 119, 242, 0.18);
  border-color: rgba(24, 119, 242, 0.8);
  color: #60a5fa;
  box-shadow: 0 0 20px rgba(24, 119, 242, 0.4), inset 0 0 10px rgba(24, 119, 242, 0.15);
}

.pill.twitter.active-pill {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
}

.platform-pills.has-detected .pill:not(.active-pill) {
  opacity: 0.4;
  transform: scale(0.95);
}

/* ================= MODERN INPUT OMNIBAR CARD ================= */
.input-card {
  width: 100%;
  max-width: 740px;
  margin-top: 0.4rem;
}

.input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 7px 8px 7px 18px;
  box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.6), var(--glass-reflect);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 10px;
}

.input-wrapper:focus-within {
  border-color: rgba(129, 140, 248, 0.8);
  box-shadow: 0 15px 45px -8px rgba(0, 0, 0, 0.7), 0 0 0 3px rgba(99, 102, 241, 0.25), var(--glass-reflect);
  transform: translateY(-2px);
}

.input-field-row {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

.input-icon {
  font-size: 1.15rem;
  color: var(--primary);
  margin-right: 12px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
}

.input-wrapper input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.2px;
}

.input-wrapper input::placeholder {
  color: #64748b;
  font-weight: 400;
}

.btn-clear {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #94a3b8;
  font-size: 0.85rem;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-right: 4px;
}

.btn-clear:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-paste {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  outline: none;
  padding: 8px 13px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-paste:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: var(--border-highlight);
}

.btn-fetch {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  color: #fff;
  border: none;
  outline: none;
  padding: 12px 22px;
  border-radius: var(--radius-lg);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-fetch:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.btn-fetch:active {
  transform: scale(0.97);
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.btn-fetch:hover .btn-arrow {
  transform: translateX(3px);
}

/* Alert Box */
.alert-box {
  width: 100%;
  max-width: 740px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  margin-top: 0.5rem;
  backdrop-filter: blur(10px);
}

.alert-box.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2);
}

.alert-box.info {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
}

/* Loading Box */
.loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.5rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), var(--glass-reflect);
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(99, 102, 241, 0.18);
  border-top-color: var(--primary);
  border-right-color: var(--accent-pink);
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

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

#loadingText {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
}

/* ================= RESULT CARD (VIDEO PREVIEW & QUALITY) ================= */
.result-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), var(--glass-reflect);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  animation: fadeInCard 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.video-preview-header {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
}

.thumbnail-wrapper {
  position: relative;
  width: 240px;
  min-width: 200px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

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

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

.duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.platform-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.video-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.video-title {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  letter-spacing: -0.3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.author-tag, .views-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.author-tag i {
  color: var(--primary);
}

.views-tag i {
  color: var(--success);
}

/* Format Selection Area */
.format-selection-area {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.format-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.format-heading i {
  color: var(--primary);
}

/* Segmented Tab Switcher */
.format-tabs {
  display: flex;
  gap: 4px;
  background: rgba(10, 15, 28, 0.7);
  padding: 4px;
  border-radius: var(--radius-md);
  width: fit-content;
  border: 1px solid var(--border-subtle);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

/* Formats Grid */
.formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.format-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  user-select: none;
}

.format-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.format-card:active {
  transform: scale(0.98);
}

.format-card.selected {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.12));
  border-color: rgba(129, 140, 248, 0.85);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.format-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.format-quality {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
}

.format-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.badge-hd {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.badge-sd {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.badge-audio {
  background: rgba(236, 72, 153, 0.18);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.35);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.2);
}

.badge-mute {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.format-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ================= ACTION BOX & DOWNLOAD CTA ================= */
.action-box {
  margin-top: 0.5rem;
}

.btn-download {
  width: 100%;
  min-height: 54px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  outline: none;
  padding: 14px 24px;
  border-radius: var(--radius-lg);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: -0.2px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-download:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  filter: brightness(1.06);
}

.btn-download:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-download:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
  border: 1px solid var(--border-subtle);
}

/* Animated Shimmer on Download Button */
.btn-download::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transform: rotate(30deg);
  animation: buttonShimmer 4s infinite linear;
  pointer-events: none;
}

@keyframes buttonShimmer {
  0% { transform: translateX(-100%) rotate(30deg); }
  25% { transform: translateX(100%) rotate(30deg); }
  100% { transform: translateX(100%) rotate(30deg); }
}

/* ================= LIVE PROGRESS AREA ================= */
.progress-area {
  background: rgba(10, 15, 28, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0.5rem;
  backdrop-filter: blur(14px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
}

.progress-status {
  color: var(--text-secondary);
}

.progress-percent {
  color: #818cf8;
  font-weight: 800;
  font-feature-settings: "tnum";
}

.progress-bar-bg {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%);
  border-radius: var(--radius-full);
  transition: width 0.25s ease-out;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}

.progress-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Download Completed Box */
.completed-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-top: 8px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.completed-icon {
  font-size: 1.8rem;
  color: #34d399;
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.5));
}

.completed-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #34d399;
}

.completed-text p {
  font-size: 0.78rem;
  color: #a7f3d0;
  margin-top: 2px;
}

/* ================= 3-COLUMN FEATURE BENTO CARDS ================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 0.5rem;
  width: 100%;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--glass-reflect);
}

.feature-card:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-highlight);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5), var(--glass-reflect);
}

.feat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.18));
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 4px;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.feature-card:nth-child(2) .feat-icon {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(244, 63, 94, 0.18));
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.3);
}

.feature-card:nth-child(3) .feat-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(6, 182, 212, 0.18));
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.feature-card h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

.feature-card p {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ================= VIEW HEADERS & LISTS (HISTORY, PLATFORMS, GUIDE) ================= */
.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.view-title {
  font-size: 1.45rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.view-title i {
  color: var(--primary);
}

.view-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.btn-secondary-sm {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-secondary-sm:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fff;
}

/* History List */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  gap: 14px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(14px);
}

.history-item:hover {
  background: var(--bg-surface-elevated);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.history-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.history-thumb {
  width: 72px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #000;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.history-meta {
  min-width: 0;
}

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

.history-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 3px;
}

.btn-history-load {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s;
}

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

.empty-history {
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.empty-history i {
  font-size: 2.8rem;
  color: #334155;
}

/* Platforms Showcase Grid */
.platforms-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.platform-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(14px);
}

.platform-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.p-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.8rem;
}

.tiktok-card .p-card-top i { color: #25f4ee; }
.youtube-card .p-card-top i { color: #ff0000; }
.instagram-card .p-card-top i { color: #e1306c; }
.facebook-card .p-card-top i { color: #1877f2; }
.twitter-card .p-card-top i { color: #ffffff; }
.more-card .p-card-top i { color: var(--accent-cyan); }

.p-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.platform-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.platform-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Guide Steps Grid */
.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.guide-step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  backdrop-filter: blur(14px);
}

.step-number {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  font-feature-settings: "tnum";
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(236, 72, 153, 0.25));
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.guide-step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.guide-step-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ================= MOBILE BOTTOM STICKY NAVIGATION BAR ================= */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--bottom-nav-height);
  background: rgba(7, 10, 19, 0.92);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-top: 1px solid var(--border-subtle);
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.6);
}

.mobile-nav-item {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  padding: 6px 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.mobile-nav-item:active {
  transform: scale(0.92);
}

.nav-icon-wrap {
  position: relative;
  font-size: 1.25rem;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-label {
  font-size: 0.68rem;
  font-weight: 600;
  margin-top: 3px;
}

.mobile-nav-item.active {
  color: #818cf8;
}

.mobile-nav-item.active .nav-icon-wrap {
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.8));
}

.nav-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--accent-pink);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: var(--radius-full);
}

.hidden {
  display: none !important;
}

/* ================= MODAL STYLES (APK & PWA) ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal-card {
  position: relative;
  max-width: 440px;
  width: 100%;
  background: #0f172a;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(99, 102, 241, 0.2);
  animation: modalPopIn 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  font-size: 1.3rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

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

.modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.1rem;
}

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.modal-header-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.modal-sub {
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 3px;
}

.modal-features {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.m-feat {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 9px;
}

.m-feat i {
  color: #10b981;
  font-size: 0.8rem;
}

.modal-install-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1.1rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.step-item .num {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.25);
  color: #818cf8;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-modal-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s;
  width: 100%;
}

.btn-modal-download:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn-modal-download-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.btn-modal-download-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ================= RESPONSIVE MOBILE BREAKPOINTS (< 768px) ================= */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
    --bottom-nav-height: 58px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .main-content {
    padding-top: calc(var(--header-height) + 14px);
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 12px) + 20px);
    padding-left: 0.95rem;
    padding-right: 0.95rem;
    gap: 1.15rem;
  }

  .hero-title {
    font-size: 1.65rem;
    letter-spacing: -0.5px;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  /* Compact Omnibar on Mobile */
  .input-wrapper {
    flex-direction: column;
    padding: 10px;
    gap: 10px;
    border-radius: var(--radius-lg);
  }

  .input-field-row {
    width: 100%;
    padding: 2px 4px;
  }

  .input-wrapper input {
    font-size: 0.92rem;
  }

  .btn-fetch {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  /* Result Card on Mobile */
  .result-card {
    padding: 1.15rem;
    border-radius: var(--radius-lg);
    gap: 1rem;
  }

  .video-preview-header {
    flex-direction: column;
    gap: 0.85rem;
  }

  .thumbnail-wrapper {
    width: 100%;
    min-width: unset;
  }

  .video-title {
    font-size: 1.05rem;
  }

  /* 2-Column Formats on Mobile */
  .formats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .format-card {
    padding: 10px 10px;
  }

  .format-quality {
    font-size: 0.88rem;
  }

  .format-sub {
    font-size: 0.68rem;
  }

  /* Features Grid on Mobile */
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
  }

  .feature-card {
    padding: 10px 6px;
  }

  .feat-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .feature-card h3 {
    font-size: 0.72rem;
  }

  .feature-card p {
    font-size: 0.62rem;
  }

  .platforms-showcase-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .guide-steps-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}
