/* ============================================================
   Ads Market — Stripe-inspired UI Design System
   Clean, minimal, premium enterprise SaaS styling
   Mobile-first, RTL, accessible, performance-optimized
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Stripe Color Palette — Phase 16.2A */
  --primary: #635BFF;
  --primary-hover: #5148E5;
  --primary-dark: #5148E5;
  --primary-light: #F4F3FF;
  --secondary: #00D4AA;
  --secondary-light: #E6FBF5;
  --accent: #00D4AA;
  --accent-light: #E6FBF5;
  --success: #16A34A;
  --warning: #F59E0B;
  --danger: #DC2626;
  --info: #635BFF;

  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --border: #E5E7EB;
  --border-strong: #E5E7EB;

  --text: #0A2540;
  --text-secondary: #425466;
  --text-muted: #425466;

  /* Typography */
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2.25rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;

  /* Radii */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.1);
  --shadow-primary: 0 8px 24px rgba(99, 91, 255, 0.25);

  /* Layout */
  --header-height: 64px;
  --container-max: 1200px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode — tokens in styles/colors.css + styles/dark-mode.css */
body.dark-mode {
  --primary-light: #1A2236;
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.3s, color 0.3s;
}

img {
  max-width: 100%;
  display: block;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: var(--font-size-base);
}

/* Accessibility: focus states */
:focus-visible {
  outline: 3px solid var(--focus-glow);
  outline-color: rgba(99, 91, 255, 0.4);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 8px;
}

/* ---------- Container & Layout ---------- */
.page-shell {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* ---------- Header (Stripe-style) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0 var(--space-5);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-wrap {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Modern logo area */
.brand-block {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.brand-logo::before {
  content: '';
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #635BFF, #00D4AA);
  border-radius: 8px;
  display: inline-block;
  box-shadow: var(--shadow-primary);
}

.brand-block p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  display: none;
}

/* Global search bar in header */
.header-search {
  flex: 1;
  max-width: 560px;
  position: relative;
}

.header-search input {
  width: 100%;
  height: 44px;
  padding: 0 var(--space-4) 0 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  font-size: var(--font-size-sm);
  color: var(--text);
  transition: var(--transition);
}
.header-search input::placeholder {
  color: var(--text-muted);
}
.header-search input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--focus-glow);
  outline: none;
}
.header-search-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: var(--transition);
}
.icon-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}
.icon-btn .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: var(--font-size-base);
  line-height: 1.2;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(99, 91, 255, 0.3);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--surface);
}
.btn-ghost {
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}
.btn-sm { padding: 8px 16px; font-size: var(--font-size-sm); }
.btn-lg { padding: 14px 32px; font-size: var(--font-size-lg); }

/* ---------- Hero Section (Stripe-style) ---------- */
.hero-panel {
  position: relative;
  padding: 80px var(--space-5);
  background: linear-gradient(135deg, #f6f9fc 0%, #eceafe 50%, #e0f9ff 100%);
  color: var(--text);
  border-radius: 0;
  overflow: hidden;
}

.hero-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(99, 91, 255, 0.08), transparent 40%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.hero-copy h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  color: var(--text);
}

.hero-copy p {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

/* Large hero search */
.hero-search {
  max-width: 640px;
  margin: var(--space-5) auto 0;
  display: flex;
  gap: var(--space-2);
  background: var(--surface);
  padding: var(--space-2);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.hero-search input {
  flex: 1;
  border: none;
  height: 48px;
  padding: 0 var(--space-4);
  font-size: var(--font-size-base);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
}
.hero-search input::placeholder {
  color: var(--text-muted);
}
.hero-search input:focus { outline: none; }
.hero-search .btn {
  border-radius: 12px;
  padding: 12px 24px;
}

/* Category shortcuts */
.category-shortcuts {
  position: relative;
  z-index: 1;
  margin-top: var(--space-6);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}
.category-shortcuts a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: var(--transition);
}
.category-shortcuts a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* Hero stats */
.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}
.hero-stats .stat-item {
  text-align: center;
}
.hero-stats .stat-value {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text);
  display: block;
}
.hero-stats .stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

/* ---------- Filters Panel ---------- */
.filters-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  margin: var(--space-6) 0;
}
.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.filters-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}
.filters-header p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}
.results-meta {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.filters-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}
.filter-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.filter-item label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
}
.filter-item select,
.filter-item input[type='date'],
.filter-item input[type='search'],
.filter-item input[type='text'] {
  height: 48px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  transition: var(--transition);
}
.filter-item select:focus,
.filter-item input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--focus-glow);
  outline: none;
}

/* ---------- Categories ---------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}
.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-5) var(--space-4);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.category-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.category-card .cat-icon {
  font-size: 2rem;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.brand-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.brand-carousel-item:hover .brand-logo-icon {
  color: var(--primary);
}
.category-card h4 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-1);
}
.category-card p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* ---------- Ad Cards ---------- */
.ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-5);
  margin: var(--space-5) 0;
}
.ads-grid.ads-list-view {
  grid-template-columns: 1fr;
}

.ad-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.ad-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.ad-card > img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ad-card:hover > img {
  transform: scale(1.02);
}

.ad-card-content {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

/* Badges */
.ad-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  align-items: center;
}
.platform-badge {
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: capitalize;
}
.platform-badge.platform-facebook { background: #1877f2; color: #fff; }
.platform-badge.platform-instagram { background: #e4405f; color: #fff; }
.platform-badge.platform-tiktok { background: #111; color: #fff; }
.platform-badge.platform-youtube { background: #ff0000; color: #fff; }
.platform-badge.platform-snapchat { background: #fffc00; color: #111; }
.platform-badge.platform-x { background: #111; color: #fff; }
.ad-chip {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Premium & verified badges */
.badge-premium {
  background: linear-gradient(135deg, #ffb020, #ffc24d);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-verified {
  background: var(--success);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ad-card-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}
.ad-card-desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Ad meta: country flag, city, views */
.ad-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-top: auto;
}
.ad-meta .flag {
  font-size: 1rem;
}
.ad-badge {
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Card action row: favorite, share, view */
.ad-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-2);
}
.ad-action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: var(--transition);
}
.ad-action-btn:hover {
  background: var(--surface-2);
  color: var(--accent);
}
.ad-action-btn.favorited {
  color: var(--accent);
}
.views-count {
  margin-left: auto;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Section Headers ---------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin: var(--space-8) 0 var(--space-5);
}
.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-description {
  color: var(--text-secondary);
  font-size: var(--font-size-base);
}

/* ---------- Trending Searches ---------- */
.trending-search-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.trending-search {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: var(--font-size-sm);
  color: var(--text);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.trending-search:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.trending-search span {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ---------- Suggestions (Live search) ---------- */
.suggestions-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
  display: none;
}
.suggestion-item {
  padding: var(--space-2) var(--space-4);
  cursor: pointer;
  transition: var(--transition);
}
.suggestion-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ---------- Dashboard Widgets ---------- */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}
.widget-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.widget-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.widget-card .widget-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: 500;
}
.widget-card .widget-value {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-top: var(--space-1);
  color: var(--text);
}
.widget-card .widget-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
  display: block;
}

/* Stats cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-card .label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}
.stat-card .value {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text);
  margin-top: var(--space-1);
}
.stat-card .value.green { color: var(--success); }
.stat-card .value.gold { color: var(--warning); }

/* Tables */
.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-5);
  margin: var(--space-5) 0;
  box-shadow: var(--shadow-sm);
}
.table-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.table-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  flex-wrap: wrap;
}
.action-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.form-group label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
  height: 48px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  transition: var(--transition);
}
.form-group textarea {
  height: auto;
  padding: var(--space-3);
  min-height: 100px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--focus-glow);
  outline: none;
}

/* ---------- Modals ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: var(--space-4);
  backdrop-filter: blur(4px);
}
.modal-content {
  background: var(--surface);
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Toasts ---------- */
.toast {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--surface);
  padding: var(--space-3) var(--space-5);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  animation: toastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ---------- Skeleton Loaders ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  height: 320px;
  border-radius: 16px;
}

/* ---------- Empty & Loading States ---------- */
.empty-state {
  text-align: center;
  padding: var(--space-8);
  color: var(--text-secondary);
}
.empty-state h3 {
  font-size: var(--font-size-xl);
  color: var(--text);
  margin-bottom: var(--space-2);
}
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: var(--space-6) auto;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Mobile Bottom Navigation ---------- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 1500;
  padding: var(--space-2) 0;
  box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.05);
}
.mobile-bottom-nav nav {
  display: flex;
  justify-content: space-around;
  max-width: 600px;
  margin: 0 auto;
}
.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
}
.mobile-bottom-nav a.active {
  color: var(--primary);
}
.mobile-bottom-nav a .icon {
  font-size: 1.25rem;
}

/* ---------- Notifications Panel ---------- */
.notification-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  margin: var(--space-4) 0;
  padding: var(--space-4);
}
.notification-item {
  padding: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.notification-item:last-child { border-bottom: none; }
.notification-item.read { opacity: 0.6; }
.notification-item strong { display: block; }
.notification-item p { color: var(--text-secondary); font-size: var(--font-size-sm); }

/* ---------- Responsive Design (Mobile-first) ---------- */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
    --font-size-3xl: 1.75rem;
  }

  .brand-block p { display: none; }
  .header-search { display: none; } /* Mobile search in overlay */
  .header-actions .hide-mobile { display: none; }

  .hero-panel { padding: 64px var(--space-4); }
  .hero-copy h1 { font-size: 2rem; }
  .hero-search { flex-direction: column; border-radius: 16px; }
  .hero-search .btn { width: 100%; }
  .hero-stats { gap: var(--space-3); flex-wrap: wrap; }

  .section-header h2 { font-size: 28px; }

  .ads-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-3);
  }
  .ad-card > img { height: 140px; }

  .filters-form {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-bottom-nav { display: block; }
  body { padding-bottom: 64px; }
}

@media (max-width: 480px) {
  .filters-form {
    grid-template-columns: 1fr;
  }
  .ads-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
  }
  .ad-card > img { height: 120px; }
  .ad-card-content { padding: var(--space-2); }
  .ad-card-title { font-size: var(--font-size-base); }
}

/* ---------- Reduced Motion (Accessibility) ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------
   ADVANCED MARKETPLACE UI — Clean enterprise components
   ------------------------------------------------------------ */

/* Glassmorphism (subtle) */
.glass {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
body.dark-mode .glass {
  background: rgba(19, 26, 42, 0.75);
  border-color: var(--border-color);
}

/* Featured ads carousel */
.carousel {
  position: relative;
  overflow: hidden;
  margin: var(--space-5) 0;
}
.carousel-track {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: var(--space-2);
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-track > * {
  flex: 0 0 300px;
  scroll-snap-align: start;
}
.carousel-track > .ad-card {
  min-height: 340px;
}
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: var(--text);
  transition: var(--transition);
}
.carousel-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.carousel-prev {
  left: 0;
}
.carousel-next {
  right: 0;
}

/* Popular brands carousel */
.brand-carousel {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding: var(--space-4) 0;
  scroll-snap-type: x mandatory;
}
.brand-carousel-item {
  flex: 0 0 140px;
  text-align: center;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  scroll-snap-align: start;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.brand-carousel-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.brand-carousel-item img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

/* Floating action button */
.fab {
  position: fixed;
  bottom: 80px;
  right: var(--space-5);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-primary);
  z-index: 1400;
  transition: var(--transition);
}
.fab:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(99, 91, 255, 0.35);
}

/* Mobile drawer menu */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  max-width: 80vw;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: var(--space-5);
  overflow-y: auto;
}
.mobile-drawer.open {
  transform: translateX(0);
}
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, 0.5);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.drawer-menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.drawer-menu a {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  color: var(--text);
  font-weight: 500;
  transition: var(--transition);
}
.drawer-menu a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Profile menu dropdown */
.profile-menu {
  position: relative;
}
.profile-menu-content {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  z-index: 100;
  display: none;
}
.profile-menu-content.open {
  display: block;
  animation: dropdownIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.profile-menu-content a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: var(--font-size-sm);
  transition: var(--transition);
}
.profile-menu-content a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Filter sidebar (collapsible) */
.filter-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: var(--space-4);
}
.filter-section {
  border-bottom: 1px solid var(--border);
  padding: var(--space-3) 0;
}
.filter-section:last-child {
  border-bottom: none;
}
.filter-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--font-size-base);
  padding: var(--space-2) 0;
}
.filter-section-header .chevron {
  transition: transform 0.3s;
}
.filter-section.open .filter-section-header .chevron {
  transform: rotate(180deg);
}
.filter-section-body {
  display: none;
  padding-top: var(--space-2);
}
.filter-section.open .filter-section-body {
  display: block;
  animation: dropdownIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Checkbox / radio filters */
.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) 0;
  cursor: pointer;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}
.filter-option:hover {
  color: var(--text);
}
.filter-option input[type='checkbox'],
.filter-option input[type='radio'] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

/* Price range slider */
.range-slider {
  width: 100%;
  accent-color: var(--primary);
  margin: var(--space-2) 0;
}
.range-values {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

/* Analytics charts container */
.chart-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-5);
  margin: var(--space-4) 0;
  box-shadow: var(--shadow-sm);
}
.chart-container h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

/* Timeline / activity feed */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--surface-2);
  border-radius: var(--radius-md);
}
.activity-item .activity-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.activity-item .activity-text {
  font-size: var(--font-size-sm);
}
.activity-item .activity-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Error / success states */
.error-state {
  text-align: center;
  padding: var(--space-8);
  color: var(--danger);
}
.error-state .error-icon {
  font-size: 3rem;
  margin-bottom: var(--space-3);
}
.success-state {
  text-align: center;
  padding: var(--space-8);
  color: var(--success);
}
.success-state .success-icon {
  font-size: 3rem;
  margin-bottom: var(--space-3);
}

/* Ad details page */
.details-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-6);
  margin: var(--space-5) 0;
}
.details-gallery {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.details-gallery img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.details-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: calc(var(--header-height) + 16px);
}
.details-info h1 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.details-price {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--primary);
  margin: var(--space-3) 0;
}
.details-stats {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: var(--space-4) 0;
}
.details-stat {
  text-align: center;
}
.details-stat .value {
  font-size: var(--font-size-xl);
  font-weight: 700;
  display: block;
}
.details-stat .label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

/* Mobile-only search overlay */
.mobile-search-overlay {
  position: fixed;
  inset: 0;
  background: var(--surface);
  z-index: 1800;
  padding: var(--space-5);
  display: none;
  flex-direction: column;
  gap: var(--space-4);
}
.mobile-search-overlay.open {
  display: flex;
}
.mobile-search-overlay input {
  width: 100%;
  height: 48px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  font-size: var(--font-size-lg);
  transition: var(--transition);
}
.mobile-search-overlay input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--focus-glow);
  outline: none;
}

/* Responsive for advanced features */
@media (max-width: 768px) {
  .details-layout {
    grid-template-columns: 1fr;
  }
  .details-info {
    position: static;
  }
  .details-gallery img {
    height: 300px;
  }
  .carousel-track > * {
    flex: 0 0 220px;
  }
  .fab {
    bottom: 76px;
    right: var(--space-4);
  }
}

/* ------------------------------------------------------------
   PREMIUM STRIPE UI — Depth, elevation, subtle gradients
   ------------------------------------------------------------ */

:root {
  --shadow-3d: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-3d-hover: 0 16px 40px rgba(15, 23, 42, 0.1);
  --shadow-primary-3d: 0 8px 24px rgba(99, 91, 255, 0.25);
  --gradient-primary: linear-gradient(135deg, #635BFF, #00D4AA);
  --gradient-accent: linear-gradient(135deg, #00D4AA, #635BFF);
  --gradient-premium: linear-gradient(135deg, #F59E0B, #DC2626);
  --gradient-success: linear-gradient(135deg, #16A34A, #00D4AA);
  --transition-3d: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glass header — premium blur */
.topbar {
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
body.dark-mode .topbar {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

/* Floating search bar in header */
.header-search input {
  background: var(--surface-2);
}
.header-search input:focus {
  background: var(--surface);
  box-shadow: var(--shadow-md), 0 0 0 4px var(--focus-glow);
}

/* Hero — clean gradient + subtle shapes */
.hero-panel {
  background: linear-gradient(135deg, #f6f9fc 0%, #eceafe 50%, #e0f9ff 100%);
}
.hero-panel::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(99, 91, 255, 0.06);
  filter: blur(60px);
  top: -80px;
  right: -80px;
  pointer-events: none;
}
.hero-panel::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.08);
  filter: blur(50px);
  bottom: -60px;
  left: 10%;
  pointer-events: none;
}

/* Floating hero search panel */
.hero-search {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: var(--transition-3d);
}
.hero-search:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Category cards */
.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-3d);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

/* Premium ad cards */
.ad-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-3d);
}
.ad-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.ad-card > img {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ad-card:hover > img {
  transform: scale(1.03);
}

/* Gradient badges */
.badge-premium {
  background: var(--gradient-premium);
}
.badge-verified {
  background: var(--gradient-success);
}

/* Premium ribbon */
.premium-ribbon {
  position: absolute;
  top: 12px;
  left: -30px;
  background: var(--gradient-premium);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 36px;
  transform: rotate(-45deg);
  z-index: 5;
  letter-spacing: 0.5px;
}
.verified-ribbon {
  position: absolute;
  top: 12px;
  right: -30px;
  background: var(--gradient-success);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 36px;
  transform: rotate(45deg);
  z-index: 5;
  letter-spacing: 0.5px;
}

/* Primary buttons */
.btn-primary {
  background: var(--primary);
  box-shadow: var(--shadow-primary);
  transition: var(--transition-3d);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(99, 91, 255, 0.3);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  transition: var(--transition-3d);
}
.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Dashboard widgets */
.widget-card,
.stat-card {
  box-shadow: var(--shadow-sm);
  transition: var(--transition-3d);
  position: relative;
  overflow: hidden;
}
.widget-card:hover,
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Glass panels for dashboards */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  border-radius: 16px;
}

/* Brand carousel */
.brand-carousel-item {
  box-shadow: var(--shadow-sm);
  transition: var(--transition-3d);
}
.brand-carousel-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* FAB premium */
.fab {
  background: var(--primary);
  box-shadow: var(--shadow-primary);
  transition: var(--transition-3d);
}
.fab:hover {
  background: var(--primary-dark);
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(99, 91, 255, 0.35);
}

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Micro animations — 200-300ms */
.icon-btn,
.ad-action-btn,
.trending-search,
.suggestion-item,
.filter-option,
.carousel-nav,
.drawer-menu a,
.profile-menu-content a {
  transition: var(--transition-3d);
}
.icon-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}
.ad-action-btn:hover {
  background: var(--surface-2);
  color: var(--accent);
}
.trending-search:hover {
  transform: translateY(-1px);
}

/* Mobile bottom nav */
.mobile-bottom-nav {
  background: var(--surface);
  box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.05);
}
.mobile-bottom-nav a {
  transition: var(--transition-3d);
}
.mobile-bottom-nav a:active {
  transform: scale(0.95);
}

/* ------------------------------------------------------------
   FINAL POLISH — Clean depth, no aggressive 3D
   ------------------------------------------------------------ */

/* Cards — consistent radius + soft shadow */
.ad-card,
.category-card,
.widget-card,
.stat-card,
.brand-carousel-item,
.filters-panel,
.table-card,
.details-gallery,
.details-info,
.chart-container {
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.ad-card:hover,
.category-card:hover,
.widget-card:hover,
.stat-card:hover,
.brand-carousel-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

/* Buttons — clean elevation */
.btn,
.icon-btn,
.fab,
.carousel-nav,
.ad-action-btn {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image depth */
.ad-card > img,
.details-gallery img {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ad-card:hover > img {
  transform: scale(1.03);
}

/* Premium badges — pill */
.badge-premium,
.badge-verified {
  border-radius: 9999px;
}
.badge-premium {
  background: linear-gradient(135deg, #ffb020, #ffc24d);
}
.badge-verified {
  background: linear-gradient(135deg, #0fa958, #2fbf71);
}

/* Floating search bar — soft glow */
.hero-search,
.header-search input {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* ---------- Footer (Stripe-style) ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: var(--space-8);
  padding: var(--space-8) var(--space-5) var(--space-5);
}
.footer-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
}
.footer-col h4 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-3);
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-col ul a {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  transition: var(--transition);
}
.footer-col ul a:hover {
  color: var(--primary);
}
.footer-bottom {
  max-width: var(--container-max);
  margin: var(--space-6) auto 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  text-align: center;
}

/* ---------- Print ---------- */
@media print {
  .topbar,
  .mobile-bottom-nav,
  .hero-actions,
  .filter-item button,
  .ad-action-btn,
  .fab,
  .mobile-drawer {
    display: none !important;
  }
}