/* ============================================================
   Chronomarket – Watch Listings
   Premium UI — v3 with dark/light themes
   ============================================================ */

/* ---------- Design tokens (dark – default) ---------- */
:root {
  /* Surfaces — warm ink-black, zero blue tint */
  --bg:           #07060a;
  --bg-subtle:    #0d0c10;
  --bg-elevated:  #131118;
  --bg-hover:     #1c1a16;
  --bg-input:     #0c0b0f;

  /* Text — warm cream, not cool white */
  --text:         #e8e0d0;
  --text-secondary: #88837a;
  --text-tertiary:  #5a5650;

  /* Accent — champagne gold, not brass */
  --accent:       #b8965a;
  --accent-muted: #9a7d48;
  --accent-glow:  rgba(184, 150, 90, 0.1);
  --accent-glow-strong: rgba(184, 150, 90, 0.18);

  /* Borders & hairline rules */
  --border:       #211f1b;
  --border-subtle:#1a1815;
  --border-focus: var(--accent);
  --rule:         rgba(184, 150, 90, 0.2);

  /* Semantic */
  --success:      #34d399;
  --success-bg:   rgba(52, 211, 153, 0.08);
  --danger:       #f87171;
  --danger-bg:    rgba(248, 113, 113, 0.08);

  /* Shadows — restrained, no glow */
  --shadow-sm:  0 1px 4px rgba(0,0,0,.4);
  --shadow-md:  0 2px 12px rgba(0,0,0,.45);
  --shadow-lg:  0 4px 24px rgba(0,0,0,.5);
  --shadow-glow: none;

  /* Header — solid, no glass */
  --header-bg: #07060a;
  --modal-overlay: rgba(0, 0, 0, 0.7);

  /* Background decorations — none, restraint */
  --bg-gradient-hero: none;
  --bg-gradient-page: none;

  /* Radius — precision instruments have sharp edges */
  --radius-sm:    2px;
  --radius:       3px;
  --radius-lg:    4px;
  --radius-xl:    6px;
  --radius-full:  9999px;

  /* Typography */
  --font-sans:  'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono:  'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Layout */
  --max-width: 1120px;
  --header-height: 60px;

  /* Transitions */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --duration: 200ms;

  color-scheme: dark;
}

/* Scroll offset for hash anchors — header no longer covers content */
html {
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

/* ---------- Light theme — warm ivory/parchment ---------- */
[data-theme="light"] {
  --bg:           #f5f2ec;
  --bg-subtle:    #ede9e1;
  --bg-elevated:  #faf8f4;
  --bg-hover:     #e4e0d8;
  --bg-input:     #f0ece4;

  --text:         #1a1714;
  --text-secondary: #5a5248;
  --text-tertiary:  #8a8278;

  --accent:       #9a7d48;
  --accent-muted: #7e6639;
  --accent-glow:  rgba(154, 125, 72, 0.1);
  --accent-glow-strong: rgba(154, 125, 72, 0.16);

  --border:       #d5cec4;
  --border-subtle:#ddd8ce;
  --rule:         rgba(154, 125, 72, 0.22);

  --success:      #059669;
  --success-bg:   rgba(5, 150, 105, 0.06);
  --danger:       #dc2626;
  --danger-bg:    rgba(220, 38, 38, 0.06);

  --shadow-sm:  0 1px 4px rgba(0,0,0,.08);
  --shadow-md:  0 2px 12px rgba(0,0,0,.1);
  --shadow-lg:  0 4px 24px rgba(0,0,0,.12);
  --shadow-glow: none;

  --header-bg: #f5f2ec;
  --modal-overlay: rgba(0, 0, 0, 0.35);

  --bg-gradient-hero: none;
  --bg-gradient-page: none;

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

/* Page-wide ambient glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--bg-gradient-page);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- Utility ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Eyebrow — small-caps category label above headings */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  opacity: 0.75;
  margin-bottom: var(--sp-2);
}

/* Hairline rule — thin gold divider */
hr.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: var(--sp-12) 0;
}

/* Highlight (no-commitment) */
.highlight-no-commitment {
  color: var(--accent);
  font-weight: 500;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--header-bg);
  border-bottom: 1px solid var(--rule);
  transition: background-color 0.3s var(--ease);
}

.site-header .nav { position: relative; }

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex;
  align-items: center;
  height: var(--header-height);
  gap: var(--sp-4);
}

/* Logo */
.logo {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: color var(--duration) var(--ease);
}

.logo:hover { color: var(--accent); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--duration) var(--ease);
}

/* Subtle pulse for Alerts nudge */
@keyframes cm-alert-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(201, 169, 98, 0.45); }
  60%  { box-shadow: 0 0 0 7px rgba(201, 169, 98, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 169, 98, 0); }
}

.nav-alerts--nudge .nav-alerts-icon,
.nav-quick-tile--nudge .material-symbols-outlined {
  animation: cm-alert-pulse 2.2s ease-out infinite;
  border-radius: 50%;
}

.nav-links a:hover { color: var(--text); background: transparent; }
.nav-links a.active { color: var(--accent); }

.nav-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Nav CTA — outlined, refined */
.nav-cta {
  color: var(--accent) !important;
  background: transparent !important;
  border: 1px solid var(--accent) !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  padding: var(--sp-2) var(--sp-4) !important;
  border-radius: var(--radius-sm) !important;
}

.nav-cta:hover {
  background: var(--accent-glow) !important;
  color: var(--accent) !important;
}

/* Nav alerts */
.nav-alerts {
  gap: 0.35rem;
  color: var(--accent) !important;
  background: transparent !important;
  font-weight: 500 !important;
}

.nav-alerts:hover {
  background: transparent !important;
  opacity: 0.75;
}

.nav-alerts-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.nav-insights {
  gap: 0.35rem;
}

.nav-insights-icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* Theme toggle (button) */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              background var(--duration) var(--ease);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent-muted);
  background: var(--accent-glow);
}

.theme-toggle .material-symbols-outlined {
  font-size: 1.15rem;
}

/* Hide the wrong icon per theme */
.theme-toggle .icon-light { display: inline-block; }
.theme-toggle .icon-dark  { display: none; }

[data-theme="light"] .theme-toggle .icon-light { display: none; }
[data-theme="light"] .theme-toggle .icon-dark  { display: inline-block; }

/* Share button in insights nav */
.nav-share-item {
  display: flex;
  align-items: center;
}
.nav-share-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-3);
  font: inherit;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nav-share-btn:hover {
  color: var(--accent);
  border-color: var(--accent-muted);
  background: var(--accent-glow);
}
.nav-share-btn .material-symbols-outlined {
  font-size: 1.1rem;
}
@media (min-width: 769px) {
  .nav-share-label { display: none; }
}

/* Theme item inside nav-links: label hidden on desktop */
.nav-theme-item {
  display: flex;
  align-items: center;
  margin-left: var(--sp-1);
}
.nav-theme-label {
  display: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Burger */
.nav-burger {
  display: none;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: border-color var(--duration) var(--ease);
}

.nav-burger:hover { border-color: var(--accent-muted); }

.nav-burger-icon {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  box-shadow: 0 5px 0 var(--text), 0 -5px 0 var(--text);
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.nav-burger:hover .nav-burger-icon {
  background: var(--accent);
  box-shadow: 0 5px 0 var(--accent), 0 -5px 0 var(--accent);
}

/* Quick-action tiles + section divider (mobile only, hidden on desktop) */
.nav-quick-actions {
  display: none;
}
.nav-section-divider {
  display: none;
}
.nav-desktop-only {
  display: list-item; /* shown on desktop */
}
.nav-mobile-only {
  display: none; /* hidden on desktop, shown on mobile */
}

/* Person-icon dropdown (desktop) */
.nav-user-menu {
  position: relative;
}
.nav-user-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              background var(--duration) var(--ease);
  flex-shrink: 0;
}
.nav-user-btn:hover {
  color: var(--accent);
  border-color: var(--accent-muted);
  background: var(--accent-glow);
}
.nav-user-btn .material-symbols-outlined {
  font-size: 1.25rem;
}
.nav-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + var(--sp-2));
  right: 0;
  min-width: 176px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-2) 0;
  z-index: 200;
}
.nav-user-menu--open .nav-user-dropdown {
  display: block;
}
.nav-user-dropdown a {
  display: block;
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.nav-user-dropdown a:hover {
  background: var(--bg-hover);
  color: var(--text);
}
.nav-user-dropdown-cta {
  color: var(--accent) !important;
  font-weight: 600 !important;
}
.nav-user-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: var(--sp-2) 0;
}
.nav-user-theme-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  padding: var(--sp-2) var(--sp-4);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.nav-user-theme-row:hover {
  background: var(--bg-hover);
  color: var(--text);
}
.nav-user-theme-row .material-symbols-outlined {
  font-size: 1.1rem;
}
.nav-user-theme-row .icon-light { display: inline-block; }
.nav-user-theme-row .icon-dark  { display: none; }
[data-theme="light"] .nav-user-theme-row .icon-light { display: none; }
[data-theme="light"] .nav-user-theme-row .icon-dark  { display: inline-block; }

/* ---------- Mobile nav ---------- */
@media (max-width: 768px) {
  /* Logo + badge centred, burger pinned right */
  .nav {
    justify-content: center;
  }

  .nav .logo {
    text-align: center;
  }

  /* Keep the badge tight to the logo; the group is centred via the nav */
  .insights-nav-badge {
    margin-left: var(--sp-2);
  }

  .nav-burger {
    display: flex;
    position: absolute;
    right: var(--sp-4);
    top: 50%;
    transform: translateY(-50%);
  }

  /* Hide desktop-only items (inline links + person dropdown) */
  .nav-desktop-only {
    display: none !important;
  }
  /* Show mobile-only items in burger menu */
  .nav-mobile-only {
    display: list-item !important;
  }

  /* Quick-action tiles row */
  .nav-quick-actions {
    display: flex !important;
    gap: var(--sp-3);
    padding: var(--sp-3) 0 var(--sp-2);
    list-style: none;
  }
  .nav-quick-tile {
    flex: 1;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-1);
    padding: var(--sp-3) var(--sp-2);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease);
  }
  .nav-quick-tile .material-symbols-outlined {
    font-size: 1.5rem;
    color: var(--accent);
  }
  .nav-quick-tile:hover,
  .nav-quick-tile.active {
    background: var(--accent-glow);
    border-color: var(--accent-muted);
    color: var(--accent);
  }

  /* Divider between quick tiles and list */
  .nav-section-divider {
    display: block !important;
    height: 1px;
    background: var(--border);
    margin: var(--sp-1) 0 var(--sp-2);
    list-style: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-3) var(--sp-4) var(--sp-4);
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .nav-links a {
    display: flex;
    padding: var(--sp-3) var(--sp-4);
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

  .nav-links a:hover { background: var(--bg-hover); }

  .nav.nav--open .nav-links { display: flex; }

  .nav-cta {
    margin-top: var(--sp-2);
    text-align: center;
    justify-content: center;
  }

  /* Share button: full-width menu row on mobile */
  .nav-share-item {
    border-top: 1px solid var(--border-subtle);
    margin-top: var(--sp-2);
    order: 98;
  }
  .nav-share-btn {
    border: none;
    width: 100%;
    border-radius: var(--radius-sm);
    padding: var(--sp-3) var(--sp-4);
    justify-content: flex-start;
    gap: var(--sp-3);
    font-size: 0.95rem;
    color: var(--text-secondary);
    background: transparent;
  }
  .nav-share-btn:hover {
    background: var(--bg-hover);
    border: none;
  }

  /* Theme toggle: full-width menu row on mobile */
  .nav-theme-item {
    margin-left: 0;
    padding: 0;
    border-top: 1px solid var(--border-subtle);
    margin-top: 0;
    order: 99;
  }
  .nav-theme-item .theme-toggle {
    border: none;
    width: 100%;
    height: auto;
    padding: var(--sp-3) var(--sp-4);
    justify-content: flex-start;
    gap: var(--sp-3);
  }
  .nav-theme-item .theme-toggle .nav-theme-label {
    display: inline;
  }
}

@media (min-width: 769px) {
  .nav-links { display: flex; }
}

/* Material Symbols */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.page-title-icon {
  font-size: 1.5rem;
  margin-right: 0.4rem;
  vertical-align: -0.3em;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-6) var(--sp-16);
  position: relative;
  z-index: 1;
}

/* Home page: remove top padding so hero-screen starts flush under nav */
body.page-home .main {
  padding-top: 0;
  scroll-snap-type: y mandatory;
}

/* Home page: cancel the negative-margin trick on .hero — hero-screen handles sizing */
body.page-home .hero {
  margin-top: 0;
  padding-top: var(--sp-6);
}

/* Home page: full-viewport gradient anchored to viewport top
   Overrides base body::before (which is also fixed, z-index 0) */
body.page-home::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse 120% 55% at 50% 0%,
    rgba(201, 169, 98, 0.09) 0%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 0;
}

/* Home page sections snap to viewport */
body.page-home .home-features,
body.page-home .home-how-section,
body.page-home .home-bottom-cta {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-4);
  color: var(--text);
}

.section { margin-bottom: var(--sp-12); }
.section--centered { text-align: center; }

.section-title-centered {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  margin: 0 0 var(--sp-8);
  color: var(--text);
  letter-spacing: -0.01em;
  text-align: center;
}

.section h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 0 var(--sp-4);
  color: var(--text);
  letter-spacing: -0.01em;
}

.section p {
  color: var(--text-secondary);
  margin: 0 0 var(--sp-4);
  max-width: 62ch;
  line-height: 1.7;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  text-align: center;
  padding: var(--sp-8) 0 var(--sp-4);
  position: relative;
  /* Pull hero (and gradient) up behind the nav so gradient sticks to viewport top */
  margin-top: calc(-1 * var(--header-height));
  padding-top: calc(var(--header-height) + var(--sp-8));
}

.hero > * { position: relative; z-index: 1; }

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-4);
  color: var(--text);
}

.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

/* Thin gold rule below headline */
.hero-rule {
  width: 40px;
  height: 1px;
  border: none;
  background: var(--accent);
  opacity: 0.55;
  margin: 0 auto var(--sp-5);
}

.hero-slogan {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  margin: 0 0 var(--sp-2);
}

.hero-slogan-sub {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-secondary);
  margin: 0 0 var(--sp-6);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--sp-4);
  line-height: 1.75;
  font-weight: 400;
}

.hero-subtitle-accent {
  color: var(--accent);
}


/* Hero action buttons */
.hero-actions {
  display: flex;
  gap: var(--sp-5);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}

/* Hero CTA — outlined, not filled, more editorial */
.hero-btn {
  width: auto !important;
  padding: var(--sp-5) var(--sp-12) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.1em !important;
  background: transparent !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent) !important;
}
.hero-btn:hover {
  background: var(--accent) !important;
  color: var(--bg) !important;
}
.hero-pricing-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  text-decoration: none;
  padding: var(--sp-2) var(--sp-3);
  transition: color var(--duration) var(--ease);
}
.hero-pricing-link:hover { color: var(--accent); }

/* Hero source badges */
.hero-sources {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.hero-sources-label {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
}

.hero-sources-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
}

.hero-source {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-tertiary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease),
              filter var(--duration) var(--ease);
  filter: opacity(0.8);
}

.hero-source:hover {
  border-color: var(--accent-muted);
  color: var(--text-secondary);
  filter: opacity(1);
}

.hero-source-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Chrono24 logo: light variant for light theme, dark for dark theme */
.chrono24-logo {
  display: inline-flex;
  position: relative;
  flex-shrink: 0;
}
.chrono24-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.chrono24-logo .chrono24-light { display: block; }
.chrono24-logo .chrono24-dark { display: none; }
[data-theme="dark"] .chrono24-logo .chrono24-light { display: none; }
[data-theme="dark"] .chrono24-logo .chrono24-dark { display: block; }

/* Grailzee logo: black text — invert to white for dark theme */
[data-theme="dark"] .grailzee-logo { filter: invert(1); }

/* Hero screen — full viewport container */
.hero-screen {
  height: auto;
  min-height: calc(100svh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow-x: clip;
}

/* Let hero section grow to fill available space, pushing testimonials to the bottom */
.hero-screen .hero {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}


/* Scroll indicator — fixed at viewport bottom, fades on scroll */
.hero-scroll-indicator {
  position: fixed;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: opacity 0.4s var(--ease);
  text-decoration: none;
  cursor: pointer;
}
.hero-scroll-indicator.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-scroll-chevron {
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0.6;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}

/* Slogan (reused in bottom CTA) */
.slogan {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  margin: 0 0 var(--sp-3);
  letter-spacing: -0.01em;
}

/* ============================================================
   HOME FEATURES — editorial ruled columns, no cards
   ============================================================ */
.home-features {
  margin-bottom: var(--sp-10);
  padding: var(--sp-10) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.home-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-10);
}

.home-feature {
  background: transparent;
  border: none;
  border-top: 1px solid var(--accent);
  border-image: linear-gradient(to right, var(--accent) 0%, rgba(184,150,90,0.15) 60%, transparent 100%) 1;
  padding: var(--sp-5) 0 0;
  text-align: left;
  transition: none;
}

.home-feature:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

/* Icon hidden — replaced by eyebrow label in HTML */
.home-feature-icon { display: none; }

.home-feature h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 var(--sp-3);
  color: var(--text);
  letter-spacing: -0.01em;
}

.home-feature p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.75;
}

.home-alerts-learn {
  margin: var(--sp-8) 0 0 !important;
  text-align: center;
}

.home-alerts-learn a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
}

.home-alerts-learn a:hover {
  text-decoration: underline;
}

/* ── Hero: reassurance line ── */
.hero-reassurance {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-align: center;
  margin: var(--sp-2) 0 0;
  letter-spacing: 0.03em;
}

/* ============================================================
   TESTIMONIALS MARQUEE
   ============================================================ */
.testimonials-marquee {
  overflow: hidden;
  padding: var(--sp-3) 0;
  margin: auto calc(-1 * var(--sp-6)) var(--sp-4);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
  width: calc(100% + 2 * var(--sp-6));
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.testimonials-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 200s linear infinite;
}

.testimonials-marquee:hover .testimonials-track {
  animation-play-state: paused;
}

.testimonials-slide {
  display: flex;
  gap: var(--sp-8);
  padding-right: var(--sp-8);
  flex-shrink: 0;
}

.tq {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  white-space: nowrap;
}

.tq strong {
  color: var(--text-primary);
  font-weight: 500;
  margin-left: var(--sp-1);
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   HOME BOTTOM CTA — full-bleed, editorial, restrained
   ============================================================ */
.home-bottom-cta {
  text-align: center;
  padding: var(--sp-14) var(--sp-6);
  margin: 0 calc(-1 * var(--sp-6));
  background: transparent;
  border-top: 1px solid var(--rule);
  border-bottom: none;
  border-radius: 0;
}

.home-bottom-slogan-sub {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
  margin: 0 auto var(--sp-6);
  max-width: 480px;
}

.home-bottom-sub {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin: 0 0 var(--sp-6);
  letter-spacing: 0.01em;
}

/* ============================================================
   CARDS (generic)
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-8);
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.card:hover {
  border-color: var(--accent-muted);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: translateY(-2px);
}

.card h3 { margin: 0 0 var(--sp-2); font-size: 1.1rem; }
.card p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; }

/* ============================================================
   HOME – HOW IT WORKS — compact ruled columns
   ============================================================ */
.home-how-section {
  text-align: left;
  margin-bottom: var(--sp-8);
  padding: var(--sp-10) 0;
}

.home-how-header {
  margin-bottom: var(--sp-8);
}

.home-how-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-2);
  color: var(--text);
}

.home-how-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.home-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.home-how-step {
  position: relative;
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding: var(--sp-5) 0 0;
  text-align: left;
  transition: none;
}

.home-how-step:hover {
  border-color: var(--accent-muted);
  box-shadow: none;
  transform: none;
}

.home-how-num {
  position: static;
  transform: none;
  width: auto;
  height: auto;
  line-height: 1;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 300;
  font-style: italic;
  color: var(--accent);
  background: transparent;
  border-radius: 0;
  display: block;
  margin-bottom: var(--sp-4);
  letter-spacing: 0.06em;
}

/* Icon hidden in How it works */
.home-how-icon { display: none; }

.home-how-step h3 {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 var(--sp-2);
  color: var(--text);
  letter-spacing: 0;
}

.home-how-step p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.65;
}

/* ============================================================
   SOURCES
   ============================================================ */
.sources {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}

.source-badge {
  display: inline-block;
  padding: 1px var(--sp-2);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Sources list (text links) */
.sources-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin: var(--sp-6) 0 0;
  padding: 0;
  list-style: none;
}

.sources-list li { flex: 0 0 auto; }

.source-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color var(--duration) var(--ease),
              color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.source-link:hover {
  border-color: var(--accent-muted);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Brands */
.brands-list {
  columns: 2;
  column-gap: var(--sp-8);
  margin: var(--sp-4) 0 0;
  padding: 0;
  list-style: none;
}

.brands-list li {
  padding: var(--sp-1) 0;
  font-size: 0.9rem;
  color: var(--text);
  break-inside: avoid;
}

@media (min-width: 768px) {
  .brands-list { columns: 3; }
}

/* Status badge */
.status-badge {
  display: inline-block;
  padding: 2px var(--sp-2);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-badge.status-historical {
  background: var(--danger-bg);
  color: var(--danger);
}

/* ============================================================
   BUTTONS — sharp, restrained, precise
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-6);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              color var(--duration) var(--ease);
}

.btn:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.btn:active { opacity: 0.85; }

.btn-primary {
  width: 100%;
  padding: var(--sp-3) var(--sp-6);
  font-size: 0.78rem;
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-muted);
  border-color: var(--accent-muted);
  color: var(--bg);
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent-muted);
  color: var(--accent);
  background: transparent;
}

.btn-small {
  padding: var(--sp-1) var(--sp-3);
  font-size: 0.72rem;
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(248,113,113,.35);
}

.btn-danger:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
}

[data-theme="light"] .btn-danger {
  border-color: rgba(220,38,38,.3);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: var(--sp-16) var(--sp-8);
  background: var(--bg-subtle);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
}

.empty-state h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 var(--sp-2);
}

.empty-state p {
  margin: 0 auto var(--sp-4);
  font-size: 0.9rem;
  max-width: 380px;
  line-height: 1.65;
}

.empty-state .btn,
.empty-state a.btn { margin-top: var(--sp-2); }

.empty-state--compact { padding: var(--sp-10) var(--sp-6); }

/* Alerts rich empty state */
.alerts-empty-state {
  text-align: center;
  padding: var(--sp-10) var(--sp-6);
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  border: 1px dashed var(--border);
}
.alerts-empty-icon .material-symbols-outlined {
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.7;
}
.alerts-empty-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin: var(--sp-3) 0 var(--sp-2);
  color: var(--text);
}
.alerts-empty-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 auto var(--sp-6);
  max-width: 420px;
}
.alerts-empty-cta {
  margin-bottom: var(--sp-6);
}
.alerts-empty-examples-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--sp-3);
}
.alerts-empty-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
}
.alerts-empty-chip {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-2) var(--sp-3);
  font: 500 0.8125rem/1 var(--font-sans, inherit);
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.alerts-empty-chip:hover {
  color: var(--accent);
  border-color: var(--accent-muted);
  background: var(--accent-glow);
}

.empty-state-message {
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================
   AUTH FORMS
   ============================================================ */
.auth-card {
  max-width: 420px;
  margin: var(--sp-8) auto var(--sp-16);
  padding: var(--sp-10);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.auth-card .page-title { margin-bottom: var(--sp-2); }
.auth-card--centered { text-align: center; }

.auth-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0 0 var(--sp-4);
}

.auth-value-props {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.auth-value-props li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.auth-value-props .material-symbols-outlined {
  font-size: 1rem;
  color: var(--accent);
}

.auth-reassurance {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-align: center;
  margin: var(--sp-3) 0 0;
  letter-spacing: 0.03em;
}

.auth-form .form-group { margin-bottom: var(--sp-5); }
.auth-form .form-group:last-of-type { margin-bottom: var(--sp-6); }

.auth-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: var(--sp-2);
  color: var(--text);
}

.auth-form input {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,169,98,.15);
}

.auth-form input::placeholder {
  color: var(--text-tertiary);
}

.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--bg-input) inset;
  caret-color: var(--text);
}

.form-errors {
  margin: var(--sp-2) 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--danger);
}

.form-errors--global { margin-bottom: var(--sp-4); }

.form-success {
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
  background: var(--success-bg);
  border: 1px solid rgba(52,211,153,.25);
  border-radius: var(--radius);
  color: var(--success);
  font-size: 0.9rem;
}

[data-theme="light"] .form-success {
  border-color: rgba(5,150,105,.2);
}

.form-help {
  display: block;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: var(--sp-1);
}

.auth-footer {
  margin: var(--sp-6) 0 0;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  color: var(--accent-muted);
  text-decoration: underline;
}

/* ============================================================
   LISTINGS
   ============================================================ */
.listings-intro {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: calc(-1 * var(--sp-2)) 0 var(--sp-4);
}

.data-quality-label {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px dotted var(--text-tertiary);
  transition: color var(--duration) var(--ease);
}

.data-quality-label:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* SEO content block on brand/model pages */
.seo-content-block {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: calc(-1 * var(--sp-2)) 0 var(--sp-4);
  line-height: 1.55;
}
.seo-content-block p { margin: 0 0 var(--sp-1); }
.editorial-content { margin-top: var(--sp-3); }
.editorial-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0 0 var(--sp-3);
}
.editorial-content p:last-child { margin-bottom: 0; }
.seo-top-models a {
  color: var(--accent);
  text-decoration: none;
}
.seo-top-models a:hover { text-decoration: underline; }

/* Confidence indicators */
.price-approximate {
  opacity: 0.55;
  font-style: italic;
}
.confidence-hint {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.8rem;
  vertical-align: middle;
  cursor: help;
  opacity: 0.5;
  position: relative;
}
.confidence-hint:hover { opacity: 0.85; }
.confidence-hint--limited { color: #fbbf24; }
.confidence-hint--insufficient { color: #f87171; }

/* Confidence badges (kept for insufficient) */
.confidence-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  vertical-align: middle;
}
.confidence-badge--insufficient {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.2);
}

/* Sub-model breakdown table */
.sub-model-breakdown {
  margin-top: var(--sp-3);
}
.sub-model-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 var(--sp-2);
}
.sub-model-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.sub-model-table th {
  text-align: left;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 6px 12px 6px 0;
  border-bottom: 1px solid var(--border);
}
.sub-model-table td {
  padding: 6px 12px 6px 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text);
}
.sub-model-table td:nth-child(2),
.sub-model-table th:nth-child(2) {
  text-align: center;
}
.sub-model-table td:nth-child(3),
.sub-model-table th:nth-child(3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Light theme overrides */
[data-theme="light"] .confidence-hint--limited { color: #92680a; }
[data-theme="light"] .confidence-hint--insufficient { color: #b91c1c; }
[data-theme="light"] .confidence-badge--insufficient {
  background: rgba(220, 60, 60, 0.08);
  color: #b91c1c;
  border-color: rgba(220, 60, 60, 0.2);
}

/* Search */
.listings-search { margin-bottom: var(--sp-4); }

/* ── Filters upgrade bar (free / unauthenticated users) ── */
.search-input--locked,
.select--locked {
  opacity: 0.45;
  cursor: not-allowed;
}

.filters-upgrade-bar {
  margin-bottom: var(--sp-6);
  border: 1px solid var(--accent-muted);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-elevated));
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.filters-upgrade-bar.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.filters-upgrade-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  flex-wrap: wrap;
}

.filters-upgrade-bar-lock {
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.filters-upgrade-bar-text {
  flex: 0 1 auto;
  font-size: 0.82rem;
  color: var(--text-secondary);
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.filters-upgrade-bar-text strong {
  color: var(--text-primary);
  white-space: nowrap;
}

.filters-upgrade-chips {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex-wrap: wrap;
}

.fuchip {
  display: inline-block;
  padding: 1px var(--sp-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  background: var(--bg-elevated);
  color: var(--text-tertiary);
  white-space: nowrap;
}

.filters-upgrade-bar-cta {
  flex-shrink: 0;
  font-size: 0.82rem;
  padding: var(--sp-2) var(--sp-4);
}

.filters-upgrade-bar-login {
  flex-shrink: 0;
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.filters-upgrade-bar-login:hover {
  text-decoration: underline;
}

.search-input {
  flex: 1;
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,169,98,.12);
}

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

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

.sort-locked,
.filter-locked {
  display: inline-flex;
  cursor: not-allowed;
  opacity: 0.9;
}

.sort-locked select,
.filter-locked input {
  pointer-events: none;
}

.filters select,
.filters input[type="text"],
.filters input[type="number"] {
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration) var(--ease);
}

.filters select:focus,
.filters input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,169,98,.12);
}

.filters input[type="number"] { width: 110px; }

/* ── Active filter tags ── */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.25em 0.6em;
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(184, 150, 90, 0.25);
  border-radius: 999px;
  white-space: nowrap;
}

.active-filter-label {
  pointer-events: none;
}

.active-filter-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  padding: 0;
  margin-left: 0.1em;
  border: none;
  background: transparent;
  color: var(--accent-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.active-filter-remove:hover {
  background: rgba(184, 150, 90, 0.2);
  color: var(--text);
}

.active-filters-clear {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: var(--sp-1);
  transition: color var(--duration) var(--ease);
}

/* Collapsible filters for mobile */
.filters-collapsible {
  display: block;
  width: 100%;
}

.filters-collapsible[open] .filters-summary-icon {
  transform: rotate(180deg);
}

.filters-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-2);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.filters-summary::-webkit-details-marker {
  display: none;
}

.filters-summary-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filters-summary-icon {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  transition: transform var(--duration) var(--ease);
}

.active-filters-clear:hover {
  color: var(--accent);
}

/* Results */
.listings-results { margin-top: var(--sp-6); }

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.results-count {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0;
}

/* ── View toggle ── */
.view-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
  flex-shrink: 0;
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  border-radius: calc(var(--radius-sm) - 2px);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.view-toggle-btn .material-symbols-outlined {
  font-size: 1.1rem;
}

.view-toggle-btn:hover {
  background: var(--surface-raised, var(--bg-elevated));
  color: var(--text-secondary);
}

.view-toggle-btn--active {
  background: var(--bg-elevated);
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.view-toggle-btn--active:hover {
  color: var(--accent);
}

.results-bar-controls {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

/* ── Currency toggle ── */
.currency-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
  flex-shrink: 0;
}

.currency-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.5rem;
  border: none;
  background: transparent;
  border-radius: calc(var(--radius-sm) - 2px);
  color: var(--text-tertiary);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.currency-btn:hover {
  background: var(--surface-raised, var(--bg-elevated));
  color: var(--text-secondary);
  text-decoration: none;
}

.currency-btn--active {
  background: var(--bg-elevated);
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.currency-btn--active:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ── Row view ── */
/* ── Row / list view ── */
.listings-grid--rows {
  /* Override the CSS grid completely */
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: var(--sp-2);
}

.listings-grid--rows .listing-card {
  flex-direction: row;
  align-items: stretch;
  height: 64px;
}

/* Thumbnail strip */
.listings-grid--rows .listing-img-wrap {
  width: 80px;
  height: 100%;
  flex-shrink: 0;
  border-bottom: none;
  border-right: 1px solid var(--border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.listings-grid--rows .listing-img-wrap .listing-logo {
  max-width: 75%;
  max-height: 65%;
}

/* Body: single horizontal row of columns */
.listings-grid--rows .listing-body {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  /* Fixed columns so every row aligns: brand+model | price | ref | source+time */
  grid-template-columns: 1fr 130px 140px 180px;
  column-gap: var(--sp-5);
  align-items: center;
  padding: 0 var(--sp-4);
}

.listings-grid--rows .listing-title {
  margin: 0;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listings-grid--rows .listing-price {
  margin: 0;
  font-size: 0.88rem;
  white-space: nowrap;
}

.listings-grid--rows .listing-ref {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listings-grid--rows .listing-meta {
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  gap: var(--sp-2);
  overflow: hidden;
}

/* View-listing footer → right-side button */
.listings-grid--rows .listing-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
  border-top: none;
  border-left: 1px solid var(--border);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0 var(--sp-4);
  font-size: 0.78rem;
  height: 100%;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: var(--sp-3);
}

/* ── Pagination ── */
.listings-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-8);
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 var(--sp-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  cursor: pointer;
  user-select: none;
}

.pagination-btn:hover:not(.pagination-btn--disabled):not(.pagination-btn--active) {
  background: var(--surface-raised);
  border-color: var(--accent);
  color: var(--accent);
}

.pagination-btn--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  cursor: default;
}

.pagination-btn--disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pagination-prev,
.pagination-next {
  font-size: 1rem;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  user-select: none;
}

/* Listing card */
/* ── Listing card — compact, uniform height ── */
.listing-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  position: relative;
}

.listing-card:hover {
  border-color: var(--accent-muted);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Image band */
.listing-img-wrap {
  position: relative;
  height: 140px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.listing-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.55) brightness(0.93);
  transition: filter 0.35s ease;
}

.listing-card:hover .listing-img {
  filter: saturate(1) brightness(1) contrast(1);
}

.listing-img-placeholder-inner,
.listing-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.listing-img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: var(--sp-4);
}

.listing-no-photo {
  position: absolute;
  bottom: var(--sp-2);
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  opacity: 0.5;
}

.listing-logo {
  max-width: 60%;
  max-height: 55%;
  object-fit: contain;
  opacity: 0.4;
  filter: saturate(0.3);
  transition: opacity 0.35s ease, filter 0.35s ease;
}

.listing-card:hover .listing-logo {
  opacity: 0.6;
  filter: saturate(1);
}

[data-theme="dark"] .listing-logo {
  filter: saturate(0.3) invert(1);
  opacity: 0.45;
}

[data-theme="dark"] .listing-card:hover .listing-logo {
  filter: saturate(1) invert(1);
  opacity: 0.65;
}

.listing-img-placeholder-inner .material-symbols-outlined,
.listing-img-placeholder .material-symbols-outlined {
  font-size: 1.8rem;
  color: var(--border);
  transition: color var(--duration) var(--ease);
}

.listing-card:hover .listing-img-placeholder-inner .material-symbols-outlined,
.listing-card:hover .listing-img-placeholder .material-symbols-outlined {
  color: var(--text-tertiary);
}

/* Card body */
.listing-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: var(--sp-3);
  min-height: 0;
}

.listing-title {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  margin: 0 0 var(--sp-1);
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-price {
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 0 2px;
  color: var(--text-primary);
  line-height: 1.3;
}

.listing-market-row {
  margin: 0 0 2px;
}

.listing-market-pct {
  display: inline-flex;
  align-items: center;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}

.listing-market-below {
  color: #15803d;
}

[data-theme="dark"] .listing-market-below {
  color: #22c55e;
}

.listing-market-above {
  color: var(--text-tertiary);
}

.listing-market-at {
  color: var(--text-secondary);
}

.listing-currency {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.listing-original-price {
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.listing-ref {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin: 0 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: auto;
  padding-top: var(--sp-2);
  flex-wrap: wrap;
}

/* Suspiciously low price warning */
.price-warning {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  vertical-align: middle;
  cursor: default;
  z-index: 10;
}

.price-warning .material-symbols-outlined {
  font-size: 0.85rem;
  color: #c8962a;
  line-height: 1;
}

.price-warning:hover .material-symbols-outlined {
  color: #e0a830;
}

.price-warning::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-70%);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.72rem;
  line-height: 1.4;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  white-space: normal;
  width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 200;
}

.price-warning:hover::after {
  opacity: 1;
}

/* Card footer link */
.listing-link {
  display: block;
  text-align: center;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  padding: var(--sp-2) var(--sp-3);
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.listing-link:hover { background: var(--bg); color: var(--accent-muted); }

/* ============================================================
   REDIRECT MODAL
   ============================================================ */
.redirect-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration) var(--ease), visibility var(--duration) var(--ease);
}

.redirect-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.redirect-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-overlay);
  backdrop-filter: blur(4px);
}

.redirect-modal-content {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--sp-8);
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.redirect-modal-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 var(--sp-4);
}

.redirect-modal-content p {
  margin: 0 0 var(--sp-4);
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.redirect-modal-content p:last-of-type { margin-bottom: var(--sp-6); }

.redirect-modal-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: flex-end;
}

.redirect-modal-cancel { cursor: pointer; }
.redirect-modal-confirm { text-decoration: none; }

/* ── Delete-alert confirmation modal ─────────────────────────────────────── */
.delete-alert-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration) var(--ease), visibility var(--duration) var(--ease);
}
.delete-alert-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.delete-alert-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-overlay);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.delete-alert-modal-content {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-12) var(--sp-10) var(--sp-10);
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.delete-alert-modal-icon {
  font-size: 1.9rem;
  color: var(--accent);
  margin-bottom: var(--sp-4);
  display: block;
}
.delete-alert-modal-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 var(--sp-4);
  color: var(--text);
}
.delete-alert-modal-body {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 var(--sp-8);
}
.delete-alert-modal-body strong {
  color: var(--text);
  font-weight: 600;
}
.delete-alert-modal-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
}
.delete-alert-modal-actions .btn {
  min-width: 130px;
  justify-content: center;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.88rem;
}

/* ---- Popularity / notification mode modal ---- */
.popularity-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration) var(--ease), visibility var(--duration) var(--ease);
}
.popularity-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.popularity-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-overlay);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.popularity-modal-content {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-12) var(--sp-10) var(--sp-10);
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.popularity-modal-icon {
  font-size: 1.9rem;
  color: var(--accent);
  margin-bottom: var(--sp-4);
  display: block;
}
.popularity-modal-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 var(--sp-3);
  color: var(--text);
}
.popularity-modal-body {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 var(--sp-6);
}
.popularity-modal-body strong {
  color: var(--text);
  font-weight: 600;
}
.popularity-options {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.popularity-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-5) var(--sp-4);
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.popularity-option:hover {
  border-color: var(--text-secondary);
}
.popularity-option.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-card));
  color: var(--text);
}
.popularity-option .material-symbols-outlined {
  font-size: 1.5rem;
  color: var(--accent);
}
.popularity-option-label {
  font-weight: 500;
}
.popularity-summary-time {
  display: none;
  margin-bottom: var(--sp-6);
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.popularity-summary-time.is-visible {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
}
.popularity-summary-time select {
  padding: var(--sp-1) var(--sp-3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.88rem;
}
.popularity-modal-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
}
.popularity-modal-actions .btn {
  min-width: 130px;
  justify-content: center;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.88rem;
}
.alert-item-mode {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  font-weight: 500;
}

/* ============================================================
   ACCOUNT
   ============================================================ */
.account-panel { margin: var(--sp-8) 0 var(--sp-16); }

.account-email {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 var(--sp-8);
}

.account-layout {
  display: flex;
  gap: var(--sp-8);
  align-items: flex-start;
}

.account-sidebar {
  flex-shrink: 0;
  width: 200px;
}

.account-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.account-action {
  display: block;
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              background var(--duration) var(--ease);
}

.account-action:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.account-action--active,
.account-action[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--border);
  background: var(--accent-glow);
}

.account-action--logout {
  display: block;
  text-decoration: none;
  margin-top: var(--sp-4);
  color: var(--danger) !important;
  border-color: transparent !important;
  background: transparent !important;
}

.account-action--logout:hover {
  background: var(--danger-bg) !important;
  border-color: transparent !important;
}

.account-content { flex: 1; min-width: 0; }

.account-content-section { display: none; }
.account-content-section--active { display: block; }
.account-content-section .panel-section-title { margin-top: 0; }
.account-content-section .auth-form { max-width: 400px; }

.account-plan-panel p {
  margin: 0 0 var(--sp-4);
  font-size: 0.9rem;
  color: var(--text);
}

.account-plan-panel .account-plan-current { font-size: 1rem; }
.account-plan-panel .btn { margin: var(--sp-2) 0 var(--sp-4); }

.account-plan-support {
  margin-top: var(--sp-6) !important;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.account-plan-support a {
  color: var(--accent);
  text-decoration: none;
}

.account-plan-support a:hover { text-decoration: underline; }

.panel-section-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 var(--sp-5);
  color: var(--text);
}

/* ============================================================
   WATCHLIST / ALERTS
   ============================================================ */
.watchlist-intro {
  color: var(--text-secondary);
  margin: 0 0 var(--sp-8);
  max-width: 50ch;
}

.watchlist-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--sp-6);
  margin-bottom: var(--sp-6);
}

.watchlist-section-add { position: relative; }

.watchlist-section-content--blurred {
  filter: blur(2px);
  opacity: 0.6;
  pointer-events: none;
  user-select: none;
}

.watchlist-section-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(9, 12, 16, 0.55);
  border-radius: inherit;
}

[data-theme="light"] .watchlist-section-overlay {
  background: rgba(247, 248, 250, 0.6);
}

.watchlist-section-overlay { cursor: not-allowed; }

.watchlist-section-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 var(--sp-4);
  color: var(--text);
}

.watchlist-form .form-row {
  display: flex;
  gap: var(--sp-4);
  margin-bottom: var(--sp-3);
}

.watchlist-form .form-row--2 { flex-wrap: wrap; }
.watchlist-form .form-group { flex: 1; min-width: 0; }
.watchlist-form .form-row--2 .form-group { min-width: 150px; }

/* Brand + Model row */
.watchlist-form .form-row--brand-model {
  align-items: flex-start;
}
.watchlist-form .form-row--brand-model .form-group {
  flex: 1;
  min-width: 0;
}
.watchlist-form .form-row--brand-model .form-group--model {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-2) var(--sp-3);
}
.watchlist-form .form-row--brand-model .form-group--model > label {
  margin-bottom: var(--sp-2);
}

.watchlist-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: var(--sp-2);
  color: var(--text);
}

.watchlist-form input,
.watchlist-form select {
  width: 100%;
  padding: var(--sp-3) var(--sp-3);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--duration) var(--ease);
}

.watchlist-form input:focus,
.watchlist-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,169,98,.12);
}

.trigger-params { display: none; }

/* Model chips (alert form) */
.model-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}
.model-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: var(--sp-1) var(--sp-3);
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color var(--duration) var(--ease), color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.model-chip:hover {
  border-color: var(--accent-muted);
  color: var(--text);
}
.model-chip.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}
.model-chip--any {
  font-weight: 500;
}
.model-other-select {
  margin-top: var(--sp-2);
}

.avg-price-display {
  padding: var(--sp-4) var(--sp-5);
  background: var(--accent-glow);
  border: 1px solid rgba(201,169,98,.2);
  border-radius: var(--radius);
}

.avg-price-display label {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.avg-price-value {
  margin: var(--sp-1) 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

/* Alert list */
.alert-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.alert-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--sp-3);
  background: var(--bg-input);
  transition: border-color var(--duration) var(--ease);
}

.alert-item:hover { border-color: var(--border); }

.alert-item--inactive { opacity: 0.55; }

.alert-item-main {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  align-items: center;
}

.alert-item-name { font-weight: 600; font-size: 0.95rem; }
.alert-item-trigger { font-size: 0.85rem; color: var(--text-secondary); }
.alert-item-params { font-size: 0.82rem; color: var(--accent-muted); }
.alert-item-actions { display: flex; gap: var(--sp-2); }

/* ── Matching listings row inside alert-item ── */
.alert-item {
  flex-wrap: wrap;
}
.alert-matches-row {
  width: 100%;
  border-top: 1px solid var(--border);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
}
.alert-matches-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  transition: color var(--duration) var(--ease);
}
.alert-matches-toggle:hover { color: var(--accent); }
.alert-matches-toggle--has .alert-matches-label { color: var(--accent-muted); font-weight: 500; }
.alert-matches-icon {
  font-size: 1.2rem;
  transition: transform var(--duration) var(--ease);
}
.alert-matches-toggle--open .alert-matches-icon { transform: rotate(180deg); }
.alert-matches-panel {
  width: 100%;
  padding-top: var(--sp-3);
}
.alert-matches-empty {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}
.alert-matches-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.alert-match-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  transition: border-color var(--duration) var(--ease);
}
.alert-match-card:hover { border-color: var(--accent-muted); }
.alert-match-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.alert-match-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert-match-meta { color: var(--text-secondary); font-size: 0.8rem; }
.alert-match-sep { margin: 0 var(--sp-1); opacity: 0.4; }
.alert-match-link { flex-shrink: 0; }
.alert-matches-more {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: var(--sp-3) 0 0;
  text-align: center;
}
.alert-matches-more a { color: var(--accent); text-decoration: none; }
.alert-matches-more a:hover { text-decoration: underline; }

/* Alerts upgrade CTA */
.alerts-upgrade-cta {
  margin-bottom: var(--sp-8);
  padding: var(--sp-6);
  background: var(--accent-glow);
  border: 1px solid rgba(201,169,98,.25);
  border-radius: var(--radius-lg);
}

.alerts-upgrade-content {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
}

.alerts-upgrade-icon {
  font-size: 2rem;
  color: var(--accent);
  flex-shrink: 0;
}

.alerts-upgrade-content strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: var(--sp-1);
}

.alerts-upgrade-content p {
  margin: 0 0 var(--sp-4);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Getting-started bar for new trial users */
.alerts-getting-started {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--accent-glow);
  border: 1px solid rgba(201,169,98,.2);
  border-radius: var(--radius);
  margin-bottom: var(--sp-5);
  font-size: 0.88rem;
}
.alerts-getting-started-icon {
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.alerts-getting-started-text {
  flex: 1;
  color: var(--text-secondary);
}
.alerts-getting-started-close {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 var(--sp-1);
  line-height: 1;
}
.alerts-getting-started-close:hover {
  color: var(--text);
}

/* Contextual "Set alert" strip on listings page */
.listings-alert-strip {
  margin-bottom: var(--sp-4);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.listings-alert-strip.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.listings-alert-strip-inner {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--accent-glow);
  border: 1px solid rgba(201,169,98,.2);
  border-radius: var(--radius);
  font-size: 0.88rem;
}
.listings-alert-strip-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.listings-alert-strip-text {
  flex-shrink: 0;
  color: var(--text-secondary);
}
.listings-alert-strip-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}
.listings-alert-strip-actions .btn-small {
  white-space: nowrap;
}
.listings-alert-strip-close {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 var(--sp-1);
  line-height: 1;
}
.listings-alert-strip-close:hover {
  color: var(--text);
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-intro {
  color: var(--text-secondary);
  margin: 0 0 var(--sp-2);
  font-size: 1rem;
}

.pricing-trust {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin: 0 0 var(--sp-2);
}

.pricing-intro-note {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  margin: 0 0 var(--sp-6);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.pricing-envelope-icon {
  font-size: 1.1rem;
  vertical-align: middle;
}

/* Pricing controls: billing toggle + currency selector */
.pricing-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
}

.pricing-billing-toggle {
  display: inline-flex;
  gap: 0;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.pricing-currency-select {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.pricing-currency-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-currency-dropdown {
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.88rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--duration) var(--ease);
}

.pricing-currency-dropdown:hover,
.pricing-currency-dropdown:focus {
  border-color: var(--accent);
  outline: none;
}

.pricing-currency-toggle {
  background: none;
  border: none;
  font-size: 0.78rem;
  font-family: var(--font-sans);
  color: var(--text-tertiary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: var(--sp-1) 0;
  transition: color var(--duration) var(--ease);
}

.pricing-currency-toggle:hover {
  color: var(--accent);
}

.pricing-currency-panel {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.pricing-toggle-btn {
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.pricing-toggle-btn:hover { color: var(--text); }

.pricing-toggle-btn--active {
  color: var(--text);
  background: var(--bg-hover);
  box-shadow: none;
}

.pricing-toggle-badge {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  margin-left: var(--sp-1);
}

.pricing-amount-strike {
  text-decoration: line-through;
  color: var(--text-tertiary);
  font-size: 1.15rem;
  font-weight: 500;
}

.pricing-billing-note {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: var(--sp-1) 0 0;
}

.pricing-reassurance {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin: var(--sp-2) 0 0;
  letter-spacing: 0.03em;
}

/* Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-12);
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-top: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--sp-1) var(--sp-3);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color var(--duration) var(--ease);
}

.pricing-card:first-child {
  border-left: 1px solid var(--border);
}

.pricing-card:hover {
  border-color: var(--accent-muted);
  box-shadow: none;
  transform: none;
}

.pricing-card--highlight {
  border-top: 2px solid var(--accent);
  background: var(--bg-elevated);
}

.pricing-card--highlight:hover {
  border-top: 2px solid var(--accent);
  border-color: var(--accent);
  box-shadow: none;
  transform: none;
}

.pricing-badge {
  position: static;
  transform: none;
  display: inline-block;
  margin-bottom: var(--sp-4);
  padding: 2px var(--sp-2);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

[data-theme="light"] .pricing-badge {
  color: var(--accent);
}

.pricing-tier {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-3);
  color: var(--text);
}

.pricing-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0 0 var(--sp-5);
  line-height: 1.6;
  min-height: 2.6em;
}

.pricing-price { margin-bottom: var(--sp-3); }

.pricing-amount {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}

.pricing-period {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-weight: 400;
}

.pricing-then {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin: 0 0 var(--sp-4);
  line-height: 1.5;
  font-style: italic;
}

.pricing-amount-regular {
  font-weight: 600;
  color: var(--text);
}

.pricing-annual {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0 0 var(--sp-5);
}

.pricing-save { color: var(--accent-muted); }

/* Pricing features — thin checkmarks */
.pricing-features {
  list-style: none;
  padding: var(--sp-5) 0 0;
  margin: var(--sp-2) 0 var(--sp-6);
  flex: 1;
  border-top: 1px solid var(--border);
}

.pricing-features li {
  padding: var(--sp-2) 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  line-height: 1.55;
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 400;
  opacity: 0.8;
  line-height: 1.55;
}

.pricing-features li:last-child { border-bottom: none; }

/* Hide the material icon check marks in pricing */
.pricing-check { display: none; }

/* All pricing CTAs: unified outlined gold — no mixed filled/outlined */
.pricing-cta {
  width: 100%;
  text-align: center;
  text-decoration: none;
  background: transparent !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  padding: var(--sp-3) var(--sp-5) !important;
  margin-top: auto;
}

.pricing-cta:hover {
  background: var(--accent) !important;
  color: var(--bg) !important;
  border-color: var(--accent) !important;
}

/* Split Free card — trial / free-forever zones */
.pricing-card--split {
  padding: 0;
  overflow: hidden;
}

.pricing-split-trial {
  padding: var(--sp-1) var(--sp-3) var(--sp-4);
  background: var(--accent-glow);
}

.pricing-split-trial .pricing-tier {
  margin-bottom: var(--sp-2);
}

.pricing-badge--trial {
  visibility: visible !important;
  background: var(--accent-glow-strong);
  border-color: var(--accent-muted);
}

.pricing-split-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-muted);
  margin: 0 0 var(--sp-3);
}

.pricing-split-label--after {
  color: var(--text-tertiary);
}

.pricing-split-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-split-features li {
  padding: var(--sp-1) 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}

.pricing-split-features li::before {
  content: '✓';
  color: var(--accent);
  flex-shrink: 0;
  font-size: 0.64rem;
  font-weight: 400;
  opacity: 0.8;
  line-height: 1.55;
}

.pricing-split-features--muted li::before {
  content: '—';
  color: var(--text-tertiary);
  opacity: 0.6;
}

.pricing-split-features--muted li:nth-child(-n+2)::before {
  content: '✓';
  color: var(--accent);
  opacity: 0.5;
}

/* Horizontal divider between trial and free zones */
.pricing-split-divider {
  height: 1px;
  background: var(--border);
  margin: 0 var(--sp-3);
}

.pricing-split-free {
  padding: var(--sp-2) var(--sp-3) var(--sp-3);
}

/* Badge-style CTA for logged-in users on the free card */
.pricing-cta--badge {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: var(--sp-3) var(--sp-5) !important;
  margin-top: auto;
  background: var(--accent-glow) !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent-muted) !important;
  cursor: default;
}

.pricing-cta--badge:hover {
  background: var(--accent-glow) !important;
  color: var(--accent) !important;
}

.pricing-cta--badge-muted {
  background: transparent !important;
  color: var(--text-tertiary) !important;
  border-color: var(--border) !important;
}

/* Alert help button — inline ? icon */
.pricing-alert-with-help {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.pricing-alert-help-btn,
.pricing-deals-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: var(--accent);
  border-radius: var(--radius-full);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.pricing-alert-help-btn:hover,
.pricing-deals-help-btn:hover {
  color: var(--accent-muted);
  background: var(--accent-glow);
}
.pricing-alert-help-btn .material-symbols-outlined,
.pricing-deals-help-btn .material-symbols-outlined {
  font-size: 1rem;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

/* Alerts help popup */
.alerts-help-popup {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration) var(--ease), visibility var(--duration) var(--ease);
}
.alerts-help-popup.is-open {
  opacity: 1;
  visibility: visible;
}
.alerts-help-popup-backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-overlay);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.alerts-help-popup-content {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-6);
  max-width: 360px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.alerts-help-popup-close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  background: none;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--sp-1);
  border-radius: var(--radius-sm);
  transition: color var(--duration) var(--ease);
}
.alerts-help-popup-close:hover { color: var(--text); }
.alerts-help-popup-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 var(--sp-3);
  color: var(--text);
}
.alerts-help-popup-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 var(--sp-5);
}
.alerts-help-popup-cta {
  display: inline-block;
  text-decoration: none;
}

/* Pricing table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.pricing-table th,
.pricing-table td {
  padding: var(--sp-3) var(--sp-4);
  text-align: center;
  border: 1px solid var(--border);
}

.pricing-table th {
  background: var(--bg-elevated);
  font-weight: 600;
  color: var(--text);
  font-size: 0.85rem;
}

.pricing-table th:first-child,
.pricing-table td:first-child {
  text-align: left;
}

.pricing-table td {
  color: var(--text-secondary);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

/* Table of contents */
.about-toc {
  margin-bottom: var(--sp-10);
  padding: var(--sp-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 420px;
}

.about-toc-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 var(--sp-3);
}

.about-toc-list {
  margin: 0;
  padding: 0 0 0 var(--sp-5);
  list-style: decimal;
}

.about-toc-list li {
  padding: var(--sp-1) 0;
  font-size: 0.9rem;
}

.about-toc-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--duration) var(--ease);
}

.about-toc-list a:hover {
  color: var(--accent);
}

/* Sources list */
.about-sources-list {
  list-style: none;
  margin: var(--sp-6) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  max-width: 560px;
}

.about-source-item--reddit {
  grid-column: 1 / -1;
}

.about-source-item {
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-source-item:hover {
  border-color: var(--accent-muted);
  box-shadow: var(--shadow-sm);
}

.about-source-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.about-source-link:hover {
  color: var(--accent);
}

.about-source-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.about-source-logo.chrono24-logo {
  width: 24px;
  height: 24px;
}

.about-source-subreddits {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2) var(--sp-4);
  margin: var(--sp-2) 0 0;
  padding: 0;
}

.about-source-subreddits li {
  font-size: 0.82rem;
}

.about-source-subreddits a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 400;
}

.about-source-subreddits a:hover {
  color: var(--accent);
}

.about-sources-cta {
  margin-top: var(--sp-10);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.about-sources-cta a {
  color: var(--accent);
  text-decoration: none;
}
.about-sources-cta a:hover {
  text-decoration: underline;
}

/* Alert types grid */
.about-alerts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-6);
}

.about-alert-type {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.about-alert-type:hover {
  border-color: var(--accent-muted);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.about-alert-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--accent-glow);
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.about-alert-icon .material-symbols-outlined {
  font-size: 1.3rem;
}

.about-alert-type h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0 0 var(--sp-2);
  color: var(--text);
}

.about-alert-type > p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 var(--sp-5);
  flex: 1;
}

/* Alert example cards */
.about-alert-example {
  margin-top: auto;
}

.about-alert-example-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: var(--sp-2);
}

.about-alert-example-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.about-alert-example-header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--accent-glow);
  border-bottom: 1px solid var(--border-subtle);
}

.about-alert-example-body {
  padding: var(--sp-3);
}

.about-alert-example-body strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.about-alert-example-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  line-height: 1.45;
}

/* ============================================================
   ALERT STRATEGIES
   ============================================================ */
.strategies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-6);
}

.strategy-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.strategy-card:hover {
  border-color: var(--accent-muted);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.strategy-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--accent-glow);
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.strategy-icon .material-symbols-outlined {
  font-size: 1.3rem;
}

.strategy-card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0 0 var(--sp-2);
  color: var(--text);
}

.strategy-card > p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 var(--sp-4);
}

.strategy-list {
  margin: 0 0 var(--sp-4);
  padding: 0 0 0 var(--sp-5);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.strategy-list li {
  margin-bottom: var(--sp-2);
}

.strategy-tip {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-3) var(--sp-4);
  background: var(--accent-glow);
  border: 1px solid rgba(201,169,98,.15);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.strategy-tip--warn {
  background: rgba(248,113,113,.06);
  border-color: rgba(248,113,113,.15);
}

[data-theme="light"] .strategy-tip--warn {
  background: rgba(220,38,38,.04);
  border-color: rgba(220,38,38,.12);
}

.strategy-tip-icon {
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.strategy-tip--warn .strategy-tip-icon {
  color: var(--danger);
}

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

/* ============================================================
   ERROR PAGES
   ============================================================ */
.error-page {
  text-align: center;
  padding: var(--sp-16) var(--sp-8);
  max-width: 420px;
  margin: 0 auto;
}

.error-page-title {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 400;
  color: var(--accent);
  margin: 0 0 var(--sp-2);
  letter-spacing: 0.05em;
  line-height: 1;
}

.error-page-heading {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 var(--sp-3);
}

.error-page-text {
  color: var(--text-secondary);
  margin: 0 0 var(--sp-6);
  line-height: 1.7;
}

.error-page .btn { margin-top: var(--sp-2); }

/* ============================================================
   HOME STATS — compact ruled row, integrated into hero flow
   ============================================================ */
.home-stats {
  margin: 0 0 var(--sp-6);
}

.home-stats-grid {
  display: flex;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.home-stat {
  flex: 1;
  text-align: center;
  padding: var(--sp-3) var(--sp-4);
  background: transparent;
  border: none;
}

.home-stat + .home-stat {
  border-left: 1px solid var(--rule);
}

.home-stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
}

.home-stat-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
  margin-top: var(--sp-1);
  text-align: center;
}

/* ── Hero: inline stats line (kept for non-home pages if needed) ── */
.hero-stats-inline {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  margin: 0 auto var(--sp-2);
  max-width: 600px;
  line-height: 1.6;
  text-align: center;
}

/* ── Hero: mockup listing card conveyor ── */
.hero-mockup-stack {
  --card-gap: var(--sp-3);
  position: relative;
  overflow: hidden;
  padding: 0 var(--sp-3);
  box-sizing: content-box;
  width: 100%;
  max-width: 780px;
  min-height: 150px;
  margin: 0 auto var(--sp-4);
}

.hero-mockup-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  width: calc((100% - 2 * var(--card-gap)) / 3);
  text-align: left;
  position: absolute;
  top: 0;
  transition:
    left 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: left, opacity, transform, filter;
}

/* ── Off-stage left (waiting to enter) ── */
.hero-mockup-card[data-pos="hidden"] {
  left: calc(-1 * (100% + var(--card-gap)) / 3);
  opacity: 0;
  transform: scale(0.92);
  filter: blur(4px);
  pointer-events: none;
}

/* ── Slot 0 (left) ── */
.hero-mockup-card[data-pos="0"] {
  left: 0;
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* ── Slot 1 (center) ── */
.hero-mockup-card[data-pos="1"] {
  left: calc((100% + var(--card-gap)) / 3);
  opacity: 1;
  transform: scale(1) translateY(-2px);
  filter: blur(0);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

/* ── Slot 2 (right) ── */
.hero-mockup-card[data-pos="2"] {
  left: calc(2 * (100% + var(--card-gap)) / 3);
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* ── Exit (off-stage right) ── */
.hero-mockup-card[data-pos="exit"] {
  left: calc(100% + var(--card-gap));
  opacity: 0;
  transform: scale(0.92) translateY(8px);
  filter: blur(4px);
  pointer-events: none;
}

/* ── Card inner elements ── */
.hero-mockup-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(201,169,98,0.25);
  border-radius: var(--radius-full);
  padding: 2px 8px;
  margin-bottom: var(--sp-2);
}

.hero-mockup-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 2px;
}

.hero-mockup-price {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 var(--sp-2);
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}

.hero-mockup-discount {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  color: #15803d;
  letter-spacing: 0.01em;
}

.hero-mockup-discount--above {
  color: #dc2626;
}

.hero-mockup-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.hero-mockup-source {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
}

.hero-mockup-time {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

[data-theme="dark"] .hero-mockup-discount {
  color: #22c55e;
}

[data-theme="dark"] .hero-mockup-discount--above {
  color: #f97373;
}

/* Respect reduced-motion: disable float & make transitions instant */
@media (prefers-reduced-motion: reduce) {
  .hero-mockup-card {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}

/* ── Hero: social proof ── */
.hero-social-proof {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin: var(--sp-3) 0 0;
  text-align: center;
  letter-spacing: 0.04em;
}

/* ============================================================
   RECENT SEARCHES
   ============================================================ */
.recent-searches {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
}

.recent-searches-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.recent-searches-list {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.recent-search-chip {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.recent-search-chip:hover {
  border-color: var(--accent-muted);
  color: var(--accent);
}

/* ============================================================
   SKELETON LOADING
   ============================================================ */
.skeleton-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-8);
  opacity: 0.5;
}

.skeleton-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}

.skeleton-line {
  height: 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--bg-hover) 25%, var(--bg-subtle) 50%, var(--bg-hover) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  margin-bottom: var(--sp-3);
}

.skeleton-line:last-child { margin-bottom: 0; }
.skeleton-line--title { width: 70%; height: 16px; margin-bottom: var(--sp-4); }
.skeleton-line--short { width: 45%; }
.skeleton-line--medium { width: 65%; }

@keyframes skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  pointer-events: none;
}

.toast {
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

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

.toast--success {
  border-color: rgba(52,211,153,.3);
  background: var(--success-bg);
  color: var(--success);
}

.toast--error {
  border-color: rgba(248,113,113,.3);
  background: var(--danger-bg);
  color: var(--danger);
}

[data-theme="light"] .toast--success {
  border-color: rgba(5,150,105,.2);
}

[data-theme="light"] .toast--error {
  border-color: rgba(220,38,38,.2);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 900;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease),
              transform 0.3s var(--ease), border-color var(--duration) var(--ease),
              color var(--duration) var(--ease);
}

.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--accent-muted);
  color: var(--accent);
}

.back-to-top .material-symbols-outlined {
  font-size: 1.3rem;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.anim-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.anim-on-scroll.anim-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PRICING – FAQ
   ============================================================ */
.pricing-faq {
  margin-top: var(--sp-16);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-custom-note {
  text-align: center;
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-4);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.pricing-custom-note a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.pricing-custom-note a:hover {
  text-decoration: underline;
}

.pricing-faq-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  text-align: center;
  margin: 0 0 var(--sp-8);
  color: var(--text);
  letter-spacing: -0.01em;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  transition: border-color var(--duration) var(--ease);
}

.faq-item:last-child { border-bottom: 1px solid var(--border); }

.faq-item[open] {
  border-color: var(--rule);
}

.faq-question {
  padding: var(--sp-4) 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--duration) var(--ease);
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; content: ''; }

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-tertiary);
  flex-shrink: 0;
  margin-left: var(--sp-4);
  transition: transform 0.3s var(--ease), color var(--duration) var(--ease);
}

.faq-item[open] .faq-question::after {
  content: '−';
  color: var(--accent);
}

.faq-question:hover { color: var(--accent); }

.faq-answer {
  padding: 0 0 var(--sp-5);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
}

/* .pricing-check is hidden via display:none in pricing features block above */

/* Pricing table mobile wrapper */
.pricing-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--sp-6);
}

.pricing-table-wrap .pricing-table {
  min-width: 500px;
}

/* Pricing table highlight column */
.pricing-table-highlight {
  background: var(--accent-glow);
}

.pricing-table th.pricing-table-highlight {
  color: var(--accent);
}

/* ============================================================
   ACCOUNT – USAGE DASHBOARD
   ============================================================ */
.account-usage {
  margin: var(--sp-6) 0;
  padding: var(--sp-5);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.account-usage-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 var(--sp-4);
}

.account-usage-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.account-usage-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.account-usage-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  min-width: 100px;
}

.account-usage-bar-wrap {
  flex: 1;
  min-width: 80px;
  height: 8px;
  background: var(--bg-hover);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.account-usage-bar {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-full);
  min-width: 4px;
  transition: width 0.8s var(--ease);
}

.account-usage-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-mono);
}

.account-usage-value--standalone {
  flex: 1;
  font-family: var(--font-sans);
  font-weight: 500;
}

/* ============================================================
   UPGRADE GATE
   ============================================================ */
.upgrade-gate {
  max-width: 540px;
  margin: var(--sp-12) auto;
  text-align: center;
  padding: var(--sp-8) var(--sp-6);
}

.upgrade-gate-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.upgrade-gate-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin: 0 0 var(--sp-4);
  color: var(--text);
}

.upgrade-gate-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 var(--sp-8);
}

.upgrade-gate-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  text-align: left;
  margin-bottom: var(--sp-8);
}

.upgrade-gate-feature {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.upgrade-gate-feature .material-symbols-outlined {
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
}

.upgrade-gate-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   LISTINGS PREVIEW WALL (free users)
   ============================================================ */
.listings-preview-wall {
  position: relative;
  margin-top: var(--sp-4);
  height: 540px;
  overflow: hidden;
}
.listings-preview-blurred {
  filter: blur(2px);
  -webkit-filter: blur(2px);
  pointer-events: none;
  user-select: none;
  opacity: 0.75;
}
.listings-preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 15%,
    var(--bg) 42%
  );
}
.listings-preview-cta {
  text-align: center;
  max-width: 480px;
  padding: var(--sp-8) var(--sp-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  position: relative;
  z-index: 3;
}
[data-theme="dark"] .listings-preview-cta {
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.listings-preview-cta-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.listings-preview-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 600;
  margin: 0 0 var(--sp-3);
  color: var(--text);
}
.listings-preview-cta-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 var(--sp-6);
}
.listings-preview-cta-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: center;
}
.listings-preview-cta-actions .btn {
  width: 100%;
  max-width: 300px;
  justify-content: center;
}

/* Bottom CTA for free users (below full listing grid) */
.listings-preview-cta-bottom {
  text-align: center;
  max-width: 520px;
  margin: var(--sp-8) auto var(--sp-4);
  padding: var(--sp-8) var(--sp-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
[data-theme="dark"] .listings-preview-cta-bottom {
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Inline signup nudge between listing cards */
.listings-inline-nudge {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--accent-glow);
  border: 1px solid rgba(201,169,98,.18);
  border-radius: var(--radius);
  font-size: 0.88rem;
}
.listings-inline-nudge-icon {
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
}
.listings-inline-nudge-text {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--text-secondary);
}
.listings-inline-nudge .btn-small {
  flex-shrink: 0;
  white-space: nowrap;
}

/* "Similar" badge on backfill listings */
.source-badge--similar {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--accent-muted);
}

/* Auction badge — amber/gold gavel icon to visually distinguish from fixed-price */
.source-badge--auction {
  background: rgba(184, 134, 11, 0.15);
  color: #d4a017;
  border: 1px solid rgba(184, 134, 11, 0.35);
  padding: 2px 5px;
  line-height: 1;
  cursor: help;
}
.auction-icon {
  font-size: 0.82rem;
  vertical-align: middle;
}

/* Auction tag on hero mockup cards */
.hero-mockup-tag--auction {
  color: #d4a017;
  background: rgba(184, 134, 11, 0.15);
  border-color: rgba(184, 134, 11, 0.35);
}
.hero-mockup-tag--auction .material-symbols-outlined {
  font-size: 0.65rem;
  vertical-align: middle;
  margin-right: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: auto;
  padding: var(--sp-12) var(--sp-6) var(--sp-8);
  border-top: 1px solid var(--rule);
  background: var(--bg);
  position: relative;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-8);
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: var(--sp-3);
  font-size: 1.15rem;
}

.site-footer--compact {
  padding: var(--sp-6) var(--sp-6);
  text-align: center;
}
.site-footer--compact .footer-tagline {
  font-size: 0.82rem;
}
.site-footer--compact .footer-tagline a {
  color: var(--accent);
  text-decoration: none;
}
.site-footer--compact .footer-tagline a:hover {
  text-decoration: underline;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  max-width: 280px;
  margin: 0;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-tertiary);
  margin: 0 0 var(--sp-3);
}

.footer-col-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col-links li {
  margin-bottom: var(--sp-2);
}

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

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

.footer-bottom {
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin: 0;
}

.footer-support {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.footer-support:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet & below */
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-card:nth-child(2) { border-right: 1px solid var(--border); }
  .pricing-card:nth-child(3) { border-right: 1px solid var(--border); }
  .pricing-card:nth-child(n+3) { border-top: 1px solid var(--border); }
  .pricing-card:nth-child(3) { border-left: 1px solid var(--border); }

  .about-alerts-grid {
    grid-template-columns: 1fr;
  }

  .home-features-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .skeleton-preview {
    grid-template-columns: repeat(2, 1fr);
  }

  .skeleton-preview .skeleton-card:last-child { display: none; }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --header-height: 56px;
  }

  .main {
    padding: var(--sp-6) var(--sp-4) var(--sp-12);
  }

  body.page-home .main {
    padding-top: 0;
  }

  .hero-screen {
    min-height: auto;
  }

  /* Hide fixed arrow on mobile — it overlaps content */
  .hero-scroll-indicator {
    display: none;
  }

  .hero {
    padding: var(--sp-6) 0 var(--sp-3);
    flex: 1 0 auto;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 5.5vw, 2.8rem);
    margin-bottom: var(--sp-1);
  }

  .hero-subtitle {
    font-size: 0.82rem;
    margin-bottom: var(--sp-1);
  }

  .hero-sources {
    margin-top: var(--sp-2);
    padding: 0 var(--sp-2);
    gap: var(--sp-1);
  }

  .hero-sources-badges {
    gap: var(--sp-1);
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: center;
  }

  .hero-source {
    font-size: 0.7rem;
    padding: var(--sp-1) var(--sp-2);
    gap: var(--sp-1);
    white-space: nowrap;
  }

  .hero-source-text {
    display: none;
  }

  .hero-social-proof {
    margin-top: var(--sp-1);
    font-size: 0.65rem;
  }

  .hero-reassurance {
    margin-top: var(--sp-1);
    font-size: 0.7rem;
  }

  .home-bottom-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-source-logo {
    width: 22px;
    height: 22px;
  }

  .hero-mockup-stack {
    max-width: 100%;
    min-height: 90px;
    overflow: hidden;
    padding: 0 var(--sp-2);
  }

  .hero-mockup-card {
    width: calc(100% - var(--sp-4));
    left: var(--sp-2);
    padding: var(--sp-2) var(--sp-3);
  }

  .hero-mockup-meta {
    display: none;
  }

  .hero-mockup-title {
    font-size: 0.78rem;
  }

  .hero-mockup-price {
    font-size: 0.88rem;
  }

  /* Mobile: only slot 1 (center) is visible; 0 and 2 are off-screen */
  .hero-mockup-card[data-pos="hidden"] {
    left: -110%;
  }

  .hero-mockup-card[data-pos="0"] {
    left: -105%;
    opacity: 0;
    transform: scale(0.95);
    filter: blur(2px);
  }

  .hero-mockup-card[data-pos="1"] {
    left: 0;
    width: 100%;
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  }

  .hero-mockup-card[data-pos="2"] {
    left: 105%;
    opacity: 0;
    transform: scale(0.95);
    filter: blur(2px);
  }

  .hero-mockup-card[data-pos="exit"] {
    left: 110%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-2);
    margin-bottom: var(--sp-2);
  }

  .testimonials-marquee {
    margin-left: calc(-1 * var(--sp-4));
    margin-right: calc(-1 * var(--sp-4));
    width: calc(100% + 2 * var(--sp-4));
    padding: var(--sp-2) 0;
  }

  .testimonials-track {
    animation-duration: 200s;
  }

  .testimonials-slide {
    gap: var(--sp-5);
    padding-right: var(--sp-5);
  }

  .tq {
    white-space: normal;
    max-width: 280px;
  }

  .hero-btn {
    width: 100% !important;
    justify-content: center;
    padding: var(--sp-4) var(--sp-6) !important;
  }

  .home-stats {
    margin-bottom: var(--sp-3);
  }

  .home-stats-grid {
    gap: var(--sp-2);
  }

  .home-bottom-cta {
    margin-left: calc(-1 * var(--sp-4));
    margin-right: calc(-1 * var(--sp-4));
    padding: var(--sp-10) var(--sp-4);
  }

  .home-stat {
    padding: var(--sp-3) var(--sp-3);
  }

  .account-layout {
    flex-direction: column;
    gap: var(--sp-6);
  }

  .account-sidebar { width: 100%; }

  .account-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .account-action {
    flex: 1;
    min-width: 120px;
    text-align: center;
  }

  .pricing-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: var(--sp-3);
    padding-bottom: var(--sp-3);
    scrollbar-width: none;
  }

  .pricing-grid::-webkit-scrollbar {
    display: none;
  }

  .pricing-card {
    border: 1px solid var(--border);
    border-top: 2px solid var(--border);
    scroll-snap-align: center;
    min-width: 85vw;
    flex-shrink: 0;
  }

  .pricing-card--highlight {
    border-top: 2px solid var(--accent);
  }

  .pricing-card--split {
    padding: 0;
  }

  .pricing-dots {
    display: flex;
    justify-content: center;
    gap: var(--sp-2);
    margin-bottom: var(--sp-6);
  }

  .pricing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background var(--duration) var(--ease);
  }

  .pricing-dot--active {
    background: var(--accent);
  }

  .pricing-table { font-size: 0.78rem; }

  .pricing-table th,
  .pricing-table td {
    padding: var(--sp-2) var(--sp-1);
  }

  .listings-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .search-row {
    flex-direction: column;
  }

  .search-row .btn {
    width: 100%;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filters select,
  .filters input[type="text"],
  .filters input[type="number"] {
    width: 100%;
  }

  .alert-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .alert-item-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .alert-match-card {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
  }
  .alert-match-title { white-space: normal; }

  .watchlist-form .form-row {
    flex-direction: column;
  }

  .alerts-upgrade-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .home-how-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .home-how-section { padding: var(--sp-10) 0; }

  .empty-state {
    padding: var(--sp-10) var(--sp-4);
  }

  .auth-card {
    margin: var(--sp-4) auto var(--sp-8);
    padding: var(--sp-6);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .skeleton-preview {
    grid-template-columns: 1fr;
  }

  .skeleton-preview .skeleton-card:nth-child(n+2) { display: none; }

  .toast-container {
    right: var(--sp-4);
    bottom: var(--sp-4);
    left: var(--sp-4);
  }

  .back-to-top {
    bottom: var(--sp-4);
    right: var(--sp-4);
  }

  /* Sticky mobile CTA bar */
  .sticky-cta-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: var(--sp-3) var(--sp-4);
    text-align: center;
  }

  .sticky-cta-btn {
    width: 100%;
  }

  /* Extra bottom padding so content isn't hidden behind sticky CTA */
  body.page-home .main,
  body.page-pricing .main {
    padding-bottom: 80px;
  }

  .account-usage-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
  }

  .account-usage-bar-wrap { width: 100%; }

  /* ── Mobile: collapsible filters ── */
  .filters-collapsible {
    margin-bottom: var(--sp-3);
  }
  .filters-collapsible:not([open]) .filters {
    display: none;
  }
  .filters-summary {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: var(--sp-2);
  }

/* ── Mobile: collapse locked filters for free users ── */
  .listings-search--free .filters {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .listings-search--free .filters select:not(.search-input--locked),
  .listings-search--free .filters input {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }
  .listings-search--free .filters .search-input--locked { display: none; }
  .listings-search--free .filters .btn { flex: 1 1 100%; }

  /* Compact upgrade bar on mobile */
  .filters-upgrade-chips { display: none; }
  .filters-upgrade-bar-inner { padding: var(--sp-2) var(--sp-3); }
  .filters-upgrade-bar { margin-bottom: var(--sp-3); }

  /* ── Mobile quick wins ── */
  .listing-img-wrap { height: 110px; }
  .page-title { font-size: 1.5rem; margin-bottom: var(--sp-2); }
  .listings-intro,
  .seo-content-block { font-size: 0.82rem; margin-bottom: var(--sp-2); }

  /* Force grid layout for row view on mobile (row overflows) */
  .listings-grid--rows {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
  }
  .listings-grid--rows .listing-card {
    flex-direction: column;
    align-items: stretch;
    height: auto;
  }
  .listings-grid--rows .listing-img-wrap {
    width: 100%;
    height: 110px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  }
  .listings-grid--rows .listing-body {
    display: flex;
    flex-direction: column;
    padding: var(--sp-3);
    grid-template-columns: none;
  }
  .listings-grid--rows .listing-link {
    border-top: 1px solid var(--border);
  }
}

/* Small phones */
@media (max-width: 480px) {
  .view-toggle { display: none; }
}

/* Very small screens */
@media (max-width: 380px) {
  .pricing-controls {
    flex-direction: column;
    gap: var(--sp-3);
  }

  .pricing-billing-toggle {
    flex-direction: column;
    align-items: stretch;
  }

  .pricing-toggle-btn {
    text-align: center;
  }
}

/* ============================================================
   INSIGHTS (insights.chronomarket.app)
   ============================================================ */

/* Subdomain badge next to logo */
.insights-nav-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(201,169,98,0.25);
  border-radius: var(--radius-full);
  padding: 2px 8px;
  margin-left: var(--sp-2);
  flex-shrink: 0;
}

/* Layout */
body.page-insights { scroll-behavior: smooth; }
.page-insights .insights-section {
  scroll-margin-top: calc(var(--header-height) + var(--sp-6));
}
.main--insights {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-6) var(--sp-16);
}

/* Hero */
.insights-hero {
  padding: var(--sp-12) 0 var(--sp-10);
  text-align: center;
}
.insights-hero--compact {
  padding: var(--sp-6) 0 var(--sp-5);
}
.insights-hero--compact .insights-hero-eyebrow { margin-bottom: var(--sp-2); }
.insights-hero--compact .insights-hero-title { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: var(--sp-2); }
.insights-hero--compact .insights-hero-sub { font-size: 0.9rem; margin-bottom: var(--sp-4); }
.insights-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--sp-4);
}
.insights-hero-eyebrow .material-symbols-outlined {
  font-size: 1rem;
}
.insights-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 var(--sp-4);
  line-height: 1.2;
}
.insights-hero-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto var(--sp-6);
  line-height: 1.65;
}
.insights-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  margin-top: var(--sp-4);
}
.insights-hero-cta {
  display: inline-flex;
}

/* Insights hero scroll CTA */
.insights-hero-scroll-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent-muted);
  border-radius: var(--radius);
  background: transparent;
  transition: all var(--duration) var(--ease);
}

.insights-hero-scroll-cta:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
}

.insights-hero-scroll-cta .material-symbols-outlined {
  font-size: 1.1rem;
  animation: scroll-arrow-bounce 1.5s ease-in-out infinite;
}

@keyframes scroll-arrow-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

/* KPI row */
.insights-kpi-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.insights-kpi {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.insights-kpi-icon {
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
}
.insights-kpi-val {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 2px;
}
.insights-kpi-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.insights-kpi-sub {
  display: block;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-top: 1px;
}
.insights-kpi-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 2px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-hover);
  border-radius: 50%;
  cursor: help;
  position: relative;
  vertical-align: middle;
  transition: color 0.15s, background 0.15s;
}
.insights-kpi-help:hover,
.insights-kpi-help:focus,
.insights-kpi-help.is-visible {
  color: var(--accent);
  background: var(--accent-glow);
  outline: none;
}
.insights-kpi-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s, visibility 0.15s;
  z-index: 100;
}
.insights-kpi-help:hover .insights-kpi-tooltip,
.insights-kpi-help:focus .insights-kpi-tooltip,
.insights-kpi-help.is-visible .insights-kpi-tooltip {
  opacity: 1;
  visibility: visible;
}
.insights-kpi-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -4px;
  border: 4px solid transparent;
  border-top-color: var(--border);
}

/* Scope badges ("Active listings" / "All listings") */
.insights-scope-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.insights-scope-badge--active {
  background: rgba(184, 150, 90, 0.16);
  color: var(--accent);
}
.insights-scope-badge--all {
  background: rgba(138, 130, 120, 0.16);
  color: var(--text-secondary);
}

/* Section quick links */
/* Unified toolbar: section links (left) + controls (right) */
.insights-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 10px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.insights-toolbar-left {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex-wrap: wrap;
}
.insights-toolbar-right {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}
.insights-quick-link {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-2) var(--sp-3);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.insights-quick-link:hover {
  background: var(--bg-hover);
  color: var(--text);
}

/* Timeframe select (compact, right side of toolbar) */
.insights-timeframe-wrap {
  display: flex;
  align-items: center;
}
.insights-timeframe-select {
  padding: var(--sp-2) var(--sp-3);
  font: 500 0.8125rem/1 var(--font-sans, inherit);
  color: var(--text-secondary);
  background: var(--bg-surface, var(--bg-hover));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  min-width: 100px;
  transition: border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}
.insights-timeframe-select:hover,
.insights-timeframe-select:focus {
  border-color: var(--accent-muted);
  color: var(--accent);
  outline: none;
}

/* Brand insights select */
.insights-per-brand-select {
  padding: var(--sp-2) var(--sp-3);
  font: 500 0.8125rem/1 var(--font-sans, inherit);
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--accent-muted);
  border-radius: var(--radius);
  cursor: pointer;
  min-width: 150px;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.insights-per-brand-select:hover,
.insights-per-brand-select:focus {
  border-color: var(--accent);
  outline: none;
}

@media (max-width: 640px) {
  .insights-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
  }
  .insights-toolbar-left {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, #000 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent 100%);
  }
  .insights-toolbar-left::-webkit-scrollbar { display: none; }
  .insights-quick-link {
    white-space: nowrap;
    padding: var(--sp-2) var(--sp-3);
    font-size: 0.875rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .insights-toolbar-right {
    width: 100%;
    flex-wrap: wrap;
    align-items: stretch;
  }
  .insights-timeframe-select,
  .insights-per-brand-select {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    font-size: 16px;
    min-height: 44px;
  }
  .insights-select {
    font-size: 16px;
    min-height: 44px;
  }
}
@media (max-width: 380px) {
  .insights-toolbar-right {
    flex-direction: column;
  }
  .insights-timeframe-select,
  .insights-per-brand-select {
    width: 100%;
  }
}

/* Sections */
.insights-section {
  margin-bottom: var(--sp-12);
}
.insights-section:last-of-type {
  margin-bottom: 0;
}
.insights-section-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 var(--sp-6);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border-subtle);
}

/* Collapsible section toggle */
.insights-section--collapsible .insights-section-title.insights-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: color var(--duration) var(--ease);
}
.insights-section--collapsible .insights-section-title.insights-section-toggle:hover {
  color: var(--accent);
}
.insights-section-chevron {
  font-size: 1.5rem;
  color: var(--text-tertiary);
  transition: transform var(--duration) var(--ease), color var(--duration) var(--ease);
}
.insights-section--collapsible .insights-section-title.insights-section-toggle:hover .insights-section-chevron {
  color: var(--accent);
}
.insights-section-content {
  overflow: hidden;
  max-height: 3000px;
  transition: max-height 0.4s var(--ease), opacity 0.25s var(--ease);
}
.insights-section-content--collapsed {
  max-height: 0 !important;
  opacity: 0;
  margin-bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Card header with inline control */
.insights-card-header--row {
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
}
.insights-brand-select {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-left: auto;
}
.insights-brand-select-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.insights-select {
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  min-width: 160px;
}
.insights-select:focus {
  outline: none;
  border-color: var(--accent);
}

/* 2-col grid */
.insights-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}

/* Card */
.insights-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.insights-card:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}
.insights-card--full {
  margin-bottom: var(--sp-6);
}
.insights-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

/* Share button inside chart cards */
.insights-share-btn {
  margin-left: auto;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  cursor: pointer;
  padding: var(--sp-1) var(--sp-2);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: 0.72rem;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.insights-share-btn .material-symbols-outlined { font-size: 1rem; }
.insights-share-btn:hover { color: var(--accent); border-color: var(--accent); }

.insights-section-link-btn {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.insights-section-link-btn:hover { color: var(--accent); border-color: var(--accent); }
.insights-section-link-btn .material-symbols-outlined { font-size: 1rem; }

/* Share modal */
.insights-share-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.insights-share-modal[hidden] { display: none; }
.insights-share-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
}
.insights-share-modal-box {
  position: relative;
  z-index: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: var(--sp-8) var(--sp-8);
  width: min(480px, calc(100vw - 2rem));
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.insights-share-modal-close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: var(--sp-1);
}
.insights-share-modal-close:hover { color: var(--text); }
.insights-share-modal-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text);
  margin: 0 0 var(--sp-2);
}
.insights-share-modal-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0 0 var(--sp-5);
  line-height: 1.5;
}
.insights-share-modal-url-row {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.insights-share-modal-url-input {
  flex: 1;
  font-size: 0.82rem;
  font-family: var(--font-mono, monospace);
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-3);
  min-width: 0;
}
.insights-share-modal-copy {
  flex-shrink: 0;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.78rem;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.insights-share-modal-copy:hover { background: var(--accent); color: var(--bg); }
.insights-share-modal-socials {
  display: flex;
  gap: var(--sp-3);
}
.insights-share-social-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-family: var(--font-sans);
  font-weight: 500;
  text-decoration: none;
  transition: opacity var(--duration) var(--ease);
}
.insights-share-social-btn:hover { opacity: 0.85; }
.insights-share-social-btn--twitter { background: #000; color: #fff; }
.insights-share-social-btn--reddit { background: #ff4500; color: #fff; }

/* Shared chart standalone page */
.shared-chart-card {
  margin-bottom: var(--sp-6);
}

.shared-chart-full-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.78rem;
}
.shared-chart-full-link:hover { text-decoration: underline; }

.shared-chart-value {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin: var(--sp-4) 0 var(--sp-6);
}
.shared-chart-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.78rem;
  color: var(--text-tertiary);
  padding: var(--sp-4) 0 var(--sp-8);
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}
.shared-chart-sep { opacity: 0.4; }
.shared-chart-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.78rem;
  font-family: var(--font-sans);
  padding: 2px var(--sp-2);
  transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.shared-chart-copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.shared-chart-copy-btn .material-symbols-outlined { font-size: 0.9rem; }
.insights-card-icon {
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.insights-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 var(--sp-1);
}
.insights-card-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Charts */
.insights-chart-wrap {
  position: relative;
  height: 220px;
}
.insights-chart-wrap--tall {
  height: 260px;
}
/* Table-based charts (top_models) must not be constrained to the canvas height */
.insights-chart-wrap--table {
  height: auto;
  min-height: 0;
  overflow: visible;
}
.insights-chart-wrap--compact {
  height: 160px;
}

/* Grey market leaderboard */
.insights-leaderboard-section { margin-bottom: var(--sp-8); }
.insights-lb-tab-bar {
  display: none;
}
.insights-lb-tab {
  padding: var(--sp-2) var(--sp-4);
  font: 500 0.8125rem/1 var(--font-sans, inherit);
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.insights-lb-tab.is-active {
  color: var(--accent);
  border-color: var(--accent-muted);
  background: var(--accent-glow);
}
.insights-lb-tab:hover:not(.is-active) {
  color: var(--text);
  border-color: var(--border-focus);
}
.insights-leaderboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.insights-leaderboard-col { min-width: 0; }
.insights-leaderboard-col-title {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-secondary); margin: 0 0 var(--sp-3);
}
.insights-leaderboard-table th, .insights-leaderboard-table td { padding: var(--sp-2) var(--sp-3); font-size: 0.9rem; }
.insights-rank-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.75em;
  padding: 2px 6px; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
  background: var(--bg-hover); border-radius: var(--radius-sm);
}
.insights-rank-badge--1, .insights-rank-badge--2, .insights-rank-badge--3 { color: var(--accent); background: var(--accent-glow); }
.insights-biggest-movers { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--border); }
.insights-biggest-movers-title { font-size: 0.95rem; font-weight: 600; margin: 0 0 var(--sp-1); }
.insights-biggest-movers-desc { font-size: 0.8rem; color: var(--text-secondary); margin: 0 0 var(--sp-3); }
.insights-biggest-movers-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.insights-mover-badge {
  display: inline-block; padding: var(--sp-1) var(--sp-2); font-size: 0.82rem;
  color: var(--text-secondary); background: var(--bg-hover); border-radius: var(--radius-sm);
}
.insights-mover-badge strong { color: var(--text); }
.insights-most-expensive { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--sp-4); min-height: 120px; }
.insights-most-expensive-val { display: block; font-size: 1.5rem; font-weight: 700; color: var(--accent); margin-bottom: var(--sp-1); }
.insights-most-expensive-label { font-size: 0.9rem; color: var(--text-secondary); }

/* Table */
.insights-table-wrap {
  overflow-x: auto;
}
.insights-table {
  width: 100%;
  border-collapse: collapse;
}
.insights-table th {
  padding: var(--sp-2) var(--sp-3);
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.insights-table td {
  padding: var(--sp-3) var(--sp-3);
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}
.insights-table tbody tr:hover {
  background: var(--bg-hover);
}
.insights-table-rank {
  width: 40px;
  text-align: center !important;
  color: var(--text-tertiary);
}
.insights-table-rank-num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.insights-table-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-8) var(--sp-4);
  text-align: center;
}
.insights-table-empty-icon {
  font-size: 2rem;
  color: var(--text-secondary);
  opacity: 0.5;
}
.insights-table-empty-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0;
}
.insights-table-empty-sub {
  font-size: 0.85rem;
  color: var(--text-tertiary, var(--text-secondary));
  margin: 0;
  max-width: 380px;
  line-height: 1.5;
}
.insights-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
}
.insights-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
}
.insights-link:hover { text-decoration: underline; }
.insights-badge--green {
  background: rgba(34,197,94,0.12);
  color: #22c55e;
}
.insights-empty-msg {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Best deals controls */
.insights-best-deals-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
}
.insights-best-deals-tabs {
  display: flex;
  gap: var(--sp-2);
}
.insights-bd-tab {
  padding: var(--sp-2) var(--sp-4);
  font: 500 0.8125rem/1 var(--font-sans, inherit);
  color: var(--text-secondary);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.insights-bd-tab.is-active {
  color: var(--accent);
  border-color: var(--accent-muted);
  background: var(--accent-glow);
}
.insights-bd-tab:hover:not(.is-active) {
  color: var(--text);
  border-color: var(--border-focus);
}
.insights-best-deals-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}
.insights-bd-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
}
.insights-bd-filter-label input[type="checkbox"] {
  accent-color: var(--accent);
}
.insights-best-deals-brand-wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.insights-best-deals-brand-wrap .insights-brand-select-label {
  margin: 0;
}
.insights-best-deals-stats {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
}
.insights-deals-fallback-note {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: var(--sp-2);
  margin-bottom: 0;
}

/* Best deals tile grid */
.best-deals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
@media (min-width: 600px) {
  .best-deals-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .best-deals-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1400px) {
  .best-deals-grid { grid-template-columns: repeat(4, 1fr); }
}

.best-deal-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  display: flex;
  flex-direction: row-reverse;
  min-height: 130px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.best-deal-sold-ribbon {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  z-index: 2;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 1px 5px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-sm, 4px);
  pointer-events: none;
  opacity: 0.7;
  transition: opacity var(--duration, 0.2s) var(--ease, ease);
}
.best-deal-card:hover .best-deal-sold-ribbon {
  opacity: 1;
}
.best-deal-card--top {
  border-left: 3px solid var(--accent, #c9a962);
  box-shadow: 0 2px 8px rgba(201, 169, 98, 0.1);
}
.best-deal-card--top:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.best-deal-card:hover {
  border-color: var(--accent-muted);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
[data-theme="dark"] .best-deal-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* Image area */
.best-deal-img-wrap {
  position: relative;
  width: 130px;
  flex-shrink: 0;
  aspect-ratio: unset;
  background: var(--bg-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.best-deal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.best-deal-img-wrap--logo {
  background: var(--bg-elevated);
}
.best-deal-img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
}
.best-deal-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  opacity: 0.5;
  filter: grayscale(100%);
}
[data-theme="dark"] .best-deal-logo {
  filter: grayscale(100%) invert(1);
}

/* Discount badge */
.best-deal-discount {
  position: absolute;
  bottom: var(--sp-2);
  left: var(--sp-2);
  background: var(--accent, #c9a962);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  line-height: 1.4;
  white-space: nowrap;
  max-width: calc(100% - 12px);
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Speed badge */
.best-deal-speed {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0;
  line-height: 1.4;
  backdrop-filter: none;
  white-space: nowrap;
  max-width: unset;
  overflow: visible;
}
.best-deal-speed .material-symbols-outlined {
  color: var(--accent, #c9a962);
}

/* Body */
.best-deal-body {
  padding: var(--sp-3);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-height: unset;
  justify-content: space-between;
}
.best-deal-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.best-deal-prices {
  margin: 0;
  font-size: 0.88rem;
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.best-deal-sold {
  color: var(--accent, #c9a962);
  font-weight: 600;
}
.best-deal-avg {
  color: var(--text-tertiary);
  font-size: 0.78rem;
}
.best-deal-avg s {
  text-decoration: line-through;
}
.best-deal-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: auto;
}
.best-deal-tts {
  color: var(--accent, #c9a962);
  font-size: 0.78rem;
  font-weight: 600;
}
@media (max-width: 599px) {
  .best-deals-grid { grid-template-columns: 1fr; }
}

/* Bottom CTA */
.insights-bottom-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-hover));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-10) var(--sp-8);
  margin-top: var(--sp-4);
}
.insights-bottom-cta > span.material-symbols-outlined {
  font-size: 2.5rem;
  color: var(--accent);
}
.insights-bottom-cta strong {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.insights-bottom-cta p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 360px;
}

/* Best deal external redirect dialog */
.best-deal-redirect-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease);
  z-index: 1000;
}
.best-deal-redirect-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.best-deal-redirect-dialog {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  max-width: 420px;
  width: calc(100% - 2.5rem);
  padding: var(--sp-5);
  box-shadow: 0 18px 45px rgba(0,0,0,0.22);
}
.best-deal-redirect-title {
  margin: 0 0 var(--sp-2);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}
.best-deal-redirect-text {
  margin: 0 0 var(--sp-4);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.best-deal-redirect-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-2);
}

/* Newsletter subscribe section */
.insights-newsletter-section {
  margin: var(--sp-10) 0 var(--sp-6);
  padding: var(--sp-8) var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  background: var(--card-bg);
}
.insights-newsletter-inner {
  max-width: 480px;
  margin: 0 auto;
}
.insights-newsletter-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}
.insights-newsletter-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 var(--sp-2);
}
.insights-newsletter-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0 0 var(--sp-4);
  line-height: 1.5;
}
.insights-newsletter-form {
  display: flex;
  gap: var(--sp-2);
  justify-content: center;
}
.insights-newsletter-input {
  flex: 1;
  max-width: 280px;
  padding: 10px 14px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.insights-newsletter-input:focus {
  border-color: var(--accent);
}
.insights-newsletter-btn {
  white-space: nowrap;
}
.insights-newsletter-msg {
  font-size: 0.88rem;
  margin: var(--sp-3) 0 0;
}
.insights-newsletter-msg--ok { color: #50b88e; }
.insights-newsletter-msg--err { color: #e06060; }
.insights-newsletter-section--highlight {
  animation: nl-highlight 1.5s ease-out;
}
@keyframes nl-highlight {
  0%   { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(184,150,90,0.25); }
  100% { border-color: var(--border); box-shadow: none; }
}
.insights-newsletter-share {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--sp-3);
  padding: 0;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 0.78rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s, color 0.15s;
}
.insights-newsletter-share:hover {
  opacity: 1;
  color: var(--accent);
}

@media (max-width: 600px) {
  .insights-newsletter-form { flex-direction: column; align-items: stretch; }
  .insights-newsletter-input { max-width: none; }
}

/* Empty state */
.insights-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-16) var(--sp-4);
  text-align: center;
  color: var(--text-secondary);
}
.insights-empty-icon {
  font-size: 3rem;
  color: var(--accent);
}

/* Brand conversion nudge */
.brand-conversion-nudge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-10) 0 var(--sp-6);
  padding: var(--sp-8) var(--sp-6);
  background: var(--accent-glow);
  border: 1px solid var(--accent-muted);
  border-radius: var(--radius-lg);
  text-align: center;
}
.brand-conversion-icon {
  font-size: 2rem;
  color: var(--accent);
}
.brand-conversion-nudge p {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}
.brand-conversion-btn { min-width: 220px; }

/* Compare with chips */
.brand-compare-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-10);
}
.brand-compare-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.brand-compare-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.brand-compare-chip {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-2) var(--sp-3);
  font: 500 0.8125rem/1 var(--font-sans, inherit);
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.brand-compare-chip:hover {
  color: var(--accent);
  border-color: var(--accent-muted);
  background: var(--accent-glow);
}

/* Responsive */
@media (max-width: 900px) {
  .insights-kpi-row { grid-template-columns: repeat(2, 1fr); }
  .insights-kpi-row .insights-kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .insights-grid-2 { grid-template-columns: 1fr; }
  .insights-leaderboard-grid { grid-template-columns: 1fr; overflow-x: hidden; }
  .insights-lb-tab-bar {
    display: flex;
    gap: var(--sp-2);
    margin-bottom: var(--sp-4);
  }
  .insights-lb-tab {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .insights-leaderboard-col { display: none; }
  .insights-leaderboard-col.is-active { display: block; }
}
@media (max-width: 600px) {
  .main--insights { padding: 0 var(--sp-4) var(--sp-10); }
  .insights-hero, .insights-hero--compact { padding: var(--sp-3) 0 var(--sp-3); }
  .insights-hero--compact .insights-hero-title { font-size: 1.5rem; margin-bottom: var(--sp-2); }
  .insights-hero--compact .insights-hero-sub { font-size: 0.85rem; margin-bottom: var(--sp-3); }
  .insights-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-2);
  }
  .insights-hero-scroll-cta,
  .insights-hero-cta {
    width: 100%;
    justify-content: center;
  }
  /* KPI: horizontal scrollable strip */
  .insights-kpi-row {
    display: flex;
    overflow-x: auto;
    gap: var(--sp-2);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, #000 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent 100%);
  }
  .insights-kpi-row::-webkit-scrollbar { display: none; }
  .insights-kpi-row .insights-kpi:last-child:nth-child(odd) { grid-column: auto; }
  .insights-kpi {
    flex: 0 0 auto;
    min-width: 120px;
    padding: var(--sp-2) var(--sp-3);
    gap: var(--sp-2);
  }
  .insights-kpi-icon { display: none; }
  .insights-kpi-val { font-size: 1.1rem; }
  .insights-kpi-label { font-size: 0.72rem; }
  .insights-chart-wrap { height: 180px; }
  .insights-chart-wrap--tall { height: 210px; }
  .insights-chart-wrap--compact { height: 150px; }
  .insights-card { padding: var(--sp-4); }
  .insights-grid-2 { gap: var(--sp-4); margin-bottom: var(--sp-4); }
  .insights-section { margin-bottom: var(--sp-8); }
  .insights-section-title { font-size: 1.2rem; margin-bottom: var(--sp-4); }
  .insights-card--full { margin-bottom: var(--sp-4); }
  .insights-table .col-listings { display: none; }
  .insights-table td, .insights-table th { padding: var(--sp-2); font-size: 0.82rem; }
  .insights-bottom-cta { flex-direction: column; text-align: center; }
  .insights-nav-badge { display: none; }
  .insights-brand-select { margin-left: 0; margin-top: var(--sp-2); width: 100%; }

  /* Card header: tighter spacing, hide icons */
  .insights-card-header { gap: var(--sp-2); }
  .insights-card-icon { display: none; }
  .insights-card-desc { line-height: 1.55; }

  /* Scope badges wrap on narrow screens */
  .insights-scope-badge { display: block; margin-left: 0; margin-top: 2px; }

  /* Section toggle: easy tap target */
  .insights-section--collapsible .insights-section-title.insights-section-toggle {
    min-height: 48px;
    padding-right: var(--sp-3);
  }
  .insights-section-chevron { font-size: 1.75rem; }

  /* Touch-friendly best deals tabs */
  .insights-bd-tab {
    padding: 10px 16px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Table: smooth scrolling */
  .insights-table-wrap {
    -webkit-overflow-scrolling: touch;
  }
  .insights-leaderboard-table td,
  .insights-leaderboard-table th {
    font-size: 0.82rem;
  }

  /* Table "View →" links: bigger tap target */
  .insights-link {
    padding: var(--sp-2) var(--sp-3);
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  /* KPI tooltip: anchor to left to prevent clipping */
  .insights-kpi-tooltip {
    left: 0;
    transform: none;
  }
  .insights-kpi-tooltip::after {
    left: 12px;
    margin-left: 0;
  }

  /* Select dropdowns: prevent iOS zoom */
  .insights-select {
    font-size: 16px;
    min-height: 44px;
  }
}
@media (max-width: 400px) {
  .insights-kpi { min-width: 100px; }
}

/* ── /watches/ SEO pages ────────────────────────────────────────────── */
.watches-page {
  max-width: var(--content-max-w, 1200px);
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-4) var(--sp-12);
}

/* Hero */
.watches-hero {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}
.watches-hero-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: grayscale(20%);
  flex-shrink: 0;
}
.watches-eyebrow {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0 0 var(--sp-1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.watches-eyebrow a {
  color: var(--text-secondary);
  text-decoration: none;
}
.watches-eyebrow a:hover { color: var(--accent); }
.watches-hero-title {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: 2rem;
  font-weight: 500;
  margin: 0 0 var(--sp-2);
  color: var(--text-primary);
}
.watches-hero-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* KPI row */
.watches-kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  padding: var(--sp-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: center;
}
.watches-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
}
.watches-kpi--link {
  margin-left: auto;
}
.watches-kpi-val {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.watches-kpi-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Section */
.watches-section {
  margin-bottom: var(--sp-8);
}
.watches-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border);
}

/* Top-models grid */
.watches-models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.watches-model-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.watches-model-card:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
}
.watches-model-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.watches-model-count {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.watches-model-price {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 2px;
}

/* Alert CTA */
.watches-alert-cta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  margin-bottom: var(--sp-6);
}
.watches-alert-icon {
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
}
.watches-alert-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.watches-alert-text strong { color: var(--text-primary); font-size: 0.95rem; }
.watches-alert-text span { color: var(--text-secondary); font-size: 0.85rem; }

/* Upgrade CTA */
.watches-upgrade-cta {
  margin-top: var(--sp-5);
  padding: var(--sp-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.watches-upgrade-cta p {
  color: var(--text-secondary);
  margin: 0 0 var(--sp-3);
  font-size: 0.95rem;
}
.watches-upgrade-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}

.watches-more-link {
  margin-top: var(--sp-5);
  text-align: center;
}

.watches-back {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}
.watches-back-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
}
.watches-back-link:hover { color: var(--accent); }

@media (max-width: 600px) {
  .watches-hero { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .watches-hero-logo { width: 56px; height: 56px; }
  .watches-hero-title { font-size: 1.5rem; }
  .watches-kpi-row { padding: var(--sp-3); }
  .watches-kpi--link { margin-left: 0; }
  .watches-alert-cta { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Onboarding modal (post-verification wizard)
   ============================================================ */
.onboard-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--modal-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: onboard-fade-in 250ms var(--ease);
}
.onboard-overlay--closing {
  opacity: 0;
  transition: opacity 250ms var(--ease);
}
@keyframes onboard-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.onboard-modal {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: calc(100% - 2rem);
  padding: var(--sp-8) var(--sp-6) var(--sp-6);
  animation: onboard-slide-up 300ms var(--ease);
}
@keyframes onboard-slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.onboard-close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: var(--sp-1);
  border-radius: var(--radius);
  transition: color var(--duration) var(--ease);
}
.onboard-close:hover { color: var(--text); }

/* Welcome banner */
.onboard-welcome {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--success-bg, rgba(16, 185, 129, 0.08));
  border: 1px solid var(--success-border, rgba(16, 185, 129, 0.25));
  border-radius: var(--radius);
  padding: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-5);
}
.onboard-welcome-icon {
  color: var(--success);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.onboard-welcome-text {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}
.onboard-welcome-text strong {
  color: var(--text);
}

/* Step 0: centered welcome variant */
.onboard-welcome--center {
  flex-direction: column;
  text-align: center;
  justify-content: center;
}
.onboard-welcome--center .onboard-welcome-icon {
  font-size: 2rem;
}

/* Step 0: action buttons */
.onboard-step0-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.onboard-step0-actions .btn {
  min-width: 220px;
}
.onboard-step0-actions .onboard-custom-link {
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--duration) var(--ease);
}
.onboard-step0-actions .onboard-custom-link:hover {
  color: var(--accent);
}

.onboard-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 var(--sp-2);
}
.onboard-optional {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
}
.onboard-sub {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 var(--sp-5);
}

/* Brand tiles */
.onboard-brands {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.onboard-brand-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-2);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.onboard-brand-tile:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.onboard-brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: opacity var(--duration) var(--ease), filter var(--duration) var(--ease);
}
.onboard-brand-tile:hover .onboard-brand-logo {
  filter: grayscale(0%);
  opacity: 1;
}
[data-theme="dark"] .onboard-brand-logo {
  filter: grayscale(100%) invert(1);
}
[data-theme="dark"] .onboard-brand-tile:hover .onboard-brand-logo {
  filter: grayscale(0%) invert(1);
  opacity: 1;
}

/* Other brand dropdown */
.onboard-other-wrap {
  margin-top: var(--sp-2);
}
.onboard-other-label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin-bottom: var(--sp-1);
}
.onboard-brand-select {
  width: 100%;
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.88rem;
}

/* Model chips */
.onboard-models {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  max-height: 240px;
  overflow-y: auto;
}
.onboard-model-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: var(--sp-1) var(--sp-3);
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color var(--duration) var(--ease), color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.onboard-model-chip:hover {
  border-color: var(--accent-muted);
  color: var(--text);
}
.onboard-model-chip.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}
.onboard-model-chip--any {
  font-weight: 500;
}

/* Nav */
.onboard-nav {
  margin-top: var(--sp-2);
}

/* Summary */
.onboard-summary {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 var(--sp-5);
  line-height: 1.5;
}
.onboard-summary strong {
  color: var(--accent);
}
.onboard-create-btn {
  width: 100%;
  margin-bottom: var(--sp-3);
}
.onboard-custom-link {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  text-align: center;
  padding: var(--sp-2) 0;
  transition: color var(--duration) var(--ease);
}
.onboard-custom-link:hover { color: var(--accent); }

/* Success */
.onboard-success-icon {
  text-align: center;
  margin-bottom: var(--sp-3);
}
.onboard-success-icon .material-symbols-outlined {
  font-size: 3rem;
  color: var(--success);
}
.onboard-success-note {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 479px) {
  .onboard-brands { grid-template-columns: repeat(2, 1fr); }
  .onboard-brand-logo { width: 28px; height: 28px; }
}

/* ============================================================
   Insights best deals hint
   ============================================================ */
.insights-deals-hint {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.82rem;
  margin: var(--sp-4) 0 0;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-subtle);
}
.insights-deals-hint a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.insights-deals-hint a:hover {
  text-decoration: underline;
}

/* ============================================================
   DEALS PAGE
   ============================================================ */

/* Nav icon */
.nav-deals-icon {
  font-size: 1.1rem;
  line-height: 1;
  color: #e67e22;
  vertical-align: middle;
  margin-right: 0.1em;
}

/* Hero section */
.deals-hero {
  text-align: center;
  margin-bottom: var(--sp-5);
}
.deals-title-icon {
  color: #e67e22;
  font-size: 1.5em;
  vertical-align: -0.15em;
  margin-right: 0.15em;
}
.deals-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: var(--sp-1);
}

/* Countdown timer */
.deals-countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill, 999px);
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.deals-countdown .material-symbols-outlined {
  font-size: 1rem;
  color: var(--text-tertiary);
}

/* Brand filter */
.deals-brand-filter {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.deals-brand-filter select {
  padding: var(--sp-1) var(--sp-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  min-width: 180px;
}
.deals-clear-filter {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}
.deals-clear-filter:hover {
  text-decoration: underline;
}

/* Results bar */
.deals-results-bar {
  margin-bottom: var(--sp-3);
}

/* Discount badge — positioned on listing image */
.discount-badge {
  position: absolute;
  top: var(--sp-1);
  right: var(--sp-1);
  padding: 0.15rem 0.5rem;
  background: #27ae60;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 2;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* Subtle discount hint inline with price */
.deals-pct-hint {
  font-size: 0.78rem;
  font-weight: 500;
  color: #27ae60;
  margin-left: 0.3em;
  white-space: nowrap;
}

/* Median price line under listing price */
.listing-median-price {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin: 0;
  line-height: 1.3;
}

/* Blur overlay for free users */
.deals-blur-overlay {
  position: relative;
  margin-top: calc(-1 * var(--sp-4));
  padding-top: var(--sp-8);
  background: linear-gradient(to bottom, transparent 0%, var(--bg) 40%);
}
.deals-blur-cta {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.deals-blur-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}
.deals-blur-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin: 0 0 var(--sp-2);
}
.deals-blur-text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0 0 var(--sp-4);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.deals-blur-actions {
  display: flex;
  gap: var(--sp-2);
  justify-content: center;
  flex-wrap: wrap;
}

/* Deals locked – unauthenticated full-page blur */
.deals-locked {
  position: relative;
  min-height: 60vh;
}
.deals-locked-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-5);
  filter: blur(8px);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}
.deals-locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Placeholder bars for fake deal content */
.placeholder-bar {
  display: block;
  height: 1em;
  background: var(--border);
  border-radius: var(--radius-sm);
  width: 80%;
}
.placeholder-bar--short { width: 50%; }
.placeholder-bar--xs { width: 30%; }

/* ============================================================
   STICKY MOBILE CTA BAR
   ============================================================ */
.sticky-cta-bar {
  display: none;
}

/* ============================================================
   SCROLL-SNAP PRICING DOT INDICATORS
   ============================================================ */
.pricing-dots {
  display: none;
}
