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

/* ============================================================
   VIDSTOCK.AI — Main Stylesheet
   v1.2 — Floating pill navbar + MPA View Transitions
   Dark theme | Glassmorphism | Fully Responsive
   ============================================================ */

/* ─── MPA View Transitions (Chrome 126+) ────────────────────── */
/* Opt-in to automatic cross-page transitions on same-origin nav */
@view-transition { navigation: auto; }

/* Navbar gets its own layer — it will NOT fade with the page */
::view-transition-old(navbar),
::view-transition-new(navbar) {
  animation: none;          /* completely frozen in place */
  mix-blend-mode: normal;
}

/* The rest of the page cross-fades smoothly */
::view-transition-old(root) { animation: 180ms ease-out vt-fade-out; }
::view-transition-new(root) { animation: 200ms ease-in  vt-fade-in; }
@keyframes vt-fade-out { to   { opacity: 0; } }
@keyframes vt-fade-in  { from { opacity: 0; } }

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --bg-base:        #06060f;
  --bg-surface:     #0d0d1a;
  --bg-card:        rgba(255,255,255,0.04);
  --bg-card-hover:  rgba(255,255,255,0.07);
  --border:         rgba(255,255,255,0.08);
  --border-hover:   rgba(255,255,255,0.18);

  --primary:        #7c3aed;
  --primary-light:  #9d5ff5;
  --primary-glow:   rgba(124,58,237,0.35);
  --secondary:      #3b82f6;
  --accent:         #06b6d4;
  --accent-glow:    rgba(6,182,212,0.3);
  --success:        #10b981;
  --warning:        #f59e0b;
  --danger:         #ef4444;

  --grad-hero:      linear-gradient(135deg, #7c3aed 0%, #3b82f6 50%, #06b6d4 100%);
  --grad-card:      linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(59,130,246,0.1) 100%);
  --grad-btn:       linear-gradient(135deg, #7c3aed, #3b82f6);
  --grad-text:      linear-gradient(90deg, #a78bfa, #60a5fa, #34d399);

  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 999px;

  --shadow-card:   0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow:   0 0 40px rgba(124,58,237,0.25);
  --shadow-btn:    0 4px 20px rgba(124,58,237,0.45);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);

  --navbar-h:   90px;
  --navbar-top: 16px;
  --sidebar-w: 260px;
}

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

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

body {
  font-family: 'Outfit', 'Inter', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ─── Utility Classes ───────────────────────────────────── */
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.container-sm { width: 100%; max-width: 900px; margin: 0 auto; padding: 0 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.grid { display: grid; }
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sr-only { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* ─── Floating Pill Navbar ────────────────────────────────── */
.navbar {
  position: fixed;
  top: var(--navbar-top);
  left: 50%;
  transform: translateX(-50%);

  /* Content-width pill — NOT full screen width */
  width: auto;
  max-width: calc(100% - 48px);
  min-width: 680px;
  height: var(--navbar-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 12px;

  /* Pill shape */
  border-radius: 999px;

  /* Glassmorphism */
  background: rgba(8, 6, 20, 0.70);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);

  /* Glowing border */
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.45),
    0 0 0 1px rgba(124,58,237,0.14),
    inset 0 1px 0 rgba(255,255,255,0.08);

  transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* On scroll — deepen the glass slightly */
.navbar.scrolled {
  background: rgba(6, 5, 16, 0.88);
  border-color: rgba(255,255,255,0.16);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.55),
    0 0 0 1px rgba(124,58,237,0.22),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  width: 100%;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
  text-decoration: none;
  margin-right: 20px;
}

.navbar__logo-icon {
  width: 56px; height: 56px;
  background: var(--grad-btn);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-btn);
  flex-shrink: 0;
}

.navbar__logo-text {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.navbar__logo-text span {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Nav links ────────────────────────────────────── */
.navbar__links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0 10px;
}

.navbar__links a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 12px 24px;
  border-radius: 999px;
  transition: var(--transition);
  white-space: nowrap;
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.09);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 12px;
}

/* ── User pill (logged-in state) ── */
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.35);
  border-radius: 999px;
  padding: 5px 10px 5px 5px;
  cursor: default;
}
.user-pill__avatar {
  width: 30px;
  height: 30px;
  background: var(--grad-btn);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}
.user-pill__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-pill__logout {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 4px;
  transition: var(--transition);
  flex-shrink: 0;
}
.user-pill__logout:hover { color: #f87171; }


/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar__hamburger:hover span { background: var(--text-primary); }

/* Mobile Menu — slides down from below the floating pill */
.mobile-menu {
  position: fixed;
  top: calc(var(--navbar-top) + var(--navbar-h) + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  width: calc(100% - 40px);
  max-width: 1100px;
  background: rgba(8, 6, 20, 0.92);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(124,58,237,0.12);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
  padding: 20px 24px 24px;
}

.mobile-menu.open {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__search {
  position: relative;
  margin-bottom: 20px;
}

.mobile-menu__search input {
  width: 100%;
  height: 48px;
  padding: 0 48px 0 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
}
.mobile-menu__search input::placeholder { color: var(--text-muted); }
.mobile-menu__search input:focus {
  border-color: var(--primary);
  background: rgba(255,255,255,0.09);
}
.mobile-menu__search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
}

.mobile-menu__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.mobile-menu__links a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.mobile-menu__links a:hover,
.mobile-menu__links a.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.07);
}

.mobile-menu__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-decoration: none;
}

/* Primary — gradient fill with glow */
.btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.5s ease;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
  box-shadow: 0 6px 28px rgba(124,58,237,0.65), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }

/* Outline — glassmorphism with gradient border */
.btn-outline {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.28);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

.btn-lg  { padding: 14px 32px; font-size: 1rem; }
.btn-sm  { padding: 11px 22px; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.2px; }
.btn-icon { width: 48px; height: 48px; padding: 0; border-radius: 50%; }

/* ─── Badge ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-purple { background: rgba(124,58,237,0.2); color: #c4b5fd; border: 1px solid rgba(124,58,237,0.3); }
.badge-blue   { background: rgba(59,130,246,0.2); color: #93c5fd; border: 1px solid rgba(59,130,246,0.3); }
.badge-cyan   { background: rgba(6,182,212,0.2);  color: #67e8f9; border: 1px solid rgba(6,182,212,0.3); }
.badge-green  { background: rgba(16,185,129,0.2); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.3); }
.badge-gold   { background: rgba(245,158,11,0.2); color: #fcd34d; border: 1px solid rgba(245,158,11,0.3); }
.badge-dark   { background: rgba(0,0,0,0.5); color: var(--text-primary); backdrop-filter: blur(8px); }

/* ─── Section Titles ────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ─── Hero Section ──────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* account for floating pill top gap */
  padding: calc(var(--navbar-h) + var(--navbar-top) + 20px) 24px 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,0.3) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(59,130,246,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(6,182,212,0.15) 0%, transparent 60%);
}

/* Animated particles */
.hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: float-particle linear infinite;
  pointer-events: none;
}

@keyframes float-particle {
  0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  width: 100%;
  padding: 60px 0;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: #c4b5fd;
  margin-bottom: 24px;
  animation: fade-in-up 0.6s ease forwards;
}

.hero__eyebrow-dot {
  width: 6px; height: 6px;
  background: #c4b5fd;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 22px;
  animation: fade-in-up 0.6s 0.1s ease both;
}

.hero__title .line1 { display: block; color: var(--text-primary); }
.hero__title .line2 {
  display: block;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero Highlight Cards ─────────────────────────────── */
.hero__highlights {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto 40px;
  animation: fade-in-up 0.6s 0.2s ease both;
}

/* Card shell */
.hero__hl {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 22px;
  backdrop-filter: blur(18px);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  isolation: isolate;        /* contain stacking context — won't affect navbar */
  min-width: 260px;
}
.hero__hl:hover { transform: translateY(-3px); }

/* Animated shimmer border via ::before */
.hero__hl::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 23px;
  z-index: -2;
  background-size: 300% 300%;
  animation: border-shimmer 4s linear infinite;
}
/* Dark fill layer via ::after */
.hero__hl::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 21px;
  z-index: -1;
}

/* Icon and body always on top */
.hero__hl-icon,
.hero__hl-body,
.hero__hl-glow { position: relative; z-index: 1; }

@keyframes border-shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Creator — purple/amber */
.hero__hl--creator::before {
  background: linear-gradient(135deg, #7c3aed, #a855f7, #f59e0b, #7c3aed, #a855f7);
}
.hero__hl--creator::after {
  background: rgba(18, 8, 40, 0.88);
}
.hero__hl--creator {
  box-shadow: 0 0 28px rgba(124,58,237,0.25), 0 8px 32px rgba(0,0,0,0.4);
}
.hero__hl--creator:hover {
  box-shadow: 0 0 40px rgba(168,85,247,0.4), 0 12px 40px rgba(0,0,0,0.5);
}

/* Viewer — blue/cyan */
.hero__hl--viewer::before {
  background: linear-gradient(135deg, #2563eb, #06b6d4, #3b82f6, #2563eb, #06b6d4);
}
.hero__hl--viewer::after {
  background: rgba(6, 12, 40, 0.88);
}
.hero__hl--viewer {
  box-shadow: 0 0 28px rgba(59,130,246,0.2), 0 8px 32px rgba(0,0,0,0.4);
}
.hero__hl--viewer:hover {
  box-shadow: 0 0 40px rgba(6,182,212,0.35), 0 12px 40px rgba(0,0,0,0.5);
}

/* Glowing background orb */
.hero__hl-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: -40px;
  top: -60px;
  filter: blur(50px);
  opacity: 0.25;
  pointer-events: none;
  transition: opacity 0.4s;
  z-index: 0;   /* glow behind content but above ::after */
}
.hero__hl:hover .hero__hl-glow { opacity: 0.45; }
.hero__hl--creator .hero__hl-glow { background: radial-gradient(#a855f7, #f59e0b); }
.hero__hl--viewer  .hero__hl-glow { background: radial-gradient(#3b82f6, #06b6d4); }

/* Icon circle */
.hero__hl-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  animation: icon-pulse 3s ease-in-out infinite;
}
.hero__hl-icon svg { width: 22px; height: 22px; }

@keyframes icon-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168,85,247,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(168,85,247,0); }
}

.hero__hl--creator .hero__hl-icon {
  background: linear-gradient(135deg, rgba(124,58,237,0.4), rgba(245,158,11,0.2));
  border: 1px solid rgba(168,85,247,0.4);
  color: #c4b5fd;
}
.hero__hl--viewer .hero__hl-icon {
  background: linear-gradient(135deg, rgba(37,99,235,0.4), rgba(6,182,212,0.2));
  border: 1px solid rgba(59,130,246,0.4);
  color: #93c5fd;
  animation-name: icon-pulse-blue;
}
@keyframes icon-pulse-blue {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(59,130,246,0); }
}

/* Text block */
.hero__hl-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 1;
}

.hero__hl-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.6;
  color: var(--text-secondary);
}

.hero__hl-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  font-style: normal;
}

/* Gradient on the em (key phrase) */
.hero__hl--creator .hero__hl-title em {
  font-style: normal;
  background: linear-gradient(90deg, #c084fc, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__hl--viewer .hero__hl-title em {
  font-style: normal;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__hl-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 600px) {
  .hero__highlights { flex-direction: column; align-items: center; }
  .hero__hl { width: 100%; max-width: 340px; }
}

/* Hero search bar */
.hero__search {
  position: relative;
  max-width: 640px;
  margin: 0 auto 36px;
  animation: fade-in-up 0.6s 0.3s ease both;
}

.hero__search-box {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition: var(--transition);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.hero__search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow), 0 8px 40px rgba(0,0,0,0.3);
}

.hero__search-icon {
  padding: 0 18px;
  color: var(--text-muted);
  font-size: 18px;
  flex-shrink: 0;
}

.hero__search-input {
  flex: 1;
  height: 60px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
}
.hero__search-input::placeholder { color: var(--text-muted); }

.hero__search-select {
  padding: 0 14px;
  height: 60px;
  background: rgba(255,255,255,0.05);
  border: none;
  border-left: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}
.hero__search-select option { background: var(--bg-surface); }

.hero__search-submit {
  margin: 6px;
  padding: 0 24px;
  height: 48px;
  background: var(--grad-btn);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: inherit;
}
.hero__search-submit:hover { box-shadow: var(--shadow-btn); transform: scale(1.02); }

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  animation: fade-in-up 0.6s 0.4s ease both;
}

.hero__tag {
  padding: 6px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
}
.hero__tag:hover {
  background: rgba(124,58,237,0.2);
  border-color: rgba(124,58,237,0.4);
  color: #c4b5fd;
}

/* Hero stats */
.hero__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  animation: fade-in-up 0.6s 0.5s ease both;
}

.hero__stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero__stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
}

/* ─── Category Pills ────────────────────────────────────── */
.categories-section {
  padding: 48px 0 0;
}

.categories-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: var(--transition);
  cursor: pointer;
  flex-shrink: 0;
}
.cat-pill:hover,
.cat-pill.active {
  background: rgba(124,58,237,0.2);
  border-color: rgba(124,58,237,0.4);
  color: #c4b5fd;
}
.cat-pill.active { background: rgba(124,58,237,0.25); }

.cat-pill-icon { font-size: 1rem; }

/* ─── Video Grid ────────────────────────────────────────── */
.videos-section { padding: 60px 0; }

.videos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.videos-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Video Card */
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  background: var(--bg-card-hover);
}

.video-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-surface);
}

.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card:hover .video-card__thumb img {
  transform: scale(1.08);
}

.video-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card:hover .video-card__overlay { opacity: 1; }

.video-card__play {
  width: 54px; height: 54px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.3);
  transition: var(--transition);
  transform: scale(0.8);
}

.video-card:hover .video-card__play { transform: scale(1); }
.video-card__play:hover { background: rgba(124,58,237,0.5); border-color: var(--primary); }

.video-card__play svg { width: 20px; height: 20px; fill: white; margin-left: 3px; }

.video-card__duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 2px 8px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: white;
}

.video-card__res {
  position: absolute;
  top: 8px;
  left: 8px;
}

.video-card__body {
  padding: 14px 16px;
}

.video-card__title {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.video-card__ai-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--primary-light);
  font-size: 0.75rem;
  font-weight: 500;
}

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

.video-card__actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 14px;
}

.video-card__actions .btn {
  flex: 1;
  font-size: 0.8rem;
  padding: 8px 12px;
}

/* ─── Featured Banner ───────────────────────────────────── */
.featured-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 21/8;
  margin-bottom: 60px;
  cursor: pointer;
}

.featured-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-banner:hover img { transform: scale(1.04); }

.featured-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  display: flex;
  align-items: center;
  padding: 48px;
}

.featured-banner__content { max-width: 480px; }
.featured-banner__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.featured-banner__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}
.featured-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── How It Works ──────────────────────────────────────── */
.how-section { padding: 80px 0; }

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

.how-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.how-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-btn);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.how-card:hover::before { transform: scaleX(1); }
.how-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.how-card__step {
  display: inline-flex;
  width: 48px;
  height: 48px;
  background: var(--grad-btn);
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  box-shadow: var(--shadow-btn);
}

.how-card__num {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  line-height: 1;
}

.how-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.how-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Stats Counter ─────────────────────────────────────── */
.stats-section {
  padding: 60px 0;
  background: rgba(124,58,237,0.05);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-card { padding: 24px; }

.stat-card__value {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-card__label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── Highlights Section ─────────────────────────────── */
.highlights-section {
  padding: 80px 0;
}

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

.highlight-card {
  position: relative;
  border-radius: 28px;
  padding: 44px 40px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.highlight-card:hover {
  transform: translateY(-4px);
}

/* Glowing orb behind each card */
.highlight-card__glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  top: -80px;
  right: -80px;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.highlight-card:hover .highlight-card__glow { opacity: 0.55; }

/* Creator card — purple/amber */
.highlight-card--creator {
  background: linear-gradient(145deg, rgba(124,58,237,0.12) 0%, rgba(30,20,60,0.6) 100%);
  box-shadow: 0 20px 60px rgba(124,58,237,0.15), inset 0 1px 0 rgba(255,255,255,0.06);
}
.highlight-card--creator .highlight-card__glow {
  background: radial-gradient(circle, rgba(168,85,247,0.8), rgba(245,158,11,0.4));
}
.highlight-card--creator:hover {
  box-shadow: 0 28px 80px rgba(124,58,237,0.28), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Viewer card — blue/cyan */
.highlight-card--viewer {
  background: linear-gradient(145deg, rgba(59,130,246,0.12) 0%, rgba(10,20,50,0.6) 100%);
  box-shadow: 0 20px 60px rgba(59,130,246,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
}
.highlight-card--viewer .highlight-card__glow {
  background: radial-gradient(circle, rgba(59,130,246,0.8), rgba(6,182,212,0.4));
}
.highlight-card--viewer:hover {
  box-shadow: 0 28px 80px rgba(59,130,246,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Badge pill */
.highlight-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.highlight-card--creator .highlight-card__badge {
  background: rgba(168,85,247,0.18);
  border: 1px solid rgba(168,85,247,0.35);
  color: #c4b5fd;
}
.highlight-card--viewer .highlight-card__badge {
  background: rgba(59,130,246,0.18);
  border: 1px solid rgba(59,130,246,0.35);
  color: #93c5fd;
}

/* Big icon */
.highlight-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.highlight-card__icon svg { width: 30px; height: 30px; }
.highlight-card--creator .highlight-card__icon {
  background: linear-gradient(135deg, rgba(168,85,247,0.3), rgba(245,158,11,0.15));
  border: 1px solid rgba(168,85,247,0.3);
  color: #c4b5fd;
}
.highlight-card--viewer .highlight-card__icon {
  background: linear-gradient(135deg, rgba(59,130,246,0.3), rgba(6,182,212,0.15));
  border: 1px solid rgba(59,130,246,0.3);
  color: #93c5fd;
}

/* Title */
.highlight-card__title {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

/* Gradient highlight words */
.highlight-grad--creator {
  background: linear-gradient(90deg, #a855f7, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.highlight-grad--viewer {
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Description */
.highlight-card__desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Checklist */
.highlight-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.highlight-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.highlight-card--creator .highlight-card__list svg { color: #a855f7; }
.highlight-card--viewer  .highlight-card__list svg { color: #3b82f6; }

/* CTA button */
.highlight-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.highlight-card__btn:hover { transform: translateY(-2px); }

.highlight-card__btn--creator {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  box-shadow: 0 6px 24px rgba(124,58,237,0.45);
}
.highlight-card__btn--creator:hover { box-shadow: 0 10px 32px rgba(124,58,237,0.65); }

.highlight-card__btn--viewer {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  box-shadow: 0 6px 24px rgba(59,130,246,0.4);
}
.highlight-card__btn--viewer:hover { box-shadow: 0 10px 32px rgba(59,130,246,0.6); }

/* Mobile */
@media (max-width: 768px) {
  .highlights-grid { grid-template-columns: 1fr; gap: 20px; }
  .highlight-card { padding: 32px 24px; }
  .highlight-card__title { font-size: 1.5rem; }
}

/* ─── Upload CTA ────────────────────────────────────────── */
.upload-cta {
  padding: 80px 0;
}

.upload-cta__box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.upload-cta__box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.upload-cta__icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.upload-cta__title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.upload-cta__sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.upload-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── Supported AI Tools ────────────────────────────────── */
.ai-tools-section { padding: 48px 0 80px; }

.ai-tools-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.ai-tools-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ai-tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}
.ai-tool-badge:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* ─── Footer (minimal centered) ─────────────────────────── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 52px 0 28px;
  text-align: center;
}

/* Logo row — scoped so it doesn't inherit navbar sizing */
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 14px;
}

/* Override navbar-icon size specifically inside footer */
.footer__logo .navbar__logo-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  flex-shrink: 0;
}

.footer__logo .navbar__logo-text {
  font-size: 1.25rem !important;
  font-weight: 800;
  letter-spacing: -0.4px;
}

/* Tagline */
.footer__tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto 24px;
}

/* Social icons */
.footer__social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.footer__social-btn {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
  color: var(--text-secondary);
}
.footer__social-btn:hover {
  background: rgba(124,58,237,0.2);
  border-color: rgba(124,58,237,0.4);
  color: #c4b5fd;
  transform: translateY(-2px);
}

/* Single pill-link nav row */
.footer__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 32px;
}

.footer__nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: 999px;
  transition: var(--transition);
  white-space: nowrap;
  border: 1px solid transparent;
}
.footer__nav a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.07);
  border-color: var(--border);
}

/* Copyright bar */
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  text-align: center;
}

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


/* ─── Browse Page ───────────────────────────────────────── */
.browse-hero {
  padding: calc(var(--navbar-h) + var(--navbar-top) + 40px) 0 40px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,0.2) 0%, transparent 70%);
}

.browse-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.browse-hero__sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.browse-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 40px 0 80px;
  align-items: start;
}

/* Filters Sidebar */
.filters-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: calc(var(--navbar-h) + 20px);
}

.filters-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filters-clear {
  font-size: 0.78rem;
  color: var(--primary-light);
  cursor: pointer;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  background: none;
  border: none;
  font-family: inherit;
}
.filters-clear:hover { text-decoration: underline; }

.filter-group { margin-bottom: 24px; }

.filter-group-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--transition);
  padding: 6px 10px;
  border-radius: 8px;
}
.filter-option:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.filter-option span {
  flex: 1;
}

.filter-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  padding: 1px 7px;
  border-radius: 99px;
}

.browse-results {}

.browse-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.browse-count {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.browse-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-select {
  padding: 8px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}
.sort-select option { background: var(--bg-surface); }

.view-toggle {
  display: flex;
  gap: 4px;
}

.view-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
  font-size: 14px;
}
.view-btn.active,
.view-btn:hover {
  background: rgba(124,58,237,0.2);
  border-color: rgba(124,58,237,0.4);
  color: #c4b5fd;
}

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

.browse-grid.list-view {
  grid-template-columns: 1fr;
}

.browse-grid.list-view .video-card {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.browse-grid.list-view .video-card__thumb {
  aspect-ratio: unset;
  height: 160px;
}

/* ─── Upload Page ───────────────────────────────────────── */
.upload-page {
  padding: calc(var(--navbar-h) + var(--navbar-top) + 60px) 0 80px;
}

.upload-page-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.upload-page-sub {
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.upload-form-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.upload-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  background: rgba(255,255,255,0.02);
}
.upload-dropzone:hover,
.upload-dropzone.drag-over {
  border-color: var(--primary);
  background: rgba(124,58,237,0.06);
}
.upload-dropzone-icon { font-size: 3rem; margin-bottom: 16px; }
.upload-dropzone-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.upload-dropzone-sub { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 20px; }
.upload-dropzone-types {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 8px 16px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-full);
  display: inline-block;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.form-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: var(--primary);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

textarea.form-input { resize: vertical; min-height: 90px; }

.form-select {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-select option { background: var(--bg-surface); }

/* ─── Modal ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: var(--transition);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal__header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal__title { font-size: 1.1rem; font-weight: 700; }

.modal__close {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07);
  border: none;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.modal__close:hover { background: rgba(255,255,255,0.12); color: var(--text-primary); }

.modal__video { width: 100%; aspect-ratio: 16/9; background: #000; }
.modal__video img { width: 100%; height: 100%; object-fit: contain; }

.modal__body { padding: 24px; }

.modal__video-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.modal__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.modal__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Animations ────────────────────────────────────────── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-in { animation: fade-in 0.5s ease forwards; }
.animate-fade-in-up { animation: fade-in-up 0.5s ease forwards; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  z-index: 3000;
  transform: translateY(80px);
  opacity: 0;
  transition: var(--transition);
  min-width: 280px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { font-size: 1.2rem; flex-shrink: 0; }
.toast-msg  { flex: 1; }
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.info    { border-left: 3px solid var(--primary); }

/* ─── Page-specific: About, Terms, Privacy ────────────── */
.page-hero {
  padding: calc(var(--navbar-h) + var(--navbar-top) + 60px) 0 60px;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,0.2) 0%, transparent 70%);
}
.page-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 14px;
}
.page-hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.prose {
  padding: 60px 0 80px;
}

.prose h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--text-primary);
}

.prose p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.prose ul {
  list-style: none;
  margin-bottom: 14px;
}

.prose ul li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  padding: 4px 0 4px 24px;
  position: relative;
}
.prose ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-light);
}

/* ─── Responsive: Tablet (≤768px) ───────────────────────── */
@media (max-width: 1024px) {
  .videos-grid { grid-template-columns: repeat(3, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 2fr); }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__cols-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .browse-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
  .browse-grid { grid-template-columns: repeat(2, 1fr); }
  .upload-form-grid { grid-template-columns: 1fr; }
  .featured-banner { aspect-ratio: 16/7; }
  .featured-banner__overlay { padding: 32px; }

  /* Tablet: hide nav links, show hamburger, keep both action buttons */
  .navbar__links { display: none; }
  .navbar__hamburger { display: flex; }

  /* Scale pill down slightly for tablet */
  :root { --navbar-h: 74px; }
  .navbar { min-width: 360px; }
  .navbar__inner { padding: 0 18px; gap: 10px; }
  .navbar__logo-icon { width: 46px; height: 46px; border-radius: 13px; }
  .navbar__logo-text { font-size: 1.45rem; }
  .btn-sm { padding: 11px 22px; font-size: 0.92rem; }
}

/* ─── Responsive: Mobile (≤640px) ────────────────────────── */
@media (max-width: 640px) {
  :root {
    --navbar-h:   62px;
    --navbar-top: 10px;
  }
  .container { padding: 0 16px; }

  /* Full-width pill on mobile */
  .navbar {
    width: calc(100% - 20px);
    min-width: unset;
    max-width: calc(100% - 20px);
    padding: 0 5px;
  }
  .navbar__inner { padding: 0 10px; gap: 6px; }

  /* Logo scaled for mobile */
  .navbar__logo { margin-right: 4px; gap: 8px; }
  .navbar__logo-icon { width: 38px; height: 38px; border-radius: 10px; }
  .navbar__logo-text { font-size: 1.1rem; }

  /* Login: icon only. Upload: compact but readable */
  .navbar__actions { gap: 5px; padding-left: 0; }
  .navbar__actions .btn-outline span.btn-text { display: none; }
  .navbar__actions .btn-sm { padding: 9px 16px; font-size: 0.88rem; font-weight: 700; }
  .navbar__actions .btn-outline.btn-sm { padding: 9px 11px; }

  .hero__title { letter-spacing: -1px; }
  .hero__stats { gap: 24px; flex-wrap: wrap; }
  .hero__stat-value { font-size: 1.5rem; }
  .hero__search-select { display: none; }
  .hero__search-submit { padding: 0 16px; font-size: 0.82rem; }

  .videos-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .video-card__body { padding: 10px 12px; }
  .video-card__actions { padding: 0 12px 12px; }
  .video-card__actions .btn { font-size: 0.72rem; padding: 7px 8px; }

  .how-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .featured-banner { aspect-ratio: 4/3; }
  .featured-banner__overlay {
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 100%);
    align-items: flex-end;
  }

  .upload-cta__box { padding: 40px 24px; }
  .upload-cta__actions { flex-direction: column; align-items: center; }

  /* ── Mobile Footer ── */
  .footer { padding: 40px 0 24px; }

  /* Single column, all sections centered */
  .footer__top {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  /* Brand block: centered */
  .footer__brand p {
    max-width: 100%;
    font-size: 0.9rem;
    margin: 12px auto 18px;
  }

  /* Social buttons: centered row */
  .footer__social { justify-content: center; gap: 12px; }
  .footer__social-btn { width: 44px; height: 44px; border-radius: 12px; }

  /* Link columns: 2-column grid */
  .footer__cols-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
  }

  .footer__col-title { font-size: 0.78rem; margin-bottom: 12px; }
  .footer__links { gap: 12px; }
  .footer__links a { font-size: 0.9rem; }

  /* Bottom bar: stack vertically, centered */
  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding-top: 20px;
  }
  .footer__copy { font-size: 0.8rem; }
  .footer__bottom-links {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer__bottom-links a { font-size: 0.82rem; }

  .browse-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .browse-grid.list-view { grid-template-columns: 1fr; }
  .browse-grid.list-view .video-card { grid-template-columns: 1fr; }
  .browse-grid.list-view .video-card__thumb { height: auto; aspect-ratio: 16/9; }

  .section-header { margin-bottom: 32px; }

  .hero__tags { display: none; }

  .modal { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 95vh; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal__body { padding: 16px; }
  .modal__actions { flex-direction: column; }
  .modal__actions .btn { width: 100%; justify-content: center; }

  .ai-tools-list { gap: 8px; }
  .ai-tool-badge { padding: 7px 14px; font-size: 0.8rem; }

  .hero__search-box { border-radius: var(--radius-lg); }
  .hero__search-input { height: 50px; font-size: 0.9rem; }
  .hero__search-submit { padding: 0 14px; height: 38px; font-size: 0.8rem; }

  .section-title { letter-spacing: -0.5px; }
}

/* ─── Active page indicator ─────────────────────────────── */
.page-indicator {
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
  margin-left: 4px;
  vertical-align: middle;
}

/* ─── Lucide Icons ─────────────────────────────────────── */
svg.lucide {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Size helpers (apply to <i data-lucide> — copied to svg by Lucide) */
.icon-xs  { width: 12px; height: 12px; }
.icon-sm  { width: 15px; height: 15px; }
.icon-md  { width: 18px; height: 18px; }
.icon-lg  { width: 22px; height: 22px; }
.icon-xl  { width: 28px; height: 28px; }
.icon-2xl { width: 40px; height: 40px; }
.icon-3xl { width: 56px; height: 56px; }
.icon-hero{ width: 80px; height: 80px; }

/* Lucide icons inherit colour from parent — override as needed */
.icon-primary { color: var(--primary-light); }
.icon-accent  { color: var(--accent); }
.icon-muted   { color: var(--text-muted); }
.icon-white   { color: #fff; }

/* Step icon circle (how it works) */
.how-card__step svg.lucide { width: 26px; height: 26px; color: #fff; }

/* Social icon buttons */
.footer__social-btn svg.lucide { width: 16px; height: 16px; }

/* Navbar search icon */
.navbar__search-btn svg.lucide { width: 16px; height: 16px; }

/* Hero search icon */
.hero__search-icon svg.lucide { width: 20px; height: 20px; color: var(--text-muted); }

/* ─── FAQ Accordion (details/summary) ──────────────────── */
details summary { user-select: none; }
details summary::-webkit-details-marker { display: none; }
details[open] summary span:last-child { transform: rotate(45deg); display: inline-block; transition: transform 0.2s; }
details summary:hover { background: rgba(255,255,255,0.03); }

/* Anchor scroll offset for fixed navbar */
[id] { scroll-margin-top: calc(var(--navbar-h) + 20px); }

/* Image lazy loading fade */
img[loading="lazy"] { opacity: 0; transition: opacity 0.4s ease; }
img[loading="lazy"].loaded { opacity: 1; }

/* ─── Loading spinner ───────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Pagination ────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
}

.page-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
}
.page-btn:hover { background: rgba(255,255,255,0.09); color: var(--text-primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── No results ────────────────────────────────────────── */
.no-results {
  text-align: center;
  padding: 80px 24px;
  grid-column: 1 / -1;
}
.no-results-icon { font-size: 3rem; margin-bottom: 16px; }
.no-results-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.no-results-sub { font-size: 0.9rem; color: var(--text-muted); }
