/* ==========================================================================
   RODAN.FUN — SOCIAL MEDIA VIDEO DOWNLOADER STYLES
   BOLD & DARK OBSIDIAN / CRIMSON EDITION
   • Deep Void Obsidian Glass with Specular Edge Rim Light
   • Bold Editorial Typography (Plus Jakarta Sans 800 / 900)
   • Rich Crimson Neon Accents & Tactile High-Contrast Action Buttons
   • Cinematic Dark Vignette & Atmospheric Deep Glow
   ========================================================================== */

/* DARK THEME SCOPED OVERRIDES FOR DOWNLOADER */
body.downloader-page.dark-theme {
  --bg-canvas: #020103;
  --bg-card-glass: linear-gradient(165deg, rgba(16, 12, 19, 0.92) 0%, rgba(9, 6, 11, 0.96) 50%, rgba(4, 3, 5, 0.99) 100%);
  --bg-nav-glass: rgba(8, 4, 7, 0.92);
  --bg-pill: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-top: rgba(255, 255, 255, 0.28);
  --glass-border-hover: rgba(255, 77, 109, 0.45);
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.82);
  --text-muted: rgba(255, 255, 255, 0.52);
  --accent-ruby: #E11D48;
  --accent-dot: #FF2E5B;
  background-color: #020103;
}

/* CINEMATIC ATMOSPHERIC DARK VIGNETTE */
body.downloader-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(0, 0, 0, 0.25) 0%, rgba(2, 1, 3, 0.8) 75%, #020103 100%);
  pointer-events: none;
  z-index: 1;
}

/* DOWNLOADER MAIN WRAPPER */
.downloader-wrapper {
  max-width: 1080px;
  margin: 0 auto;
  padding: 108px 24px 70px;
  position: relative;
  z-index: 2;
}

/* FLOATING NAV PILL OVERRIDES (DARKER & SHARPER) */
body.downloader-page .nav-pill {
  background: rgba(8, 4, 7, 0.92);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.2),
    0 18px 40px rgba(0, 0, 0, 0.9);
}

.nav-divider {
  color: var(--text-muted);
  opacity: 0.6;
  font-size: 0.88rem;
  font-weight: 700;
}

.nav-current-page {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #FFFFFF;
}

.nav-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.nav-back-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateX(-3px);
  color: #FFFFFF;
}

/* ==========================================================================
   HERO HEADER (BOLD TYPOGRAPHY)
   ========================================================================== */
.downloader-header {
  text-align: center;
  margin-bottom: 42px;
}

.hero-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(225, 29, 72, 0.14);
  border: 1px solid rgba(255, 77, 109, 0.45);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: #FF7597;
  margin-bottom: 18px;
  box-shadow: 0 0 18px rgba(225, 29, 72, 0.28);
}

.category-icon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF2E5B;
  box-shadow: 0 0 10px #FF2E5B;
}

.downloader-header .portal-title {
  font-size: clamp(2.8rem, 5.2vw, 4.3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #FFFFFF;
  margin-bottom: 14px;
  text-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.95), 
    0 0 50px rgba(225, 29, 72, 0.35);
}

.downloader-header .portal-subtitle {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  max-width: 640px;
  margin: 0 auto;
}

/* ==========================================================================
   MAIN DOWNLOADER CARD (DARK OBSIDIAN GLASS)
   ========================================================================== */
.downloader-card {
  position: relative;
  background: linear-gradient(165deg, rgba(16, 12, 19, 0.92) 0%, rgba(9, 6, 11, 0.96) 50%, rgba(4, 3, 5, 0.99) 100%);
  backdrop-filter: blur(48px) saturate(200%);
  -webkit-backdrop-filter: blur(48px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--card-radius);
  box-shadow: 
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 35px rgba(225, 29, 72, 0.08),
    0 32px 70px -10px rgba(0, 0, 0, 0.92),
    0 12px 30px rgba(0, 0, 0, 0.7);
  padding: 42px 40px;
  overflow: hidden;
  margin-bottom: 34px;
  transition: box-shadow 0.35s ease, border-color 0.25s ease, transform 0.25s ease;
}

.downloader-card:hover {
  border-color: rgba(255, 77, 109, 0.45);
  box-shadow: 
    inset 0 2px 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 0 45px rgba(225, 29, 72, 0.15),
    0 38px 80px -12px rgba(225, 29, 72, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.95);
}

.downloader-card-body {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Meta status row */
.downloader-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.glass-tag-bold {
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  text-transform: uppercase;
}

.glass-tag-sub {
  font-size: 0.74rem;
  font-weight: 700;
  color: #FF5C7F;
  letter-spacing: 0.04em;
}

.engine-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.14);
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 800;
  color: #4ADE80;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulseLight 2s infinite;
}

@keyframes pulseLight {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* ==========================================================================
   INPUT FORM ROW (BOLD & DARK)
   ========================================================================== */
.url-input-form {
  display: flex;
  gap: 14px;
  align-items: stretch;
}

.input-glow-shell {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(2, 1, 3, 0.94);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  padding: 7px 14px 7px 20px;
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.85);
}

.input-glow-shell:focus-within {
  border-color: #FF2E5B;
  background: rgba(4, 2, 6, 0.98);
  box-shadow: 
    0 0 25px rgba(255, 46, 91, 0.45), 
    inset 0 0 12px rgba(255, 46, 91, 0.15);
}

.input-lead-icon {
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
}

.input-glow-shell input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

body:not(.dark-theme) .input-glow-shell input {
  color: #151210;
}

.input-glow-shell input::placeholder {
  color: rgba(255, 255, 255, 0.42);
  font-weight: 600;
}

.btn-paste-clip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-paste-clip:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.03);
}

/* BIG FETCH BUTTON — BOLD & PUNCHY */
.btn-fetch-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #FF1A4B 0%, #E11D48 60%, #9F1239 100%);
  border: 1px solid #FF5C7F;
  border-radius: var(--radius-pill);
  padding: 0 34px;
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.25s var(--transition-smooth);
  box-shadow: 
    0 6px 26px rgba(225, 29, 72, 0.75), 
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

.btn-fetch-submit:hover {
  background: linear-gradient(135deg, #FF3360 0%, #F43F5E 60%, #BE123C 100%);
  box-shadow: 
    0 8px 34px rgba(225, 29, 72, 0.9), 
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
  transform: translateY(-2px) scale(1.02);
}

.btn-fetch-submit .btn-arrow {
  font-size: 1.15rem;
  font-weight: 900;
  transition: transform 0.2s ease;
}

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

/* ==========================================================================
   SUPPORTED PLATFORMS QUICK SELECT (DARK CHIPS)
   ========================================================================== */
.platforms-quick-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.platforms-title {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.platform-chips {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(5, 3, 7, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.platform-chip .chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
}

.platform-chip:hover {
  background: rgba(24, 18, 28, 0.95);
  border-color: rgba(255, 255, 255, 0.32);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.platform-chip.active {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.35) 0%, rgba(159, 18, 57, 0.5) 100%);
  border: 1px solid #FF2E5B;
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(255, 46, 91, 0.45);
}

.platform-chip.active .chip-dot {
  background: #FF2E5B;
  box-shadow: 0 0 8px #FF2E5B;
}

/* ==========================================================================
   FETCH LOADING STATE
   ========================================================================== */
.fetch-loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px;
  background: rgba(3, 2, 5, 0.92);
  border: 1px dashed rgba(255, 77, 109, 0.35);
  border-radius: 22px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7);
}

.loading-ring {
  width: 28px;
  height: 28px;
  border: 3.5px solid rgba(255, 255, 255, 0.15);
  border-top-color: #FF2E5B;
  border-radius: 50%;
  animation: spinRing 0.8s linear infinite;
  box-shadow: 0 0 12px rgba(255, 46, 91, 0.5);
}

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

.loading-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   VIDEO RESULT PANEL (DARK OBSIDIAN / BOLD CONTRAST)
   ========================================================================== */
.video-result-panel {
  background: rgba(3, 2, 5, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  padding: 30px;
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.12),
    0 18px 40px rgba(0, 0, 0, 0.7);
}

.result-media-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center;
}

/* Thumbnail Art */
.result-thumb-card {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle at 60% 40%, #E11D48 0%, #881337 50%, #150207 100%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.8);
}

.thumb-artwork {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-badge-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease;
}

.result-thumb-card:hover .play-badge-icon {
  transform: scale(1.1);
}

.thumb-meta-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-sep {
  opacity: 0.5;
}

/* Result Info Box */
.result-details-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.res-platform-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-accent {
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FF5C7F;
  background: rgba(225, 29, 72, 0.2);
  border: 1.5px solid rgba(255, 77, 109, 0.5);
  padding: 4px 11px;
  border-radius: 7px;
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.25);
}

.badge-status {
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

.res-video-title {
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.res-author-text {
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.res-author-text strong {
  color: #FFFFFF;
  font-weight: 800;
}

/* Formats Selection (Bold & Dark) */
.formats-selection-block {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.formats-caption {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.format-buttons-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.format-pill-btn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(6, 4, 8, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 9px 16px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.format-pill-btn .fmt-title {
  font-size: 0.86rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.85);
}

.format-pill-btn .fmt-meta {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

.format-pill-btn:hover {
  background: rgba(26, 20, 32, 0.95);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
}

.format-pill-btn.active {
  background: #FFFFFF;
  border-color: #FFFFFF;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.format-pill-btn.active .fmt-title {
  color: #050203;
  font-weight: 900;
}

.format-pill-btn.active .fmt-meta {
  color: #9F1239;
  font-weight: 800;
}

/* Download Hero Action Button */
.result-download-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn-download-hero {
  background: linear-gradient(135deg, #FF1A4B 0%, #E11D48 60%, #9F1239 100%);
  border: 1px solid #FF5C7F;
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  font-size: 0.94rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 
    0 6px 26px rgba(225, 29, 72, 0.75), 
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
  transition: all 0.25s var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-download-hero:hover {
  background: linear-gradient(135deg, #FF3360 0%, #F43F5E 60%, #BE123C 100%);
  box-shadow: 0 8px 34px rgba(225, 29, 72, 0.9);
  transform: translateY(-2px) scale(1.02);
}

.dl-symbol {
  font-size: 1.15rem;
  font-weight: 900;
}

.download-hint-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

/* Progress Simulation */
.download-progress-shell {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
}

.progress-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 800;
  color: #FF5C7F;
}

.progress-track {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #E11D48, #FF4D6D);
  border-radius: 9999px;
  box-shadow: 0 0 12px #FF2E5B;
  transition: width 0.15s ease;
}

/* ==========================================================================
   FEATURES TILES GRID (3 COLUMNS, DARK & BOLD)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  position: relative;
  background: linear-gradient(165deg, rgba(14, 10, 16, 0.88) 0%, rgba(6, 4, 8, 0.96) 100%);
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 26px;
  padding: 30px 24px;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    0 22px 48px -10px rgba(0, 0, 0, 0.85);
  transition: transform 0.25s var(--transition-smooth), border-color 0.2s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 77, 109, 0.45);
  box-shadow: 
    inset 0 1.5px 1px rgba(255, 255, 255, 0.25),
    0 28px 56px -12px rgba(225, 29, 72, 0.3),
    0 16px 36px rgba(0, 0, 0, 0.9);
}

.feature-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(225, 29, 72, 0.14);
  border: 1.5px solid rgba(255, 77, 109, 0.35);
  color: #FF5C7F;
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

/* ==========================================================================
   IN-BROWSER VIDEO PREVIEW PLAYER
   ========================================================================== */
.btn-preview-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.25s var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-preview-action:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 46, 91, 0.6);
  box-shadow: 0 0 20px rgba(255, 46, 91, 0.35);
  transform: translateY(-2px);
}

.btn-preview-action.active-playing {
  background: rgba(225, 29, 72, 0.25);
  border-color: #FF2E5B;
  box-shadow: 0 0 22px rgba(255, 46, 91, 0.5);
}

.preview-btn-icon {
  font-size: 0.95rem;
  color: #FF4D6D;
}

.btn-close-player {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-player:hover {
  background: #E11D48;
  border-color: #FF4D6D;
  transform: scale(1.1);
}

/* ==========================================================================
   DOWNLAODER EXTRA SECTIONS & HEADERS
   ========================================================================== */
.downloader-section {
  margin-top: 80px;
}

.section-badge-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-mini-pill {
  display: inline-block;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(255, 77, 109, 0.35);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #FF7597;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 10px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.8);
}

.section-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ==========================================================================
   WORKFLOW (3-STEP GUIDE)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step-card {
  position: relative;
  background: linear-gradient(165deg, rgba(14, 10, 16, 0.88) 0%, rgba(6, 4, 8, 0.96) 100%);
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 26px;
  padding: 34px 26px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 20px 45px -10px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  transition: transform 0.25s var(--transition-smooth), border-color 0.2s ease, box-shadow 0.25s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 77, 109, 0.45);
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.25), 0 26px 52px -12px rgba(225, 29, 72, 0.3);
}

.step-number {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
  letter-spacing: -0.04em;
}

.step-icon-shell {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(225, 29, 72, 0.14);
  border: 1.5px solid rgba(255, 77, 109, 0.35);
  color: #FF5C7F;
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 20px;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.step-desc strong {
  color: #FFFFFF;
}

/* ==========================================================================
   SUPPORTED PLATFORMS MATRIX
   ========================================================================== */
.platform-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.platform-feature-card {
  background: linear-gradient(165deg, rgba(14, 10, 16, 0.85) 0%, rgba(6, 4, 8, 0.94) 100%);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  padding: 24px 22px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.platform-feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
}

.pf-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pf-icon {
  font-size: 1.6rem;
}

.pf-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pf-name {
  font-size: 1.05rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.pf-status {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FF5C7F;
}

.pf-capabilities {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pf-capabilities li {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   INTERACTIVE ACCORDION FAQ SECTION
   ========================================================================== */
.faq-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}

.faq-item {
  background: linear-gradient(165deg, rgba(14, 10, 16, 0.88) 0%, rgba(6, 4, 8, 0.96) 100%);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.faq-item.active {
  border-color: rgba(255, 46, 91, 0.5);
  box-shadow: 0 12px 32px rgba(225, 29, 72, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-q-text {
  font-size: 1.02rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.faq-toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #FF5C7F;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.2s ease;
}

.faq-item.active .faq-toggle-icon {
  background: rgba(225, 29, 72, 0.25);
  border-color: #FF2E5B;
  color: #FFFFFF;
  transform: rotate(180deg);
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--transition-smooth), padding 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  padding: 0 24px;
}

.faq-item.active .faq-answer-panel {
  opacity: 1;
  padding-bottom: 22px;
}

.faq-answer-panel p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.faq-answer-panel strong {
  color: #FFFFFF;
}

/* PRO TIP CALLOUT */
.faq-pro-tip-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: linear-gradient(145deg, rgba(22, 12, 18, 0.85) 0%, rgba(8, 4, 7, 0.95) 100%);
  border: 1px solid rgba(255, 77, 109, 0.3);
  border-left: 3px solid #FF2E5B;
  border-radius: 20px;
  padding: 24px;
  max-width: 920px;
  margin: 30px auto 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.tip-icon-glow {
  font-size: 1.8rem;
  line-height: 1;
}

.tip-title {
  font-size: 0.98rem;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.tip-text {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.tip-text code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: #FF6B8B;
  font-size: 0.82rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN FOR NEW SECTIONS
   ========================================================================== */
/* ==========================================================================
   RESPONSIVE MOBILE & TOUCH DESIGN SYSTEM
   ========================================================================== */
@media (max-width: 860px) {
  .downloader-wrapper {
    padding: calc(72px + env(safe-area-inset-top, 12px)) 16px 40px;
    width: 100%;
  }

  .downloader-header {
    margin-bottom: 24px;
  }

  .portal-title {
    font-size: clamp(1.85rem, 7.5vw, 2.8rem) !important;
  }

  .portal-subtitle {
    font-size: 0.95rem;
    padding: 0 4px;
  }

  .downloader-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .downloader-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .engine-status-pill {
    align-self: flex-start;
  }

  /* Input Form */
  .url-input-form {
    flex-direction: column;
    gap: 12px;
  }

  .input-glow-shell {
    padding: 8px 12px 8px 16px;
    min-height: 52px;
    border-radius: 18px;
  }

  .input-glow-shell input {
    font-size: 16px !important; /* Critical: Prevents iOS Safari from auto-zooming */
  }

  .btn-paste-clip {
    min-height: 38px;
    padding: 7px 14px;
    font-size: 0.82rem;
  }

  .btn-fetch-submit {
    width: 100%;
    height: 52px;
    font-size: 1rem;
    justify-content: center;
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.6);
  }

  /* Platforms Quick Bar */
  .platforms-quick-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .platform-chips {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 2px 8px;
    scroll-snap-type: x proximity;
  }

  .platform-chips::-webkit-scrollbar {
    display: none;
  }

  .platform-chip {
    flex-shrink: 0;
    scroll-snap-align: start;
    min-height: 38px;
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  /* Video Result Panel */
  .video-result-panel {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .result-media-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .result-thumb-card {
    max-height: 220px;
    width: 100%;
    border-radius: 16px;
  }

  .res-title-text {
    font-size: 1.15rem;
  }

  .format-buttons-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
  }

  .format-pill-btn {
    padding: 8px 6px;
    text-align: center;
    align-items: center;
    border-radius: 12px;
  }

  .format-pill-btn .fmt-title {
    font-size: 0.8rem;
  }

  .format-pill-btn .fmt-meta {
    font-size: 0.68rem;
  }

  .result-download-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .btn-download-hero {
    width: 100%;
    min-height: 50px;
    justify-content: center;
    font-size: 0.95rem;
  }

  .btn-preview-action {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    font-size: 0.9rem;
  }

  .preview-video-container {
    border-radius: 16px;
  }

  .btn-close-player {
    width: 38px;
    height: 38px;
    top: 8px;
    right: 8px;
  }

  /* Grids */
  .features-grid, .steps-grid, .platform-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-card, .step-card, .platform-feature-card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  /* FAQ Accordion */
  .faq-item {
    border-radius: 18px;
  }

  .faq-question-btn {
    padding: 18px 16px;
    gap: 12px;
  }

  .faq-q-text {
    font-size: 0.95rem;
  }

  .faq-answer-panel {
    padding: 0 16px 18px;
  }

  .faq-pro-tip-box {
    padding: 18px 16px;
    border-radius: 18px;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .nav-pill {
    width: calc(100% - 16px);
    padding: 7px 12px;
    gap: 8px;
  }

  .nav-divider, 
  .nav-current-page {
    display: none;
  }

  .nav-back-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* Touchscreens: Prevent sticky hover states on tap */
@media (hover: none) and (pointer: coarse) {
  .btn-fetch-submit:hover,
  .btn-download-hero:hover,
  .btn-preview-action:hover,
  .platform-chip:hover {
    transform: none;
  }
  
  .btn-fetch-submit:active,
  .btn-download-hero:active,
  .btn-preview-action:active,
  .platform-chip:active {
    transform: scale(0.97);
  }
}

