/* V2 marketplace header — shared with /leads */
:root {
  /* Surfaces — Veritas charcoal */
  --bg:       #030303;
  --bg-2:     #0a0a0a;
  --panel:    #111111;
  --panel-2:  #161616;
  --panel-3:  #1c1c1c;

  /* Accent — Veritas gold */
  --accent:    #c9a227;   /* solid actions */
  --accent-2:  #dbb84a;   /* bright highlights / glow / numbers */
  --accent-3:  #a8841f;   /* mid */
  --accent-ink:#0a0a0a;
  --signal:    #E0A23B;   /* amber — best seller only */

  /* Text on dark */
  --text:      #f5f5f5;
  --text-soft: rgba(245,245,245,0.66);
  --text-mute: rgba(245,245,245,0.42);
  --text-faint:rgba(245,245,245,0.30);

  /* Lines */
  --line:      rgba(255,255,255,0.12);
  --line-soft: rgba(255,255,255,0.07);
  --line-bright: rgba(201,162,39,0.32);

  /* Glow */
  --glow:      rgba(201,162,39,0.20);
  --glow-soft: rgba(201,162,39,0.10);

  /* Type */
  --font-sans: "Instrument Sans", system-ui, sans-serif;
  --font-head: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "ui-monospace", ui-monospace, monospace;
  --tracking-eyebrow: 0.22em;

  /* Spacing */
  --density: 1;
  --section-y: calc(118px * var(--density));
  --radius:   14px;
  --radius-sm: 9px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow:    0 18px 50px -24px rgba(0,0,0,.7);
  --shadow-lg: 0 40px 90px -36px rgba(0,0,0,.8);
  --glow-btn:  0 0 0 1px rgba(201,162,39,.28), 0 12px 34px -10px rgba(0,0,0,.55);

  /* Motion */
  --motion: 1;
  --ease: cubic-bezier(.22,.61,.36,1);
  --maxw: 1200px;
}

/* ============================================================ HEADER (floating pill) */
.site-header { position: fixed; top: 16px; left: 0; right: 0; z-index: 60; pointer-events: none; }
.site-header .wrap { display: flex; justify-content: center; }
.nav {
  pointer-events: auto;
  width: 100%; max-width: 1120px;
  display: flex; align-items: center; gap: 20px; height: 60px; padding: 0 10px 0 18px;
  background: color-mix(in oklab, var(--panel) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  box-shadow: 0 10px 40px -16px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.04);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled .nav { border-color: var(--line-bright); box-shadow: 0 10px 50px -16px rgba(0,0,0,.8), 0 0 0 1px var(--glow-soft); }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -0.01em; font-size: 1.08rem; white-space: nowrap; flex: none; }
.brand-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; display: block; }
.brand .mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--accent-2), var(--accent) 70%);
  color: var(--accent-ink); display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 0.8rem; letter-spacing: -0.02em;
  box-shadow: 0 0 18px -4px var(--accent-2), inset 0 1px 1px rgba(255,255,255,.4);
}
.brand b { color: var(--text); font-weight: 700; }
.brand span { color: var(--accent-2); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 26px; margin: 0 auto; min-width: 0; }
.nav-links a { font-size: 0.92rem; color: var(--text-soft); font-weight: 500; transition: color .18s; position: relative; padding: 6px 0; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a::after { content:""; position:absolute; left:0; bottom:-2px; height:2px; width:0; background: var(--accent-2); border-radius:2px; box-shadow:0 0 8px var(--accent-2); transition: width .25s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-left: 4px;
  padding-left: 14px;
  border-left: 1px solid color-mix(in oklab, var(--line) 80%, transparent);
}
.nav-cta:not(.is-auth-ready) {
  visibility: hidden;
}
.nav-cta .signin { font-size: 0.92rem; font-weight: 600; color: var(--text-soft); white-space: nowrap; padding: 0 2px; }
.nav-cta .signin:hover { color: var(--text); }
.v2-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  padding: 0;
  font: inherit;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.v2-cart-link:hover {
  border-color: var(--line-bright);
  background: rgba(255,255,255,0.07);
  color: var(--accent-2);
}
.v2-cart-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.v2-cart-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #0a0a0a;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--panel) 70%, transparent);
}

.btn {
  --bg: var(--accent); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.96rem; letter-spacing: -0.01em;
  padding: 13px 22px; border-radius: var(--radius-sm);
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  cursor: pointer; white-space: nowrap;
  transition: transform calc(.18s*var(--motion)) var(--ease), box-shadow calc(.22s*var(--motion)) var(--ease), background calc(.18s*var(--motion)) var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(180deg, var(--accent-3), var(--accent)); box-shadow: var(--glow-btn); }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(201,162,39,.45), 0 16px 40px -10px rgba(0,0,0,.65); }
.btn-ghost { --bg: rgba(255,255,255,.02); --fg: var(--text); --bd: var(--line); }
.btn-ghost:hover { --bg: rgba(255,255,255,.06); --bd: var(--line-bright); }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.btn .arrow { transition: transform calc(.2s*var(--motion)) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.nav-menu-toggle {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-menu-toggle:hover,
.nav-menu-toggle[aria-expanded="true"] {
  border-color: var(--line-bright);
  background: rgba(255, 255, 255, 0.08);
}

.nav-menu-toggle__bar {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-menu-toggle[aria-expanded="true"] .nav-menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-menu-toggle[aria-expanded="true"] .nav-menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-menu-toggle[aria-expanded="true"] .nav-menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile-panel {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 55;
  padding: 84px 16px 24px;
  background: rgba(4, 10, 8, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), visibility 0.22s var(--ease);
}

.nav-mobile-panel.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

body.nav-mobile-open {
  overflow: hidden;
}

.nav-mobile-panel__inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--panel) 92%, transparent);
  box-shadow: var(--shadow-lg);
}

.nav-mobile-panel__inner a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.nav-mobile-panel__inner a:hover,
.nav-mobile-panel__inner a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-2);
}

@media (min-width: 1025px) {
  .nav-menu-toggle,
  .nav-mobile-panel {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .site-header .nav-links { display: none; }
  .site-header .nav {
    gap: 10px;
    height: auto;
    min-height: 52px;
    padding: 6px 10px 6px 14px;
    max-width: calc(100vw - 24px);
  }
  .nav-menu-toggle { display: inline-flex; margin-left: auto; }
  .site-header .nav-cta {
    margin-left: 0;
    gap: 8px;
    flex-shrink: 0;
    padding-left: 0;
    border-left: 0;
  }
  .site-header .brand {
    min-width: 0;
    font-size: 0.98rem;
  }
  .site-header .brand-logo {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 860px) {
  .nav-cta .signin { display: none; }
}

@media (max-width: 640px) {
  .site-header { top: 8px; }
  .site-header .nav {
    min-height: 48px;
    padding: 5px 8px 5px 12px;
    gap: 8px;
  }
  .site-header .brand span {
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-cta .signin { display: none; }
  .nav-cta .btn-primary {
    padding: 8px 12px;
    font-size: 0.82rem;
    min-height: 36px;
  }
  .nav-cta .btn-primary .arrow { display: none; }
  .nav-cta .v2-auth-dashboard,
  .nav-cta .v2-cart-link {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }
  .nav-cta .v2-auth-dashboard svg,
  .nav-cta .v2-cart-link svg {
    width: 16px;
    height: 16px;
  }
  .nav-cta .v2-auth-user-trigger {
    min-height: 36px;
    padding: 3px 8px 3px 3px;
  }
  .nav-cta .v2-auth-avatar,
  .nav-cta .v2-auth-avatar-fallback {
    width: 28px;
    height: 28px;
  }
  .marketplace-v2-shell .site-header-spacer,
  .site-header-spacer {
    height: 68px;
  }
}

.marketplace-v2-shell .site-header .wrap { padding: 0 16px; }
.marketplace-v2-shell .site-header-spacer { height: 92px; flex: none; }
.marketplace-v2-shell .brand,
.marketplace-v2-shell .nav-links a,
.marketplace-v2-shell .nav-cta .signin { text-decoration: none; color: inherit; }

@media (max-width: 640px) {
  .marketplace-v2-shell .site-header .wrap { padding: 0 10px; }
  .marketplace-v2-shell .site-header-spacer { height: 68px; }
}


/* Leads shop toolbar sits under fixed Veritas corporate header */
body.marketplace-v2-shell.veritas-public-shell:not(.veritas-marketing-hero-page) .marketplace-leads-toolbar.site-header.ls-header {
  position: sticky;
  top: var(--v-header-h, 68px);
  z-index: 55;
}

body.marketplace-v2-shell.veritas-public-shell .ls-header__top--toolbar {
  flex-wrap: nowrap;
}

body.marketplace-v2-shell.veritas-public-shell .ls-header__top--toolbar .ls-search {
  flex: 1;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* ============================================================ LEAD SHOP HEADER */
body.marketplace-v2-shell .site-header.ls-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  pointer-events: auto;
  background: #0b0f12;
  border-bottom: 1px solid #1e252b;
}

body.marketplace-v2-shell .ls-header__top {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px 28px;
  flex-wrap: wrap;
}

body.marketplace-v2-shell .ls-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex: none;
}

body.marketplace-v2-shell .ls-brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
  flex: none;
}

body.marketplace-v2-shell .ls-brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2a2418, #c9a227);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  flex: none;
}

body.marketplace-v2-shell .ls-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

body.marketplace-v2-shell .ls-brand__text b {
  font-size: 17px;
  font-weight: 700;
  color: #e7ecef;
}

body.marketplace-v2-shell .ls-brand__text span {
  font-family: var(--font-mono, "ui-monospace", ui-monospace, monospace);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #7c8b94;
  font-weight: 500;
}

body.marketplace-v2-shell .ls-search {
  flex: 1;
  min-width: 240px;
  display: flex;
  height: 42px;
  border: 1px solid #2a333a;
  border-radius: 10px;
  overflow: hidden;
  background: #12171b;
}

body.marketplace-v2-shell .ls-search__cat {
  border: 0;
  border-right: 1px solid #2a333a;
  background: #171d22;
  color: #c5ced4;
  padding: 0 12px;
  font-size: 13px;
  outline: none;
  max-width: 132px;
  cursor: pointer;
}

body.marketplace-v2-shell .ls-search__input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: #e7ecef;
  font-size: 14px;
  padding: 0 14px;
  min-width: 0;
}

body.marketplace-v2-shell .ls-search__input::placeholder {
  color: #7c8b94;
}

body.marketplace-v2-shell .ls-search__btn {
  border: 0;
  background: #c9a227;
  color: #111;
  width: 48px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}

body.marketplace-v2-shell .ls-search__btn:hover {
  background: #dbb84a;
}

body.marketplace-v2-shell .ls-header__cta.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

body.marketplace-v2-shell .ls-cart.v2-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #2a333a;
  background: #12171b;
  color: #e7ecef;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
body.marketplace-v2-shell .ls-cart .v2-cart-label {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  font-size: inherit;
  font-weight: inherit;
}

body.marketplace-v2-shell .ls-cart.v2-cart-link:hover {
  border-color: #c9a227;
  color: #e7ecef;
  background: #12171b;
}

body.marketplace-v2-shell .ls-cart__count.v2-cart-count,
body.marketplace-v2-shell .ls-cart .v2-cart-count {
  position: static;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: auto;
  padding: 1px 8px;
  border-radius: 8px;
  background: #c9a227;
  color: #111;
  font-size: 12px;
  font-family: var(--font-mono, "ui-monospace", ui-monospace, monospace);
  font-weight: 700;
  border: 0;
  transform: none;
}
body.marketplace-v2-shell .ls-cart__count.v2-cart-count[hidden],
body.marketplace-v2-shell .ls-cart .v2-cart-count[hidden],
.v2-cart-count[hidden],
.ls-cart__count[hidden] {
  display: none !important;
}

body.marketplace-v2-shell .ls-header__nav {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 22px 10px;
  font-size: 13px;
  overflow-x: auto;
}

/* Product detail + cart checkout — category chips are shop-listing only */
body.marketplace-v2-shell.ls-pdp-route .ls-header__nav,
body.marketplace-v2-shell.ls-checkout-route .ls-header__nav,
body.marketplace-v2-shell:has(.product-detail) .ls-header__nav,
body.marketplace-v2-shell:has(.cart-checkout-page) .ls-header__nav {
  display: none !important;
}

body.marketplace-v2-shell .ls-header__cats {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

body.marketplace-v2-shell .ls-nav-chip {
  padding: 6px 12px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: #c5ced4;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}

body.marketplace-v2-shell .ls-nav-chip:hover {
  background: #171d22;
}

body.marketplace-v2-shell .ls-nav-chip.is-active {
  background: #171d22;
  color: #dbb84a;
}

body.marketplace-v2-shell .ls-header-spacer.site-header-spacer {
  display: none;
}

body.marketplace-v2-shell .ls-header .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;
}

/* Hide duplicate in-page search/category row on public leads — header owns those */
body.marketplace-v2-shell .leads-page:not(.leads-page--buyer) .mkt-search,
body.marketplace-v2-shell .leads-page:not(.leads-page--buyer) .cat-filter-row--public {
  display: none;
}

@media (max-width: 900px) {
  body.marketplace-v2-shell .ls-header__top {
    padding: 10px 14px;
    gap: 10px 12px;
  }

  body.marketplace-v2-shell .ls-search {
    order: 3;
    flex: 1 1 100%;
    min-width: 0;
  }

  body.marketplace-v2-shell .ls-header__nav {
    padding: 0 12px 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body.marketplace-v2-shell .ls-header__nav::-webkit-scrollbar {
    display: none;
  }

  body.marketplace-v2-shell .ls-header__cta.nav-cta {
    gap: 8px;
  }
}

@media (max-width: 640px) {
  body.marketplace-v2-shell .ls-header__top {
    padding: 8px 12px;
    gap: 8px;
  }

  body.marketplace-v2-shell .ls-brand__logo,
  body.marketplace-v2-shell .ls-brand__mark {
    width: 30px;
    height: 30px;
  }

  body.marketplace-v2-shell .ls-brand__text b {
    font-size: 14px;
  }

  body.marketplace-v2-shell .ls-brand__text span {
    display: none;
  }

  body.marketplace-v2-shell .ls-header__cta .signin,
  body.marketplace-v2-shell .ls-header__cta .btn-primary .arrow {
    display: none;
  }

  body.marketplace-v2-shell .ls-header__cta .btn-primary {
    padding: 8px 11px;
    font-size: 0.78rem;
    min-height: 40px;
  }

  body.marketplace-v2-shell .ls-cart.v2-cart-link {
    height: 40px;
    padding: 0 10px;
    gap: 6px;
    font-size: 0;
  }

  body.marketplace-v2-shell .ls-cart.v2-cart-link svg,
  body.marketplace-v2-shell .ls-cart.v2-cart-link .ls-cart__count,
  body.marketplace-v2-shell .ls-cart.v2-cart-link .v2-cart-count {
    font-size: 13px;
  }

  body.marketplace-v2-shell .ls-search {
    height: 40px;
  }

  body.marketplace-v2-shell .ls-search__cat {
    max-width: 92px;
    padding: 0 8px;
    font-size: 12px;
  }

  body.marketplace-v2-shell .ls-search__input {
    font-size: 16px; /* avoid iOS zoom */
    padding: 0 10px;
  }

  body.marketplace-v2-shell .ls-search__btn {
    width: 44px;
    min-height: 40px;
  }

  body.marketplace-v2-shell .ls-nav-chip {
    padding: 8px 12px;
    min-height: 40px;
  }
}

/* Auth dropdown — kept in CSS so SSR header does not flash unstyled */
.nav-cta.is-auth-ready { align-items: center; gap: 10px; }
.nav-cta .v2-auth-dashboard {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line, rgba(255,255,255,0.12));
  background: rgba(255,255,255,0.03);
  color: var(--text, #f5f5f5);
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.nav-cta .v2-auth-dashboard:hover {
  border-color: var(--line-bright, rgba(201,162,39,0.32));
  background: rgba(255,255,255,0.07);
  color: var(--accent-2, #dbb84a);
}
.nav-cta .v2-auth-dashboard svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.v2-auth-user { position: relative; }
.v2-auth-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line, rgba(255,255,255,0.12));
  background: rgba(255,255,255,0.04);
  padding: 4px 12px 4px 4px;
  color: var(--text, #f5f5f5);
  font: inherit;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.v2-auth-user-trigger:hover,
.v2-auth-user-trigger[aria-expanded="true"] {
  border-color: var(--line-bright, rgba(201,162,39,0.32));
  background: rgba(255,255,255,0.07);
}
.v2-auth-avatar,
.v2-auth-avatar-fallback {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: none;
}
.v2-auth-avatar { object-fit: cover; }
.v2-auth-avatar-fallback {
  display: grid;
  place-items: center;
  background: var(--accent, #c9a227);
  color: #0a0a0a;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 600;
}
.v2-auth-greeting {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft, rgba(245,245,245,0.66));
}
.v2-auth-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-mute, rgba(245,245,245,0.42));
  transition: transform .18s ease;
}
.v2-auth-user-trigger[aria-expanded="true"] .v2-auth-chevron {
  transform: rotate(180deg);
}
.v2-auth-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 80;
  min-width: 220px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line, rgba(255,255,255,0.12));
  background: var(--panel, #111111);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.v2-auth-menu[hidden] { display: none; }
.v2-auth-menu-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft, rgba(255,255,255,0.07));
}
.v2-auth-menu-header strong,
.v2-auth-menu-header span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v2-auth-menu-header strong {
  font-size: 0.9rem;
  color: var(--text, #f5f5f5);
}
.v2-auth-menu-header span {
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--text-mute, rgba(245,245,245,0.42));
}
.v2-auth-menu-item,
.v2-auth-menu button.v2-auth-menu-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 0;
  background: transparent;
  color: var(--text-soft, rgba(245,245,245,0.66));
  font: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}
.v2-auth-menu-item:hover {
  background: rgba(255,255,255,0.04);
  color: var(--accent-2, #dbb84a);
}
@media (max-width: 760px) {
  .v2-auth-greeting { display: none; }
}

/* Leads shop: search in corporate header (replaces center logo) */
body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop {
  --v-leads-header-inset: 16px;
  align-items: center;
  padding-top: var(--v-leads-header-inset);
  box-sizing: border-box;
  min-height: calc(var(--v-header-h, 68px) + var(--v-leads-header-inset));
}

body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop .veritas-corp-header__leads-search {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1040px, max(720px, calc(100vw - 640px)));
  pointer-events: auto;
  z-index: 2;
}

body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop .veritas-corp-header__ls-search {
  width: 100%;
  min-width: 0;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.45);
}

body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop .ls-search__input {
  background: transparent;
}

body.marketplace-v2-shell.veritas-public-shell .marketplace-leads-toolbar.ls-header .ls-header__nav {
  padding-top: 0.35rem;
  padding-bottom: 0.5rem;
}

body.marketplace-v2-shell.veritas-public-shell .marketplace-leads-toolbar.ls-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

@media (max-width: 1023px) {
  body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop {
    flex-wrap: wrap;
    height: auto;
    min-height: calc(var(--v-header-h, 68px) + var(--v-leads-header-inset, 16px));
    padding-bottom: 10px;
    align-content: center;
  }

  body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop .veritas-corp-header__leads-search {
    position: static;
    transform: none;
    order: 10;
    width: calc(100% - 2rem);
    margin: 0.35rem auto 0;
    flex: 1 1 100%;
  }

  body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop .veritas-corp-header__right {
    width: auto;
    margin-left: auto;
  }
}



/* Leads shop scroll stack: fixed search header + sticky category bar (height synced in JS) */
body.marketplace-v2-shell.veritas-public-shell:has(.veritas-corp-header--leads-shop) {
  --v-leads-chips-h: 52px;
}

body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop {
  height: auto;
  min-height: calc(var(--v-header-h, 68px) + var(--v-leads-header-inset, 16px));
  background: rgba(6, 6, 6, 0.94);
  backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 80;
}

body.marketplace-v2-shell.veritas-public-shell:has(.veritas-corp-header--leads-shop) .veritas-corp-header-spacer {
  min-height: var(--v-leads-fixed-header-h, calc(var(--v-header-h, 68px) + var(--v-leads-header-inset, 16px)));
  height: var(--v-leads-fixed-header-h, calc(var(--v-header-h, 68px) + var(--v-leads-header-inset, 16px)));
}

body.marketplace-v2-shell.veritas-public-shell.veritas-portal-leads-bg .marketplace-leads-toolbar.site-header.ls-header,
body.veritas-portal-leads-bg .marketplace-leads-toolbar.site-header.ls-header {
  position: sticky !important;
  top: var(--v-leads-fixed-header-h, calc(var(--v-header-h, 68px) + var(--v-leads-header-inset, 16px))) !important;
  z-index: 75 !important;
}

body.marketplace-v2-shell.veritas-public-shell .marketplace-leads-toolbar.ls-header .ls-header__nav {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

body.marketplace-v2-shell.veritas-public-shell .marketplace-leads-toolbar.ls-header .ls-header__nav::-webkit-scrollbar {
  display: none;
  height: 0;
}

/* Leads shop: Home only in nav (no Marketplace / Agent Portal) */
body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop .veritas-corp-header__left--leads-home {
  display: flex;
  width: auto;
  padding-left: clamp(1rem, 3vw, 1.75rem);
  z-index: 3;
}

@media (max-width: 1023px) {
  body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop .veritas-corp-header__left--leads-home {
    display: flex;
    position: absolute;
    left: clamp(1rem, 3vw, 1.25rem);
    top: 50%;
    transform: translateY(-50%);
  }

  body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop .veritas-corp-header__left--leads-home .veritas-corp-header__portal, body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop .nav-cta .veritas-corp-header__portal {
    font-size: 10px;
    letter-spacing: 0.18em;
  }
}

/* Leads shop: white Home link + wider search */
body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop .veritas-corp-header__left--leads-home .veritas-corp-header__portal, body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop .nav-cta .veritas-corp-header__portal {
  color: #f7f5f2;
  border-color: rgba(255, 255, 255, 0.38);
}

body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop .veritas-corp-header__left--leads-home .veritas-corp-header__portal:hover,
body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop .nav-cta .veritas-corp-header__portal:hover,
body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop .veritas-corp-header__left--leads-home .veritas-corp-header__portal.is-active,
body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop .nav-cta .veritas-corp-header__portal.is-active {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.62);
}

@media (min-width: 1024px) {
  body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop .veritas-corp-header__leads-search {
    width: min(1040px, max(720px, calc(100vw - 640px)));
  }
}

/* Leads shop: cart beside search */
body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop .veritas-corp-header__leads-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop .veritas-corp-header__ls-search {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop .veritas-corp-header__leads-search-cart {
  flex: none;
  display: flex;
  align-items: center;
}

body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop .veritas-corp-header__cart-toggle {
  height: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.45);
}

body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop .veritas-corp-header__cart-toggle:hover {
  border-color: rgba(110, 112, 92, 0.65);
  background: rgba(110, 112, 92, 0.22);
}

body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop .nav-cta .v2-cart-link {
  display: none !important;
}

@media (max-width: 1023px) {
  body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop .veritas-corp-header__leads-search {
    flex-wrap: nowrap;
  }

  body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop .veritas-corp-header__cart-toggle .v2-cart-label {
    display: none;
  }

  body.marketplace-v2-shell.veritas-public-shell .veritas-corp-header--leads-shop .veritas-corp-header__cart-toggle {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
}



/* ls-search category picker */
body.marketplace-v2-shell .ls-search:has(.ls-search__cat-picker.is-open) {
  overflow: visible;
}

body.marketplace-v2-shell .ls-search__cat-picker {
  position: relative;
  flex: none;
  align-self: stretch;
  display: flex;
  border-right: 1px solid #2a333a;
}

body.marketplace-v2-shell .ls-search__cat--native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.marketplace-v2-shell .ls-search__cat-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  height: 100%;
  min-height: 44px;
  padding: 0 0.65rem 0 0.75rem;
  border: 0;
  background: #171d22;
  color: #e7ecef;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  min-width: 7.25rem;
  max-width: 11rem;
  text-align: left;
}

body.marketplace-v2-shell .ls-search__cat-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.marketplace-v2-shell .ls-search__cat-chevron {
  flex: none;
  opacity: 0.72;
  transition: transform 0.15s ease;
}

body.marketplace-v2-shell .ls-search__cat-picker.is-open .ls-search__cat-chevron {
  transform: rotate(180deg);
}

body.marketplace-v2-shell .ls-search__cat-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 120;
  min-width: 100%;
  width: max-content;
  max-width: min(18rem, calc(100vw - 2rem));
  max-height: min(20rem, 52vh);
  overflow: auto;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #12171b;
  border: 1px solid #2a333a;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

body.marketplace-v2-shell .ls-search__cat-option {
  padding: 0.5rem 0.65rem;
  border-radius: 7px;
  color: #e7ecef;
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
}

body.marketplace-v2-shell .ls-search__cat-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.marketplace-v2-shell .ls-search__cat-option.is-selected {
  background: rgba(201, 162, 39, 0.22);
  color: #fff;
}

body.veritas-portal-leads-bg .ls-search__cat-picker {
  border-right-color: rgba(110, 112, 92, 0.4);
}

body.veritas-portal-leads-bg .ls-search__cat-trigger {
  background: rgba(0, 0, 0, 0.22);
  color: #f7f5f3;
}

body.veritas-portal-leads-bg .ls-search__cat-menu {
  background: #121412;
  border-color: rgba(110, 112, 92, 0.55);
}

body.veritas-portal-leads-bg .ls-search__cat-option.is-selected {
  background: rgba(110, 112, 92, 0.32);
}

body.veritas-portal-leads-bg #marketplace-app .ls-shop__sort select {
  color-scheme: dark;
}

body.veritas-portal-leads-bg #marketplace-app .ls-shop__sort select option,
body.veritas-portal-leads-bg .ls-search__cat option {
  background-color: #141816;
  color: #f7f5f3;
}
