/* ==============================================================================
   Arivers Facebook Downloader - Official Facebook Blue & Animated UI
   Optimized for Instant Speed (<0.2s), Google #1 Ranking & Core Web Vitals
   ============================================================================== */

:root {
  --fb-primary: #1877f2;
  --fb-primary-hover: #166fe5;
  --fb-accent: #0866ff;
  --fb-gradient: linear-gradient(135deg, #1877f2 0%, #0866ff 50%, #00c6ff 100%);
  --fb-dark: #0b111e;
  --fb-card-bg: rgba(255, 255, 255, 0.95);
  --fb-card-border: rgba(24, 119, 242, 0.18);
  --fb-text: #111827;
  --fb-text-muted: #6b7280;
  --fb-border: #e5e7eb;
  --fb-shadow: 0 10px 30px -5px rgba(24, 119, 242, 0.15);
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="dark"] {
  --fb-card-bg: rgba(24, 25, 26, 0.92);
  --fb-card-border: rgba(255, 255, 255, 0.1);
  --fb-text: #f3f4f6;
  --fb-text-muted: #9ca3af;
  --fb-border: #374151;
  --fb-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
}

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

body {
  font-family: var(--font-main);
  background-color: #f0f4f9;
  color: var(--fb-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

[data-theme="dark"] body {
  background-color: #0b111e;
}

/* ==============================================================================
   Animated Facebook Background (Floating Orbs, Mesh Grid, Particles & Emojis)
   ============================================================================== */
.fb-animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.fb-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: fbFloatOrb 16s ease-in-out infinite alternate;
}

.fb-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #1877f2 0%, rgba(24, 119, 242, 0) 70%);
  top: -120px;
  left: -120px;
}

.fb-orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #0866ff 0%, rgba(8, 102, 255, 0) 70%);
  bottom: -150px;
  right: -100px;
  animation-delay: -5s;
}

.fb-orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #00c6ff 0%, rgba(0, 198, 255, 0) 70%);
  top: 35%;
  left: 55%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

.fb-orb-4 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #0064e0 0%, rgba(0, 100, 224, 0) 70%);
  bottom: 20%;
  left: 10%;
  animation-delay: -7s;
}

@keyframes fbFloatOrb {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(50px) scale(1.1) rotate(10deg); }
  100% { transform: translateY(-40px) scale(0.92) rotate(-8deg); }
}

.fb-mesh-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(24, 119, 242, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
}

#fbParticlesCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Floating Facebook Reaction Emojis in Background */
.fb-floating-reactions-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fb-float-icon {
  position: absolute;
  bottom: -60px;
  opacity: 0.32;
  user-select: none;
  animation: fbDriftUp 16s infinite linear;
  filter: drop-shadow(0 4px 10px rgba(24, 119, 242, 0.35));
}

@keyframes fbDriftUp {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.85);
    opacity: 0;
  }
  15% {
    opacity: 0.38;
  }
  85% {
    opacity: 0.38;
  }
  100% {
    transform: translateY(-115vh) rotate(25deg) scale(1.15);
    opacity: 0;
  }
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navbar */
.site-header {
  background: var(--fb-card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--fb-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  color: var(--fb-primary);
}

.brand-logo i {
  font-size: 32px;
  color: var(--fb-primary);
  filter: drop-shadow(0 2px 8px rgba(24, 119, 242, 0.35));
}

.brand-logo span {
  color: var(--fb-text);
}

.brand-logo strong {
  color: var(--fb-primary);
}

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

.nav-link-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--fb-text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-link-item:hover {
  background: rgba(24, 119, 242, 0.08);
  color: var(--fb-primary);
}

.nav-link-item.active {
  background: rgba(24, 119, 242, 0.12);
  color: var(--fb-primary);
  font-weight: 700;
}

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--fb-border);
  color: var(--fb-text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  margin-left: 6px;
}

.theme-toggle-btn:hover {
  background: var(--fb-primary);
  color: #ffffff;
  border-color: var(--fb-primary);
}

.nav-mobile-actions {
  display: none;
  align-items: center;
  gap: 8px;
}

.nav-blog-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(24, 119, 242, 0.1);
  color: var(--fb-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}

.mobile-menu-btn {
  background: transparent;
  border: 1px solid var(--fb-border);
  color: var(--fb-text);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
}

/* Mobile Slide Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s ease, opacity 0.3s ease;
}

.mobile-nav-drawer.open {
  visibility: visible;
  opacity: 1;
}

.mobile-nav-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.mobile-nav-sheet {
  position: absolute;
  top: 0;
  right: 0;
  width: 82%;
  max-width: 320px;
  height: 100%;
  background: var(--fb-card-bg);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow-y: auto;
}

.mobile-nav-drawer.open .mobile-nav-sheet {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--fb-border);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--fb-text);
}

.btn-close-drawer {
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--fb-text-muted);
  cursor: pointer;
}

.mobile-nav-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.drawer-group-label {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--fb-text-muted);
  letter-spacing: 0.5px;
  margin: 10px 0 4px;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--fb-text);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.drawer-nav-item i {
  font-size: 16px;
  color: var(--fb-primary);
  width: 20px;
}

.drawer-nav-item.active {
  background: rgba(24, 119, 242, 0.12);
  color: var(--fb-primary);
  font-weight: 700;
}

.drawer-divider {
  height: 1px;
  background: var(--fb-border);
  margin: 12px 0;
}

.mobile-nav-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--fb-border);
  font-size: 12px;
  color: var(--fb-text-muted);
  text-align: center;
}

/* ==============================================================================
   Platform Switcher Bar (Matching Reference Design)
   ============================================================================== */
.platform-switch-bar {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 4px;
  border-radius: 50px;
  margin: 4px auto 10px auto;
  gap: 4px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .platform-switch-bar {
  background: #242526;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #374151;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="dark"] .platform-pill {
  color: #e4e6eb;
}

.platform-pill:hover {
  color: var(--fb-primary);
}

.platform-pill.active {
  background: var(--fb-gradient) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(24, 119, 242, 0.35);
}

.platform-pill.active i {
  color: #ffffff !important;
}

/* Hero Section - Compact Spacing (Zero Excess Space) */
.hero-section {
  padding: 4px 0 0 0 !important;
  margin-bottom: 0 !important;
  text-align: center;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  background: rgba(24, 119, 242, 0.1);
  border: 1px solid rgba(24, 119, 242, 0.25);
  color: var(--fb-primary);
  width: fit-content;
}

.hero-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
  color: var(--fb-text);
  letter-spacing: -0.5px;
}

.hero-title span {
  background: var(--fb-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 13.5px;
  color: var(--fb-text-muted);
  max-width: 620px;
  margin: 0 auto 10px auto;
  line-height: 1.4;
}

/* Format Tabs - Compact */
.format-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 18px;
  background: var(--fb-card-bg);
  border: 1.5px solid var(--fb-border);
  border-radius: 10px;
  color: var(--fb-text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.tab-btn:hover {
  border-color: var(--fb-primary);
  color: var(--fb-primary);
}

.tab-btn.active {
  background: var(--fb-primary);
  color: #ffffff;
  border-color: var(--fb-primary);
  box-shadow: 0 3px 10px rgba(24, 119, 242, 0.3);
}

/* Downloader Search Box - Compact */
.downloader-box {
  max-width: 680px;
  margin: 0 auto;
}

.input-wrapper {
  display: flex;
  align-items: center;
  background: var(--fb-card-bg);
  border: 2px solid var(--fb-card-border);
  border-radius: 14px;
  padding: 5px 6px 5px 14px;
  box-shadow: var(--fb-shadow);
  transition: all 0.25s ease;
  position: relative;
}

.input-wrapper:focus-within {
  border-color: var(--fb-primary);
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.25);
}

.search-icon {
  font-size: 16px;
  color: var(--fb-primary);
  margin-right: 10px;
}

.fb-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  color: var(--fb-text);
  background: transparent;
}

.btn-clear-fb {
  background: transparent;
  border: none;
  color: var(--fb-text-muted);
  font-size: 14px;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.2s ease;
}

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

.btn-paste {
  border: none;
  background: rgba(24, 119, 242, 0.1);
  color: var(--fb-primary);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-paste:hover {
  background: rgba(24, 119, 242, 0.2);
}

.btn-download-main {
  border: none;
  background: var(--fb-gradient);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35);
}

.btn-download-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.45);
}

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

/* Quick Sample Links Row */
.fb-sample-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.sample-label {
  font-size: 12px;
  color: var(--fb-text-muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-sample-fb {
  background: rgba(24, 119, 242, 0.08);
  border: 1px solid rgba(24, 119, 242, 0.2);
  color: var(--fb-primary);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-sample-fb:hover {
  background: var(--fb-primary);
  color: #ffffff;
  border-color: var(--fb-primary);
  transform: translateY(-1px);
}

/* Alert Notification */
.alert-box {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  display: none;
  text-align: left;
  line-height: 1.5;
}

.alert-box.error {
  background: #ffebe8;
  color: #c92a2a;
  border: 1px solid #fcc2d7;
}

.alert-box.success {
  background: #ebfbee;
  color: #2b8a3e;
  border: 1px solid #b2f2bb;
}

.alert-box.info {
  background: #e7f3ff;
  color: #0866ff;
  border: 1px solid #c0dfff;
}

/* Ad Wrapper Layouts - Auto collapse when empty (Zero Void Gap) */
.ad-wrapper {
  margin: 10px auto;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-wrapper:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
}

.in-result-ad {
  margin: 12px 0;
  border-top: 1px dashed var(--fb-border);
  border-bottom: 1px dashed var(--fb-border);
  padding: 8px 0;
}

/* ==============================================================================
   FastDL / Instagram-Matched Search Result Box (Exact Layout Match)
   ============================================================================== */
.result-container {
  display: none;
  margin-top: 36px;
}

.search-result-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 22px;
  text-align: center;
  color: var(--fb-text);
}

.fastdl-result-box {
  background: var(--fb-card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--fb-card-border);
  border-radius: 20px;
  padding: 26px 22px;
  max-width: 540px;
  margin: 0 auto;
  box-shadow: var(--fb-shadow);
  text-align: center;
}

.result-media-frame {
  position: relative;
  max-width: 380px;
  margin: 0 auto 20px auto;
  border-radius: 14px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.result-media-frame video,
.result-media-frame img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
}

.corner-media-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(24, 119, 242, 0.95);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

/* Primary FastDL Blue Download Button */
.result-action-bar {
  margin-bottom: 16px;
}

.btn-fastdl-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--fb-gradient);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}

.btn-fastdl-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.55);
}

/* Author and Caption Meta */
.result-meta-info {
  margin-bottom: 16px;
  text-align: center;
}

.result-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--fb-text);
  margin-bottom: 8px;
  line-height: 1.45;
}

.result-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.result-creator-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(24, 119, 242, 0.12);
  color: var(--fb-primary);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12.5px;
  font-weight: 700;
}

.result-duration-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--fb-text-muted);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
}

[data-theme="dark"] .result-duration-badge {
  background: rgba(255, 255, 255, 0.08);
}

.qualities-section-title {
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  color: var(--fb-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 12px 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Quality Selection Grid */
.qualities-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.btn-quality-dl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(24, 119, 242, 0.05);
  border: 1.5px solid var(--fb-border);
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--fb-text);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
}

[data-theme="dark"] .btn-quality-dl {
  background: rgba(255, 255, 255, 0.04);
}

.btn-quality-dl:hover {
  border-color: var(--fb-primary);
  background: rgba(24, 119, 242, 0.14);
  color: var(--fb-primary);
  transform: translateY(-1px);
}

.quality-badge {
  background: var(--fb-primary);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 11.5px;
  font-weight: 800;
}

.result-footer-actions {
  margin-top: 18px;
}

.btn-reset-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--fb-text-muted);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-reset-dl:hover {
  color: var(--fb-primary);
}

/* Sections - Compact & Clean Spacing */
.info-section {
  padding: 8px 0 24px 0 !important;
  margin-top: 0 !important;
}

.info-section .section-title {
  margin-top: 0 !important;
  margin-bottom: 6px !important;
}

.features-section, .faq-section {
  padding: 20px 0;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
  color: var(--fb-text);
  letter-spacing: -0.5px;
}

.section-lead {
  text-align: center;
  font-size: 14px;
  color: var(--fb-text-muted);
  max-width: 650px;
  margin: 0 auto 18px auto;
}

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

.step-card {
  background: var(--fb-card-bg);
  border: 1.5px solid var(--fb-border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--fb-shadow);
  transition: transform 0.2s ease;
}

.step-card:hover {
  transform: translateY(-3px);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fb-gradient);
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35);
}

.step-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--fb-text);
}

.step-card p {
  font-size: 14px;
  color: var(--fb-text-muted);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-item {
  background: var(--fb-card-bg);
  border: 1.5px solid var(--fb-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: var(--fb-shadow);
  transition: transform 0.2s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
}

.feature-item i {
  font-size: 30px;
  color: var(--fb-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.feature-item h4 {
  font-size: 16.5px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--fb-text);
}

.feature-item p {
  font-size: 13.5px;
  color: var(--fb-text-muted);
  line-height: 1.5;
}

/* FAQ Accordion */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-card {
  background: var(--fb-card-bg);
  border: 1.5px solid var(--fb-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--fb-text);
  cursor: pointer;
  gap: 12px;
}

.faq-question i {
  color: var(--fb-primary);
  font-size: 14px;
  transition: transform 0.2s ease;
}

.faq-card.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 22px 18px 22px;
  font-size: 14px;
  color: var(--fb-text-muted);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: var(--fb-card-bg);
  border-top: 1px solid var(--fb-border);
  padding: 40px 0;
  margin-top: 60px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.footer-links a {
  color: var(--fb-text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.footer-copy {
  font-size: 13px;
  color: var(--fb-text-muted);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Flying Reaction Particles */
.flying-particle {
  position: absolute;
  font-size: 26px;
  pointer-events: none;
  z-index: 9999;
  animation: fbFlyReaction 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fbFlyReaction {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  50% { opacity: 0.9; transform: translate(var(--dx), var(--dy)) scale(1.3); }
  100% { opacity: 0; transform: translate(calc(var(--dx) * 1.3), calc(var(--dy) - 60px)) scale(0.6); }
}

@media (max-width: 992px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 26px; }
  .hero-subtitle { font-size: 13.5px; }
  .features-grid { grid-template-columns: 1fr; }
  .nav-links-desktop { display: none; }
  .nav-mobile-actions { display: flex; }
  .input-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 6px 8px;
    gap: 8px;
  }
  .search-icon {
    display: flex;
    font-size: 16px;
    flex-shrink: 0;
    order: 1;
  }
  .fb-input {
    flex: 1 1 110px;
    min-width: 0;
    width: auto;
    padding: 7px 6px;
    font-size: 13.5px;
    order: 2;
  }
  .btn-clear-fb {
    order: 3;
    padding: 6px;
  }
  .btn-paste {
    align-self: center;
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    order: 4;
    width: auto !important;
    margin-right: 0;
  }
  .btn-download-main {
    width: 100%;
    order: 5;
    justify-content: center;
    padding: 10px 18px;
    font-size: 14px;
  }
  .platform-switch-bar {
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }
  .platform-pill {
    padding: 7px 14px;
    font-size: 12.5px;
  }
  .format-tabs { gap: 6px; }
  .tab-btn { padding: 7px 14px; font-size: 12.5px; }
}

/* ==========================================================================
   SEO Section & Comparison Table (Facebook Theme)
   ========================================================================== */
.section-seo-content {
  padding: 40px 0;
  border-top: 1px solid var(--fb-border, rgba(229, 231, 235, 0.8));
}

.seo-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .seo-content-grid {
    grid-template-columns: 1fr;
  }
}

.seo-lead {
  font-size: 15.5px;
  color: var(--fb-text, #1c1e21);
  margin-bottom: 22px;
  line-height: 1.7;
}

.seo-keyword-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.seo-k-card {
  background: var(--fb-card, #ffffff);
  border: 1px solid var(--fb-border, rgba(229, 231, 235, 0.8));
  border-radius: 12px;
  padding: 18px 20px;
  transition: all 0.25s ease;
}

.seo-k-card:hover {
  border-color: #1877f2;
  transform: translateY(-2px);
}

.seo-k-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fb-text, #1c1e21);
}

.seo-k-card p {
  font-size: 13.5px;
  color: #65676b;
  line-height: 1.6;
  margin: 0;
}

.comparison-card {
  background: var(--fb-card, #ffffff);
  border: 1px solid var(--fb-border, rgba(229, 231, 235, 0.8));
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.comparison-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  text-align: center;
  color: var(--fb-text, #1c1e21);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.comparison-table th {
  padding: 10px 12px;
  background: rgba(24, 119, 242, 0.08);
  color: var(--fb-text, #1c1e21);
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--fb-border, rgba(229, 231, 235, 0.8));
}

.comparison-table td {
  padding: 12px;
  border-bottom: 1px solid var(--fb-border, rgba(229, 231, 235, 0.8));
  color: var(--fb-text, #1c1e21);
}

.comparison-table td:first-child {
  font-weight: 600;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
}

.badge-status.online {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

[data-theme="dark"] .comparison-card,
[data-theme="dark"] .seo-k-card {
  background: #18191a;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .comparison-title,
[data-theme="dark"] .seo-k-card h3,
[data-theme="dark"] .seo-lead {
  color: #f0f2f5;
}

[data-theme="dark"] .seo-k-card p {
  color: #b0b3b8;
}

[data-theme="dark"] .comparison-table th {
  background: rgba(24, 119, 242, 0.2);
  color: #f0f2f5;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .comparison-table td {
  color: #e4e6eb;
  border-color: rgba(255, 255, 255, 0.08);
}
