/**
 * LootVault Main Stylesheet
 * Premium Light Theme Aesthetic (Clean, Fast, High-Converting & Ad-Monetized)
 */

:root {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-input: #f8fafc;
  
  --border-color: #e2e8f0;
  --border-light: #edf2f7;
  --border-strong: #cbd5e1;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --accent-primary: #4f46e5;
  --accent-hover: #4338ca;
  --accent-glow: rgba(79, 70, 229, 0.18);
  --accent-light: #eef2ff;
  
  --brand-green: #059669;
  --brand-green-hover: #047857;
  --brand-green-glow: rgba(5, 150, 105, 0.2);
  --brand-green-light: #ecfdf5;
  
  --brand-red: #dc2626;
  --brand-red-light: #fef2f2;
  --brand-yellow: #d97706;
  --brand-yellow-light: #fffbeb;
  --brand-cyan: #0284c7;
  --brand-cyan-light: #f0f9ff;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;
  
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.07), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

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

img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Navbar */
.site-header {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 1.5rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-badge {
  background: linear-gradient(135deg, #059669 0%, #0284c7 100%);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Header Search */
.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.header-search input {
  width: 100%;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.65rem 1rem 0.65rem 2.75rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.header-search input::placeholder {
  color: var(--text-muted);
}

.header-search input:focus {
  background-color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.header-search .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-primary);
}

.btn-upload-nav {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #6366f1 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
  transition: var(--transition);
}

.btn-upload-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

/* Top Ad Banner Slot */
.ad-slot-leaderboard {
  background-color: #ffffff;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  margin: 1.25rem auto;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  text-align: center;
  padding: 0.5rem;
  box-shadow: var(--shadow-xs);
}

.ad-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 0 2rem;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--brand-green-light);
  border: 1px solid rgba(5, 150, 105, 0.25);
  color: var(--brand-green);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.1);
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -1.2px;
  margin-bottom: 1rem;
}

.hero-title span {
  background: linear-gradient(135deg, #059669 0%, #0284c7 50%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-badges span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #ffffff;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
}

/* Category Filter Tabs */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1.5rem 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-xs);
}

.filter-btn:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.filter-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* Product Card Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 1.75rem;
  margin: 1.5rem 0 3.5rem;
}

/* Card Style */
.asset-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.asset-card:hover {
  transform: translateY(-5px);
  border-color: rgba(79, 70, 229, 0.4);
  box-shadow: var(--shadow-xl);
}

.card-thumbnail-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: #f1f5f9;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

/* Reel Card aspect ratio override */
.asset-card.is-reel .card-thumbnail-wrap {
  aspect-ratio: 9 / 12;
}

.card-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.asset-card:hover .card-thumbnail {
  transform: scale(1.05);
}

/* Badges on Thumbnails */
.badge-top-left {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.badge-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.badge-free {
  background-color: #059669;
  color: #ffffff;
}

.badge-reel {
  background-color: #dc2626;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-music {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-graphic {
  background-color: #0d9488;
  color: #ffffff;
}

.badge-tshirt {
  background-color: #0284c7;
  color: #ffffff;
}

/* Reel Play Preview Overlay Button */
.reel-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: var(--transition);
}

.asset-card:hover .reel-play-overlay {
  opacity: 1;
  background: rgba(15, 23, 42, 0.35);
}

.play-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #dc2626;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.5);
  transition: transform 0.2s ease;
}

.asset-card:hover .play-icon-circle {
  transform: scale(1.12);
}

/* Card Body */
.card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category {
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.4rem;
}

.card-title {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title a {
  color: var(--text-primary);
}

.card-title a:hover {
  color: var(--accent-primary);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.card-file-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.card-action-btn {
  background-color: var(--accent-light);
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.asset-card:hover .card-action-btn {
  background-color: var(--accent-primary);
  color: #ffffff;
}

/* In-Feed Sponsored Ad Card */
.asset-card.in-feed-ad {
  background: #ffffff;
  border: 1px dashed var(--border-strong);
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.75rem;
  min-height: 340px;
}

/* Single Product Detail Page Layout */
.single-product-layout {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 2.5rem;
  margin: 2rem 0 4.5rem;
}

@media (max-width: 960px) {
  .single-product-layout {
    grid-template-columns: 1fr;
  }
}

/* Media Showcase Area */
.media-showcase {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

/* YouTube Reel Showcase (Vertical 9:16) */
.reel-player-box {
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.16);
  border: 3px solid #0f172a;
  background-color: #000000;
}

.reel-aspect-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background-color: #000000;
}

.reel-aspect-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================================
   ZERO-SERVER ROYALTY-FREE MUSIC PLAYER UI
   ========================================= */
.music-player-showcase {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.music-cover-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.music-album-art {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #8b5cf6 0%, #4f46e5 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.music-meta-info {
  flex: 1;
}

.music-genre-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ede9fe;
  color: #6366f1;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  margin-bottom: 0.4rem;
}

.music-track-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 0.35rem;
  letter-spacing: -0.4px;
}

.music-track-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Animated Equalizer Waveform */
.music-waveform-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 48px;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.waveform-bar {
  flex: 1;
  background: #cbd5e1;
  border-radius: 2px;
  min-height: 4px;
  transition: height 0.15s ease, background-color 0.2s ease;
}

.music-player-showcase.is-playing .waveform-bar {
  background: var(--accent-primary);
  animation: equalize 1s infinite alternate ease-in-out;
}

@keyframes equalize {
  0% { height: 15%; }
  50% { height: 85%; }
  100% { height: 35%; }
}

.music-waveform-bars .waveform-bar:nth-child(2n) { animation-delay: 0.15s; }
.music-waveform-bars .waveform-bar:nth-child(3n) { animation-delay: 0.3s; }
.music-waveform-bars .waveform-bar:nth-child(4n) { animation-delay: 0.45s; }
.music-waveform-bars .waveform-bar:nth-child(5n) { animation-delay: 0.1s; }

/* Audio Controls Bar */
.music-controls-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
}

.btn-audio-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary) 0%, #6366f1 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-audio-play:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
}

.audio-progress-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.audio-scrubber {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.audio-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.audio-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.music-stream-audio-element {
  display: none;
}

/* YouTube Audio Visualizer Embed Toggle */
.music-yt-player-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000000;
  margin-top: 1rem;
}

.music-yt-player-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* YouTube Standard Video Showcase (16:9) */
.video-player-box {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: #000000;
  position: relative;
  box-shadow: var(--shadow-md);
}

.video-player-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* T-Shirt / Graphic Mockup Showcase */
.mockup-showcase-box {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 11;
  position: relative;
}

.mockup-showcase-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Single Sidebar / Action Box */
.single-action-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.download-action-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.download-badge-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.single-title {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.single-meta-table {
  width: 100%;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  border-collapse: collapse;
}

.single-meta-table tr {
  border-bottom: 1px solid var(--border-light);
}

.single-meta-table td {
  padding: 0.75rem 0;
}

.single-meta-table td:first-child {
  color: var(--text-muted);
  font-weight: 500;
  width: 42%;
}

.single-meta-table td:last-child {
  color: var(--text-primary);
  font-weight: 700;
  text-align: right;
}

/* Download CTA Button */
.btn-download-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 1.15rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px var(--brand-green-glow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-download-primary:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
  color: #ffffff;
}

.download-subtext {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 500;
}

/* In-Sidebar Banner Ad */
.sidebar-ad-card {
  background-color: #ffffff;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
}

/* Content & Description Section */
.product-description-wrap {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.product-description-wrap h2, .product-description-wrap h3 {
  color: var(--text-primary);
  font-weight: 800;
  margin-bottom: 0.85rem;
  letter-spacing: -0.3px;
}

.product-description-wrap p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
}

.features-list {
  list-style: none;
  margin: 1.25rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: #ffffff;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.features-list li svg {
  color: var(--brand-green);
  flex-shrink: 0;
}

/* =========================================
   AD-INTEGRATED DOWNLOAD MODAL (HIGH CTR)
   ========================================= */
.download-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: fadeIn 0.25s ease forwards;
}

.download-modal-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.download-modal-dialog {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  padding: 2.25rem;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25);
  text-align: center;
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--bg-subtle);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

/* Modal Ad Slot 1 */
.modal-ad-top {
  margin: 1.2rem 0;
  min-height: 90px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-subtle);
  padding: 0.65rem;
}

/* Countdown Timer UI */
.countdown-box {
  padding: 1.75rem 1rem;
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  margin: 1.25rem 0;
  border: 1px solid var(--border-color);
}

.timer-circle {
  width: 76px;
  height: 76px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: conic-gradient(var(--brand-green) 0%, #e2e8f0 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.timer-circle-inner {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-primary);
}

.timer-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Unlocked Download Button */
.btn-gdrive-ready {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 1.15rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.35);
  animation: pulseButton 2s infinite;
  text-decoration: none;
}

@keyframes pulseButton {
  0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(2, 132, 199, 0); }
  100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.btn-gdrive-ready:hover {
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
  color: #ffffff;
}

.btn-gdrive-ready.visible {
  display: flex;
}

/* Modal Bottom Ad Slot */
.modal-ad-bottom {
  margin-top: 1.2rem;
  min-height: 80px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-subtle);
  padding: 0.65rem;
}

/* Footer */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  padding: 3.5rem 0 1.75rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

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

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-title {
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 1.15rem;
  letter-spacing: -0.2px;
}

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

.footer-links a {
  color: var(--text-secondary);
  font-weight: 500;
}

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

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .navbar {
    gap: 0.75rem;
  }
  .header-search {
    display: none;
  }
  .nav-menu {
    gap: 0.75rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Legal / Standard Page Typography */
.legal-page-content h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-page-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-page-content p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.legal-page-content ul,
.legal-page-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-secondary);
}

.legal-page-content li {
  margin-bottom: 0.5rem;
}

.legal-page-content a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-callout {
  background: var(--bg-subtle);
  border-left: 4px solid var(--brand-green);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
  color: var(--text-primary);
}
