/* ==========================================================================
   dwnit — Ultra High-Performance, Lightweight Modern Design System
   Optimized for 60+ FPS, Zero GPU Lag, Fast Loading & Silky Smooth Scrolling
   ========================================================================== */

:root {
  /* Color Palette (Solid High-Contrast Dark Slate) */
  --bg-deep: #090a10;
  --bg-surface: #0f121d;
  --bg-card: #131726;
  --bg-card-hover: #181d30;
  --bg-input: #0b0e18;

  /* Crisp Borders (No expensive blurs) */
  --border-subtle: #1e2438;
  --border-hover: #2d3652;
  --border-focus: #6366f1;

  /* Primary Brand Accents */
  --brand-primary: #6366f1;
  --brand-cyan: #06b6d4;
  --brand-purple: #a855f7;
  --brand-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --brand-gradient-hover: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #0891b2 100%);

  /* Platform Accent Colors */
  --yt-red: #ff0033;
  --fb-blue: #1877f2;
  --tiktok-cyan: #00f2fe;

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #8a97ab;
  --font-arabic: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-latin: 'Outfit', sans-serif;

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Lightweight Shadow */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-arabic);
  background-color: var(--bg-deep);
  /* Pure CSS fixed background - zero GPU repaint penalty */
  background-image: 
    radial-gradient(circle at 85% 10%, rgba(99, 102, 241, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 15% 30%, rgba(6, 182, 212, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #1f253a;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #384266;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 10, 16, 0.94);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s ease;
}

.site-header.scrolled {
  background: #090a10;
  border-bottom-color: #262d45;
}

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

/* Brand Logo */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-gradient);
  color: #fff;
}

.logo-text {
  color: #ffffff;
}

.logo-accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  transition: color 0.2s ease;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-primary);
  border-radius: 2px;
}

.ai-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-badge-ai {
  font-size: 0.65rem;
  font-family: var(--font-latin);
  font-weight: 700;
  background: #a855f7;
  color: white;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

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

.header-cta {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-arabic);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-gradient-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #181d2f;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: #20273f;
  border-color: var(--border-hover);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Hero & Downloader
   ========================================================================== */
.hero-section {
  padding: 55px 0 75px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #141829;
  border: 1px solid #232a45;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: #c7d2fe;
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 720px;
  margin: 0 auto 38px;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Downloader Card Box */
.downloader-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

/* Tab Controls */
.tab-controls {
  display: flex;
  gap: 6px;
  background: #0a0d16;
  padding: 5px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-arabic);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

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

.tab-btn.active {
  background: #1d2338;
  color: #fff;
  border: 1px solid var(--border-hover);
}

.tab-btn.ai-tab.active {
  background: #2b183b;
  border-color: #6b21a8;
}

.pill-badge {
  font-size: 0.65rem;
  background: #a855f7;
  color: white;
  padding: 1px 6px;
  border-radius: 6px;
}

/* Smart Input Field */
.smart-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 6px 8px 6px 14px;
  transition: border-color 0.2s ease;
}

.smart-input-wrapper:focus-within {
  border-color: var(--brand-primary);
  background: #0d111d;
}

.input-icon-start {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding-left: 10px;
}

.smart-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-arabic);
  font-size: 1.05rem;
  color: #fff;
  padding: 10px 8px;
}

.smart-input-field::placeholder {
  color: #526079;
  font-size: 0.94rem;
}

.input-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-icon-btn {
  background: #1c2235;
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-icon-btn:hover {
  background: #262e48;
  color: #fff;
}

.btn-paste {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1a2033;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-arabic);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-paste:hover {
  background: #242c46;
  color: #fff;
}

.btn-submit {
  padding: 10px 24px;
  font-size: 0.98rem;
}

/* Spinner */
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-submit.loading .btn-text,
.btn-submit.loading .btn-arrow {
  display: none;
}

.btn-submit.loading .spinner {
  display: block;
}

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

/* Platform Detection Badges Row */
.platforms-indicator-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.indicator-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #0d101a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-family: var(--font-latin);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

/* Active Detected State */
.chip.detected {
  border-color: #4f46e5;
  color: #fff;
  background: #1a1e36;
}

.chip[data-platform="youtube"].detected {
  border-color: var(--yt-red);
  background: #2a0b12;
  color: #ff6b81;
}

.chip[data-platform="facebook"].detected {
  border-color: var(--fb-blue);
  background: #0d1d36;
  color: #70aaff;
}

.chip[data-platform="instagram"].detected {
  border-color: #e1306c;
  background: #2b0f1a;
  color: #ff7597;
}

.chip[data-platform="tiktok"].detected {
  border-color: var(--tiktok-cyan);
  background: #0a2027;
  color: #5eead4;
}

.chip[data-platform="twitter"].detected {
  border-color: #fff;
  background: #1f2438;
  color: #fff;
}

/* Demo Helpers */
.demo-helpers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-subtle);
  flex-wrap: wrap;
}

.demo-title {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-demo-link, .btn-demo-ai {
  background: #141828;
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  font-family: var(--font-arabic);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-demo-link:hover, .btn-demo-ai:hover {
  background: #1f2740;
  border-color: var(--border-hover);
  color: #fff;
}

/* AI Dropzone Panel */
.ai-dropzone {
  border: 2px dashed #402361;
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  background: #150f22;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.ai-dropzone:hover, .ai-dropzone.dragover {
  border-color: #a855f7;
  background: #1c142e;
}

.file-hidden-input {
  display: none;
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ai-pulse-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #2c1445;
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropzone-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.dropzone-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 480px;
}

/* ==========================================================================
   Results Card
   ========================================================================== */
.result-card-container {
  max-width: 860px;
  margin: 26px auto 0;
}

.result-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-card);
  text-align: right;
}

.result-close-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #1c2235;
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.result-close-btn:hover {
  background: #341a22;
  color: #ff6b81;
}

/* Media (Video/Story) Result Layout */
.result-media-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

.preview-thumbnail-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #000;
}

.preview-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.75rem;
  font-family: var(--font-latin);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
}

.duration-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.75rem;
  font-family: var(--font-latin);
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
}

.media-source-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.badge-status-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #0e271f;
  color: #34d399;
  border: 1px solid #134e3a;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.meta-author {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-latin);
}

.media-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
  color: #fff;
}

.media-subtext {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Download Options Rows */
.download-options-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111422;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.download-row.highlight {
  background: #151930;
  border-color: #3f4773;
}

.file-spec {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quality-badge {
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.badge-uhd { background: #4f46e5; color: white; }
.badge-hd { background: #153243; color: #38bdf8; border: 1px solid #1e4b66; }
.badge-sd { background: #232a3f; color: var(--text-secondary); }
.badge-audio { background: #331c44; color: #d8b4fe; border: 1px solid #532d6f; }

.file-size {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--font-latin);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e253b;
  color: #fff;
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-arabic);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-download:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.download-row.highlight .btn-download {
  background: var(--brand-gradient);
  border: none;
}

.btn-audio:hover {
  background: #9333ea;
  border-color: #9333ea;
}

/* AI Detector Result Layout */
.result-ai-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: center;
}

.ai-preview-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-tested-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.ai-verdict-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
}

.ai-verdict-banner.ai-detected {
  background: #2e1115;
  color: #f87171;
  border: 1px solid #5a1e26;
}

.ai-verdict-banner.human-verified {
  background: #0d281e;
  color: #34d399;
  border: 1px solid #144a38;
}

.ai-score-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #111422;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.score-circle-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.score-ring {
  transform: rotate(-90deg);
}

.score-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-number {
  font-family: var(--font-latin);
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.score-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.score-details h4 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 4px;
}

.score-details p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.timestamp-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ai-metrics-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.metric-val {
  font-weight: 700;
  color: #fff;
  font-family: var(--font-latin);
}

.progress-track {
  width: 100%;
  height: 6px;
  background: #1d2338;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.progress-bar.danger { background: #ef4444; }
.progress-bar.warning { background: #f59e0b; }
.progress-bar.success { background: #10b981; }

/* ==========================================================================
   Dedicated Platforms Hub
   ========================================================================== */
.section {
  padding: 70px 0;
}

.text-center {
  text-align: center !important;
}

.section-header {
  margin-bottom: 45px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.badge-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-cyan);
  margin-bottom: 12px;
  background: #0f2430;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  text-align: center;
  width: 100%;
}

.section-subtitle {
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
  font-size: 1rem;
  text-align: center;
  line-height: 1.6;
}

.platforms-grid,
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.tool-card {
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.7);
}

/* Card Glow hidden to prevent lag */
.tool-card-glow {
  display: none;
}

.tool-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.25s ease;
}

.tool-card:hover .tool-icon-wrapper {
  transform: scale(1.08);
}

.fb-icon { background: #0e1e38; color: var(--fb-blue); }
.yt-icon { background: #2f0e15; color: var(--yt-red); }
.tiktok-icon { background: #0c252d; color: var(--tiktok-cyan); }
.insta-icon { background: #311120; color: #f43f5e; }
.fb-story-icon { background: #0f223f; color: #60a5fa; }
.ai-icon { background: #29153e; color: #c084fc; }
.twitter-icon { background: #091728; color: #38bdf8; border: 1px solid #163152; }

.platform-tag {
  font-family: var(--font-latin);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.platform-tag.ai-tag {
  color: #c084fc;
}

.tool-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.tool-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.tool-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}

.tool-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.tool-features li svg {
  color: #10b981;
  flex-shrink: 0;
}

.tool-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.tool-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #191f33;
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-arabic);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-action-btn svg {
  transition: transform 0.2s ease;
}

.tool-card:hover .tool-action-btn {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
}

.tool-card:hover .tool-action-btn svg {
  transform: translateX(-5px);
}

.tool-card.card-youtube:hover .tool-action-btn {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
  box-shadow: 0 0 16px rgba(220, 38, 38, 0.35);
}

.tool-card.card-facebook:hover .tool-action-btn,
.tool-card.card-fb-story:hover .tool-action-btn {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
  box-shadow: 0 0 16px rgba(24, 119, 242, 0.35);
}

.tool-card.card-instagram:hover .tool-action-btn {
  background: linear-gradient(135deg, #e1306c, #f77737);
  border-color: #e1306c;
  color: #fff;
  box-shadow: 0 0 16px rgba(225, 48, 108, 0.35);
}

.tool-card.card-tiktok:hover .tool-action-btn {
  background: #06b6d4;
  border-color: #06b6d4;
  color: #041018;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.35);
}

.tool-card.card-tiktok:hover .tool-action-btn svg {
  stroke: #041018;
}

.tool-card.card-twitter:hover .tool-action-btn {
  background: #1d9bf0;
  border-color: #1d9bf0;
  color: #fff;
  box-shadow: 0 0 16px rgba(29, 155, 240, 0.35);
}

.tool-card.card-ai-special:hover .tool-action-btn {
  background: #9333ea;
  border-color: #9333ea;
  color: #fff;
  box-shadow: 0 0 16px rgba(147, 51, 234, 0.35);
}

/* ==========================================================================
   How It Works (Steps)
   ========================================================================== */
.how-section {
  background: #0b0d16;
}

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

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  position: relative;
}

.step-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-latin);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-muted);
  background: #1a2033;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #171d33;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.feature-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-container {
  max-width: 800px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item.active {
  border-color: #384266;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-arabic);
  font-size: 1.02rem;
  font-weight: 700;
  padding: 18px 22px;
  cursor: pointer;
  text-align: right;
}

.faq-icon {
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--brand-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 22px;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding-bottom: 18px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #06070b;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 50px;
}

.footer-about {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 14px 0 18px;
  max-width: 320px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #34d399;
  background: #0d231a;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.pulse-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #141724;
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.copyright, .disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #121626;
  border: 1px solid #2d3656;
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 999;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  color: #34d399;
  font-weight: bold;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 11, 18, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    z-index: 100;
  }

  .nav-menu.open {
    display: flex;
    animation: fadeIn 0.25s ease;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }

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

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

  .result-media-layout,
  .result-ai-layout {
    grid-template-columns: 1fr;
  }

  .preview-thumbnail-wrap {
    max-width: 380px;
    margin: 0 auto;
  }

  .ai-preview-col {
    max-width: 280px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 62px;
  }

  .brand-logo {
    font-size: 1.45rem;
    gap: 8px;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
  }

  .header-cta {
    padding: 6px 12px;
    font-size: 0.82rem;
  }

  .header-cta svg {
    display: none;
  }

  .hero-section {
    padding: 30px 0 45px;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 5px 12px;
    max-width: 100%;
    margin-bottom: 14px;
  }

  .hero-title {
    font-size: clamp(1.55rem, 5.5vw, 2.1rem);
    margin-bottom: 12px;
  }

  .hero-description {
    font-size: 0.92rem;
    margin-bottom: 22px;
    padding: 0 6px;
  }

  .downloader-card {
    padding: 14px 10px;
    border-radius: var(--radius-lg);
  }

  /* Responsive 2x2 Tab Grid */
  .tab-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 4px;
    margin-bottom: 14px;
  }

  .tab-btn {
    padding: 8px 6px;
    font-size: 0.82rem;
    gap: 6px;
    justify-content: center;
  }

  .tab-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .tab-btn .pill-badge {
    display: none;
  }

  /* Stacked Responsive Input */
  .smart-input-wrapper {
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    gap: 8px;
    border-radius: var(--radius-md);
  }

  .input-icon-start {
    display: none;
  }

  .smart-input-field {
    width: 100%;
    padding: 6px 4px;
    font-size: 0.92rem;
    text-align: right;
  }

  .smart-input-field::placeholder {
    font-size: 0.85rem;
  }

  .input-actions {
    width: 100%;
    display: flex;
    gap: 8px;
    justify-content: stretch;
  }

  .btn-paste {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 0.85rem;
    justify-content: center;
  }

  .btn-submit {
    flex: 1;
    width: 100%;
    padding: 9px 14px;
    font-size: 0.92rem;
    justify-content: center;
  }

  .platforms-indicator-bar {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
  }

  .indicator-label {
    font-size: 0.8rem;
  }

  .platform-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .chip {
    padding: 4px 8px;
    font-size: 0.78rem;
    gap: 4px;
  }

  .chip svg {
    width: 15px;
    height: 15px;
  }

  .demo-helpers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
  }

  .demo-title {
    width: 100%;
    text-align: center;
    font-size: 0.78rem;
  }

  .btn-demo-link,
  .btn-demo-ai {
    font-size: 0.76rem;
    padding: 4px 8px;
  }

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

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .header-actions .header-cta {
    display: none;
  }
  
  .brand-logo {
    font-size: 1.3rem;
  }
}

/* ==========================================================================
   Cross-Promotion Banners (Universal)
   ========================================================================== */
.fb-cross-promo, .cross-promo-section {
  padding: 15px 0 50px;
}

.promo-box {
  background: #0d1220;
  border: 1px solid #1e2844;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}

.promo-box:hover {
  border-color: #32436d;
}

.promo-content {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: right;
  flex: 1;
}

.promo-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.promo-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.promo-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  background: #1877f2;
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
  width: fit-content;
}

.promo-text h4,
.promo-content h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px 0;
  line-height: 1.4;
}

.promo-text p,
.promo-content p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
  max-width: 680px;
}

.promo-box .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .promo-box {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 16px;
  }

  .promo-content {
    align-items: flex-start;
  }

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

/* ==========================================================================
   Profile Overview Result Layout (Stories & Highlights Engine)
   ========================================================================== */
.result-profile-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-header-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(30, 37, 60, 0.7) 0%, rgba(18, 22, 38, 0.9) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}

.profile-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 100%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.profile-avatar-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #0f121d;
}

.profile-details-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-full-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
}

.profile-username-tag {
  color: #38bdf8;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.profile-bio {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

.profile-stats-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.stat-pill {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-pill strong {
  color: #fff;
}

.profile-avatar-action {
  flex-shrink: 0;
}

/* Sections Heads */
.section-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.subhead-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.subhead-title h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.pulse-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseDot 1.8s infinite;
}

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

.subhead-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.subhead-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Stories Grid */
.stories-grid-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.story-vertical-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #15192d;
  border: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
  aspect-ratio: 9 / 14;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.story-vertical-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.story-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  z-index: 2;
}

.story-time-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
}

.story-card-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-story-dl {
  width: 100%;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff !important;
  border: none;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-story-dl:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Highlights Albums Bubbles */
.highlights-bubble-list {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px;
}

.highlight-bubble-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  transition: transform 0.2s ease;
  min-width: 80px;
}

.highlight-bubble-btn:hover,
.highlight-bubble-btn.active {
  transform: scale(1.06);
}

.highlight-cover-ring {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #f59e0b 0%, #ec4899 50%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
}

.highlight-bubble-btn.active .highlight-cover-ring {
  box-shadow: 0 0 0 3px #6366f1, 0 4px 18px rgba(99, 102, 241, 0.5);
}

.highlight-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #0f121d;
}

.highlight-bubble-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Expanded Highlight Drawer */
.highlight-expanded-drawer {
  background: #111526;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 14px;
  animation: drawerSlideDown 0.25s ease;
}

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

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-header h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #c084fc;
  margin: 0;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
}

.drawer-stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

@media (max-width: 640px) {
  .profile-header-card {
    flex-direction: column;
    text-align: center;
  }
  .profile-details-wrap {
    align-items: center;
  }
  .profile-title-row {
    justify-content: center;
  }
  .profile-stats-row {
    justify-content: center;
  }
  .profile-avatar-action {
    width: 100%;
  }
  .profile-avatar-action .btn {
    width: 100%;
    justify-content: center;
  }
  .stories-grid-scroll {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Homepage SEO Powerhouse & Tool Hub Styles
   ========================================================================== */

/* Hero Showcase SEO Hub */
.hero-seo-hub {
  padding-top: 40px;
  padding-bottom: 30px;
  text-align: center;
}

.hero-seo-hub .hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-seo-hub .hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 820px;
  margin: 0 auto 30px auto;
  line-height: 1.8;
}

/* Hero Category Fast Jump Pills */
.hero-pills-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(19, 23, 38, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}

.hero-pill-item:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: #6366f1;
  color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.hero-pill-item svg {
  flex-shrink: 0;
}

/* Live Stats Counter Ribbon */
.hero-stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto 20px auto;
}

.stat-counter-card {
  background: linear-gradient(135deg, rgba(19, 23, 38, 0.9) 0%, rgba(15, 18, 29, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.stat-counter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

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

.stat-counter-val {
  font-family: var(--font-latin);
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 4px;
}

.stat-counter-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* SEO Master Knowledge & Guides Section */
.seo-knowledge-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.seo-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.seo-article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.seo-article-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.seo-article-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.seo-article-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
}

.seo-article-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  margin: 0;
}

.seo-article-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 18px;
  flex-grow: 1;
}

.seo-takeaway-box {
  background: rgba(11, 14, 24, 0.7);
  border-right: 3px solid #06b6d4;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: #e2e8f0;
  margin-top: auto;
}

/* Specifications Matrix Table */
.spec-table-section {
  padding-top: 40px;
  padding-bottom: 60px;
}

.spec-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-card);
  margin-top: 30px;
}

.seo-spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.92rem;
}

.seo-spec-table th {
  background: rgba(11, 14, 24, 0.9);
  color: #38bdf8;
  font-weight: 700;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.seo-spec-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  vertical-align: middle;
}

.seo-spec-table tr:hover td {
  background: rgba(99, 102, 241, 0.04);
  color: #fff;
}

.badge-quality {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-latin);
}

.badge-q-4k { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-q-fhd { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-q-hd { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-q-mp3 { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

/* Responsive adjustments for SEO Homepage */
@media (max-width: 900px) {
  .hero-seo-hub .hero-title {
    font-size: 2.1rem;
  }
  .hero-stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
  .seo-guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-seo-hub .hero-title {
    font-size: 1.75rem;
  }
  .hero-stats-ribbon {
    grid-template-columns: 1fr;
  }
  .hero-pill-item {
    width: 100%;
    justify-content: center;
  }
}




.btn-card-action{color:#7dd3fc;text-decoration:none}
