/* ============================================================
   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);
  --color-premium: #7ab87a;
  --color-discount: #e07a5f;

  /* 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-md:    8px;
  --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.25); }
  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 1;
  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);
}

/* Desktop standalone theme toggle (next to person icon) */
.nav-theme-desktop {
  display: flex;
  align-items: center;
}

/* Mobile theme toggle (left of logo, hidden on desktop) */
.nav-theme-mobile {
  display: none;
}

/* 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-theme-mobile {
    display: inline-flex;
    position: absolute;
    left: var(--sp-4);
    top: 50%;
    transform: translateY(-50%);
  }

  .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-4);
  padding-bottom: 0;
}

/* 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-2);
  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-1);
  line-height: 1.65;
  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-3);
}

/* 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: 4px;
  margin-top: var(--sp-1);
}

.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-1);
  justify-content: center;
}

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

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

.hero-source-logo {
  width: 20px;
  height: 20px;
  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 {
  min-height: calc(100svh - var(--header-height));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow-x: clip;
  padding-bottom: var(--sp-6);
  box-sizing: border-box;
}

/* Let hero section grow to fill available space, pushing testimonials to the bottom */
.hero-screen .hero {
  flex: 1 1 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;
  min-height: 0;
}

/* 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 CAROUSEL
   ============================================================ */
.testimonials-carousel {
  flex-shrink: 0;
  margin: auto calc(-1 * var(--sp-6)) 0;
  width: calc(100% + 2 * var(--sp-6));
  border-top: 1px solid var(--rule);
  padding: var(--sp-2) var(--sp-6) var(--sp-2);
  box-sizing: border-box;
}

.testimonials-viewport {
  overflow: hidden;
}

.testimonials-strip {
  display: flex;
  gap: var(--sp-2);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.tq {
  flex: 0 0 calc((100% - 4 * var(--sp-2)) / 5);
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
  white-space: normal;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-3) var(--sp-2);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
  margin-top: 10px;
  overflow: visible;
}

.tq-text {
  display: block;
}

.tq-author {
  position: absolute;
  top: -10px;
  left: var(--sp-3);
  display: inline-block;
  background: var(--bg-elevated);
  padding: 0 var(--sp-1);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.68rem;
  line-height: 20px;
}

/* Navigation: arrows */
.testimonials-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding-top: var(--sp-2);
}

.testimonials-arrows {
  display: flex;
  gap: var(--sp-1);
}

.testimonials-arrow {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: background 0.15s ease, border-color 0.15s ease;
  padding: 0;
}

.testimonials-arrow:hover {
  background: var(--border);
}

.testimonials-arrow .material-symbols-outlined {
  font-size: 16px;
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: var(--sp-1);
  margin-top: var(--sp-3);
}
.testimonials-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background var(--duration) var(--ease);
}
.testimonials-dot.active {
  background: var(--accent);
}

/* ============================================================
   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 — centered narrative blocks
   ============================================================ */
.home-how-section {
  text-align: center;
  margin-bottom: var(--sp-8);
  padding: var(--sp-10) 0;
}

.home-how-header {
  margin-bottom: 0;
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border);
}

.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-step {
  border-bottom: 1px solid var(--border);
  padding: var(--sp-7) var(--sp-8);
  text-align: center;
}

.home-how-step:hover {
  box-shadow: none;
  transform: none;
}

.home-how-num {
  font-family: var(--font-serif);
  font-size: 0.76rem;
  font-weight: 300;
  font-style: italic;
  color: var(--accent);
  display: block;
  margin-bottom: var(--sp-2);
  letter-spacing: 0.06em;
}

.home-how-icon { display: none; }

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

.home-how-step p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin: 0 auto;
  line-height: 1.75;
  max-width: 540px;
}

/* -- Stats row -- */
.how-stats {
  display: flex;
  justify-content: center;
  gap: var(--sp-8);
  margin-top: var(--sp-5);
}
.how-stat-val {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  display: block;
}
.how-stat-label {
  font-size: 0.62rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 3px;
  display: block;
}

/* -- Sources list -- */
.how-sources {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: var(--sp-3);
}
.how-sources span {
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.how-sources span::after {
  content: ' \00b7  ';
  color: var(--border);
}
.how-sources span:last-child::after { content: ''; }

/* -- Notification tabs -- */
.how-notif-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: var(--sp-5) auto 0;
  max-width: 520px;
  border-bottom: 1px solid var(--border);
}
.how-notif-tab {
  padding: var(--sp-2) var(--sp-5);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-tertiary);
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s, border-color 0.15s;
  font-family: var(--font-sans);
}
.how-notif-tab:hover { color: var(--text-secondary); }
.how-notif-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.how-notif-panel {
  display: none;
  max-width: 520px;
  margin: var(--sp-4) auto 0;
}
.how-notif-panel.active { display: block; }

/* -- Email mockup -- */
.how-email {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-align: left;
}
.how-email-toolbar {
  background: #f8f8f8;
  border-bottom: 1px solid #eee;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.how-email-dots {
  display: flex;
  gap: 5px;
}
.how-email-dots::before,
.how-email-dots::after,
.how-email-dots {
  content: '';
}
.how-email-dots {
  width: 8px; height: 8px; border-radius: 50%; background: #ddd;
  box-shadow: 13px 0 0 #ddd, 26px 0 0 #ddd;
}
.how-email-subject {
  font-size: 0.72rem;
  font-weight: 600;
  color: #333;
  margin-left: 24px;
}
.how-email-header {
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.how-email-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid rgba(201,169,98,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 700; color: var(--accent);
  flex-shrink: 0;
}
.how-email-from { font-size: 0.75rem; font-weight: 600; color: #333; }
.how-email-addr { font-size: 0.62rem; color: #999; }
.how-email-body { padding: 18px; }
.how-email-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.how-email-img {
  width: 120px; height: 120px; border-radius: 6px;
  overflow: hidden; flex-shrink: 0; background: var(--bg);
}
.how-email-img img { width: 100%; height: 100%; object-fit: cover; }
.how-email-info { flex: 1; }
.how-email-tag {
  display: inline-block;
  font-size: 0.55rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 2px 8px; border-radius: 3px;
  background: #e8f5e9; color: #2e7d32; margin-bottom: 6px;
}
.how-email-title { font-size: 0.88rem; font-weight: 700; color: #222; margin-bottom: 4px; }
.how-email-price { font-size: 1.1rem; font-weight: 800; color: #222; margin-bottom: 6px; }
.how-email-on { font-size: 0.7rem; font-weight: 400; color: #999; }
.how-email-specs { font-size: 0.68rem; color: #888; line-height: 1.6; }
.how-email-market {
  font-size: 0.72rem; padding: 8px 12px; margin-top: 14px;
  background: #fef9f0; border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0; color: #555;
}
.how-email-market strong { color: var(--accent); }
.how-email-btn {
  display: inline-block; margin-top: 12px; padding: 8px 20px;
  background: var(--accent); color: #fff; border-radius: 4px;
  font-size: 0.72rem; font-weight: 600;
}

/* -- Slack mockup -- */
.how-slack {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-align: left;
}
.how-slack-toolbar {
  background: #4a154b;
  padding: 8px 14px;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
}
.how-slack-hash { color: rgba(255,255,255,0.5); margin-right: 2px; }
.how-slack-body { padding: 12px 16px; }
.how-slack-msg { display: flex; gap: 10px; }
.how-slack-avatar {
  width: 32px; height: 32px; border-radius: 4px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.6rem; font-weight: 700; flex-shrink: 0;
}
.how-slack-content { flex: 1; min-width: 0; }
.how-slack-meta { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.how-slack-name { font-size: 0.78rem; font-weight: 700; color: #1d1c1d; }
.how-slack-badge {
  font-size: 0.5rem; font-weight: 600; text-transform: uppercase;
  background: #e8f5e9; color: #2e7d32; padding: 1px 5px; border-radius: 3px;
}
.how-slack-time { font-size: 0.6rem; color: #999; }
.how-slack-text { font-size: 0.76rem; color: #1d1c1d; margin-bottom: 8px; line-height: 1.5; }
.how-slack-embed {
  border-left: 4px solid var(--accent);
  padding: 10px 14px;
  background: #fafafa;
  border-radius: 0 4px 4px 0;
  display: flex;
  gap: 14px;
}
.how-slack-embed-text { flex: 1; min-width: 0; }
.how-slack-embed-title { font-size: 0.78rem; font-weight: 700; color: #1264a3; margin-bottom: 6px; }
.how-slack-embed-fields { display: flex; gap: 16px; flex-wrap: wrap; }
.how-slack-field label {
  display: block; font-size: 0.6rem; font-weight: 700;
  color: #555; text-transform: uppercase;
}
.how-slack-field span { font-size: 0.72rem; color: #333; }
.how-slack-field-green { color: #2e7d32 !important; font-weight: 600; }
.how-slack-embed-thumb {
  width: 80px; height: 80px; border-radius: 4px;
  overflow: hidden; flex-shrink: 0; background: var(--bg);
}
.how-slack-embed-thumb img { width: 100%; height: 100%; object-fit: cover; }
.how-slack-reactions { display: flex; gap: 6px; margin-top: 8px; }
.how-slack-reaction {
  font-size: 0.65rem; padding: 2px 8px; border-radius: 12px;
  background: #f0f0f0; border: 1px solid #ddd; color: #555;
}

/* -- Discord mockup -- */
.how-discord {
  background: #313338;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  text-align: left;
}
.how-discord-toolbar {
  background: #2b2d31;
  padding: 8px 14px;
  color: #f2f3f5;
  font-size: 0.78rem;
  font-weight: 600;
}
.how-discord-hash { color: #80848e; margin-right: 4px; }
.how-discord-body { padding: 12px 16px; }
.how-discord-msg { display: flex; gap: 10px; }
.how-discord-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.65rem; font-weight: 700; flex-shrink: 0;
}
.how-discord-content { flex: 1; min-width: 0; }
.how-discord-meta { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.how-discord-name { font-size: 0.78rem; font-weight: 600; color: #f2f3f5; }
.how-discord-bot {
  font-size: 0.48rem; font-weight: 600; text-transform: uppercase;
  background: #5865f2; color: #fff; padding: 1px 4px; border-radius: 2px;
}
.how-discord-time { font-size: 0.6rem; color: #80848e; }
.how-discord-embed {
  border-left: 4px solid var(--accent);
  padding: 10px 14px;
  background: #2b2d31;
  border-radius: 0 4px 4px 0;
  margin-top: 4px;
  display: flex;
  gap: 14px;
}
.how-discord-embed-text { flex: 1; min-width: 0; }
.how-discord-embed-title { font-size: 0.78rem; font-weight: 700; color: #00aff4; margin-bottom: 6px; }
.how-discord-embed-desc { font-size: 0.72rem; color: #dbdee1; line-height: 1.5; margin-bottom: 8px; }
.how-discord-embed-fields { display: flex; gap: 16px; flex-wrap: wrap; }
.how-discord-field label {
  display: block; font-size: 0.58rem; font-weight: 700;
  color: #80848e; text-transform: uppercase;
}
.how-discord-field span { font-size: 0.72rem; color: #dbdee1; }
.how-discord-embed-thumb {
  width: 80px; height: 80px; border-radius: 4px;
  overflow: hidden; flex-shrink: 0; background: #1e1f22;
}
.how-discord-embed-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   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);
}

/* 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);
}

/* Loading state for async buttons */
.btn--loading {
  pointer-events: none;
  opacity: 0.7;
}
.btn--loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: var(--radius-full);
  animation: btn-spin 600ms linear infinite;
  margin-left: var(--sp-2);
  vertical-align: middle;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   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 .form-group--newsletter { margin-bottom: var(--sp-4); }
.newsletter-opt-in-label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.78rem;
  color: var(--text-tertiary);
  cursor: pointer;
  margin-bottom: 0;
}
.newsletter-opt-in-label input[type="checkbox"] {
  width: auto;
  flex-shrink: 0;
}

.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 (bottom of page, collapsed) */
.seo-content-bottom {
  margin: var(--sp-6) 0 var(--sp-4);
  border-top: 1px solid var(--border);
  padding-top: var(--sp-3);
}
.seo-content-bottom-toggle {
  cursor: pointer;
  color: var(--text-muted, var(--text-secondary));
  font-size: 0.82rem;
  list-style: none;
  user-select: none;
}
.seo-content-bottom-toggle::-webkit-details-marker { display: none; }
.seo-content-bottom-toggle::before { content: "▸ "; }
.seo-content-bottom[open] .seo-content-bottom-toggle::before { content: "▾ "; }
.seo-content-block {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: var(--sp-2) 0 0;
  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;
}
.price-insufficient {
  font-size: 0.8rem;
  font-style: italic;
  opacity: 0.45;
  cursor: help;
}
.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: var(--radius-lg);
  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; }

/* ── Two-row filter layout ── */
.filters-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-top: var(--sp-3);
}

.filters-row:first-of-type {
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--sp-3);
}

.filters-row-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-tertiary);
}

.filters-row-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
}

.filters-row-inputs select,
.filters-row-inputs input[type="text"],
.filters-row-inputs input[type="number"] {
  height: 34px;
  padding: 0 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-row-inputs select:focus,
.filters-row-inputs input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,169,98,.12);
}

.filters-row-inputs input[type="number"] {
  width: 100px;
}

/* ── 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: var(--radius-full);
  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: var(--radius-sm);
  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: var(--radius-sm);
  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: brand+model | price | ref | specs | source+time */
  grid-template-columns: 1fr 130px 140px minmax(0, 180px) 180px;
  column-gap: var(--sp-5);
  align-items: center;
  padding: 0 var(--sp-4);
}

.listings-grid--rows .listing-retail-price {
  display: none;
}

.listings-grid--rows .fairness-badge,
.listings-grid--rows .fairness-badge--empty {
  display: none;
}

.listings-grid--rows .listing-specs {
  margin: 0;
  flex-wrap: nowrap;
  overflow: hidden;
}

.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;
}


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

/* ── 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-md);
  cursor: pointer;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease), transform 0.15s ease;
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.listing-card:hover {
  border-color: var(--accent-muted);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

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

.listing-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.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;
  min-width: 0;
}

/* ── Fixed-zone card alignment ── */
.listing-body-spacer {
  flex: 1;
}

.fairness-badge--empty {
  display: none;
}

.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: 1.15rem;
  font-weight: 800;
  margin: 0 0 2px;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.listing-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
  margin: 6px 0 2px;
  min-width: 0;
}

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

.listing-retail-price {
  display: inline;
  font-size: 0.68rem;
  color: var(--text-tertiary);
  text-decoration: line-through;
  margin-left: 8px;
  line-height: 1.3;
}

.listing-market-pct {
  display: inline-flex;
  align-items: center;
  padding: 0.05rem 0.45rem;
  border-radius: var(--radius-full);
  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-specs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin: 8px 0 0;
  overflow: hidden;
}

.spec-pill {
  display: inline-block;
  padding: 2px 6px;
  border-radius: var(--radius);
  font-size: 0.63rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-tertiary);
  white-space: nowrap;
  flex-shrink: 0;
}

[data-theme="dark"] .spec-pill {
  background: rgba(255, 255, 255, 0.06);
}

.spec-dot {
  font-size: 0.6rem;
  color: var(--border);
}

/* Condition pill can shrink if needed */
.spec-condition {
  flex-shrink: 1;
  min-width: 0;
}

/* Muted condition colors — 4 tiers: new, excellent, good, fair */
.spec-condition--new {
  background: rgba(21, 128, 61, 0.08);
  border-color: rgba(21, 128, 61, 0.2);
  color: #15803d;
}
[data-theme="dark"] .spec-condition--new {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
  color: #6ee7b7;
}

.spec-condition--excellent {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.15);
  color: #2563eb;
}
[data-theme="dark"] .spec-condition--excellent {
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.18);
  color: #93bbfd;
}

/* Good — neutral, no special color */

.spec-condition--fair {
  background: rgba(202, 138, 4, 0.06);
  border-color: rgba(202, 138, 4, 0.15);
  color: #a16207;
}
[data-theme="dark"] .spec-condition--fair {
  background: rgba(234, 179, 8, 0.08);
  border-color: rgba(234, 179, 8, 0.15);
  color: #fbbf24;
}

.listing-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.65rem;
  color: var(--text-tertiary);
  margin-top: 8px;
  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;
}

/* ============================================================
   EXPANDED CARD (click-to-expand)
   ============================================================ */
.listing-card.is-expanded {
  grid-column: 1 / -1;
  flex-direction: row;
  border-color: var(--accent-muted);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  transform: none;
  z-index: 5;
  animation: card-expand 0.25s var(--ease) forwards;
}

@keyframes card-expand {
  from { opacity: 0.7; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.listing-card.is-expanded .listing-img-wrap {
  width: 280px;
  height: auto;
  min-height: 200px;
  flex-shrink: 0;
  border-bottom: none;
  border-right: 1px solid var(--border);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.listing-card.is-expanded .listing-body {
  padding: var(--sp-4) var(--sp-5);
  justify-content: flex-start;
}

.listing-card.is-expanded .listing-body-spacer { display: none; }
.listing-card.is-expanded .listing-title { white-space: normal; font-size: 1rem; }
.listing-card.is-expanded .listing-price { font-size: 1.3rem; }

/* Collapse button — hidden by default, visible when expanded */
.listing-collapse-btn {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background var(--duration) var(--ease);
}

.listing-collapse-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.listing-card.is-expanded .listing-collapse-btn {
  display: flex;
}

button.listing-expand-cta {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

/* CTA button — hidden by default, visible when expanded */
.listing-expand-cta {
  display: none;
  margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-5);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  align-self: flex-start;
  text-align: center;
  transition: background var(--duration) var(--ease);
}

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

.listing-card.is-expanded .listing-expand-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

/* Dim non-expanded cards */
.listings-grid--has-expanded .listing-card:not(.is-expanded) {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Row view: expanded overrides */
.listings-grid--rows .listing-card.is-expanded {
  height: auto;
  flex-direction: row;
  grid-column: 1 / -1;
}

.listings-grid--rows .listing-card.is-expanded .listing-img-wrap {
  width: 280px;
  height: auto;
  min-height: 200px;
  border-right: 1px solid var(--border);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.listings-grid--rows .listing-card.is-expanded .listing-body {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
}

.listings-grid--rows .listing-card.is-expanded .listing-retail-price { display: inline; }
.listings-grid--rows .listing-card.is-expanded .fairness-badge { display: inline-flex; }


/* ============================================================
   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);
  font-size: 0.88rem;
  margin: 0 0 var(--sp-4);
  max-width: 60ch;
}

.watchlist-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent-muted);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  margin-bottom: var(--sp-4);
  box-shadow: var(--shadow-md);
}

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

/* Compact form grid */
.watchlist-form--compact .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2) var(--sp-4);
  margin-bottom: var(--sp-2);
}
.watchlist-form--compact .form-grid .form-group--full {
  grid-column: 1 / -1;
}
.watchlist-form--compact label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
}
.watchlist-form--compact input,
.watchlist-form--compact select {
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.88rem;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.watchlist-form--compact .form-row--actions {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}
.watchlist-form--compact .form-row--actions .btn-primary {
  padding: var(--sp-3) var(--sp-6);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.form-label-hint { font-weight: 400; color: var(--accent-muted); font-size: 0.65rem; text-transform: none; letter-spacing: normal; }

.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; }

/* Skeleton loading placeholders */
@keyframes skeleton-shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}
.skeleton {
  display: inline-block;
  background: linear-gradient(90deg, var(--border) 25%, var(--surface-secondary) 37%, var(--border) 63%);
  background-size: 200px 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
  border-radius: var(--radius-lg);
}
.skeleton--text {
  height: 0.75em;
  vertical-align: middle;
}
.skeleton--avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.skeleton-card {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
}
.skeleton-card + .skeleton-card {
  border-top: 1px solid var(--border);
}
.skeleton-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.watchlist-section-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 var(--sp-3);
  color: var(--text);
}
.watchlist-section-subtitle {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 var(--sp-4);
  color: var(--text);
  letter-spacing: 0.01em;
}

.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.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
  color: var(--text-secondary);
}

.watchlist-form input,
.watchlist-form select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.92rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.watchlist-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2388837a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-3) center;
  padding-right: var(--sp-8);
}
.watchlist-form input:focus,
.watchlist-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(184,150,90,.15), inset 0 1px 3px rgba(0,0,0,0.1);
}

.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-2) var(--sp-4);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 400;
  cursor: pointer;
  transition: border-color var(--duration) var(--ease), color var(--duration) var(--ease), background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.model-chip:hover {
  border-color: var(--accent-muted);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(184,150,90,.1);
}
.model-chip.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent-glow), var(--accent-glow-strong));
  box-shadow: 0 0 0 1px var(--accent-muted);
  font-weight: 500;
}
.model-chip--any {
  font-weight: 500;
}
.model-other-select {
  margin-top: var(--sp-2);
}

/* ── Form sections (visual grouping) ── */
.form-section {
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ── Form progress indicator ── */
.form-progress {
  display: flex;
  gap: var(--sp-1);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.form-progress-seg {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: var(--sp-2) var(--sp-1);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.form-progress-seg .material-symbols-outlined {
  font-size: 0.9rem;
}
.form-progress-seg.is-active {
  color: var(--accent);
  border-color: var(--accent-muted);
}
.form-progress-seg.is-filled {
  color: var(--accent);
  background: var(--accent-glow);
  border-color: var(--accent-muted);
}

/* ── Brand tiles (form) ── */
.form-brand-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.form-brand-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-3) var(--sp-1);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.form-brand-tile:hover {
  border-color: var(--accent-muted);
  background: var(--accent-glow);
}
.form-brand-tile.is-active {
  border-color: var(--accent);
  background: var(--accent-glow-strong);
  color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.form-brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: opacity var(--duration) var(--ease), filter var(--duration) var(--ease);
}
.form-brand-tile:hover .form-brand-logo,
.form-brand-tile.is-active .form-brand-logo {
  filter: grayscale(0%);
  opacity: 1;
}
[data-theme="dark"] .form-brand-logo {
  filter: grayscale(100%) invert(1);
}
[data-theme="dark"] .form-brand-tile:hover .form-brand-logo,
[data-theme="dark"] .form-brand-tile.is-active .form-brand-logo {
  filter: grayscale(0%) invert(1);
  opacity: 1;
}
.form-brand-other {
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}
.form-brand-other-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--sp-2);
}

/* ── Trigger cards (form) ── */
.form-trigger-cards {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.form-trigger-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-2);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-trigger-card:hover {
  border-color: var(--accent-muted);
  background: var(--accent-glow);
}
.form-trigger-card.is-active {
  border-color: var(--accent);
  background: var(--accent-glow-strong);
  box-shadow: 0 0 0 1px var(--accent);
}
.form-trigger-icon-wrap {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--accent-glow);
}
.form-trigger-card.is-active .form-trigger-icon-wrap {
  background: var(--accent-glow-strong);
}
.form-trigger-icon-wrap .material-symbols-outlined {
  color: var(--accent);
  font-size: 1.15rem;
}
.form-trigger-body {
  min-width: 0;
}
.form-trigger-body strong {
  display: block;
  font-size: 0.78rem;
  color: var(--text);
  margin-bottom: 2px;
}
.form-trigger-body span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  line-height: 1.3;
}

/* ── Channel cards (form) ── */
.form-channel-cards {
  display: flex;
  gap: var(--sp-2);
}
.form-channel-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: var(--sp-3) var(--sp-2);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.form-channel-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.form-channel-card:hover {
  border-color: var(--accent-muted);
}
.form-channel-card--checked {
  border-color: var(--accent);
  background: var(--accent-glow);
  box-shadow: 0 0 0 1px var(--accent);
}
.form-channel-card--disconnected {
  opacity: 0.5;
}
.form-channel-card--disconnected:hover {
  opacity: 0.7;
}
.form-channel-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.form-channel-icon {
  font-size: 1.1rem;
  color: var(--accent);
}
.form-channel-logo {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  object-fit: contain;
}
.form-channel-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}
.form-channel-status {
  font-size: 0.65rem;
  font-weight: 500;
}
.form-channel-status--active {
  color: var(--success);
}
.form-channel-status--connect {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.form-channel-status--connect:hover {
  text-decoration: underline;
}

/* Notification channels section on alerts page */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-4);
}
.channels-card {
  padding: var(--sp-4);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.channels-card-header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}
.channels-card-header strong {
  font-size: 0.95rem;
}
.channels-card-status {
  margin: 0 0 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);
}

.avg-price-limited-warning {
  margin: var(--sp-2) 0 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-style: italic;
}

.avg-price-no-data-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--sp-3);
}

/* 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); flex-shrink: 0; }
.alert-item-brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.65;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
}
[data-theme="dark"] .alert-item-brand-logo {
  filter: invert(1);
  opacity: 0.55;
}

/* Overflow menu */
.alert-overflow { position: relative; }
.alert-overflow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}
.alert-overflow-btn:hover { border-color: var(--accent-muted); color: var(--text); }
.alert-overflow-btn .material-symbols-outlined { font-size: 1.1rem; }
.alert-overflow-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 140px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  z-index: 20;
  padding: var(--sp-1) 0;
}
.alert-overflow-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  padding: var(--sp-2) var(--sp-3);
  border: none;
  background: none;
  font-size: 0.84rem;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.alert-overflow-item:hover { background: var(--surface-secondary); }
.alert-overflow-item .material-symbols-outlined { font-size: 1rem; color: var(--text-secondary); }
.alert-overflow-item--danger { color: var(--danger, #b91c1c); }
.alert-overflow-item--danger .material-symbols-outlined { color: var(--danger, #b91c1c); }

/* ── 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;
  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 { text-decoration: none; color: inherit; }
.alert-match-card:hover { border-color: var(--accent-muted); }
.alert-match-arrow { font-size: 1rem; color: var(--text-muted); flex-shrink: 0; transition: transform 0.15s var(--ease); }
.alert-match-card:hover .alert-match-arrow { transform: translateX(2px); color: var(--accent); }
.alert-match-img-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-secondary);
}
.alert-match-img-wrap--fallback {
  background: var(--surface-secondary);
}
.alert-match-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.alert-match-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.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-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; }
button.alert-history-more-link {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: var(--accent);
}

/* Table of contents nav */
.watchlist-toc {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  padding: var(--sp-2) 0;
}
.watchlist-toc-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius);
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}
.watchlist-toc-item .material-symbols-outlined { font-size: 1rem; }
.watchlist-toc-item:hover {
  color: var(--accent);
  border-color: var(--accent-muted);
  background: var(--accent-glow);
}

/* Activity feed */
.watchlist-section-activity { margin-bottom: var(--sp-6); }

/* Activity chart */
.activity-chart-wrap {
  margin-bottom: var(--sp-4);
  max-width: 560px;
}
.activity-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--sp-1);
}
.activity-chart-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.activity-chart-total { font-size: 0.78rem; color: var(--text-secondary); }
.activity-chart-bars {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  align-items: end;
  height: 110px;
  padding: var(--sp-3) var(--sp-1) 0;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.activity-chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: default;
}
.activity-chart-bar-wrap {
  width: 10px;
  height: 70px;
  display: flex;
  align-items: flex-end;
}
.activity-chart-bar {
  width: 100%;
  background: var(--accent);
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0.85;
  min-height: 0;
  transition: opacity 0.15s;
}
.activity-chart-bar--empty {
  height: 2px !important;
  background: var(--border);
  opacity: 0.5;
}
.activity-chart-col:hover .activity-chart-bar { opacity: 1; }
.activity-chart-day { font-size: 0.6rem; color: var(--text-muted); line-height: 1; }
.activity-chart-date { font-size: 0.55rem; color: var(--text-muted); opacity: 0.5; line-height: 1; }

/* Activity feed empty state */
.activity-feed-empty {
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
}
.activity-feed-empty-icon {
  font-size: 2rem;
  color: var(--text-muted);
  opacity: 0.4;
}
.activity-feed-empty-title {
  font-weight: 600;
  font-size: 0.92rem;
  margin: var(--sp-2) 0 var(--sp-1);
  color: var(--text);
}
.activity-feed-empty-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 32ch;
  margin: 0 auto;
  line-height: 1.5;
}

/* Activity feed cards */
.activity-feed-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-secondary);
  margin-bottom: var(--sp-1);
  transition: border-color var(--duration) var(--ease);
}
.activity-feed-card:hover { border-color: var(--accent-muted); }
.activity-feed-card-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.feed-card-header { display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; }
.activity-feed-card-title { font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-feed-card-details { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; font-size: 0.82rem; color: var(--text-secondary); }
.feed-card-price { font-weight: 600; color: var(--accent); font-size: 0.92rem; }
.feed-card-specs { font-size: 0.78rem; color: var(--text-muted); }
.feed-card-source { text-transform: capitalize; }
.feed-card-time { opacity: 0.7; }
.feed-card-view { flex-shrink: 0; white-space: nowrap; align-self: center; }
.activity-feed-alert-pill {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-md);
  width: fit-content;
}

/* Feed/history card images */
.feed-card-img-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-tertiary, var(--surface-secondary));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feed-card-img-wrap--fallback {
  color: var(--text-muted);
}
.feed-card-img-wrap--fallback .material-symbols-outlined { font-size: 1.5rem; opacity: 0.4; }
.feed-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* History cards in per-alert panel */
.alert-history-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.history-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-secondary);
  transition: border-color var(--duration) var(--ease);
}
.history-card:hover { border-color: var(--accent-muted); }
.history-card-img-wrap {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-tertiary, var(--surface-secondary));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.history-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.history-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.history-card-header {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.history-card-title {
  font-weight: 600;
  font-size: 0.95rem;
}
.history-card-price {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.92rem;
}
.history-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-3);
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 2px 0;
}
.history-spec-label {
  color: var(--text-muted);
  font-weight: 500;
}
.history-card-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.history-card-source { text-transform: capitalize; }
.history-card-time { opacity: 0.7; }
.history-card-link {
  flex-shrink: 0;
  white-space: nowrap;
  align-self: center;
}

/* 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;
}

.alerts-upgrade-bar--sticky {
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  background: var(--accent-glow);
  border: 1px solid rgba(201,169,98,.2);
  border-radius: var(--radius);
  margin-bottom: var(--sp-4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.alerts-upgrade-bar-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.alerts-upgrade-bar a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.alerts-upgrade-bar a:hover {
  text-decoration: underline;
}

/* Spam notice — collapsible one-liner */
.alerts-spam-notice {
  font-size: 0.84rem;
  color: var(--text-secondary);
  border: 1px solid rgba(201,169,98,.2);
  border-radius: var(--radius);
  margin-bottom: var(--sp-4);
  background: var(--bg-elevated);
}
.alerts-spam-notice-summary {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.alerts-spam-notice-summary::-webkit-details-marker { display: none; }
.alerts-spam-notice-summary::marker { display: none; content: ''; }
.alerts-spam-notice-arrow {
  margin-left: auto;
  font-size: 1.1rem;
  transition: transform 0.2s var(--ease);
}
.alerts-spam-notice[open] .alerts-spam-notice-arrow {
  transform: rotate(180deg);
}
.alerts-spam-notice-body {
  padding: 0 var(--sp-3) var(--sp-3) calc(var(--sp-2) + 1rem + var(--sp-2));
  line-height: 1.6;
}
.alerts-spam-notice-body p { margin: 0 0 var(--sp-2); }
.alerts-spam-notice-body ul { margin: 0; padding-left: 1.2em; }
.alerts-spam-notice-body strong { color: var(--text); }

/* Smooth scroll for anchor navigation */
html:has(.watchlist-nav) {
  scroll-behavior: smooth;
}

/* Section navigation */
.watchlist-nav {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  padding: var(--sp-1);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  width: fit-content;
}
.watchlist-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease);
  border-radius: var(--radius-xl);
  transition: color 0.15s, background 0.15s;
}
.watchlist-nav-link:hover {
  color: var(--accent);
  background: var(--surface);
}
.watchlist-nav-link .material-symbols-outlined {
  font-size: 1em;
}
.watchlist-nav-link--accent {
  color: var(--bg);
  background: var(--accent);
  font-weight: 600;
}
.watchlist-nav-link--accent:hover {
  background: var(--accent-muted);
  color: var(--bg);
}

/* Two-column layout */
.watchlist-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  align-items: start;
}
.watchlist-col-left,
.watchlist-col-right {
  min-width: 0;
}
.watchlist-col-right {
  position: sticky;
  top: calc(var(--header-height) + var(--sp-4));
  max-height: calc(100vh - var(--header-height) - var(--sp-4) * 2);
  overflow-y: auto;
  scrollbar-width: thin;
}
.watchlist-col-right::-webkit-scrollbar {
  width: 4px;
}
.watchlist-col-right::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-lg);
}

/* Scroll targets offset for fixed header */
.watchlist-section[id] {
  scroll-margin-top: calc(var(--header-height) + var(--sp-4));
}

/* 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);
}

/* Created alert backfill display */
.created-alert-backfill {
  background: rgba(201, 169, 98, 0.06);
  border: 1px solid rgba(201, 169, 98, 0.2);
  border-radius: var(--radius);
  padding: var(--sp-5);
  margin-bottom: var(--sp-5);
}
.created-alert-header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
  font-size: 1rem;
}
.created-alert-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: var(--sp-3);
  line-height: 1.5;
}
.created-backfill-listings {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

/* Zero-match warning on alert form */
.zero-match-warning {
  background: rgba(226, 163, 8, 0.08);
  border: 1px solid rgba(226, 163, 8, 0.3);
  border-radius: var(--radius);
  padding: var(--sp-4);
  margin-top: var(--sp-4);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 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-trial-banner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  background: var(--accent-glow);
  border: 1px solid var(--accent-glow-strong);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
  margin: 0 0 var(--sp-8);
  flex-wrap: wrap;
}

.pricing-trial-banner > div {
  flex: 1 1 0;
  min-width: 200px;
}

.pricing-trial-banner-icon {
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
}

.pricing-trial-banner-title {
  margin: 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.pricing-trial-banner-detail {
  margin: var(--sp-1) 0 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.pricing-trial-banner-cta {
  flex-shrink: 0;
  white-space: nowrap;
}

.pricing-trust {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-align: center;
  margin: 0 0 var(--sp-8);
}
.pricing-channels-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0 auto var(--sp-8);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  max-width: 520px;
}

.pricing-channels-note .channel-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.pricing-channels-note .channel-icons img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: block;
}

.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-6);
}

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

.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.82rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  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-5);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  color: var(--text-tertiary);
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  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(--bg);
  background: var(--accent);
}

[data-theme="light"] .pricing-toggle-btn--active {
  color: #fff;
}

.pricing-toggle-badge {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--success);
  margin-left: var(--sp-1);
}

.pricing-toggle-btn--active .pricing-toggle-badge {
  color: inherit;
  opacity: 0.85;
}

.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-radius: var(--radius-xl);
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

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

.pricing-card--highlight {
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow-strong), var(--shadow-md);
}

.pricing-card--highlight:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow-strong), var(--shadow-lg);
}

.pricing-badge {
  position: static;
  transform: none;
  display: inline-block;
  margin-bottom: var(--sp-3);
  padding: 3px var(--sp-3);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.6;
  color: var(--accent);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  white-space: nowrap;
  visibility: hidden;
}

.pricing-badge--recommended {
  visibility: visible;
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

[data-theme="light"] .pricing-badge--recommended {
  color: #fff;
}

.pricing-tier {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-1);
  color: var(--text);
}
.pricing-subtitle {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin: 0 0 var(--sp-4);
}
.pricing-scan-interval {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: var(--accent-glow);
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-glow-strong);
}
.pricing-scan-interval-value {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.pricing-scan-interval-label {
  font-size: 0.78rem;
  color: var(--accent-muted);
}

.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: 2.8rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.03em;
  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 */
.pricing-features {
  list-style: none;
  padding: var(--sp-4) 0 0;
  margin: 0 0 var(--sp-5);
  flex: 1;
}

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

.pricing-features li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5L6.5 11.5L12.5 4.5' stroke='%239a7d48' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  position: relative;
  top: 2px;
}

[data-theme="dark"] .pricing-features li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5L6.5 11.5L12.5 4.5' stroke='%23b8965a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

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

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

/* Pricing CTAs */
.pricing-cta {
  width: 100%;
  text-align: center;
  text-decoration: none;
  padding: var(--sp-3) var(--sp-5);
  margin-top: auto;
}

.pricing-card .pricing-cta.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.pricing-card .pricing-cta.btn-secondary:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

[data-theme="light"] .pricing-card .pricing-cta.btn-secondary:hover {
  color: #fff;
}

.pricing-card .pricing-cta.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
}

[data-theme="light"] .pricing-card .pricing-cta.btn-primary {
  color: #fff;
}

.pricing-card .pricing-cta.btn-primary:hover {
  background: var(--accent-muted);
  border-color: var(--accent-muted);
}

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

.pricing-badge--current {
  visibility: visible;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--accent-muted);
}


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

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

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

/* 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,
.pricing-market-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,
.pricing-market-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,
.pricing-market-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.85rem;
}

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

.pricing-table th {
  background: var(--bg-subtle);
  font-weight: 600;
  color: var(--text);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--sp-4);
}

.pricing-table th:first-child,
.pricing-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text);
  padding-left: var(--sp-5);
}

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

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table tbody tr:hover {
  background: var(--accent-glow);
}

.pricing-table td .pricing-table-check {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.15em;
}

/* ============================================================
   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 carousel ── */
.hero-mockup-stack {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 170px;
  margin: 0 auto var(--sp-3);
  /* Extra horizontal space for the back cards to peek out */
  overflow: visible;
}

.hero-mockup-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  width: 100%;
  text-align: left;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  transition:
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity, filter;
}

/* ── Hidden (off-stage, waiting to enter) ── */
.hero-mockup-card[data-pos="hidden"] {
  opacity: 0;
  transform: scale(0.82) translateY(16px);
  filter: blur(6px);
  pointer-events: none;
  z-index: 0;
}

/* ── Back-left: smaller, offset left, behind ── */
.hero-mockup-card[data-pos="back-left"] {
  opacity: 0.5;
  transform: translateX(-18%) scale(0.88);
  filter: blur(1.5px);
  z-index: 1;
  pointer-events: none;
}

/* ── Back-right: smaller, offset right, behind ── */
.hero-mockup-card[data-pos="back-right"] {
  opacity: 0.5;
  transform: translateX(18%) scale(0.88);
  filter: blur(1.5px);
  z-index: 1;
  pointer-events: none;
}

/* ── Front: full size, centered, on top ── */
.hero-mockup-card[data-pos="front"] {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
  z-index: 3;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* ── Exit: fade out upward ── */
.hero-mockup-card[data-pos="exit"] {
  opacity: 0;
  transform: scale(0.95) translateY(-20px);
  filter: blur(4px);
  pointer-events: none;
  z-index: 4;
}

/* ── 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-1);
}

.hero-mockup-body {
  flex: 1;
  min-width: 0;
  padding: var(--sp-2) var(--sp-4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-mockup-img {
  width: 45%;
  flex-shrink: 0;
  align-self: center;
  height: 140%;
  object-fit: contain;
  object-position: center center;
  display: block;
  border-radius: 0;
  margin: 0;
}

.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 2px;
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}

.hero-mockup-retail {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  margin: 0;
  opacity: 0.6;
}

.hero-mockup-ref {
  font-size: 0.62rem;
  color: var(--text-tertiary);
  margin: 1px 0 0;
  opacity: 0.45;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.02em;
}

.hero-mockup-specs {
  margin: 3px 0 2px;
}

.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;
}

/* Hero carousel dots */
.hero-mockup-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: var(--sp-1) auto var(--sp-2);
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
  flex-shrink: 0;
}

.hero-dot--active {
  background: var(--accent);
  transform: scale(1.35);
}

/* Respect reduced-motion: disable all animation globally */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !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;
}

/* Hero notification channel badges */
.hero-channels {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 0;
  margin-bottom: var(--sp-4);
}

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

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

.hero-channel {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 3px var(--sp-2);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-tertiary);
  background: transparent;
  filter: opacity(0.8);
}

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

.hero-channel-icon {
  font-size: 18px;
  line-height: 1;
}

/* ============================================================
   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%; }

/* skeleton-shimmer keyframes deduplicated — primary definition at line ~3454 */

/* ============================================================
   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-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}

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

/* Pricing table highlight column */
.pricing-table-highlight {
  background: rgba(154, 125, 72, 0.04);
}

[data-theme="dark"] .pricing-table-highlight {
  background: rgba(184, 150, 90, 0.06);
}

.pricing-table th.pricing-table-highlight {
  color: var(--accent);
  background: rgba(154, 125, 72, 0.08);
}

[data-theme="dark"] .pricing-table th.pricing-table-highlight {
  background: rgba(184, 150, 90, 0.1);
}

/* ============================================================
   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%,
    var(--bg) 20%
  );
}
.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 listings and blur wall */
.listings-inline-nudge {
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  margin-top: var(--sp-3);
  background: var(--bg-elevated);
  border: 1px solid rgba(201,169,98,.18);
  border-radius: var(--radius);
  font-size: 0.88rem;
  transition: padding var(--duration) var(--ease),
              font-size var(--duration) var(--ease),
              border-radius var(--duration) var(--ease),
              margin var(--duration) var(--ease);
}
.listings-inline-nudge.is-stuck {
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.82rem;
  border-radius: 0;
  margin-top: 0;
  border-left: none;
  border-right: none;
}
.listings-inline-nudge.is-stuck .listings-inline-nudge-icon {
  font-size: 1rem;
}
.listings-inline-nudge.is-stuck .btn {
  padding: var(--sp-1) var(--sp-3);
  font-size: 0.78rem;
}
.listings-inline-nudge-icon {
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: font-size var(--duration) var(--ease);
}
.listings-inline-nudge-text {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--text-secondary);
}
.listings-inline-nudge .btn {
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
}

/* Separator tile between exact matches and similar listings */
.listings-separator {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  margin: 0.5rem 0;
}
.listings-separator__line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.listings-separator__label {
  flex: 0 0 auto;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Auction "Current bid" label on listing price */
.listing-bid-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #d4a017;
  margin-right: 0.15em;
}
.listing-price--auction {
  cursor: help;
}

/* 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 end-time badge */
.source-badge--auction-time {
  background: rgba(184, 134, 11, 0.10);
  color: #b8860b;
  border: 1px solid rgba(184, 134, 11, 0.25);
  padding: 2px 5px;
  line-height: 1;
  font-size: 0.72rem;
}
/* Price freshness note for active auctions */
.listing-price-freshness {
  font-size: 0.68rem;
  color: #999;
  margin: 2px 0 0;
  line-height: 1.2;
}

/* 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 auto;
  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);
    gap: var(--sp-3);
  }

  .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-3) var(--sp-12);
  }

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

  .hero-screen {
    height: calc(100svh - var(--header-height));
    padding-bottom: var(--sp-2);
  }

  .hero,
  body.page-home .hero {
    padding: var(--sp-4) 0 0;
    flex: 1 1 auto;
    min-height: 0;
    justify-content: space-evenly;
  }

  .hero .eyebrow {
    margin-bottom: 6px;
    font-size: 0.56rem;
  }

  .hero h1 {
    font-size: clamp(1.4rem, 5.2vw, 2.8rem);
    margin-bottom: 6px;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 0.78rem;
    margin-bottom: 6px;
    line-height: 1.45;
  }

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

  .hero-sources-label {
    font-size: 0.68rem;
    margin: 0;
  }

  .hero-sources-badges {
    gap: 3px;
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: center;
  }

  .hero-source {
    font-size: 0.7rem;
    padding: 2px 5px;
    gap: 3px;
    white-space: nowrap;
  }

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

  .hero-social-proof {
    margin-top: 2px;
    font-size: 0.62rem;
  }

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

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

  .hero-channels {
    margin-top: 2px;
    margin-bottom: var(--sp-2);
    padding: 0 var(--sp-2);
    gap: 2px;
  }

  .hero-channels-label {
    font-size: 0.68rem;
    margin: 0;
  }

  .hero-channels-badges {
    gap: 3px;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .hero-channel {
    font-size: 0.75rem;
    padding: 2px 6px;
    gap: 4px;
  }

  .hero-channel-text {
    display: inline;
  }

  .hero-channel-logo {
    width: 18px;
    height: 18px;
  }

  .hero-channel-icon {
    font-size: 16px;
  }

  .hero-mockup-stack {
    max-width: 92%;
    margin-bottom: 2px;
  }

  .hero-mockup-card {
    min-height: 0;
  }

  .hero-mockup-body {
    padding: 6px 8px;
    gap: 0;
  }

  .hero-mockup-tag {
    font-size: 0.52rem;
    padding: 1px 5px;
    margin-bottom: 1px;
  }

  .hero-mockup-dots {
    margin: 2px auto 2px;
  }

  .hero-mockup-img {
    width: 45%;
  }

  .hero-mockup-title {
    font-size: 0.74rem;
    margin-bottom: 1px;
  }

  .hero-mockup-price {
    font-size: 0.82rem;
    margin-bottom: 0;
  }

  .hero-mockup-discount {
    font-size: 0.6rem;
  }

  .hero-mockup-retail {
    font-size: 0.6rem;
  }

  .hero-mockup-ref {
    font-size: 0.58rem;
  }

  .hero-mockup-specs {
    margin: 2px 0 1px;
  }

  .hero-mockup-meta {
    gap: var(--sp-1);
  }

  .hero-mockup-source {
    font-size: 0.6rem;
    padding: 1px 4px;
  }

  .hero-mockup-time {
    font-size: 0.6rem;
  }

  /* Mobile carousel: tighter offsets */
  .hero-mockup-card[data-pos="back-left"] {
    transform: translateX(-12%) scale(0.9);
    opacity: 0.4;
  }

  .hero-mockup-card[data-pos="back-right"] {
    transform: translateX(12%) scale(0.9);
    opacity: 0.4;
  }

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

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


  .tq {
    flex: 0 0 calc((100% - var(--sp-2)) / 2);
    padding: var(--sp-1) var(--sp-2) var(--sp-1);
    font-size: 0.65rem;
    line-height: 1.4;
    margin-top: 8px;
  }

  .tq-author {
    font-size: 0.6rem;
    top: -8px;
    line-height: 16px;
  }

  .testimonials-nav {
    padding-top: var(--sp-1);
  }

  .testimonials-arrow {
    width: 22px;
    height: 22px;
  }

  .testimonials-arrow .material-symbols-outlined {
    font-size: 13px;
  }

  .hero-btn {
    width: 100% !important;
    justify-content: center;
    padding: var(--sp-2) var(--sp-6) !important;
    font-size: 0.72rem !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);
    padding-inline: var(--sp-1);
    scrollbar-width: none;
  }

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

  .pricing-card {
    scroll-snap-align: center;
    width: 78vw;
    min-width: 270px;
    flex-shrink: 0;
    padding: var(--sp-4);
  }

  .pricing-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-1);
    font-size: 0.72rem;
    color: var(--text-tertiary);
    margin-bottom: var(--sp-2);
    transition: opacity 0.4s var(--ease);
  }

  .pricing-swipe-hint.is-hidden {
    opacity: 0;
    pointer-events: none;
  }

  .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), transform var(--duration) var(--ease);
  }

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

  .pricing-amount { font-size: 2.2rem; }
  .pricing-tier { font-size: 1.4rem; }

  .pricing-trial-banner {
    padding: var(--sp-3) var(--sp-4);
    gap: var(--sp-3);
    margin-bottom: var(--sp-5);
  }

  .pricing-trial-banner-cta {
    width: 100%;
    text-align: center;
  }

  .pricing-controls {
    flex-direction: column;
    gap: var(--sp-3);
    margin-bottom: var(--sp-4);
  }

  .pricing-channels-note {
    font-size: 0.75rem;
    padding: var(--sp-2) var(--sp-3);
    gap: 6px;
    margin-bottom: var(--sp-5);
    flex-wrap: wrap;
    justify-content: center;
  }

  .pricing-trust {
    margin-bottom: var(--sp-5);
  }

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

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

  .pricing-table th:first-child,
  .pricing-table td:first-child {
    padding-left: var(--sp-3);
  }

  .listings-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .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;
  }

  .watchlist-columns {
    grid-template-columns: 1fr;
  }
  .watchlist-col-right {
    position: static;
  }
  .alert-match-title { white-space: normal; }

  .watchlist-toc { flex-wrap: wrap; gap: var(--sp-1); }
  .watchlist-toc-item { font-size: 0.78rem; padding: var(--sp-1) var(--sp-3); }

  .watchlist-nav { flex-wrap: wrap; border-radius: var(--radius); width: 100%; }
  .watchlist-nav-link { font-size: 0.72rem; padding: var(--sp-1) var(--sp-3); flex: 1 1 auto; justify-content: center; }

  .activity-feed-card {
    flex-wrap: wrap;
    gap: var(--sp-3);
  }
  .feed-card-img-wrap {
    width: 48px;
    height: 48px;
  }
  .feed-card-view { width: 100%; text-align: center; }
  .activity-chart-date { display: none; }

  .history-card {
    flex-wrap: wrap;
    gap: var(--sp-3);
  }
  .history-card-img-wrap {
    width: 60px;
    height: 60px;
  }
  .history-card-link { width: 100%; text-align: center; }
  .history-specs { gap: var(--sp-1) var(--sp-2); }

  .watchlist-form .form-row {
    flex-direction: column;
  }
  .watchlist-form--compact .form-grid {
    grid-template-columns: 1fr;
  }
  .watchlist-form--compact .form-grid .form-group--full {
    grid-column: 1;
  }

  /* Brand tiles: 2x4 on mobile */
  .form-brand-tiles {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-1);
  }
  .form-brand-tile {
    padding: var(--sp-2) var(--sp-1);
    font-size: 0.65rem;
  }
  .form-brand-logo {
    width: 32px;
    height: 32px;
  }

  /* Trigger cards: horizontal row, compact */
  .form-trigger-cards {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--sp-2);
  }
  .form-trigger-cards::-webkit-scrollbar { display: none; }
  .form-trigger-card {
    min-width: 0;
    flex: 1 0 auto;
    padding: var(--sp-2) var(--sp-3);
  }
  .form-trigger-body span {
    display: none;
  }

  /* Channel cards: horizontal row, compact */
  .form-channel-cards {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--sp-2);
  }
  .form-channel-cards::-webkit-scrollbar { display: none; }
  .form-channel-card {
    min-width: 0;
    flex: 1 0 auto;
    padding: var(--sp-2) var(--sp-3);
  }

  /* Progress: compact on mobile */
  .form-progress {
    gap: 2px;
  }
  .form-progress-seg {
    font-size: 0.6rem;
    padding: var(--sp-1) 2px;
  }
  .form-progress-seg .material-symbols-outlined {
    font-size: 0.75rem;
  }

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

  .home-how-step { padding: var(--sp-5) var(--sp-4); }
  .home-how-step p { font-size: 0.78rem; }

  .how-email-row { flex-direction: column; gap: 12px; }
  .how-email-img { width: 100%; height: 140px; }
  .how-email-price { font-size: 0.95rem; }

  .how-slack-embed { flex-direction: column; gap: 10px; }
  .how-slack-embed-thumb { width: 100%; height: 100px; }

  .how-discord-embed { flex-direction: column; gap: 10px; }
  .how-discord-embed-thumb { width: 100%; height: 100px; }

  .how-notif-tab { padding: var(--sp-2) var(--sp-3); font-size: 0.66rem; }

  .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: 130px; }
  .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(2, 1fr) !important;
    gap: 10px;
  }
  .listings-grid--rows .listing-card {
    flex-direction: column;
    align-items: stretch;
    height: auto;
  }
  .listings-grid--rows .listing-img-wrap {
    width: 100%;
    height: 130px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }
  .listings-grid--rows .listing-body {
    display: flex;
    flex-direction: column;
    padding: var(--sp-3);
    grid-template-columns: none;
  }
  .listing-title { font-size: 0.8rem; }
  .listing-price { font-size: 0.95rem; }
  .listing-retail-price { font-size: 0.6rem; }
  .listing-ref { font-size: 0.6rem; }
  .spec-pill { font-size: 0.56rem; padding: 1px 4px; }
  .listing-meta { font-size: 0.58rem; }
  .fairness-badge { font-size: 0.5rem; padding: 2px 6px; }
  .source-badge-overlay { font-size: 0.5rem; }

  /* Expanded card: stack vertically on mobile */
  .listing-card.is-expanded { flex-direction: column; }
  .listing-card.is-expanded .listing-img-wrap {
    width: 100%;
    height: 220px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }
  .listing-card.is-expanded .listing-expand-cta {
    width: 100%;
    justify-content: center;
  }
}

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

@media (max-width: 480px) {
  .listings-grid { gap: 8px; }
  .listing-img-wrap { height: 120px; }
  .listing-title { font-size: 0.75rem; }
  .listing-price { font-size: 0.88rem; }
}

/* Small phones */
@media (max-width: 480px) {
  .pricing-billing-toggle {
    width: 100%;
  }

  .pricing-toggle-btn {
    flex: 1;
    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,
.page-insights [id].insights-leaderboard-section {
  scroll-margin-top: calc(var(--header-height) + var(--sp-4));
}
.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-4) 0 var(--sp-3);
}
.insights-hero--compact .insights-hero-eyebrow { margin-bottom: var(--sp-1); }
.insights-hero--compact .insights-hero-title { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: var(--sp-3); }
.insights-hero--compact .insights-hero-sub { font-size: 0.9rem; margin-bottom: var(--sp-3); }
.insights-hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: 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);
}

/* scroll-arrow-bounce removed — dead CSS, no template usage */

/* 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-hero-stat {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  margin-bottom: var(--sp-6);
  background: linear-gradient(135deg, rgba(201,169,98,0.08), rgba(201,169,98,0.03));
  border: 1px solid rgba(201,169,98,0.15);
  border-radius: var(--radius);
}
.insights-hero-stat-val {
  display: block;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.insights-hero-stat-desc {
  display: block;
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-top: var(--sp-2);
}
.insights-hero-stat-desc strong {
  color: var(--text);
}
.insights-hero-stat-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--sp-3);
}
.insights-kpi-row--3 {
  grid-template-columns: repeat(3, 1fr);
}
.insights-explainer {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  padding: var(--sp-4);
  background: rgba(201,169,98,0.05);
  border-radius: var(--radius);
  border-left: 3px solid rgba(201,169,98,0.2);
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.insights-explainer-icon {
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.insights-explainer p {
  margin: 0;
}
.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: var(--radius);
  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);
}
.insights-tf-badge {
  background: rgba(184, 150, 90, 0.16);
  color: var(--accent);
  transition: opacity 0.15s ease;
}

/* Section quick links */
/* Unified toolbar: section links (left) + controls (right) */
/* Listing type summary bar (auction vs fixed-price) */
.insights-listing-type-bar {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-3);
  padding: 0 var(--sp-1);
}
.insights-lt-chip {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm, 6px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.insights-lt-chip--auction {
  background: rgba(184, 134, 11, 0.10);
  border-color: rgba(184, 134, 11, 0.30);
  color: #d4a017;
}

.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: var(--header-height);
  z-index: 50;
}
.insights-toolbar-left {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.insights-toolbar-left::-webkit-scrollbar { display: none; }
.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);
  white-space: nowrap;
  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;
}

/* 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;
}

/* ── Chart expand modal ────────────────────────────────── */
.chart-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.chart-modal[aria-hidden="false"] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.chart-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
.chart-modal-content {
  position: relative;
  width: calc(100% - 32px);
  max-width: 800px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg, 10px);
  padding: var(--sp-4);
  animation: chartModalIn 0.2s ease-out;
}
@keyframes chartModalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.chart-modal-close {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--duration) var(--ease);
}
.chart-modal-close:hover {
  background: var(--bg-hover);
}
.chart-modal-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 var(--sp-3);
  padding-right: 44px;
}
.chart-modal-canvas-wrap {
  height: 70vh;
  max-height: 500px;
}
body.chart-modal-open {
  overflow: hidden;
}

/* ── Chart expand indicator (mobile) ───────────────────── */
.insights-chart-expand {
  display: none;
  position: absolute;
  bottom: var(--sp-2);
  right: var(--sp-2);
  background: rgba(201, 169, 98, 0.15);
  border: 1px solid rgba(201, 169, 98, 0.3);
  color: var(--accent);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: var(--radius);
  cursor: pointer;
  z-index: 2;
  align-items: center;
  gap: 4px;
}
.insights-chart-expand .material-symbols-outlined {
  font-size: 0.85rem;
}

/* ── Table column priority (mobile) ────────────────────── */
.insights-col-toggle {
  display: none;
  width: 100%;
  padding: var(--sp-2) var(--sp-3);
  margin-top: var(--sp-2);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent-muted);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  min-height: 44px;
}
.insights-col-toggle:hover {
  background: var(--accent-glow);
}

/* 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; }
.insights-section-header-row .insights-section-link-btn {
  width: 28px;
  height: 28px;
  margin-left: var(--sp-2);
  border: none;
  opacity: 0.5;
}
.insights-section-header-row .insights-section-link-btn:hover {
  opacity: 1;
  border: none;
}

/* 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 sub-rows for model variants */
.insights-subrow td {
  font-size: 0.82em;
  color: var(--text-tertiary);
  padding-top: 2px;
  padding-bottom: 2px;
  border-top: none;
}

.insights-subrow .insights-table-rank-num {
  visibility: hidden;
}

.insights-badge--sub {
  font-size: 0.82em;
  opacity: 0.6;
}

.insights-parent-row td {
  padding-bottom: 2px;
}
.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-link--subtle {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.insights-link--subtle:hover {
  color: var(--accent);
  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;
}

/* View all deals link */
.insights-view-all-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: var(--sp-4);
}
.insights-view-all-link:hover {
  text-decoration: underline;
}

/* Table show-more toggle */
.insights-table-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  margin-top: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  font: 500 0.8125rem/1 var(--font-sans, inherit);
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent-muted);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}
.insights-table-toggle:hover {
  background: var(--accent-glow);
}

/* Brand logos in tables */
.insights-brand-cell {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.insights-brand-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.75;
  filter: grayscale(40%);
  transition: opacity var(--duration) var(--ease), filter var(--duration) var(--ease);
}
.insights-table tbody tr:hover .insights-brand-logo {
  opacity: 1;
  filter: grayscale(0%);
}
[data-theme="dark"] .insights-brand-logo {
  filter: grayscale(40%) invert(1);
}
[data-theme="dark"] .insights-table tbody tr:hover .insights-brand-logo {
  filter: grayscale(0%) invert(1);
  opacity: 1;
}
/* Brand logo in hero */
.insights-hero-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin: 0 0.4em 0 0;
  opacity: 0.85;
  vertical-align: middle;
  display: inline-block;
}
[data-theme="dark"] .insights-hero-logo {
  filter: invert(1);
}

/* Collapsible explainer */
.insights-explainer-details {
  margin-top: var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}
.insights-explainer-summary {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.insights-explainer-summary::-webkit-details-marker { display: none; }
.insights-explainer-summary::after {
  content: 'expand_more';
  font-family: 'Material Symbols Outlined';
  font-size: 1.2rem;
  margin-left: auto;
  transition: transform var(--duration) var(--ease);
}
.insights-explainer-details[open] .insights-explainer-summary::after {
  transform: rotate(180deg);
}
.insights-explainer-body {
  padding: 0 var(--sp-4) var(--sp-4);
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.insights-explainer-body p { margin: 0; }

/* 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);
}

/* Compact deals grid (insights page) — responsive columns */
.best-deals-grid--compact {
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .best-deals-grid--compact { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1400px) {
  .best-deals-grid--compact { grid-template-columns: repeat(3, 1fr); }
}
.best-deals-grid--compact .best-deal-card {
  min-height: unset;
}
.best-deals-grid--compact .best-deal-img-wrap {
  width: 80px;
}
.best-deals-grid--compact .best-deal-logo {
  width: 48px;
  height: 48px;
}
.best-deals-grid--compact .best-deal-body {
  padding: var(--sp-2);
}
.best-deals-grid--compact .best-deal-title {
  font-size: 0.82rem;
  -webkit-line-clamp: 1;
}
.best-deals-grid--compact .best-deal-prices {
  font-size: 0.82rem;
}
.best-deals-grid--compact .best-deal-discount {
  font-size: 0.72rem;
  padding: 1px 6px;
}

/* 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;
  min-width: 0;
  overflow: hidden;
}
.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: 639px) {
  .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: 640px) {
  .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);
}

/* Low-data gathering notice */
.insights-gathering-notice {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
  border-radius: var(--radius);
  background: var(--accent-glow);
  border: 1px solid var(--accent-muted);
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.4;
}
.insights-gathering-notice .material-symbols-outlined {
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* Placeholder table rows */
.insights-placeholder-row td {
  color: var(--text-muted, rgba(128,128,128,0.35)) !important;
  font-style: italic;
}
.insights-placeholder-row .insights-badge {
  opacity: 0.3;
}
.insights-placeholder-row .insights-link,
.insights-placeholder-row .premium-badge {
  visibility: hidden;
}

/* 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;
  gap: var(--sp-2);
  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);
}

/* ── Insights responsive: mobile-first ─────────────────── */

/* Prevent iOS auto-zoom on focus */
.page-insights input[type="text"],
.page-insights input[type="email"],
.page-insights input[type="number"],
.page-insights select {
  font-size: 16px;
}

@media (max-width: 639px) {
  .insights-kpi-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--sp-2);
    padding-bottom: var(--sp-1);
    mask-image: linear-gradient(to right, #000 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
  }
  .insights-kpi-row::-webkit-scrollbar { display: none; }
  .insights-kpi-row--3 { grid-template-columns: unset; }
  .insights-kpi {
    flex: 0 0 auto;
    min-width: 140px;
    scroll-snap-align: start;
    padding: var(--sp-2) var(--sp-3);
  }
  .insights-kpi-icon { display: none; }
  .insights-kpi-val { font-size: 1.1rem; }
  .insights-kpi-label { font-size: 0.72rem; }
  .insights-kpi-tooltip {
    left: 0;
    transform: none;
  }

  /* Toolbar */
  .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;
    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;
    min-height: 44px;
    font-size: 0.875rem;
  }
  .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,
  .insights-filter-select {
    font-size: 16px;
    min-height: 44px;
  }

  /* Charts: compact preview with expand indicator */
  .insights-chart-wrap {
    position: relative;
    height: auto;
    aspect-ratio: 16 / 10;
    max-height: 200px;
    cursor: pointer;
  }
  .insights-chart-wrap--tall {
    aspect-ratio: 16 / 10;
    max-height: 210px;
  }
  .insights-chart-wrap--compact {
    aspect-ratio: 16 / 10;
    max-height: 180px;
  }
  .insights-chart-expand {
    display: inline-flex;
  }
  /* Donut/pie charts: square aspect ratio on mobile */
  .insights-chart-wrap--donut {
    aspect-ratio: 1 / 1;
    max-height: 220px;
    max-width: 220px;
    margin: 0 auto;
  }

  /* Cards & sections */
  .insights-card {
    padding: var(--sp-4);
  }
  .insights-section {
    margin-bottom: var(--sp-8);
  }
  .insights-section-title {
    font-size: 1.2rem;
  }
  .insights-card-header {
    gap: var(--sp-2);
  }
  .insights-card-icon { display: none; }

  /* Section toggle — full-width tap target */
  .insights-section--collapsible .insights-section-title.insights-section-toggle {
    min-height: 48px;
    margin-left: calc(-1 * var(--sp-4));
    margin-right: calc(-1 * var(--sp-4));
    padding-left: var(--sp-4);
    padding-right: var(--sp-4);
  }
  .insights-section-chevron {
    font-size: 1.75rem;
  }

  /* Tables */
  .insights-table td,
  .insights-table th {
    padding: var(--sp-2);
    font-size: 0.82rem;
  }
  .col-listings { display: none; }
  .insights-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .insights-table-wrap {
    -webkit-overflow-scrolling: touch;
  }

  /* Table column priority: hide low-priority cols on mobile */
  td[data-priority="3"],
  th[data-priority="3"],
  td[data-priority="2"],
  th[data-priority="2"] {
    display: none;
  }
  .show-all-cols td[data-priority],
  .show-all-cols th[data-priority] {
    display: table-cell;
  }
  .show-all-cols {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .insights-col-toggle {
    display: block;
  }

  /* Grids: single column on mobile */
  .insights-grid-2 {
    grid-template-columns: 1fr;
  }

  /* Leaderboard: tabs only, single column */
  .insights-leaderboard-grid {
    grid-template-columns: 1fr;
  }
  .insights-leaderboard-col {
    display: none;
  }
  .insights-leaderboard-col.is-active {
    display: block;
  }

  /* Hero actions */
  .insights-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .insights-hero-cta,
  .insights-hero-scroll-cta {
    width: 100%;
    justify-content: center;
  }
  .insights-nav-badge { display: none; }

  /* Brand select full width */
  .insights-brand-select {
    width: 100%;
  }

  /* Hero stat compact */
  .insights-hero-stat-val {
    font-size: 2.5rem;
  }
  .insights-hero-stat-desc {
    font-size: 1rem;
  }

  /* Prevent text truncation — wrap instead */
  .insights-most-expensive-label,
  .insights-card-desc,
  .value-insight-text {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
  }

  /* Listing type bar: wrap on mobile */
  .insights-listing-type-bar {
    flex-wrap: wrap;
    gap: var(--sp-1);
  }
  .insights-lt-chip {
    font-size: 0.72rem;
    padding: 3px 8px;
  }

  /* Best deals grid: single column on mobile */
  .best-deals-grid--compact {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }

  /* Explainer details */
  .insights-explainer-body {
    font-size: 0.75rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .insights-toolbar-right {
    flex-direction: column;
  }
  .insights-timeframe-select,
  .insights-per-brand-select {
    width: 100%;
    flex: unset;
  }
}

/* Tablet (600px+) */
@media (min-width: 600px) {
  .insights-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .insights-kpi-row--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .insights-toolbar-right {
    flex-shrink: 0;
  }
  td[data-priority="2"],
  th[data-priority="2"] {
    display: table-cell;
  }
  .insights-card {
    padding: var(--sp-5);
  }
}

/* Tablet landscape / small desktop (900px+) */
@media (min-width: 900px) {
  .insights-kpi-row {
    grid-template-columns: repeat(4, 1fr);
  }
  .insights-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .insights-leaderboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .insights-leaderboard-col {
    display: block;
  }
  .insights-lb-tab-bar {
    display: none;
  }
  .insights-chart-wrap {
    aspect-ratio: unset;
    max-height: none;
    cursor: default;
  }
  .insights-chart-wrap--tall {
    height: 400px;
    aspect-ratio: unset;
    max-height: none;
  }
  .insights-chart-wrap--compact {
    height: 250px;
    aspect-ratio: unset;
    max-height: none;
  }
  .insights-chart-expand {
    display: none !important;
  }
  td[data-priority="3"],
  th[data-priority="3"] {
    display: table-cell;
  }
  .insights-col-toggle {
    display: none;
  }
  .insights-card {
    padding: var(--sp-6);
  }
}

/* Large desktop (1200px+) */
@media (min-width: 1200px) {
  .insights-kpi-row {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ── /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: 640px) {
  .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-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}
.onboard-other-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: var(--sp-2);
  letter-spacing: 0.02em;
}
.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: 0.5rem;
  margin-bottom: var(--sp-5);
  max-height: 240px;
  overflow-y: auto;
}
.onboard-model-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: border-color var(--duration) var(--ease), color var(--duration) var(--ease), background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.onboard-model-chip:hover {
  border-color: var(--accent-muted);
  color: var(--text);
  background: rgba(255,255,255,0.03);
}
.onboard-model-chip.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  box-shadow: 0 0 0 1px var(--accent-muted);
}
.onboard-model-chip--any {
  font-weight: 500;
}

/* Nav */
.onboard-nav {
  margin-top: var(--sp-4);
}
.onboard-nav--between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

/* 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;
}

/* Trigger type cards */
.onboard-trigger-cards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.onboard-trigger-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.1s var(--ease);
}
.onboard-trigger-card:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-glow);
}
.onboard-trigger-card:active {
  transform: scale(0.98);
}
.onboard-trigger-card.is-active {
  border-color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-glow-strong);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}
.onboard-trigger-icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--accent-glow);
  flex-shrink: 0;
}
.onboard-trigger-icon {
  color: var(--accent);
  font-size: 1.4rem;
}
.onboard-trigger-body {
  flex: 1;
  min-width: 0;
}
.onboard-trigger-body strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 2px;
}
.onboard-trigger-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.onboard-trigger-badge {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-3);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: var(--bg);
  padding: 2px var(--sp-2);
  border-radius: var(--radius-full);
  line-height: 1.4;
}

/* Price input step */
.onboard-price-form { margin-bottom: var(--sp-5); }
.onboard-price-row {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-end;
}
.onboard-price-field { flex: 1; }
.onboard-price-field label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: var(--sp-1);
}
.onboard-input {
  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.95rem;
}
.onboard-input:focus {
  outline: none;
  border-color: var(--accent);
}
.onboard-market-avg {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: var(--sp-2);
}

/* Preview step */
.onboard-preview-summary {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  font-size: 1rem;
}
.onboard-preview-count {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--sp-3);
}
.onboard-preview-listings {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-height: 280px;
  overflow-y: auto;
}
.onboard-preview-empty {
  background: rgba(226, 163, 8, 0.08);
  border: 1px solid rgba(226, 163, 8, 0.25);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
}
.onboard-preview-loading {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
}
.onboard-listing-skeleton {
  height: 62px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--border) 50%, var(--bg-subtle) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
.onboard-listing-card {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-3);
  animation: onboard-card-in 300ms var(--ease) both;
}
@keyframes onboard-card-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.onboard-listing-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-subtle);
}
.onboard-listing-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.onboard-listing-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
}
.onboard-listing-img--placeholder .material-symbols-outlined {
  font-size: 1.4rem;
}
.onboard-listing-body {
  flex: 1;
  min-width: 0;
}
.onboard-listing-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.onboard-listing-ref {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}
.onboard-listing-price {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
.onboard-listing-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.onboard-listing-source {
  text-transform: capitalize;
}
.onboard-listing-dot {
  color: var(--border);
}

/* Progress indicator */
.onboard-progress {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.onboard-progress-step {
  width: 8px;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--border);
  transition: background 300ms var(--ease), width 300ms var(--ease);
}
.onboard-progress-step.is-active {
  width: 24px;
  background: var(--accent);
}
.onboard-progress-step.is-complete {
  background: var(--accent-muted);
}

/* Step transition animations */
.onboard-step--entering {
  animation: onboard-step-in 300ms var(--ease) both;
}
.onboard-step--entering-back {
  animation: onboard-step-in-back 300ms var(--ease) both;
}
@keyframes onboard-step-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes onboard-step-in-back {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Hero CTA button variant */
.btn-primary--hero {
  background: linear-gradient(135deg, var(--accent), #d4af6a);
  box-shadow: 0 2px 12px rgba(184, 150, 90, 0.15);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 200ms var(--ease);
}
.btn-primary--hero:hover {
  box-shadow: 0 4px 20px rgba(184, 150, 90, 0.20);
  transform: translateY(-1px);
}
[data-theme="light"] .btn-primary--hero {
  box-shadow: 0 2px 12px rgba(154, 125, 72, 0.12);
}

/* Social proof trust strip */
.onboard-trust {
  display: flex;
  justify-content: center;
  gap: var(--sp-5);
  margin: var(--sp-4) 0 var(--sp-5);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.onboard-trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.onboard-trust-item .material-symbols-outlined {
  font-size: 1rem;
  color: var(--accent);
}

/* Success step enhancements */
.onboard-success-icon .material-symbols-outlined {
  animation: onboard-check-pop 500ms var(--ease) both;
}
@keyframes onboard-check-pop {
  0%  { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.05); }
  100%{ transform: scale(1); opacity: 1; }
}
.onboard-success-scanning {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.onboard-scanning-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--success);
  animation: onboard-pulse 1.5s 3;
}
@keyframes onboard-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Back link (text-only, not a button) */
.onboard-back-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--duration) var(--ease);
}
.onboard-back-link:hover { color: var(--accent); }

/* Empty state feature strip */
.alerts-empty-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
  text-align: center;
}
.alerts-empty-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.alerts-empty-feature .material-symbols-outlined {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: var(--sp-1);
}
.alerts-empty-feature strong {
  color: var(--text);
  font-size: 0.88rem;
}

/* Touch improvements */
.onboard-brand-tile,
.onboard-trigger-card,
.onboard-model-chip {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Mobile: full-screen modal */
@media (max-width: 640px) {
  .onboard-overlay {
    align-items: flex-end;
  }
  .onboard-modal {
    max-width: 100%;
    width: 100%;
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
    padding: var(--sp-6) var(--sp-4) var(--sp-4);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .onboard-brands { grid-template-columns: repeat(3, 1fr); }
  .onboard-trust { gap: var(--sp-3); }
  .onboard-trigger-card { padding: var(--sp-4) var(--sp-3); }
  .onboard-listing-img { width: 44px; height: 44px; }
  .alerts-empty-features { grid-template-columns: 1fr; gap: var(--sp-3); }
}
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 640px) {
    .onboard-modal { padding-bottom: calc(var(--sp-4) + env(safe-area-inset-bottom)); }
  }
}

@media (max-width: 480px) {
  .onboard-brands { grid-template-columns: repeat(2, 1fr); }
  .onboard-brand-logo { width: 28px; height: 28px; }
  .onboard-price-row { flex-direction: column; }
  .onboard-price-field { max-width: none !important; }
  .onboard-trust { flex-direction: column; align-items: center; gap: var(--sp-2); }
}

/* ============================================================
   Insights best deals alert card
   ============================================================ */
.insights-deals-alert-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  margin-top: var(--sp-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.insights-deals-alert-icon {
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
}
.insights-deals-alert-body {
  flex: 1;
  min-width: 0;
}
.insights-deals-alert-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}
.insights-deals-alert-sub {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}
.insights-deals-alert-card .btn {
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .insights-deals-alert-card {
    flex-direction: column;
    text-align: center;
  }
}

/* Legacy hint (kept for backwards compat) */
.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%; }

/* ============================================================
   ALERT FORM: MORE FILTERS TOGGLE & PANEL
   ============================================================ */
.form-row--more-filters {
  margin: var(--sp-2) 0;
}

.more-filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border, #2d343c);
  border-radius: var(--radius-xl);
  padding: 6px 14px;
  color: var(--text-secondary, #9aa0a6);
  font-size: 0.88rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.more-filters-toggle:hover {
  color: var(--text-primary, #e8eaed);
  border-color: var(--accent, #c9a962);
}

.more-filters-count {
  color: var(--accent, #c9a962);
  font-weight: 600;
}

.more-filters-arrow {
  margin-left: auto;
  font-size: 0.8rem;
}

.more-filters-panel {
  padding-top: var(--sp-2);
}

/* ============================================================
   ONBOARDING BAR (slim sticky bar for users without alerts)
   ============================================================ */
.onboarding-bar {
  position: sticky;
  top: var(--header-height);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: 6px var(--sp-4);
  background: var(--accent, #c9a962);
  color: #0f1114;
  font-size: 0.82rem;
  line-height: 1.4;
}

.onboarding-bar__text {
  margin: 0;
}

.onboarding-bar__text strong {
  font-weight: 700;
}

.onboarding-bar__cta {
  color: #0f1114;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(15, 17, 20, 0.4);
}

.onboarding-bar__cta:hover {
  border-bottom-color: #0f1114;
}

.onboarding-bar__close {
  background: none;
  border: none;
  color: rgba(15, 17, 20, 0.5);
  font-size: 1rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
}

.onboarding-bar__close:hover {
  color: #0f1114;
}

@media (max-width: 640px) {
  .onboarding-bar {
    font-size: 0.78rem;
    gap: var(--sp-2);
    padding: 6px var(--sp-3);
  }
}

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

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

.pricing-swipe-hint {
  display: none;
}

/* ============================================================
   PRICING: TAB SWITCHER, SOCIAL PROOF, URGENCY, CALCULATOR, ENTERPRISE
   ============================================================ */
.pricing-tab-switcher {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.pricing-tab {
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pricing-tab:hover {
  color: var(--text);
  border-color: var(--text-secondary);
}

.pricing-tab--active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.pricing-trial-urgency {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  justify-content: center;
  padding: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-3);
  border-radius: var(--radius);
  background: rgba(224,122,95,0.12);
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.5;
}

.pricing-social-proof {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-3);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.pricing-social-proof-stat {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.pricing-social-proof-stat strong {
  color: var(--text);
}

.pricing-grid[hidden],
.pricing-grid--enterprise[hidden] {
  display: none;
}

.pricing-grid--enterprise {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  max-width: 640px;
  margin: 0 auto var(--sp-6);
}

.pricing-enterprise-contact {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: var(--sp-4);
}

.pricing-enterprise-contact a {
  color: var(--accent);
}

.pricing-calculator {
  max-width: 560px;
  margin: var(--sp-6) auto;
  padding: var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.pricing-calculator-title {
  font-size: 1.15rem;
  margin-bottom: var(--sp-3);
}

.pricing-calculator-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.pricing-calculator-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.pricing-calculator-slider-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  justify-content: center;
}

.pricing-calculator-range {
  width: 200px;
  accent-color: var(--accent);
}

.pricing-calculator-hours-value {
  font-weight: 600;
  font-family: var(--font-mono);
  min-width: 80px;
  text-align: left;
}

.pricing-calculator-result {
  font-size: 0.95rem;
  margin-top: var(--sp-2);
  color: var(--text);
}

@media (max-width: 640px) {
  .pricing-grid--enterprise {
    grid-template-columns: 1fr;
  }
  .pricing-social-proof {
    gap: var(--sp-2);
    font-size: 0.82rem;
  }
  .pricing-calculator-slider-row {
    flex-direction: column;
  }
  .pricing-calculator-range {
    width: 100%;
  }
}

/* ============================================================
   PREMIUM / DISCOUNT BADGE
   ============================================================ */
.premium-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-lg);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-mono);
}
.premium-badge--above {
  color: var(--success);
  background: var(--success-bg);
}
.premium-badge--below {
  background: rgba(224,122,95,0.15);
  color: #e07a5f;
}

/* ============================================================
   SORTABLE TABLE HEADERS
   ============================================================ */
.insights-table--sortable th[data-sort] {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.insights-table--sortable th[data-sort]:hover {
  color: var(--accent);
}
.insights-table--sortable th .sort-arrow {
  font-size: 0.7rem;
  margin-left: 4px;
  opacity: 0.6;
}

/* Cross-platform model comparison table */
.insights-table--platform-compare .col-platform {
  text-align: center;
  white-space: nowrap;
  min-width: 90px;
}
.insights-table--platform-compare .platform-price {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: block;
}
.insights-table--platform-compare .platform-count {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-left: 2px;
}
.insights-table--platform-compare .platform-count--few {
  font-style: italic;
  opacity: 0.45;
  font-size: 0.7rem;
}
.insights-table--platform-compare .platform-empty {
  color: var(--text-tertiary);
  opacity: 0.4;
}
.insights-platform-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 12px;
}
.insights-platform-filter label {
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.7;
}
.insights-filter-select {
  background: var(--card-bg, rgba(255,255,255,0.05));
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  color: inherit;
  padding: 6px 12px;
  border-radius: var(--radius-xl);
  font-size: 0.82rem;
  cursor: pointer;
}
.insights-table--platform-compare .platform-diff {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.insights-table--platform-compare .platform-diff--below {
  color: #22c55e;
}
.insights-table--platform-compare .platform-diff--above {
  color: var(--text-tertiary);
  opacity: 0.7;
}
.insights-table--platform-compare .platform-cheapest {
  background: rgba(34, 197, 94, 0.08);
}
.insights-table--platform-compare .platform-priciest {
  background: rgba(239, 68, 68, 0.06);
}
.insights-table--platform-compare .col-value-insight {
  min-width: 160px;
  max-width: 220px;
}
.insights-table--platform-compare .value-insight-text {
  font-size: 0.82rem;
  color: #22c55e;
  font-weight: 500;
}
.insights-table--platform-compare .variant-label {
  font-style: italic;
  padding-left: var(--sp-4);
}
.insights-table--platform-compare .insights-subrow .value-insight-text {
  font-size: 0.78rem;
}

/* Mobile card view for cross-platform comparison */
.platform-compare-mobile {
  display: none;
}

@media (max-width: 768px) {
  .platform-compare-desktop {
    display: none;
  }
  .platform-compare-mobile {
    display: block;
  }

  /* Card container */
  .pcm-card {
    border-bottom: 1px solid var(--border);
    padding: var(--sp-3) 0;
  }
  .pcm-card:last-child {
    border-bottom: none;
  }

  /* Header row: rank + model name + badge */
  .pcm-card-header {
    display: flex;
    align-items: baseline;
    gap: var(--sp-2);
    margin-bottom: var(--sp-2);
  }
  .pcm-rank {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    min-width: 1.4em;
  }
  .pcm-model-info {
    display: flex;
    align-items: baseline;
    gap: var(--sp-2);
    flex: 1;
    min-width: 0;
  }
  .pcm-model-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Price grid */
  .pcm-prices {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr));
    gap: 2px;
    margin-bottom: var(--sp-1);
  }
  .pcm-price-cell {
    text-align: center;
    padding: var(--sp-1) var(--sp-1);
    border-radius: var(--radius-lg);
  }
  .pcm-price-cell .platform-price {
    font-size: 0.88rem;
  }
  .pcm-price-cell .platform-diff {
    font-size: 0.7rem;
  }
  .pcm-price-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 1px;
  }

  /* Best value callout */
  .pcm-best-value {
    padding: var(--sp-1) 0;
  }
  .pcm-best-value .value-insight-text {
    font-size: 0.78rem;
  }

  /* Variant sub-cards */
  .pcm-variant {
    border-top: 1px solid var(--border-subtle);
    padding: var(--sp-2) 0 var(--sp-1) var(--sp-4);
  }
  .pcm-variant-header {
    display: flex;
    align-items: baseline;
    gap: var(--sp-2);
    margin-bottom: var(--sp-1);
  }
  .pcm-variant-label {
    font-style: italic;
    font-size: 0.85rem;
    color: var(--text-tertiary);
  }
  .pcm-variant .pcm-prices {
    margin-bottom: 0;
  }
  .pcm-variant .pcm-price-cell .platform-price {
    font-size: 0.82rem;
  }
  .pcm-variant .pcm-best-value .value-insight-text {
    font-size: 0.72rem;
  }

  /* Red/green platform highlights */
  .pcm-price-cell.platform-cheapest {
    background: rgba(34, 197, 94, 0.08);
  }
  .pcm-price-cell.platform-priciest {
    background: rgba(239, 68, 68, 0.06);
  }
  .pcm-price-cell .platform-diff--below {
    color: #22c55e;
  }
  .pcm-price-cell .platform-diff--above {
    color: var(--text-tertiary);
    opacity: 0.7;
  }

  /* Too few listings label */
  .platform-too-few {
    display: block;
    font-size: 0.68rem;
    color: var(--text-tertiary);
    opacity: 0.6;
    line-height: 1.2;
  }
}

/* ── Insights bottom navigation bar (mobile) ─────────── */
.insights-bottom-nav {
  display: none;
}
@media (max-width: 768px) {
  .insights-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    justify-content: space-around;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(var(--bg-rgb, 10,10,18), 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
  }
  .page-insights {
    padding-bottom: 70px;
  }
  .insights-bnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    text-decoration: none;
    color: var(--text-tertiary);
    transition: color 0.15s ease;
  }
  .insights-bnav-item .material-symbols-outlined {
    font-size: 22px;
  }
  .insights-bnav-label {
    font-size: 9px;
    font-weight: 500;
  }
  .insights-bnav-item.is-active {
    color: var(--accent);
  }
  .insights-bnav-item.is-active .insights-bnav-label {
    font-weight: 600;
  }
}

/* ── Insights index toolbar (desktop section nav) ────── */
.insights-index-toolbar {
  display: none;
}
@media (min-width: 768px) {
  .insights-index-toolbar {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    padding: var(--sp-2) max(var(--sp-6), calc((100% - var(--max-width)) / 2 + var(--sp-6)));
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--header-height, 60px);
    z-index: 90;
  }
  .insights-index-toolbar .insights-quick-link {
    display: inline-flex;
    align-items: center;
    padding: var(--sp-2) var(--sp-3);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius, 6px);
    white-space: nowrap;
    transition: color 0.15s ease, background 0.15s ease;
  }
  .insights-index-toolbar .insights-quick-link:hover {
    color: var(--text);
    background: var(--bg-hover);
  }
  .insights-index-toolbar .insights-quick-link.is-active {
    color: var(--text);
    background: var(--bg-hover);
    font-weight: 600;
  }
  .insights-index-toolbar .insights-toolbar-brand-select {
    margin-left: auto;
    padding: var(--sp-2) var(--sp-3);
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--accent);
    background: var(--accent-glow, rgba(212,164,55,0.06));
    border: 1px solid var(--accent-muted, rgba(212,164,55,0.25));
    border-radius: var(--radius, 6px);
    cursor: pointer;
  }
  .insights-index-toolbar .insights-toolbar-brand-select:focus {
    border-color: var(--accent);
    outline: none;
  }
}

/* ── Inline brand logos in tables ──────── */
.brand-logo-inline {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.brand-logo-inline--hero {
  width: clamp(48px, 8vw, 72px);
  height: clamp(48px, 8vw, 72px);
  object-fit: contain;
  flex-shrink: 0;
}
.insights-hero-title:has(.brand-logo-inline--hero) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
}

.brand-cell {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.brand-compare-chip .brand-logo-inline {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

.insights-mover-badge .brand-logo-inline {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

[data-theme="dark"] .brand-logo-inline {
  filter: invert(1);
}

/* ── Inline section controls (pills & filters) ──────── */
.insights-section-header-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  margin-bottom: var(--sp-4);
  position: sticky;
  top: var(--header-height, 60px);
  z-index: 40;
  background: var(--bg);
  padding: var(--sp-3) 0;
  margin-left: calc(-1 * var(--sp-6));
  margin-right: calc(-1 * var(--sp-6));
  padding-left: var(--sp-6);
  padding-right: var(--sp-6);
}
@media (min-width: 768px) {
  .page-insights .insights-section-header-row {
    top: calc(var(--header-height, 60px) + 44px);
  }
}
.insights-section-pills {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: auto;
}
.insights-pill {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  background: var(--bg-elevated);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  line-height: 1;
}
.insights-pill:hover {
  color: var(--text-secondary);
  background: var(--bg-hover);
}
.insights-pill.is-active {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}
.insights-inline-filter {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: inherit;
  min-height: 28px;
}
.insights-inline-filter:focus {
  border-color: var(--accent-muted);
  outline: none;
}

/* ── Borderless full-bleed layout ────────────────────── */
.insights-section-divider {
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(212,164,55,0.3), transparent);
  margin: var(--sp-6) 0;
}
.page-insights .insights-section-title {
  font-family: var(--font-sans, 'DM Sans', system-ui, sans-serif);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: none;
  margin-bottom: var(--sp-4);
  padding-bottom: 0;
}
.page-insights .insights-card {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.page-insights .insights-card--full {
  background: none;
  border: none;
  padding: 0;
}
.page-insights .insights-card-header {
  padding: 0;
  margin-bottom: var(--sp-3);
}
.page-insights .insights-chart-wrap {
  margin-left: calc(-1 * var(--sp-6));
  margin-right: calc(-1 * var(--sp-6));
  padding-left: 0;
  padding-right: 0;
}
/* ── Compact KPI bar ─────────────────────────────────── */
.insights-kpi-bar {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.insights-kpi-bar .kpi-val {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}
.insights-kpi-bar .kpi-sub {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
}
.insights-kpi-bar .kpi-sep {
  color: var(--border);
  font-size: 0.875rem;
}
@media (max-width: 639px) {
  .insights-kpi-bar {
    gap: var(--sp-2);
    font-size: 0.6875rem;
  }
  .insights-kpi-bar .kpi-val {
    font-size: 0.875rem;
  }
  .insights-kpi-bar .kpi-sub {
    display: none;
  }
  .insights-kpi-bar .kpi-sep {
    font-size: 0.75rem;
  }
}
.page-insights .best-deals-grid {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--sp-2);
}
.page-insights .best-deals-grid::-webkit-scrollbar { display: none; }
.page-insights .best-deals-grid .best-deal-card {
  flex: 0 0 160px;
}

@media (max-width: 639px) {
  .page-insights .insights-chart-wrap {
    margin-left: calc(-1 * var(--sp-4));
    margin-right: calc(-1 * var(--sp-4));
    max-height: none;
    aspect-ratio: auto;
    height: 200px;
  }
  .page-insights .insights-chart-wrap--tall {
    height: 240px;
  }
  .page-insights .insights-chart-wrap--compact {
    height: 180px;
  }
  .insights-section-header-row {
    margin-left: calc(-1 * var(--sp-4));
    margin-right: calc(-1 * var(--sp-4));
    padding-left: var(--sp-4);
    padding-right: var(--sp-4);
  }
}

/* ── Light theme overrides for insights redesign ──────── */
[data-theme="light"] .insights-section-divider {
  background: linear-gradient(to right, transparent, rgba(201,169,98,0.35), transparent);
}
[data-theme="light"] .insights-data-row + .insights-data-row {
  border-top-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .insights-mover-badge--up {
  background: rgba(22,163,74,0.08);
  border-color: rgba(22,163,74,0.2);
  color: #16a34a;
}
[data-theme="light"] .insights-mover-badge--down {
  background: rgba(220,38,38,0.08);
  border-color: rgba(220,38,38,0.2);
  color: #dc2626;
}
[data-theme="light"] .insights-bottom-nav {
  background: rgba(255,255,255,0.95);
}
[data-theme="light"] .insights-pill.is-active {
  color: #fff;
}

/* ── Brand insights navigation ───────────────────────── */
.insights-brand-nav {
  text-align: center;
  margin-bottom: var(--sp-4);
}
.insights-brand-nav .insights-inline-filter {
  min-width: 200px;
  font-size: 0.8125rem;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius);
  color: var(--accent);
  border-color: var(--accent-muted);
  background: var(--accent-glow, rgba(212,164,55,0.06));
}

/* ── Reference Pricing Page ─────────────────────────────────────────── */
.page-reference-pricing { --ref-gap: 16px; }
.ref-page { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-3); }

/* Breadcrumb */
.ref-breadcrumb { font-size: 0.8rem; color: var(--text-tertiary); padding: var(--sp-2) 0; }
.ref-breadcrumb a { color: var(--accent); text-decoration: none; }
.ref-breadcrumb a:hover { text-decoration: underline; }
.ref-breadcrumb-sep { margin: 0 6px; opacity: 0.5; }

/* Hero */
.ref-hero { padding: var(--sp-3) 0; border-bottom: 1px solid var(--border); }
.ref-hero-brand { font-size: 0.75rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
.ref-beta-badge { font-size: 0.6rem; padding: 1px 6px; border-radius: var(--radius-lg); background: rgba(201,169,98,0.15); color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.ref-hero-title { font-size: 1.5rem; font-weight: 700; margin: 4px 0 0; font-family: var(--font-display); }
.ref-hero-highlight { color: var(--accent); }
.ref-hero-badges { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ref-hero-meta { font-size: 0.8rem; color: var(--text-tertiary); }

/* Confidence badges */
.ref-confidence-badge { font-size: 0.75rem; padding: 2px 10px; border-radius: var(--radius-full); font-weight: 500; }
.ref-confidence--reliable { background: rgba(35,134,54,0.15); color: #238636; }
.ref-confidence--limited { background: rgba(240,136,62,0.15); color: #f0883e; }
.ref-confidence--insufficient { background: rgba(248,81,73,0.15); color: #f85149; }
[data-theme="dark"] .ref-confidence--reliable { color: #7ee787; }
[data-theme="dark"] .ref-confidence--limited { color: #f0883e; }
[data-theme="dark"] .ref-confidence--insufficient { color: #f85149; }

/* Ref filter pills */
.ref-filter-pills { display: flex; gap: 6px; margin-top: var(--sp-2); padding: var(--sp-2) 0; flex-wrap: wrap; align-items: center; }
.ref-filter-label { font-size: 0.75rem; color: var(--text-tertiary); margin-right: 4px; }
.ref-pill { font-size: 0.8rem; padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-full); background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-primary); text-decoration: none; cursor: pointer; transition: all 0.15s; }
.ref-pill:hover { border-color: var(--accent); }
.ref-pill--active { background: var(--accent); color: var(--bg-primary); border-color: var(--accent); font-weight: 600; }

/* Insufficient data state */
.ref-insufficient { text-align: center; padding: var(--sp-6) var(--sp-3); }
.ref-insufficient-icon { font-size: 48px; color: var(--text-tertiary); }
.ref-insufficient h2 { font-size: 1.2rem; margin: var(--sp-2) 0; }
.ref-insufficient p { color: var(--text-secondary); max-width: 480px; margin: 0 auto; }
.ref-insufficient-hint { margin-top: var(--sp-2) !important; font-size: 0.85rem; }

/* Sections */
.ref-section { padding: var(--sp-3) 0; border-bottom: 1px solid var(--border); }
.ref-section-title { font-size: 1rem; font-weight: 600; margin-bottom: var(--sp-2); }
.ref-section-subtitle { font-size: 0.8rem; color: var(--text-tertiary); margin-top: -8px; margin-bottom: var(--sp-2); }
.ref-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-2); }

/* Marketplace cards (mobile) */
.ref-marketplace-cards { display: flex; flex-direction: column; gap: var(--sp-2); }
.ref-mkt-card { display: flex; justify-content: space-between; align-items: center; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--sp-3); }
.ref-mkt-card--insufficient { border-color: rgba(248,81,73,0.3); opacity: 0.7; }
.ref-mkt-name { font-size: 0.9rem; font-weight: 500; }
.ref-mkt-count { display: block; font-size: 0.7rem; color: var(--text-tertiary); margin-top: 2px; }
.ref-mkt-count--limited { color: #f0883e; }
.ref-mkt-count--insufficient { color: #f85149; }
.ref-mkt-median { font-size: 1.15rem; font-weight: 700; }
.ref-mkt-median--na { color: var(--text-tertiary); }
.ref-mkt-label { display: block; font-size: 0.7rem; color: var(--text-tertiary); text-align: right; }
.ref-mkt-card-left { display: flex; flex-direction: column; }
.ref-mkt-card-right { text-align: right; }

/* Marketplace table (desktop) */
.ref-marketplace-table { display: none; }
.ref-marketplace-table table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.ref-marketplace-table th { color: var(--text-tertiary); text-align: left; padding: 6px 0; border-bottom: 1px solid var(--border); font-weight: 500; }
.ref-marketplace-table td { padding: 8px 0; border-bottom: 1px solid var(--border-subtle, var(--border)); }
.ref-marketplace-table .text-right { text-align: right; }
.ref-marketplace-table .text-muted { color: var(--text-tertiary); }
.ref-marketplace-table .text-warning { color: #f0883e; }
.ref-marketplace-table .text-danger { color: #f85149; }
.ref-row--insufficient { opacity: 0.6; }

/* Timeframe pills */
.ref-timeframe-pills { display: flex; gap: 4px; }
.ref-tf-pill { font-size: 0.75rem; padding: 2px 10px; border-radius: var(--radius-lg); background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-tertiary); cursor: pointer; transition: all 0.15s; }
.ref-tf-pill:hover { border-color: var(--accent); }
.ref-tf-pill--active { background: rgba(201,169,98,0.2); color: var(--accent); border-color: var(--accent); }

/* Charts */
.ref-chart-wrap { height: 240px; margin-top: var(--sp-1); }
.ref-chart-wrap--short { height: 160px; }

/* Distribution summary */
.ref-dist-summary { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-tertiary); margin-top: 8px; }

/* Condition grid */
.ref-condition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.ref-condition-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--sp-2); }
.ref-condition-label { display: block; font-size: 0.7rem; color: var(--text-tertiary); }
.ref-condition-price { display: block; font-size: 1.1rem; font-weight: 700; margin: 2px 0; }
.ref-condition-price--na { color: var(--text-tertiary); }
.ref-condition-count { display: block; font-size: 0.7rem; color: var(--text-tertiary); }

/* Material list */
.ref-material-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.ref-material-row { display: flex; justify-content: space-between; align-items: center; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--sp-2) var(--sp-3); }
.ref-material-left { display: flex; flex-direction: column; }
.ref-material-name { font-weight: 500; }
.ref-material-count { font-size: 0.7rem; color: var(--text-tertiary); }
.ref-material-price { font-weight: 700; }
.ref-material-price--na { color: var(--text-tertiary); }

/* Recent listings */
.ref-recent-list { display: flex; flex-direction: column; gap: 6px; }
.ref-recent-card { display: flex; align-items: center; gap: var(--sp-2); background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--sp-2) var(--sp-3); text-decoration: none; color: inherit; transition: border-color 0.15s; }
.ref-recent-card:hover { border-color: var(--accent); }
.ref-recent-img { width: 48px; height: 48px; border-radius: var(--radius-xl); overflow: hidden; flex-shrink: 0; background: var(--bg-primary); }
.ref-recent-img img { width: 100%; height: 100%; object-fit: cover; }
.ref-recent-left { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ref-recent-title { font-size: 0.85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ref-recent-meta { font-size: 0.7rem; color: var(--text-tertiary); margin-top: 2px; }
.ref-recent-specs { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.ref-recent-pill { font-size: 0.65rem; padding: 1px 6px; border-radius: var(--radius-lg); background: var(--bg-primary); border: 1px solid var(--border); color: var(--text-secondary); }
.ref-recent-pill--new { color: #7ee787; border-color: rgba(35,134,54,0.3); }
.ref-recent-pill--excellent { color: #58a6ff; border-color: rgba(88,166,255,0.3); }
.ref-recent-pill--good { color: var(--text-secondary); }
.ref-recent-pill--fair { color: #f0883e; border-color: rgba(240,136,62,0.3); }
.ref-recent-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.ref-recent-badge { font-size: 0.65rem; padding: 1px 6px; border-radius: var(--radius-lg); font-weight: 600; }
.ref-recent-price { font-weight: 700; }
.ref-recent-more { text-align: center; margin-top: var(--sp-2); }
.ref-recent-more a { color: var(--accent); font-size: 0.85rem; text-decoration: none; }
.ref-recent-more a:hover { text-decoration: underline; }

/* Fairness badge colors (reuse existing) */
.ref-recent-badge.badge-great-deal { background: rgba(35,134,54,0.2); color: #7ee787; }
.ref-recent-badge.badge-good-price { background: rgba(35,134,54,0.15); color: #7ee787; }
.ref-recent-badge.badge-fair-price { display: none; }
.ref-recent-badge.badge-above-market { background: rgba(240,136,62,0.15); color: #f0883e; }

/* CTA */
.ref-cta { text-align: center; padding: var(--sp-4) var(--sp-3); border-top: 2px solid var(--accent); margin-top: var(--sp-2); }
.ref-cta-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.ref-cta-body { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: var(--sp-3); max-width: 480px; margin-left: auto; margin-right: auto; }
.ref-cta-btn { font-size: 0.95rem; padding: 12px 32px; }
.ref-cta-sub { font-size: 0.75rem; color: var(--text-tertiary); margin-top: 8px; }
.ref-cta-sub a { color: var(--accent); }

/* Methodology footer */
.ref-methodology { padding: var(--sp-3) 0; font-size: 0.8rem; color: var(--text-tertiary); line-height: 1.6; }
.ref-methodology-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-secondary); }
.ref-methodology-legend { margin-top: 8px; }

/* Text helpers */
.text-warning { color: #f0883e !important; }
.text-danger { color: #f85149 !important; }

/* Desktop: two-column layout */
@media (min-width: 768px) {
  .ref-marketplace-cards { display: none; }
  .ref-marketplace-table { display: block; }
  .ref-chart-wrap { height: 300px; }
  .ref-chart-wrap--short { height: 180px; }
}

/* ── Clickable variant cards (model page) ─────────────────────────── */
.sub-model-hint { font-size: 0.8rem; color: var(--text-tertiary); margin: -4px 0 var(--sp-2); }
.sub-model-cards { display: flex; flex-direction: column; gap: var(--sp-2); }
.sub-model-card { display: flex; justify-content: space-between; align-items: center; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--sp-3); }
.sub-model-card--link { text-decoration: none; color: inherit; cursor: pointer; transition: border-color 0.15s; }
.sub-model-card--link:hover { border-color: var(--accent); }
.sub-model-card--dimmed { opacity: 0.6; }
.sub-model-card-left { display: flex; flex-direction: column; }
.sub-model-card-name { font-size: 0.9rem; font-weight: 600; }
.sub-model-card--link .sub-model-card-name { color: var(--accent); }
.sub-model-card-right { text-align: right; }
.sub-model-card-price { font-size: 1rem; font-weight: 700; display: block; }
.sub-model-card-count { font-size: 0.7rem; color: var(--text-tertiary); display: block; margin-top: 2px; }
.sub-model-card-count--insufficient { color: #f85149; }

/* ── Header search autocomplete ───────────────────────────────────── */
.nav-search { position: relative; flex: 0 1 280px; margin: 0 var(--sp-2); display: none; }
.nav-search-input { width: 100%; padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--bg-primary); color: var(--text-primary); font-size: 0.8rem; font-family: var(--font-body); outline: none; transition: border-color 0.15s; }
.nav-search-input:focus { border-color: var(--accent); }
.nav-search-input::placeholder { color: var(--text-tertiary); }
.nav-search-results { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 0 0 8px 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.15); z-index: 100; max-height: 400px; overflow-y: auto; }
.nsr-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--border); transition: background 0.1s; }
.nsr-item:hover { background: var(--bg-hover, rgba(201,169,98,0.08)); }
.nsr-item:last-child { border-bottom: none; }
.nsr-item-left { display: flex; flex-direction: column; min-width: 0; }
.nsr-model { font-size: 0.85rem; font-weight: 600; }
.nsr-brand { font-size: 0.7rem; color: var(--text-tertiary); }
.nsr-item-right { text-align: right; flex-shrink: 0; margin-left: 12px; }
.nsr-price { display: block; font-size: 0.85rem; font-weight: 600; }
.nsr-count { display: block; font-size: 0.65rem; color: var(--text-tertiary); }
.nsr-warn { display: block; font-size: 0.65rem; color: #f0883e; }

@media (min-width: 768px) {
  .nav-search { display: block; }
}

/* ── Listing card market context badge ────────────────────────────── */
.listing-ref-context { display: flex; justify-content: space-between; align-items: center; padding: 6px 0 0; margin-top: 6px; border-top: 1px solid var(--border); font-size: 0.7rem; min-width: 0; gap: 4px; }
.listing-ref-context-text { color: var(--text-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.listing-ref-link { color: var(--accent); text-decoration: underline; }
.listing-ref-context-count { color: var(--text-tertiary); white-space: nowrap; }
