/* ═══════════════════════════════════════════
   YTSave Pro — Design System
   Dark-mode, YouTube-inspired, premium UI
   ═══════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --primary: #FF0000;
  --primary-dark: #CC0000;
  --primary-light: #FF4444;
  --bg: #0F0F0F;
  --bg-alt: #050505;
  --surface: #1A1A1A;
  --surface2: #242424;
  --surface3: #2E2E2E;
  --text: #FFFFFF;
  --text-muted: #AAAAAA;
  --text-dim: #666666;
  --border: #333333;
  --border-light: #444444;
  --success: #00C853;
  --warning: #FFB300;
  --error: #FF1744;
  --gold: #FFD700;
  --blue: #2196F3;
  --green: #4CAF50;
  --gradient: linear-gradient(135deg, #FF0000, #FF6B35);
  --gradient-dark: linear-gradient(135deg, #CC0000, #CC5500);
  --glass: rgba(26, 26, 26, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.6);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* ────────────────────────────────────────
   NAVIGATION
   ──────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 2rem;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text);
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform var(--transition);
}

.nav-logo:hover .logo-icon {
  transform: scale(1.1) rotate(-5deg);
}

.nav-logo span.accent {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ────────────────────────────────────────
   HERO SECTION
   ──────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 5rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 60%, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

/* ────────────────────────────────────────
   MAIN DOWNLOAD BOX
   ──────────────────────────────────────── */
.download-section {
  max-width: 720px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition);
}

.download-card:hover {
  border-color: var(--border-light);
}

.download-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}

.input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 1.2rem;
}

.url-input-wrapper {
  flex: 1;
  position: relative;
}

.url-input {
  width: 100%;
  padding: 16px 44px 16px 20px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.url-input::placeholder {
  color: var(--text-dim);
}

.url-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.15);
}

.url-input.valid {
  border-color: var(--success);
}

.url-input.invalid {
  border-color: var(--error);
}

.url-input.shake {
  animation: shake 0.4s ease;
}

.clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  display: none;
  transition: color var(--transition);
  line-height: 1;
}

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

.url-input:not(:placeholder-shown)~.clear-btn {
  display: block;
}

.download-btn {
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-heading);
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  position: relative;
  overflow: hidden;
}

.download-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.3);
}

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

.download-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

.download-btn .spinner {
  display: none;
}

.download-btn.loading .btn-text {
  display: none;
}

.download-btn.loading .spinner {
  display: inline-flex;
}

.format-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.format-badge {
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  background: var(--surface2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ────────────────────────────────────────
   SPINNER
   ──────────────────────────────────────── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ────────────────────────────────────────
   PROGRESS BAR
   ──────────────────────────────────────── */
.progress-wrapper {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--surface2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: none;
  /* hidden by default */
  animation: slideUp 0.3s ease-out forwards;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.progress-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.progress-status .spinner {
  width: 14px;
  height: 14px;
  border-width: 2px;
  border-color: rgba(255, 0, 0, 0.3);
  border-top-color: var(--primary);
}

.progress-percent {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--primary);
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--surface3);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient);
  width: 0%;
  border-radius: 4px;
  transition: width 0.3s ease;
  position: relative;
}

.progress-bar-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.4) 50%,
      rgba(255, 255, 255, 0) 100%);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-8px);
  }

  40% {
    transform: translateX(8px);
  }

  60% {
    transform: translateX(-5px);
  }

  80% {
    transform: translateX(5px);
  }
}

/* ────────────────────────────────────────
   ERROR BANNER
   ──────────────────────────────────────── */
.error-banner {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: rgba(255, 23, 68, 0.1);
  border: 1px solid rgba(255, 23, 68, 0.3);
  color: var(--error);
  font-size: 0.9rem;
  margin-top: 1rem;
  gap: 8px;
  align-items: center;
}

.error-banner.visible {
  display: flex;
}

/* ────────────────────────────────────────
   RESULTS SECTION
   ──────────────────────────────────────── */
.results-section {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  display: none;
}

.results-section.visible {
  display: block;
  animation: fadeSlideUp 0.5s ease;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.video-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.video-thumbnail {
  width: 280px;
  min-width: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.video-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.video-details h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.video-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ────────────────────────────────────────
   FORMAT CARDS GRID
   ──────────────────────────────────────── */
.formats-heading {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.format-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  animation: cardFadeIn 0.4s ease both;
}

.format-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.format-card .recommended-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--gradient);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-bottom-left-radius: 8px;
}

.format-card .quality-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
}

.quality-4k {
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.quality-1080 {
  background: rgba(33, 150, 243, 0.15);
  color: var(--blue);
  border: 1px solid rgba(33, 150, 243, 0.3);
}

.quality-720 {
  background: rgba(76, 175, 80, 0.15);
  color: var(--green);
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.quality-default {
  background: rgba(170, 170, 170, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(170, 170, 170, 0.2);
}

.quality-audio {
  background: rgba(255, 0, 0, 0.12);
  color: var(--primary-light);
  border: 1px solid rgba(255, 0, 0, 0.25);
}

.format-card .format-label {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.format-card .format-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.format-card .format-download-btn {
  width: 100%;
  padding: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-heading);
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.format-card .format-download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.3);
}

/* ── Skeleton shimmer ── */
.skeleton {
  background: var(--surface2);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  to {
    left: 100%;
  }
}

/* ────────────────────────────────────────
   AD CONTAINERS
   ──────────────────────────────────────── */
.ad-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem auto;
  max-width: 728px;
  min-height: 90px;
  width: 100%;
  min-width: 250px;
  overflow: hidden;
}

.ad-container-rectangle {
  min-height: 0;
  max-width: 336px;
}

.ad-sidebar {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  min-height: 600px;
  width: 160px;
}

.ad-sidebar-left {
  left: 10px;
}

.ad-sidebar-right {
  right: 10px;
}

.ad-mobile-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 8px;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 320px;
  min-height: 50px;
  display: none;
  /* Will be overridden by media query */
}

.ad-mobile-sticky .close-ad {
  position: absolute;
  top: -28px;
  right: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: none;
}

/* ────────────────────────────────────────
   HOW IT WORKS
   ──────────────────────────────────────── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), border-color var(--transition);
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: rgba(255, 0, 0, 0.08);
  border-radius: 16px;
  border: 1px solid rgba(255, 0, 0, 0.15);
}

.step-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.step-number {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

/* ────────────────────────────────────────
   FEATURES
   ──────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
}

.feature-card .feature-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

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

/* ────────────────────────────────────────
   FORMATS TABLE
   ──────────────────────────────────────── */
.formats-table-wrapper {
  overflow-x: auto;
  margin-top: 2rem;
}

.formats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.formats-table thead {
  background: var(--surface2);
}

.formats-table th,
.formats-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.formats-table th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.formats-table tbody tr {
  transition: background var(--transition);
}

.formats-table tbody tr:hover {
  background: var(--surface);
}

/* ────────────────────────────────────────
   FAQ
   ──────────────────────────────────────── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: var(--border-light);
}

.faq-question {
  width: 100%;
  background: var(--surface);
  border: none;
  padding: 1.2rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--surface2);
}

.faq-question .faq-icon {
  transition: transform var(--transition);
  font-size: 1.2rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 250px;
  padding: 0 1.5rem 1.2rem;
}

/* ────────────────────────────────────────
   FOOTER
   ──────────────────────────────────────── */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
  margin-top: 2rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

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

.footer-brand .footer-logo .accent {
  color: var(--primary);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ────────────────────────────────────────
   TOAST NOTIFICATION
   ──────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  animation: toastIn 0.4s ease, toastOut 0.3s ease 3.7s forwards;
  min-width: 280px;
}

.toast-success {
  background: rgba(0, 200, 83, 0.15);
  border: 1px solid rgba(0, 200, 83, 0.3);
  color: var(--success);
}

.toast-error {
  background: rgba(255, 23, 68, 0.15);
  border: 1px solid rgba(255, 23, 68, 0.3);
  color: var(--error);
}

@keyframes toastIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes toastOut {
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* ────────────────────────────────────────
   RESPONSIVE BREAKPOINTS
   ──────────────────────────────────────── */

/* ── Tablet & below (< 1024px) ── */
@media (max-width: 1024px) {

  /* Hiding sidebar without triggering availableWidth=0 error in AdSense */
  .ad-sidebar {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    z-index: -100;
  }

  .steps-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Mobile nav (< 768px) ── */
@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1rem 2rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding: 3rem 1rem 1.5rem;
  }

  .download-card {
    padding: 1.5rem;
  }

  .input-group {
    flex-direction: column;
  }

  .download-btn {
    width: 100%;
    justify-content: center;
  }

  .video-info-card {
    flex-direction: column;
  }

  .video-thumbnail {
    width: 100%;
    min-width: unset;
    max-height: 200px;
  }

  .formats-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand p {
    margin: 0.5rem auto 0;
  }

  .section {
    padding: 3rem 1rem;
  }

  .toast-container {
    left: 16px;
    right: 16px;
  }

  .toast {
    min-width: unset;
  }
}

/* ── Small mobile (< 380px) ── */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .download-card {
    padding: 1.2rem;
  }

  .url-input {
    padding: 14px 40px 14px 14px;
    font-size: 0.9rem;
  }
}

/* ────────────────────────────────────────
   UTILITIES
   ──────────────────────────────────────── */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

/* ────────────────────────────────────────
   ADSENSE <ins> VISIBILITY (PREVENTS availableWidth=0 ERROR)
   ──────────────────────────────────────── */
@media (min-width: 769px) {
  .ad-mobile-sticky {
    display: none !important;
  }

  .mobile-sticky-ins {
    display: none !important;
  }
}

.mb-2 {
  margin-bottom: 2rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}