/* ============================================
   SoraWatermarkRemover — Premium Dark Theme + Multi-Page
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg: #0a0a0a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: #141414;
  --surface-3: #1e1e1e;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text: rgba(255, 255, 255, 0.92);
  --text-dim: #a0a0a0;
  --text-faint: #666;
  --muted: #888;
  --accent: #10b981;
  --accent-hover: #34d399;
  --accent-dim: rgba(16, 185, 129, 0.12);
  --accent-glow: rgba(16, 185, 129, 0.06);
  --error: #f87171;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 60px rgba(16, 185, 129, 0.06);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --dot-color: rgba(255, 255, 255, 0.03);
  --glow-alpha: 0.06;
}

/* Light theme overrides */
[data-theme="light"] {
  --bg: #f8fafb;
  --surface: rgba(0, 0, 0, 0.03);
  --surface-2: #ffffff;
  --surface-3: #f0f2f4;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.16);
  --text: rgba(0, 0, 0, 0.88);
  --text-dim: #555;
  --text-faint: #999;
  --muted: #777;
  --accent: #059669;
  --accent-hover: #047857;
  --accent-dim: rgba(5, 150, 105, 0.1);
  --accent-glow: rgba(5, 150, 105, 0.04);
  --error: #dc2626;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 60px rgba(5, 150, 105, 0.06);
  --dot-color: rgba(0, 0, 0, 0.04);
  --glow-alpha: 0.03;
}

/* Light Theme Component Overrides (User Requested) */
[data-theme="light"] .lang-btn {
  border-color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .toast {
  background: #9ca3af !important;
  /* Light grey */
  color: #ffffff !important;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Vercel-style dot grid background */
  background-image:
    radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.04) 0%, transparent 40%),
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 24px 24px;
  background-position: top center, top right, 0 0;
  background-attachment: fixed;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

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

a:hover {
  color: var(--accent-hover);
}

/* ============ NAVBAR ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: none;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-logo img {
  border-radius: 8px;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.3));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

/* Theme Toggle */
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: all var(--transition);
}

.theme-toggle:hover {
  background: var(--surface);
  color: var(--accent);
}

.theme-icon-light {
  display: none;
}

[data-theme="light"] .theme-icon-dark {
  display: none;
}

[data-theme="light"] .theme-icon-light {
  display: block;
}

/* Language Selector */
.lang-selector {
  position: relative;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: all var(--transition);
}

.lang-btn:hover {
  border-color: var(--border-hover);
  background: var(--surface);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  min-width: 140px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition);
  z-index: 200;
}

.lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 8px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all var(--transition);
}

.lang-opt:hover {
  background: var(--surface);
  color: var(--text);
}

.lang-opt.active {
  color: var(--accent);
  background: var(--accent-glow);
  font-weight: 600;
}

[dir="rtl"] .nav-inner,
[dir="rtl"] .nav-controls {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-controls {
  border-left: none;
  border-right: 1px solid var(--border);
  margin-left: 0;
  margin-right: 16px;
  padding-left: 0;
  padding-right: 16px;
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

[dir="rtl"] .lang-opt {
  text-align: right;
}


.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
}

/* ============ BACKGROUND GLOW ============ */
.bg-glow {
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: -300px;
  right: -200px;
  pointer-events: none;
  z-index: 0;
  animation: glow-drift 25s ease-in-out infinite alternate;
}

.bg-glow-2 {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.03) 0%, transparent 70%);
  top: auto;
  bottom: -400px;
  right: auto;
  left: -300px;
  animation-delay: -12s;
  animation-direction: alternate-reverse;
}

@keyframes glow-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, 20px) scale(1.1);
  }

  100% {
    transform: translate(-20px, 50px) scale(0.95);
  }
}

/* ============ CONTAINER ============ */
.container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ HERO ============ */
.hero {
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Hero Background Layer */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

/* Floating Particles */
.hero-particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.3);
  animation: particle-float linear infinite;
}

.p1 {
  width: 3px;
  height: 3px;
  top: 15%;
  left: 10%;
  animation-duration: 18s;
}

.p2 {
  width: 2px;
  height: 2px;
  top: 25%;
  left: 85%;
  animation-duration: 22s;
  animation-delay: -5s;
}

.p3 {
  width: 4px;
  height: 4px;
  top: 60%;
  left: 20%;
  animation-duration: 15s;
  animation-delay: -3s;
  opacity: 0.6;
}

.p4 {
  width: 2px;
  height: 2px;
  top: 70%;
  left: 75%;
  animation-duration: 20s;
  animation-delay: -8s;
}

.p5 {
  width: 3px;
  height: 3px;
  top: 40%;
  left: 50%;
  animation-duration: 25s;
  animation-delay: -2s;
}

.p6 {
  width: 2px;
  height: 2px;
  top: 80%;
  left: 40%;
  animation-duration: 17s;
  animation-delay: -10s;
}

.p7 {
  width: 3px;
  height: 3px;
  top: 10%;
  left: 65%;
  animation-duration: 23s;
  animation-delay: -7s;
  opacity: 0.5;
}

.p8 {
  width: 2px;
  height: 2px;
  top: 50%;
  left: 5%;
  animation-duration: 19s;
  animation-delay: -4s;
}

.p9 {
  width: 4px;
  height: 4px;
  top: 30%;
  left: 30%;
  animation-duration: 21s;
  animation-delay: -12s;
  opacity: 0.4;
}

.p10 {
  width: 2px;
  height: 2px;
  top: 85%;
  left: 90%;
  animation-duration: 16s;
  animation-delay: -6s;
}

.p11 {
  width: 3px;
  height: 3px;
  top: 5%;
  left: 45%;
  animation-duration: 24s;
  animation-delay: -9s;
  opacity: 0.5;
}

.p12 {
  width: 2px;
  height: 2px;
  top: 55%;
  left: 60%;
  animation-duration: 20s;
  animation-delay: -1s;
}

@keyframes particle-float {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  50% {
    transform: translateY(-80px) translateX(30px) scale(1.5);
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-160px) translateX(-20px) scale(0.5);
    opacity: 0;
  }
}

/* Gradient Mesh Overlay */
.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 50% 0%, rgba(16, 185, 129, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 80% 50%, rgba(5, 150, 105, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 500px 400px at 20% 70%, rgba(52, 211, 153, 0.03) 0%, transparent 60%),
    radial-gradient(circle 200px at 70% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
}

/* Decorative Rings */
.hero-ring {
  position: absolute;
  opacity: 0.7;
  animation: ring-spin 60s linear infinite;
}

.ring-1 {
  top: -60px;
  right: -80px;
}

.ring-2 {
  bottom: -40px;
  left: -60px;
  animation-direction: reverse;
  animation-duration: 45s;
}

@keyframes ring-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Diagonal Scan Line */
.hero-scanline {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg,
      transparent 40%,
      rgba(16, 185, 129, 0.03) 45%,
      rgba(16, 185, 129, 0.06) 50%,
      rgba(16, 185, 129, 0.03) 55%,
      transparent 60%);
  animation: scanline-sweep 8s ease-in-out infinite;
  animation-delay: 3s;
}

@keyframes scanline-sweep {
  0% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 20px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

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

/* ============ MODE TABS ============ */
.mode-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 4px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.mode-tab {
  flex: 1;
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  background: transparent;
  color: var(--text-dim);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.mode-tab:hover {
  color: var(--text);
}

.mode-tab.active {
  background: var(--accent);
  color: #0a0a0a;
}

/* ============ TOOL CARD ============ */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  max-width: 640px;
  margin: 0 auto;
  backdrop-filter: blur(12px);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.tool-card:focus-within {
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: var(--shadow-glow);
}

.tool-legal {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 14px;
  text-align: center;
}

.tool-legal a {
  color: var(--text-dim);
  text-decoration: underline;
}

.tool-legal a:hover {
  color: var(--accent);
}

/* ============ INPUT WRAPPER ============ */
.input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 4px 4px 14px;
  margin-bottom: 14px;
  transition: border-color var(--transition);
}

.input-wrapper:focus-within {
  border-color: var(--accent);
}

.input-icon {
  flex-shrink: 0;
  color: var(--text-faint);
}

.input-wrapper input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 0;
}

.input-wrapper input::placeholder {
  color: var(--text-faint);
}

/* ============ PASTE BUTTON ============ */
.btn-paste {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--text-dim);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-paste:hover {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
}

/* ============ TEXTAREA ============ */
textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  font-family: 'Inter', monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  resize: vertical;
  outline: none;
  transition: border-color var(--transition);
  margin-bottom: 14px;
}

textarea::placeholder {
  color: var(--text-faint);
}

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

/* ============ BATCH ACTIONS ============ */
.batch-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.batch-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.link-count {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
  font-family: 'Space Grotesk', sans-serif;
}

/* ============ PRIMARY BUTTON ============ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  background: var(--accent);
  border: none;
  border-radius: 50px;
  color: #0a0a0a;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-width: 180px;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
}

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

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-full {
  width: 100%;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(10, 10, 10, 0.3);
  border-top-color: #0a0a0a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ============ DOWNLOAD ALL ============ */
.download-all-container {
  display: none;
  margin-top: 20px;
  text-align: center;
  animation: fade-in 0.4s ease;
}

.download-all-container.show {
  display: block;
}

.btn-download-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--accent);
  border: none;
  border-radius: 50px;
  color: #0a0a0a;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.btn-download-all:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.3);
}

.btn-download-all:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ============ ZIP PROGRESS OVERLAY ============ */
.zip-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.zip-overlay.show {
  opacity: 1;
}

.zip-modal {
  background: linear-gradient(135deg, rgba(8, 60, 42, 0.8), rgba(16, 185, 129, 0.15));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(16, 185, 129, 0.1);
  animation: card-in 0.3s ease;
  color: #ffffff;
}

.zip-modal h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: #ffffff;
}

.zip-progress-bar {
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.zip-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #34d399);
  border-radius: 3px;
  transition: width 0.4s ease;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.zip-status {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
}

.zip-file-list {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  padding-right: 4px;
}

.zip-file-list::-webkit-scrollbar {
  width: 4px;
}

.zip-file-list::-webkit-scrollbar-track {
  background: transparent;
}

.zip-file-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.zip-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 0.82rem;
  animation: fade-in 0.2s ease;
  color: #ffffff;
}

.zip-file-error {
  border: 1px solid rgba(248, 113, 113, 0.15);
}

.zip-file-error .zip-file-size {
  color: var(--error);
}

.zip-file-icon {
  flex-shrink: 0;
  font-size: 0.9rem;
}

.zip-file-spinner {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.zip-file-name {
  flex: 1;
  min-width: 0;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zip-file-size {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Space Grotesk', sans-serif;
  font-variant-numeric: tabular-nums;
}

.zip-summary {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 16px;
  min-height: 24px;
  color: #ffffff;
}

.btn-cancel-zip {
  display: block;
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cancel-zip:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* Light Theme Component Overrides (User Requested for ZIP Modal) */
[data-theme="light"] .zip-modal {
  background: linear-gradient(135deg, rgba(8, 60, 42, 0.95), rgba(16, 185, 129, 0.9)) !important;
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #ffffff !important;
  box-shadow: 0 24px 80px rgba(5, 150, 105, 0.5);
}

[data-theme="light"] .zip-modal h3,
[data-theme="light"] .zip-status,
[data-theme="light"] .zip-summary,
[data-theme="light"] .zip-file-name,
[data-theme="light"] .zip-file-size {
  color: #ffffff !important;
}

[data-theme="light"] .zip-file-row {
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .btn-cancel-zip {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

[data-theme="light"] .btn-cancel-zip:hover {
  background: rgba(255, 255, 255, 0.25) !important;
}

/* ============ PROGRESS ============ */
.progress-container {
  margin: 20px auto;
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.progress-bar {
  flex: 1;
  height: 5px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.4s ease;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif;
}

/* ============ RESULTS ============ */
.results {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ RESULT CARD ============ */
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: card-in 0.4s ease;
  transition: border-color var(--transition), box-shadow var(--transition);
  backdrop-filter: blur(12px);
}

.result-card:hover {
  border-color: rgba(16, 185, 129, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

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

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.result-card.error {
  border-color: rgba(248, 113, 113, 0.2);
}

.result-video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  display: block;
}

.result-info {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-meta {
  flex: 1;
  min-width: 0;
}

.result-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.result-url {
  font-size: 0.78rem;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--accent);
  border: none;
  border-radius: 50px;
  color: #0a0a0a;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-download:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
  transform: translateY(-1px);
  color: #0a0a0a;
}

.btn-download svg {
  stroke: #0a0a0a;
}

.btn-copy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-dim);
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============ ERROR / SKELETON ============ */
.error-message {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--error);
  font-size: 0.9rem;
}

.error-message svg {
  flex-shrink: 0;
}

.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-video {
  width: 100%;
  aspect-ratio: 16/9;
}

.skeleton-text {
  height: 16px;
  width: 60%;
  margin: 16px 20px;
}

/* ============ SECTIONS ============ */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

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

/* ============ STEPS (How It Works) ============ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
  position: relative;
}

.step-card:hover {
  border-color: rgba(16, 185, 129, 0.2);
  transform: translateY(-4px);
}

.step-number {
  position: absolute;
  top: 16px;
  left: 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.step-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ============ FEATURES GRID ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  transition: border-color var(--transition), transform var(--transition);
}

.feature-card:hover {
  border-color: rgba(16, 185, 129, 0.2);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ============ FAQ ACCORDION ============ */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

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

.faq-item[open] {
  border-color: rgba(16, 185, 129, 0.2);
}

.faq-item summary {
  padding: 18px 22px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 400;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-answer {
  padding: 0 22px 18px;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
  animation: fade-in 0.3s ease;
}

.faq-answer a {
  color: var(--accent);
  text-decoration: underline;
}

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.footer-logo img {
  border-radius: 6px;
}

.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

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

.footer-col ul a {
  color: var(--text-dim);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* ============ LEGAL PAGES ============ */
.legal-page {
  padding: 120px 0 60px;
}

.legal-page h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.legal-date {
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-bottom: 40px;
}

.legal-content {
  max-width: 720px;
}

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

.legal-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text);
}

.legal-content p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-content ul {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-left: 24px;
  margin-bottom: 16px;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
}

.legal-notice {
  background: var(--accent-dim);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

/* ============ CONTACT PAGE ============ */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  max-width: 480px;
  margin: 0 auto;
}

.contact-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.contact-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  margin-top: 0;
  margin-bottom: 8px;
}

.contact-card p {
  text-align: center;
}

.contact-email {
  display: inline-block;
  margin: 20px 0 8px;
  padding: 12px 28px;
  background: var(--accent);
  color: #0a0a0a !important;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  text-decoration: none !important;
  transition: var(--transition);
}

.contact-email:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.3);
}

.contact-note {
  font-size: 0.8rem !important;
  color: var(--text-faint) !important;
  margin-top: 12px;
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 12px 22px;
  border-radius: 50px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: 'Space Grotesk', sans-serif;
  box-shadow: var(--shadow);
  z-index: 200;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(12px);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent);
}

.toast.error {
  border-color: rgba(248, 113, 113, 0.3);
  color: var(--error);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

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

  .nav-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero {
    padding: 80px 0 40px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .result-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .result-actions {
    width: 100%;
  }

  .btn-download {
    flex: 1;
    justify-content: center;
  }

  .btn-primary {
    width: 100%;
  }

  .btn-full {
    width: 100%;
  }

  .batch-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .batch-left {
    justify-content: space-between;
  }

  .legal-page h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tool-card {
    padding: 20px;
  }
}

/* ======================== */
/* BLOG STYLES              */
/* ======================== */

.blog-hero {
  padding: 140px 0 40px;
  text-align: center;
}

.blog-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.blog-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.blog-section {
  padding: 20px 0 80px;
}

/* Filters */
.blog-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.blog-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-cat-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.blog-cat-btn:hover,
.blog-cat-btn.active {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
}

.blog-search input {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  font-size: 0.9rem;
  width: 250px;
  outline: none;
  transition: var(--transition);
}

.blog-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Article Card Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.1);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 20px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--text-faint);
}

.blog-category-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.blog-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.blog-empty,
.blog-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 60px 0;
  font-size: 1rem;
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
}

.blog-pagination button {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.blog-pagination button:hover,
.blog-pagination button.active {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
}

.blog-pagination span {
  color: var(--text-faint);
  padding: 0 4px;
}

/* Blog Article Page */
.blog-article {
  padding: 120px 0 60px;
  max-width: 800px;
  margin: 0 auto;
}

.blog-article-header {
  margin-bottom: 32px;
}

.blog-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.blog-article h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.blog-hero-image {
  margin: 0 0 32px;
  border-radius: 16px;
  overflow: hidden;
}

.blog-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-content {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.blog-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 16px;
}

.blog-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 12px;
}

.blog-content p {
  margin-bottom: 16px;
}

.blog-content ul,
.blog-content ol {
  margin: 0 0 20px 24px;
}

.blog-content li {
  margin-bottom: 8px;
}

.blog-content a {
  color: var(--accent);
  text-decoration: underline;
}

.blog-content a:hover {
  color: var(--accent-hover);
}

.blog-inline-image {
  margin: 32px 0;
  border-radius: 12px;
  overflow: hidden;
}

.blog-inline-image img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-inline-image figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-faint);
  padding: 10px 0;
}

/* CTA Box */
.blog-cta-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  padding: 32px;
  margin: 36px 0;
  text-align: center;
}

.blog-cta-box h3 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text) !important;
  margin-top: 0 !important;
}

.blog-cta-box p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.blog-cta-box .btn-primary {
  display: inline-flex;
  padding: 12px 28px;
  background: var(--accent);
  color: #0a0a0a;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.blog-cta-box .btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.3);
}

/* Tags */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Share */
.blog-share {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-faint);
  margin-bottom: 40px;
}

.blog-share a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.blog-share a:hover {
  text-decoration: underline;
}

/* Blog responsive */
@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 2rem;
  }

  .blog-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-search input {
    width: 100%;
  }

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

  .blog-article h1 {
    font-size: 1.6rem;
  }

  .blog-article {
    padding: 100px 16px 40px;
  }

  .blog-cta-box {
    padding: 24px 16px;
  }
}

/* ============ STATS SECTION ============ */
.stats-section {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.stats-bg-illustrations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.stats-illust {
  position: absolute;
  opacity: 0.6;
  will-change: transform;
}

.illust-1 {
  top: 5%;
  left: 3%;
  animation: float-rotate 25s linear infinite;
}

.illust-2 {
  top: 15%;
  right: 5%;
  animation: float-rotate 30s linear infinite reverse;
}

.illust-3 {
  bottom: 10%;
  left: 8%;
  animation: float-rotate 35s linear infinite;
}

.illust-4 {
  bottom: 20%;
  right: 10%;
  animation: float-drift 20s ease-in-out infinite;
}

.illust-5 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float-rotate 45s linear infinite;
}

@keyframes float-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes float-drift {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-15px) rotate(5deg);
  }

  50% {
    transform: translateY(0) rotate(0deg);
  }

  75% {
    transform: translateY(15px) rotate(-5deg);
  }
}

.stats-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.orb-1 {
  width: 200px;
  height: 200px;
  background: rgba(16, 185, 129, 0.06);
  top: 10%;
  left: 15%;
  animation: orb-pulse 8s ease-in-out infinite;
}

.orb-2 {
  width: 150px;
  height: 150px;
  background: rgba(16, 185, 129, 0.04);
  bottom: 15%;
  right: 10%;
  animation: orb-pulse 10s ease-in-out infinite 2s;
}

.orb-3 {
  width: 100px;
  height: 100px;
  background: rgba(52, 211, 153, 0.05);
  top: 50%;
  right: 30%;
  animation: orb-pulse 6s ease-in-out infinite 4s;
}

@keyframes orb-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.stat-card:hover {
  border-color: rgba(16, 185, 129, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.1);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
  margin: 0 auto 20px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #34d399, #10b981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.stat-sublabel {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

/* Stats responsive */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-number {
    font-size: 2.2rem;
  }
}

@media (max-width: 500px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 24px 16px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
  }
}

/* ============ BEFORE / AFTER COMPARE ============ */
.compare-section {
  padding: 80px 0;
}

.compare-section .container {
  max-width: 1100px;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: stretch;
  margin-top: 32px;
}

.compare-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.compare-before {
  border-color: rgba(239, 68, 68, 0.15);
}

.compare-after {
  border-color: rgba(16, 185, 129, 0.15);
}

.compare-card:hover {
  transform: translateY(-4px);
}

.compare-before:hover {
  box-shadow: 0 12px 40px rgba(239, 68, 68, 0.08);
}

.compare-after:hover {
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.1);
}

/* Badges */
.compare-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.badge-before {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-after {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Video */
.compare-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.compare-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Watermark overlay indicator */
.compare-watermark-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(transparent, rgba(239, 68, 68, 0.12));
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.compare-watermark-overlay span {
  font-size: 0.7rem;
  color: rgba(248, 113, 113, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* Info area */
.compare-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.compare-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.compare-info p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Arrow Connector */
.compare-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
}

.compare-arrow-line {
  width: 2px;
  height: 30px;
  background: linear-gradient(to bottom, transparent, rgba(16, 185, 129, 0.3));
  border-radius: 1px;
}

.compare-arrow-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  animation: arrow-pulse 2s ease-in-out infinite;
}

.compare-arrow-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes arrow-pulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.2);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 0 20px 4px rgba(16, 185, 129, 0.1);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .compare-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .compare-arrow {
    flex-direction: row;
    padding: 4px 0;
  }

  .compare-arrow-line {
    width: 30px;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(16, 185, 129, 0.3));
  }

  .compare-arrow-icon {
    width: 40px;
    height: 40px;
  }

  .compare-arrow-icon svg {
    transform: rotate(90deg);
  }
}