/* ===== ClipVirex Design System ===== */

/* --- CSS Custom Properties (Dark Theme + Neon Accents) --- */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --bg-elevated: #1e1e2a;
  --bg-glass: rgba(22, 22, 31, 0.72);
  --bg-input: #1a1a26;

  --accent-purple: #a855f7;
  --accent-purple-dim: rgba(168, 85, 247, 0.15);
  --accent-purple-glow: rgba(168, 85, 247, 0.45);
  --accent-blue: #3b82f6;
  --accent-blue-dim: rgba(59, 130, 246, 0.15);
  --accent-cyan: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #a855f7, #3b82f6);
  --accent-gradient-hover: linear-gradient(135deg, #b97afc, #5b9cf7);
  --accent-gradient-subtle: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(59,130,246,0.12));

  --text-primary: #f1f1f5;
  --text-secondary: #9898a8;
  --text-muted: #5c5c6f;
  --text-accent: #c4b5fd;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(168, 85, 247, 0.3);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(168, 85, 247, 0.2);
  --shadow-glow-lg: 0 0 40px rgba(168, 85, 247, 0.25);

  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --fs-4xl: 2.75rem;
  --fs-5xl: 3.5rem;

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  --container-max: 1320px;
  --sidebar-width: 300px;
  --nav-height: 68px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--text-accent); text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }
a:hover { color: var(--accent-purple); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

/* --- Utility --- */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-6); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.section { padding: var(--space-20) 0; }
.section-header { margin-bottom: var(--space-12); }
.section-header h2 { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: var(--fw-bold); }
.section-header p { color: var(--text-secondary); margin-top: var(--space-2); font-size: var(--fs-lg); }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { align-items: center; justify-content: space-between; display: flex; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.15); }
  50% { box-shadow: 0 0 35px rgba(168, 85, 247, 0.3); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes countdown-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-in { animation: fadeInUp var(--duration-slow) var(--ease-out) both; }
.animate-fade { animation: fadeIn var(--duration-slow) var(--ease-out) both; }

.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 60ms; }
.stagger > *:nth-child(3) { animation-delay: 120ms; }
.stagger > *:nth-child(4) { animation-delay: 180ms; }
.stagger > *:nth-child(5) { animation-delay: 240ms; }
.stagger > *:nth-child(6) { animation-delay: 300ms; }
.stagger > *:nth-child(7) { animation-delay: 360ms; }
.stagger > *:nth-child(8) { animation-delay: 420ms; }

.lazy-img { opacity: 0; transition: opacity var(--duration-slow) var(--ease-out); }
.lazy-img.loaded { opacity: 1; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: background var(--duration-normal) var(--ease-out);
}
.nav.scrolled { background: rgba(10, 10, 15, 0.95); border-bottom-color: var(--border-default); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: var(--space-8); }
.nav-logo {
  font-family: var(--font-display); font-size: var(--fs-xl); font-weight: var(--fw-extrabold);
  background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; letter-spacing: -0.02em; white-space: nowrap; flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: var(--space-1); }
.nav-links a {
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); color: var(--text-secondary);
  font-size: var(--fs-sm); font-weight: var(--fw-medium); transition: all var(--duration-fast) var(--ease-out); white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); background: var(--accent-gradient-subtle); }
.nav-links a.active { color: var(--accent-purple); }
.nav-search { position: relative; flex: 0 1 340px; }
.nav-search input {
  width: 100%; padding: var(--space-2) var(--space-4); padding-left: 40px;
  background: var(--bg-input); border: 1px solid var(--border-subtle); border-radius: var(--radius-full);
  color: var(--text-primary); font-size: var(--fs-sm); transition: all var(--duration-fast) var(--ease-out); outline: none;
}
.nav-search input:focus { border-color: var(--accent-purple); box-shadow: 0 0 0 3px var(--accent-purple-dim); background: var(--bg-elevated); }
.nav-search input::placeholder { color: var(--text-muted); }
.nav-search .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; font-size: var(--fs-sm); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: var(--space-2); cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all var(--duration-fast) var(--ease-out); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  position: relative; padding: calc(var(--nav-height) + var(--space-20)) 0 var(--space-24);
  overflow: hidden; min-height: 85vh; display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 40%, rgba(168, 85, 247, 0.12), transparent),
    radial-gradient(ellipse 60% 55% at 80% 30%, rgba(59, 130, 246, 0.1), transparent),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(6, 182, 212, 0.06), transparent);
  z-index: 1;
}
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, var(--bg-primary)); z-index: 2; }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(168,85,247,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(168,85,247,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
}
.hero-content { position: relative; z-index: 3; text-align: center; max-width: 820px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-4);
  background: var(--accent-purple-dim); border: 1px solid var(--border-accent); border-radius: var(--radius-full);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--accent-purple);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-6); animation: fadeInUp 0.5s var(--ease-out) both;
}
.hero h1 {
  font-family: var(--font-display); font-size: var(--fs-5xl); font-weight: var(--fw-extrabold);
  line-height: 1.1; letter-spacing: -0.03em; margin-bottom: var(--space-6); animation: fadeInUp 0.6s var(--ease-out) 0.1s both;
}
.hero h1 .gradient-text { background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: var(--fs-lg); color: var(--text-secondary); line-height: 1.7; max-width: 620px; margin: 0 auto var(--space-10); animation: fadeInUp 0.6s var(--ease-out) 0.2s both; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: var(--space-4); flex-wrap: wrap; animation: fadeInUp 0.6s var(--ease-out) 0.3s both; }
.hero-stats { display: flex; align-items: center; justify-content: center; gap: var(--space-12); margin-top: var(--space-16); animation: fadeInUp 0.6s var(--ease-out) 0.4s both; }
.hero-stats .stat { text-align: center; }
.hero-stats .stat-value {
  display: block; font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: var(--fw-bold);
  background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stats .stat-label { font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--space-1); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6); border-radius: var(--radius-md); font-size: var(--fs-sm);
  font-weight: var(--fw-semibold); transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn-primary { background: var(--accent-gradient); color: #fff; box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(168, 85, 247, 0.4); color: #fff; }
.btn-secondary { background: var(--bg-elevated); border: 1px solid var(--border-default); color: var(--text-primary); }
.btn-secondary:hover { border-color: var(--accent-purple); background: var(--accent-purple-dim); color: var(--text-primary); }
.btn-ghost { color: var(--text-secondary); padding: var(--space-2) var(--space-4); }
.btn-ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--fs-base); border-radius: var(--radius-lg); }
.btn-sm { padding: var(--space-1) var(--space-3); font-size: var(--fs-xs); }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  overflow: hidden; transition: all var(--duration-normal) var(--ease-out); position: relative;
}
.card:hover { border-color: var(--border-accent); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.card-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-secondary); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-out); }
.card:hover .card-thumb img { transform: scale(1.05); }
.card-thumb .play-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4); opacity: 0; transition: opacity var(--duration-fast) var(--ease-out);
}
.card:hover .card-thumb .play-overlay { opacity: 1; }
.play-btn {
  width: 48px; height: 48px; border-radius: 50%; background: rgba(168, 85, 247, 0.85);
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px);
  transition: transform var(--duration-fast) var(--ease-spring);
}
.play-btn:hover { transform: scale(1.1); }
.play-btn::after {
  content: ''; display: block; width: 0; height: 0; border-style: solid;
  border-width: 8px 0 8px 14px; border-color: transparent transparent transparent #fff; margin-left: 3px;
}
.card-body { padding: var(--space-4); }
.card-title { font-weight: var(--fw-semibold); font-size: var(--fs-base); margin-bottom: var(--space-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-xs); color: var(--text-muted); }
.card-tags { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-3); }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) var(--space-4); border-top: 1px solid var(--border-subtle); }
.card-badge { position: absolute; top: var(--space-3); left: var(--space-3); z-index: 2; }
.card-actions { position: absolute; top: var(--space-3); right: var(--space-3); z-index: 2; display: flex; gap: var(--space-1); }
.card-actions button {
  width: 32px; height: 32px; border-radius: var(--radius-sm); background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px); color: var(--text-primary); font-size: var(--fs-sm);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(-4px); transition: all var(--duration-fast) var(--ease-out);
}
.card:hover .card-actions button { opacity: 1; transform: translateY(0); }
.card-actions button:hover { background: var(--accent-purple); }

/* ===== TAGS / BADGES ===== */
.tag {
  display: inline-flex; align-items: center; padding: 2px var(--space-2); background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm); font-size: var(--fs-xs); color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-out);
}
.tag:hover { background: var(--accent-purple-dim); color: var(--accent-purple); }
.badge {
  display: inline-flex; align-items: center; padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full); font-size: var(--fs-xs); font-weight: var(--fw-semibold);
}
.badge-free { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.badge-pro { background: var(--accent-purple-dim); color: var(--accent-purple); }
.badge-new { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.badge-trending { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

/* ===== STAR RATING ===== */
.stars { display: inline-flex; gap: 2px; }
.stars .star { color: var(--text-muted); font-size: var(--fs-sm); cursor: pointer; transition: color var(--duration-fast); }
.stars .star.filled { color: #f59e0b; }
.stars .star:hover { color: #fbbf24; }

/* ===== CATEGORY CARDS ===== */
.cat-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: var(--space-8); text-align: center; cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out); position: relative; overflow: hidden;
}
.cat-card::before { content: ''; position: absolute; inset: 0; background: var(--accent-gradient-subtle); opacity: 0; transition: opacity var(--duration-normal); }
.cat-card:hover::before { opacity: 1; }
.cat-card:hover { border-color: var(--border-accent); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.cat-card .icon { font-size: 2.5rem; margin-bottom: var(--space-4); display: block; position: relative; }
.cat-card h3 { font-weight: var(--fw-semibold); margin-bottom: var(--space-2); position: relative; }
.cat-card p { font-size: var(--fs-sm); color: var(--text-muted); position: relative; }

/* ===== ADSTRA ADS ===== */
.adstra-banner {
  background: var(--bg-secondary); border: 1px dashed var(--border-default); border-radius: var(--radius-md);
  padding: var(--space-6); text-align: center; color: var(--text-muted); font-size: var(--fs-xs);
  position: relative; overflow: hidden; min-height: 90px; display: flex; align-items: center; justify-content: center;
}
.adstra-banner::before { content: ''; }
.adstra-sidebar {
  background: var(--bg-secondary); border: 1px dashed var(--border-default); border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-4); text-align: center; color: var(--text-muted); font-size: var(--fs-xs);
  min-height: 250px; display: flex; align-items: center; justify-content: center;
}
.adstra-sidebar::before { content: ''; }
.adstra-inline {
  background: linear-gradient(135deg, rgba(168,85,247,0.04), rgba(59,130,246,0.04));
  border: 1px dashed var(--border-default); border-radius: var(--radius-md); padding: var(--space-4);
  text-align: center; color: var(--text-muted); font-size: var(--fs-xs); min-height: 100px;
  display: flex; align-items: center; justify-content: center;
}
.adstra-inline::before { content: ''; }

/* ===== NEWSLETTER ===== */
.newsletter {
  background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl);
  padding: var(--space-16); text-align: center; position: relative; overflow: hidden;
}
.newsletter::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 30% 20%, rgba(168,85,247,0.08), transparent),
    radial-gradient(ellipse 50% 50% at 70% 80%, rgba(59,130,246,0.06), transparent);
  pointer-events: none;
}
.newsletter h2 { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: var(--fw-bold); margin-bottom: var(--space-3); position: relative; }
.newsletter p { color: var(--text-secondary); margin-bottom: var(--space-8); max-width: 500px; margin-left: auto; margin-right: auto; position: relative; }
.newsletter-form { display: flex; gap: var(--space-3); max-width: 460px; margin: 0 auto; position: relative; }
.newsletter-form input {
  flex: 1; padding: var(--space-3) var(--space-5); background: var(--bg-input);
  border: 1px solid var(--border-default); border-radius: var(--radius-md); outline: none;
  transition: all var(--duration-fast) var(--ease-out);
}
.newsletter-form input:focus { border-color: var(--accent-purple); box-shadow: 0 0 0 3px var(--accent-purple-dim); }

/* ===== ASSET DETAIL ===== */
.asset-detail { padding-top: calc(var(--nav-height) + var(--space-10)); }
.asset-preview { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; background: var(--bg-secondary); margin-bottom: var(--space-8); }
.asset-preview img { width: 100%; height: 100%; object-fit: cover; }
.asset-preview .play-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.3); cursor: pointer; transition: background var(--duration-fast);
}
.asset-preview .play-overlay:hover { background: rgba(0,0,0,0.5); }
.asset-preview .play-btn { width: 64px; height: 64px; }
.asset-preview .play-btn::after { border-width: 10px 0 10px 18px; margin-left: 4px; }

.asset-info { display: grid; grid-template-columns: 1fr var(--sidebar-width); gap: var(--space-8); }
.asset-main h1 { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: var(--fw-bold); margin-bottom: var(--space-4); }
.asset-main .description { color: var(--text-secondary); line-height: 1.7; margin-bottom: var(--space-8); }
.asset-meta-table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-8); }
.asset-meta-table tr { border-bottom: 1px solid var(--border-subtle); }
.asset-meta-table td { padding: var(--space-3) 0; font-size: var(--fs-sm); }
.asset-meta-table td:first-child { color: var(--text-muted); width: 140px; }
.asset-sidebar { display: flex; flex-direction: column; gap: var(--space-6); }
.download-box { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-6); }
.download-box .price { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: var(--fw-bold); margin-bottom: var(--space-4); }
.download-box .price.free { color: #10b981; }
.download-box .meta { margin-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--fs-sm); color: var(--text-muted); }

/* Limited time offer badge */
.limited-badge {
  display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-4);
  background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(245,158,11,0.15));
  border: 1px solid rgba(239,68,68,0.3); border-radius: var(--radius-full);
  font-size: var(--fs-xs); font-weight: var(--fw-bold); color: #f87171;
  animation: countdown-pulse 2s ease-in-out infinite; margin-bottom: var(--space-4);
}

/* Social share buttons */
.social-share { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-4); }
.social-share button {
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-md);
  font-size: var(--fs-xs); font-weight: var(--fw-medium); border: 1px solid var(--border-default);
  background: var(--bg-card); color: var(--text-secondary); transition: all var(--duration-fast) var(--ease-out);
}
.social-share button:hover { border-color: var(--accent-purple); background: var(--accent-purple-dim); color: var(--text-primary); }

/* ===== STICKY DOWNLOAD BAR ===== */
.sticky-download-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-accent); padding: var(--space-3) 0;
  transform: translateY(100%); transition: transform var(--duration-normal) var(--ease-out);
}
.sticky-download-bar.visible { transform: translateY(0); }
.sticky-download-inner { display: flex; align-items: center; justify-content: space-between; }
.sticky-download-info { display: flex; align-items: center; gap: var(--space-4); }
.sticky-download-info span:first-child { font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.sticky-price { font-family: var(--font-display); font-weight: var(--fw-bold); color: #10b981; }

/* ===== BUNDLE PAGE ===== */
.bundle-page { padding-top: calc(var(--nav-height) + var(--space-10)); }
.bundle-hero {
  text-align: center; padding: var(--space-16) 0; position: relative;
  background: linear-gradient(135deg, rgba(168,85,247,0.06), rgba(59,130,246,0.06));
  border-radius: var(--radius-xl); border: 1px solid var(--border-accent); margin-bottom: var(--space-12);
  overflow: hidden;
}
.bundle-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 30%, rgba(168,85,247,0.1), transparent);
  pointer-events: none;
}
.bundle-hero h1 { font-family: var(--font-display); font-size: var(--fs-4xl); font-weight: var(--fw-extrabold); position: relative; margin-bottom: var(--space-4); }
.bundle-hero p { color: var(--text-secondary); font-size: var(--fs-lg); max-width: 600px; margin: 0 auto; position: relative; }

.bundle-pricing {
  background: var(--bg-card); border: 2px solid var(--accent-purple); border-radius: var(--radius-xl);
  padding: var(--space-12); text-align: center; position: relative; overflow: hidden;
  animation: pulse-glow 3s ease-in-out infinite; max-width: 600px; margin: 0 auto var(--space-12);
}
.bundle-pricing .old-price { text-decoration: line-through; color: var(--text-muted); font-size: var(--fs-xl); margin-bottom: var(--space-2); }
.bundle-pricing .new-price {
  font-family: var(--font-display); font-size: var(--fs-5xl); font-weight: var(--fw-extrabold);
  background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-2);
}
.bundle-pricing .save-badge {
  display: inline-block; padding: var(--space-1) var(--space-4); background: rgba(16,185,129,0.15);
  color: #10b981; border-radius: var(--radius-full); font-size: var(--fs-sm); font-weight: var(--fw-bold); margin-bottom: var(--space-6);
}

.bundle-benefits {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); margin-bottom: var(--space-8);
  text-align: left;
}
.bundle-benefit {
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4);
  background: rgba(255,255,255,0.03); border-radius: var(--radius-md); font-size: var(--fs-sm); color: var(--text-secondary);
}
.bundle-benefit .check { color: #10b981; font-size: var(--fs-lg); flex-shrink: 0; }

.bundle-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-4); }
.bundle-item {
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: var(--space-5); display: flex; align-items: center; gap: var(--space-4);
  transition: all var(--duration-fast) var(--ease-out);
}
.bundle-item:hover { border-color: var(--border-accent); background: var(--bg-card-hover); }
.bundle-item .b-icon { font-size: 1.5rem; flex-shrink: 0; }
.bundle-item .b-info h4 { font-size: var(--fs-sm); font-weight: var(--fw-semibold); margin-bottom: 2px; }
.bundle-item .b-info p { font-size: var(--fs-xs); color: var(--text-muted); }

/* ===== BLOG ===== */
.blog-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  overflow: hidden; transition: all var(--duration-normal) var(--ease-out);
}
.blog-card:hover { border-color: var(--border-accent); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.blog-card .thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-secondary); }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-out); }
.blog-card:hover .thumb img { transform: scale(1.04); }
.blog-card .body { padding: var(--space-5); }
.blog-card .category-label { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--accent-purple); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-2); }
.blog-card h3 { font-size: var(--fs-lg); font-weight: var(--fw-semibold); margin-bottom: var(--space-2); line-height: 1.3; }
.blog-card .excerpt { font-size: var(--fs-sm); color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: var(--space-3); }
.blog-card .meta { font-size: var(--fs-xs); color: var(--text-muted); }

.blog-article { max-width: 780px; margin: 0 auto; padding-top: calc(var(--nav-height) + var(--space-10)); }
.blog-article h1 { font-family: var(--font-display); font-size: var(--fs-4xl); font-weight: var(--fw-bold); line-height: 1.15; margin-bottom: var(--space-6); }
.blog-article .article-meta { display: flex; align-items: center; gap: var(--space-4); color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--space-10); padding-bottom: var(--space-6); border-bottom: 1px solid var(--border-subtle); }
.blog-article .content p { color: var(--text-secondary); line-height: 1.8; margin-bottom: var(--space-6); }
.blog-article .content h2 { font-family: var(--font-display); font-size: var(--fs-2xl); margin: var(--space-10) 0 var(--space-4); }
.blog-article .content ul { margin-bottom: var(--space-6); padding-left: var(--space-6); }
.blog-article .content li { color: var(--text-secondary); margin-bottom: var(--space-2); list-style: disc; }

/* ===== SUBMIT FORM ===== */
.submit-page { padding-top: calc(var(--nav-height) + var(--space-10)); }
.form-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: var(--space-10); max-width: 680px; margin: 0 auto; }
.form-group { margin-bottom: var(--space-6); }
.form-group label { display: block; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-secondary); margin-bottom: var(--space-2); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: var(--space-3) var(--space-4); background: var(--bg-input);
  border: 1px solid var(--border-default); border-radius: var(--radius-md); outline: none;
  transition: all var(--duration-fast) var(--ease-out);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent-purple); box-shadow: 0 0 0 3px var(--accent-purple-dim); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239898a8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.file-upload {
  border: 2px dashed var(--border-default); border-radius: var(--radius-lg); padding: var(--space-10);
  text-align: center; cursor: pointer; transition: all var(--duration-fast) var(--ease-out);
}
.file-upload:hover { border-color: var(--accent-purple); background: var(--accent-purple-dim); }
.file-upload .icon { font-size: 2rem; margin-bottom: var(--space-3); }
.file-upload p { color: var(--text-muted); font-size: var(--fs-sm); }

/* ===== SEARCH & FILTER ===== */
.search-page { padding-top: calc(var(--nav-height) + var(--space-10)); }
.search-layout { display: grid; grid-template-columns: 240px 1fr; gap: var(--space-8); }
.filter-sidebar { position: sticky; top: calc(var(--nav-height) + var(--space-6)); align-self: start; }
.filter-group { margin-bottom: var(--space-6); }
.filter-group h4 { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-3); }
.filter-group label { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) 0; font-size: var(--fs-sm); color: var(--text-secondary); cursor: pointer; transition: color var(--duration-fast); }
.filter-group label:hover { color: var(--text-primary); }
.filter-group input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent-purple); }
.search-results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-6); }
.search-results-header h2 { font-size: var(--fs-xl); font-weight: var(--fw-semibold); }
.search-results-header select { padding: var(--space-2) var(--space-3); background: var(--bg-input); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); color: var(--text-primary); font-size: var(--fs-sm); outline: none; }

/* ===== FOOTER ===== */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border-subtle); padding: var(--space-16) 0 var(--space-8); margin-top: var(--space-20); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--space-10); margin-bottom: var(--space-12); }
.footer-brand .logo { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: var(--fw-extrabold); background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: var(--space-4); }
.footer-brand p { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.6; max-width: 280px; }
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.footer-social a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); background: rgba(255,255,255,0.05); color: var(--text-muted); transition: all var(--duration-fast) var(--ease-out); }
.footer-social a:hover { background: var(--accent-purple-dim); color: var(--accent-purple); }
.footer-col h4 { font-size: var(--fs-sm); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-primary); margin-bottom: var(--space-4); }
.footer-col a { display: block; font-size: var(--fs-sm); color: var(--text-muted); padding: var(--space-1) 0; transition: color var(--duration-fast); }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-8); border-top: 1px solid var(--border-subtle); font-size: var(--fs-xs); color: var(--text-muted); }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--text-primary); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-purple-dim); }

/* Page top padding for inner pages */
.page-inner { padding-top: calc(var(--nav-height) + var(--space-10)); min-height: 80vh; }
.page-header { margin-bottom: var(--space-10); }
.page-header h1 { font-family: var(--font-display); font-size: var(--fs-4xl); font-weight: var(--fw-bold); margin-bottom: var(--space-3); }
.page-header p { color: var(--text-secondary); font-size: var(--fs-lg); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .asset-info { grid-template-columns: 1fr; }
  .search-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .hero h1 { font-size: var(--fs-4xl); }
  .bundle-benefits { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  .container { padding: 0 var(--space-4); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 70vh; padding: calc(var(--nav-height) + var(--space-12)) 0 var(--space-16); }
  .hero h1 { font-size: var(--fs-3xl); }
  .hero p { font-size: var(--fs-base); }
  .hero-stats { gap: var(--space-6); }
  .hero-stats .stat-value { font-size: var(--fs-2xl); }
  .section { padding: var(--space-12) 0; }
  .section-header h2 { font-size: var(--fs-2xl); }
  .newsletter { padding: var(--space-10); }
  .newsletter h2 { font-size: var(--fs-2xl); }
  .newsletter-form { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
  .blog-article h1 { font-size: var(--fs-3xl); }
  .sticky-download-info span:first-child { display: none; }
  .nav-links {
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: rgba(10,10,15,0.98); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    flex-direction: column; padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: all var(--duration-normal) var(--ease-out);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-links a { width: 100%; padding: var(--space-3) var(--space-4); }
  .nav-toggle { display: flex; }
  .nav-search { display: none; }
}
@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4, .grid-auto { grid-template-columns: 1fr; }
  .hero h1 { font-size: var(--fs-2xl); }
  .hero-stats { flex-direction: column; gap: var(--space-4); }
  .form-card { padding: var(--space-6); }
  .bundle-hero h1 { font-size: var(--fs-3xl); }
}

/* ===== PAGE TRANSITION ===== */
#app { min-height: calc(100vh - var(--nav-height)); }
.page-transition { animation: fadeIn var(--duration-normal) var(--ease-out); }

/* ===== UPSELL BOX ===== */
.upsell-box {
  background: linear-gradient(135deg, rgba(168,85,247,0.08), rgba(59,130,246,0.08));
  border: 1px solid var(--border-accent); border-radius: var(--radius-lg); padding: var(--space-8);
  text-align: center; margin: var(--space-8) 0;
}
.upsell-box h3 { font-family: var(--font-display); font-size: var(--fs-xl); margin-bottom: var(--space-3); }
.upsell-box p { color: var(--text-secondary); font-size: var(--fs-sm); margin-bottom: var(--space-6); }
