:root {
  --bg: #f2f2f2;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --ink: #111111;
  --muted: #595959;
  --line: #d9d9d9;
  --line-strong: #b8b8b8;
  --accent: #121212;
  --accent-ink: #ffffff;
  --success: #1d7a44;
  --danger: #9b2b2b;
  --radius: 18px;
  --shadow: 0 18px 36px -28px rgba(0, 0, 0, 0.5);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0%, #ffffff 0%, #f0f0f0 44%, #ececec 100%),
    repeating-linear-gradient(
      45deg,
      transparent 0 10px,
      rgba(0, 0, 0, 0.012) 10px 20px
    ),
    var(--bg);
}

.page-shell {
  width: min(1920px, 99vw);
  margin: 0 auto;
  padding-bottom: 2rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 35;
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(7px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
}

.brand {
  font-weight: 700;
  font-size: 1.24rem;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: var(--ink);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.site-nav > a,
.site-nav > .nav-item > a {
  text-decoration: none;
  color: var(--ink);
  font-size: 1.02rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.48rem 0.86rem;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.site-nav > .nav-item {
  position: relative;
  z-index: 0;
}

.site-nav > .nav-item:hover,
.site-nav > .nav-item:focus-within {
  z-index: 90;
}

.site-nav > .nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.6rem;
  z-index: 79;
}

.site-nav > .nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.08rem);
  left: 0;
  min-width: 230px;
  display: grid;
  gap: 0.2rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 20px 30px -26px rgba(16, 24, 40, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(7px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  z-index: 80;
}

.nav-dropdown a {
  text-decoration: none;
  color: #1a2538;
  font-size: 0.92rem;
  border-radius: 9px;
  padding: 0.45rem 0.55rem;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: #f3f6fc;
}

.site-nav > .nav-item:hover .nav-dropdown,
.site-nav > .nav-item:focus-within .nav-dropdown,
.site-nav > .nav-item.dropdown-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .site-header {
    padding: 0.92rem 1.05rem;
    gap: 0.9rem;
  }

  .header-cta {
    min-height: 2.45rem;
    padding: 0 1rem;
    font-size: 1rem;
  }

  .auth-account,
  .auth-signout {
    font-size: 0.88rem;
  }
}

.site-nav > a:hover,
.site-nav > a:focus-visible,
.site-nav > .nav-item > a:hover,
.site-nav > .nav-item > a:focus-visible {
  border-color: var(--line);
  background-color: #f1f1f1;
}

.header-cta {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  min-height: 2.3rem;
  padding: 0 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-ink);
  background: var(--accent);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 0.5rem;
}

.auth-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-account,
.auth-signout {
  min-height: 2.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: #ffffff;
  text-decoration: none;
  font: inherit;
  font-size: 0.82rem;
  white-space: nowrap;
  font-weight: 600;
  cursor: pointer;
}

.auth-account {
  background: #f5f7fc;
  color: #1d293a;
}

.auth-signout {
  border-color: var(--line-strong);
}

.auth-account:hover,
.auth-account:focus-visible,
.auth-signout:hover,
.auth-signout:focus-visible {
  background: #f1f1f1;
}

.mobile-menu-toggle {
  display: none;
  min-height: 2.3rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0 0.9rem;
  background: #f4f4f4;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

main {
  margin-top: 1rem;
  display: grid;
  gap: 0.95rem;
}

.hero,
.dealer-hero,
.category-rail-section,
.manufacturer-section,
.inventory-section,
.research-section,
.checkout-section,
.account-section,
.sell-section,
.page-landing {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.page-landing {
  position: relative;
  overflow: hidden;
  padding: clamp(1rem, 2.2vw, 1.6rem);
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.2), transparent 38%),
    linear-gradient(120deg, #10213b 0%, #1d3f77 56%, #1f55a1 100%);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f6f9ff;
}

.page-landing-eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.9;
}

.page-landing h2 {
  margin: 0.35rem 0 0;
  line-height: 1.05;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #ffffff;
}

.page-landing p {
  margin: 0.55rem 0 0;
  max-width: 62ch;
  color: rgba(240, 245, 255, 0.94);
}

.page-landing-actions {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.page-landing-actions .btn-light {
  background: rgba(255, 255, 255, 0.96);
}

.hero {
  padding: clamp(1rem, 2.2vw, 1.6rem);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1rem;
  align-items: start;
}

.hero.hero-landing {
  position: relative;
  min-height: 620px;
  padding: clamp(1rem, 2.2vw, 1.35rem);
  grid-template-columns: minmax(320px, 430px) 1fr;
  align-items: stretch;
  overflow: hidden;
  background-color: #13253a;
  background-image:
    linear-gradient(
      100deg,
      rgba(11, 18, 33, 0.78) 0%,
      rgba(11, 18, 33, 0.38) 46%,
      rgba(11, 18, 33, 0.7) 100%
    ),
    url("https://images.unsplash.com/photo-1494976388531-d1058494cdd8?auto=format&fit=crop&w=2000&q=80");
  background-size: cover;
  background-position: center;
  border-color: rgba(255, 255, 255, 0.16);
}

@media (min-width: 1400px) {
  .index-page .hero.hero-landing {
    min-height: 680px;
    grid-template-columns: minmax(360px, 470px) 1fr;
  }
}

.hero.hero-landing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.2), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(0, 0, 0, 0.24), transparent 48%);
  pointer-events: none;
}

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

.landing-panel {
  align-self: start;
  min-width: 0;
  border: 1px solid rgba(220, 228, 242, 0.98);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 251, 255, 0.97));
  box-shadow:
    0 26px 44px -34px rgba(15, 23, 42, 0.68),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
  padding: 1.1rem 1.08rem 1.14rem;
}

.hero-landing .domain {
  color: #5b6473;
}

.hero-landing h1 {
  margin: 0.35rem 0 0;
  max-width: 11ch;
  line-height: 1.02;
  font-size: clamp(2rem, 4vw, 3.5rem);
  overflow-wrap: anywhere;
  word-break: normal;
}

.hero-landing .hero-copy {
  margin: 0.55rem 0 0.75rem;
  max-width: 42ch;
  color: #4d5562;
}

.hero-points {
  margin: 0 0 0.78rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.32rem;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: #344155;
  font-size: 0.84rem;
  font-weight: 500;
}

.hero-points li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #375bf3 0%, #7357de 100%);
  box-shadow: 0 0 0 2px rgba(73, 101, 205, 0.16);
}

.landing-tabs {
  margin: 0.74rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.34rem;
  background: linear-gradient(180deg, #f5f7fc, #eef2fa);
  border: 1px solid #d8e1f0;
  border-radius: 13px;
  padding: 0.26rem;
}

.landing-tab {
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  color: #344255;
  text-align: center;
  font-weight: 600;
  padding: 0.56rem 0.36rem;
  border-radius: 10px;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.landing-tab.is-active {
  color: #111827;
  background: #ffffff;
  box-shadow: 0 14px 20px -18px rgba(17, 24, 39, 0.55);
}

.landing-view {
  margin-top: 0.2rem;
}

.landing-view[hidden] {
  display: none !important;
}

.hero-landing .backend-note {
  margin: 0.65rem 0 0.3rem;
}

.hero-landing .location-tools {
  margin: 0 0 0.65rem;
}

.search-card.search-card-landing {
  padding: 0.8rem 0.78rem 0.82rem;
  border: 1px solid #d3def2;
  border-radius: 18px;
  background: linear-gradient(180deg, #f9fbff 0%, #edf3ff 100%);
  box-shadow:
    0 15px 24px -21px rgba(55, 80, 151, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.88) inset;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.search-card-landing h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.search-divider {
  margin: 0;
  padding: 0.18rem 0.2rem 0.74rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.66rem;
  font-weight: 700;
  color: #27303d;
  background: transparent;
}

.search-divider::before,
.search-divider::after {
  content: "";
  border-top: 1px solid #cad6eb;
}

.landing-search-grid {
  margin-top: 0;
  display: grid;
  gap: 0.62rem;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  position: relative;
  z-index: 1;
}

.search-card-landing.has-open-overlay .landing-search-grid {
  z-index: 6;
}

.search-card-landing .search-row {
  position: relative;
  z-index: 0;
  display: grid;
  gap: 0.24rem;
  padding: 0.66rem 0.9rem 0.72rem;
  border: 1px solid #cdd9ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  box-shadow:
    0 10px 18px -16px rgba(38, 56, 92, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.search-card-landing .search-row:focus-within {
  border-color: #6674f8;
  box-shadow:
    0 0 0 3px rgba(102, 116, 248, 0.14),
    0 11px 18px -14px rgba(39, 56, 97, 0.62);
  transform: translateY(-1px);
  z-index: 30;
}

.search-card-landing .search-row.is-open {
  z-index: 40;
}

.search-card-landing .field-label {
  font-size: 0.76rem;
  color: #60708a;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.search-card-landing .search-row input,
.search-card-landing .search-row select {
  min-height: 1.65rem;
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #0f172a;
  font-size: 1.07rem;
  font-weight: 700;
}

.search-card-landing .search-row select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #3655c9 50%),
    linear-gradient(135deg, #3655c9 50%, transparent 50%);
  background-position:
    calc(100% - 0.95rem) calc(50% + 0.1rem),
    calc(100% - 0.61rem) calc(50% + 0.1rem);
  background-size: 0.41rem 0.41rem, 0.41rem 0.41rem;
  background-repeat: no-repeat;
  padding-right: 1.55rem;
}

.search-card-landing .search-row input:focus-visible,
.search-card-landing .search-row select:focus-visible {
  outline: none;
}

.custom-select {
  position: relative;
  overflow: visible;
}

.search-card-landing .custom-select,
.manufacturer-picker .custom-select,
.sell-form .custom-select,
.inventory-page .search-card .custom-select {
  position: relative;
}

.custom-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.search-card-landing .custom-select-trigger,
.manufacturer-picker .custom-select-trigger,
.sell-form .custom-select-trigger,
.inventory-page .search-card .custom-select-trigger {
  width: 100%;
  border: none;
  padding: 0 1.55rem 0 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 1.07rem;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.custom-select.is-open {
  z-index: 1000;
}

.search-card-landing .custom-select-trigger {
  min-height: 1.65rem;
  font-weight: 700;
}

.manufacturer-picker .custom-select {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #ffffff;
  padding: 0 0.68rem;
}

.manufacturer-picker .custom-select:focus-within,
.sell-form .custom-select:focus-within,
.inventory-page .search-card .custom-select:focus-within {
  border-color: #6674f8;
  box-shadow: 0 0 0 3px rgba(102, 116, 248, 0.14);
}

.manufacturer-picker .custom-select-trigger,
.sell-form .custom-select-trigger,
.inventory-page .search-card .custom-select-trigger {
  min-height: 2.55rem;
  font-size: 1rem;
  font-weight: 600;
}

.sell-form .custom-select {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  padding: 0 0.68rem;
  box-shadow:
    0 10px 18px -16px rgba(38, 56, 92, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.inventory-page .search-card .custom-select {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #ffffff;
  padding: 0 0.68rem;
}

.search-card-landing .custom-select-trigger::before,
.manufacturer-picker .custom-select-trigger::before,
.sell-form .custom-select-trigger::before,
.inventory-page .search-card .custom-select-trigger::before {
  content: "";
  position: absolute;
  right: 0.84rem;
  top: 50%;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid #3655c9;
  border-bottom: 2px solid #3655c9;
  pointer-events: none;
}

.search-card-landing .custom-select-trigger::before,
.manufacturer-picker .custom-select-trigger::before,
.sell-form .custom-select-trigger::before,
.inventory-page .search-card .custom-select-trigger::before {
  transform: translateY(-65%) rotate(45deg);
}

.search-card-landing .custom-select-trigger[aria-expanded="true"]::before,
.manufacturer-picker .custom-select-trigger[aria-expanded="true"]::before,
.sell-form .custom-select-trigger[aria-expanded="true"]::before,
.inventory-page .search-card .custom-select-trigger[aria-expanded="true"]::before {
  transform: translateY(-35%) rotate(225deg);
}

.search-card-landing .custom-select-panel,
.manufacturer-picker .custom-select-panel,
.sell-form .custom-select-panel,
.inventory-page .search-card .custom-select-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.52rem);
  z-index: 1100;
  border: 1px solid #111111;
  border-radius: 12px;
  background: linear-gradient(180deg, #fcfdff 0%, #eef3ff 100%);
  box-shadow:
    0 0 0 1px rgba(17, 17, 17, 0.9),
    0 24px 36px -24px rgba(31, 47, 88, 0.72);
  padding: 0.55rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.48rem;
  max-height: min(320px, var(--custom-select-max-height, 320px));
  overflow: hidden;
  opacity: 1;
  pointer-events: auto;
}

.search-card-landing .search-row .custom-select-search,
.manufacturer-picker .custom-select-search,
.sell-form .custom-select-search,
.inventory-page .search-card .custom-select-search {
  min-height: 2.35rem;
  border: 1px solid #c7d4ea;
  border-radius: 9px;
  padding: 0 0.7rem;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
}

.search-card-landing .search-row .custom-select-search:focus-visible,
.manufacturer-picker .custom-select-search:focus-visible,
.sell-form .custom-select-search:focus-visible,
.inventory-page .search-card .custom-select-search:focus-visible {
  outline: 2px solid #3655c9;
  outline-offset: 1px;
}

.search-card-landing .custom-select-list,
.manufacturer-picker .custom-select-list,
.sell-form .custom-select-list,
.inventory-page .search-card .custom-select-list {
  margin-top: 0;
  max-height: none;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: grid;
  gap: 0.26rem;
  padding-right: 0.08rem;
}

.search-card-landing .custom-select-option,
.manufacturer-picker .custom-select-option,
.sell-form .custom-select-option,
.inventory-page .search-card .custom-select-option {
  border: 1px solid rgba(17, 17, 17, 0.28);
  border-radius: 8px;
  min-height: 2.1rem;
  padding: 0 0.68rem;
  background: #ffffff;
  color: #172033;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.search-card-landing .custom-select-option:hover,
.search-card-landing .custom-select-option:focus-visible,
.manufacturer-picker .custom-select-option:hover,
.manufacturer-picker .custom-select-option:focus-visible,
.sell-form .custom-select-option:hover,
.sell-form .custom-select-option:focus-visible,
.inventory-page .search-card .custom-select-option:hover,
.inventory-page .search-card .custom-select-option:focus-visible {
  border-color: #6e80f5;
  background: #eef2ff;
  outline: none;
}

.search-card-landing .custom-select-option.is-active,
.manufacturer-picker .custom-select-option.is-active,
.sell-form .custom-select-option.is-active,
.inventory-page .search-card .custom-select-option.is-active {
  border-color: #4d64ee;
  background: linear-gradient(135deg, #365af4 0%, #6c57dc 100%);
  color: #ffffff;
}

.search-card-landing .custom-select-empty,
.manufacturer-picker .custom-select-empty,
.sell-form .custom-select-empty,
.inventory-page .search-card .custom-select-empty {
  margin: 0;
  padding: 0.42rem 0.3rem;
  color: #56637a;
  font-size: 0.88rem;
}

:is(.consumer-sell-form, .seller-listing-form) .custom-select {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  padding: 0 0.68rem;
  box-shadow:
    0 10px 18px -16px rgba(38, 56, 92, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

:is(.consumer-sell-form, .seller-listing-form) .custom-select:focus-within {
  border-color: #6674f8;
  box-shadow: 0 0 0 3px rgba(102, 116, 248, 0.14);
}

:is(.consumer-sell-form, .seller-listing-form) .custom-select-trigger {
  width: 100%;
  min-height: 2.55rem;
  border: none;
  padding: 0 1.55rem 0 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  position: relative;
}

:is(.consumer-sell-form, .seller-listing-form) .custom-select-trigger::before {
  content: "";
  position: absolute;
  right: 0.84rem;
  top: 50%;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid #3655c9;
  border-bottom: 2px solid #3655c9;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

:is(.consumer-sell-form, .seller-listing-form) .custom-select-trigger[aria-expanded="true"]::before {
  transform: translateY(-35%) rotate(225deg);
}

:is(.consumer-sell-form, .seller-listing-form) .custom-select-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.52rem);
  z-index: 1100;
  border: 1px solid #111111;
  border-radius: 12px;
  background: linear-gradient(180deg, #fcfdff 0%, #eef3ff 100%);
  box-shadow:
    0 0 0 1px rgba(17, 17, 17, 0.9),
    0 24px 36px -24px rgba(31, 47, 88, 0.72);
  padding: 0.55rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.48rem;
  max-height: min(320px, var(--custom-select-max-height, 320px));
  overflow: hidden;
}

:is(.consumer-sell-form, .seller-listing-form) .custom-select-search {
  min-height: 2.35rem;
  border: 1px solid #c7d4ea;
  border-radius: 9px;
  padding: 0 0.7rem;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
}

:is(.consumer-sell-form, .seller-listing-form) .custom-select-search:focus-visible {
  outline: 2px solid #3655c9;
  outline-offset: 1px;
}

:is(.consumer-sell-form, .seller-listing-form) .custom-select-list {
  margin-top: 0;
  max-height: none;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: grid;
  gap: 0.26rem;
  padding-right: 0.08rem;
}

:is(.consumer-sell-form, .seller-listing-form) .custom-select-option {
  border: 1px solid rgba(17, 17, 17, 0.28);
  border-radius: 8px;
  min-height: 2.1rem;
  padding: 0 0.68rem;
  background: #ffffff;
  color: #172033;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

:is(.consumer-sell-form, .seller-listing-form) .custom-select-option:hover,
:is(.consumer-sell-form, .seller-listing-form) .custom-select-option:focus-visible {
  border-color: #6e80f5;
  background: #eef2ff;
  outline: none;
}

:is(.consumer-sell-form, .seller-listing-form) .custom-select-option.is-active {
  border-color: #4d64ee;
  background: linear-gradient(135deg, #365af4 0%, #6c57dc 100%);
  color: #ffffff;
}

:is(.consumer-sell-form, .seller-listing-form) .custom-select-empty {
  margin: 0;
  padding: 0.42rem 0.3rem;
  color: #56637a;
  font-size: 0.88rem;
}

.search-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.62rem;
  margin-top: 0.62rem;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  position: relative;
  z-index: 2;
}

.search-card-landing.has-open-overlay .search-split,
.search-card-landing.has-open-overlay .search-actions {
  z-index: 1;
}

.search-split .search-row {
  border: 1px solid #cdd9ef;
}

.search-card-landing .custom-select.is-open .custom-select-panel {
  top: calc(100% + 0.52rem);
  bottom: auto;
}

.search-card-landing .search-split .custom-select.is-open .custom-select-panel {
  top: calc(100% + 0.52rem);
  bottom: auto;
}

.search-card-landing .search-actions {
  margin-top: 0.78rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.62rem;
  padding: 0;
  border-top: none;
  background: transparent;
  position: relative;
  z-index: 1;
}

.search-card-landing .btn-dark {
  min-height: 2.92rem;
  border: none;
  background: linear-gradient(135deg, #2f57ff 0%, #7254e8 55%, #3ca5ff 100%);
  box-shadow: 0 12px 20px -16px rgba(44, 73, 168, 0.72);
}

.search-card-landing .btn-light {
  min-height: 2.92rem;
  border-color: #c7d4eb;
  background: linear-gradient(180deg, #ffffff 0%, #f2f6ff 100%);
}

.hero-stage {
  min-height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero-sponsor {
  max-width: 330px;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 14px;
  background: rgba(10, 15, 25, 0.7);
  color: #f7f8fb;
  font-size: 0.84rem;
  padding: 0.62rem 0.75rem;
  backdrop-filter: blur(3px);
}

.hero-sponsor p {
  margin: 0;
}

.hero-sponsor .sponsor-label {
  margin-bottom: 0.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #cad3f8;
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .index-page .hero.hero-landing {
    min-height: 560px;
    padding: 0.9rem;
    grid-template-columns: minmax(300px, 385px) 1fr;
  }

  .index-page .landing-panel {
    border-radius: 16px;
    padding: 0.86rem 0.88rem 0.9rem;
  }

  .index-page .hero-landing h1 {
    margin-top: 0.2rem;
    max-width: 10.5ch;
    font-size: clamp(1.85rem, 2.7vw, 2.65rem);
    line-height: 1.03;
  }

  .index-page .hero-landing .hero-copy {
    margin: 0.4rem 0 0.55rem;
    font-size: 1rem;
    line-height: 1.34;
  }

  .index-page .hero-points {
    margin-bottom: 0.55rem;
    gap: 0.22rem;
  }

  .index-page .hero-points li {
    font-size: 0.8rem;
  }

  .index-page .landing-tabs {
    margin-top: 0.52rem;
    padding: 0.22rem;
  }

  .index-page .landing-tab {
    padding: 0.48rem 0.32rem;
  }

  .index-page .hero-landing .backend-note {
    margin: 0.45rem 0 0.2rem;
    font-size: 0.8rem;
  }

  .index-page .hero-landing .location-tools {
    margin: 0 0 0.45rem;
    gap: 0.4rem 0.55rem;
  }

  .index-page .hero-landing .location-note {
    font-size: 0.8rem;
  }

  .index-page .search-card.search-card-landing {
    padding: 0.62rem 0.64rem 0.64rem;
    border-radius: 14px;
  }

  .index-page .search-divider {
    padding: 0.12rem 0.12rem 0.45rem;
    font-size: 0.95rem;
  }

  .index-page .landing-search-grid {
    gap: 0.42rem;
  }

  .index-page .search-card-landing .search-row {
    padding: 0.52rem 0.68rem 0.54rem;
    border-radius: 11px;
  }

  .index-page .search-card-landing .field-label {
    font-size: 0.7rem;
  }

  .index-page .search-card-landing .search-row input,
  .index-page .search-card-landing .search-row select,
  .index-page .search-card-landing .custom-select-trigger {
    min-height: 1.45rem;
    font-size: 0.97rem;
  }

  .index-page .search-split {
    margin-top: 0.44rem;
    gap: 0.44rem;
  }

  .index-page .search-card-landing .search-actions {
    margin-top: 0.5rem;
    gap: 0.45rem;
  }

  .index-page .search-card-landing .btn-dark,
  .index-page .search-card-landing .btn-light {
    min-height: 2.55rem;
  }

  .index-page .hero-sponsor {
    max-width: 260px;
    padding: 0.5rem 0.58rem;
    font-size: 0.76rem;
  }
}

.dealer-hero {
  padding: clamp(1rem, 2.2vw, 1.6rem);
}

.domain {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
}

h1 {
  margin: 0.55rem 0 0;
  max-width: 19ch;
  line-height: 1.03;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.hero-copy {
  margin: 0.9rem 0 1.2rem;
  max-width: 52ch;
  color: var(--muted);
}

.backend-note {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  color: #4d4d4d;
}

.location-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.8rem;
  margin: 0 0 0.9rem;
}

.location-tools .btn {
  min-height: 2.35rem;
}

.location-note {
  margin: 0;
  font-size: 0.82rem;
  color: #4d4d4d;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  min-height: 2.6rem;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
}

.btn-dark {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-light {
  background: #f4f4f4;
  color: var(--ink);
  border-color: var(--line-strong);
}

.search-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  padding: 0.95rem;
}

.search-card h2 {
  margin: 0;
  font-size: 1.1rem;
}

.search-grid {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.search-grid .search-row-full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.3;
  padding: 0 0.65rem;
}

.landing-sell-output {
  margin-top: 0.5rem;
}

input:focus-visible,
select:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 1px;
}

input::placeholder {
  color: #8b93a1;
  opacity: 1;
}

.search-actions {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.manufacturer-section,
.category-rail-section,
.inventory-section,
.checkout-section,
.account-section,
.sell-section,
.consumer-sell-section {
  padding: clamp(0.95rem, 2vw, 1.3rem);
}

.manufacturer-section,
.search-card-landing,
.manufacturer-picker,
.sell-form {
  overflow: visible;
}

.manufacturer-section,
.inventory-section,
.sell-section,
.consumer-sell-section {
  position: relative;
  z-index: 1;
}

.manufacturer-section:has(.custom-select.is-open),
.inventory-section:has(.custom-select.is-open),
.sell-section:has(.custom-select.is-open),
.consumer-sell-section:has(.custom-select.is-open) {
  z-index: 45;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}

.section-head p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.section-head.compact h2 {
  font-size: 1.12rem;
}

.manufacturer-picker {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.4rem;
  max-width: 420px;
}

.manufacturer-picker label {
  margin: 0;
}

.manufacturer-picker select {
  min-height: 2.7rem;
}

.selection-copy {
  margin: 0.75rem 0 0;
  min-height: 1.4rem;
  color: var(--muted);
}

.trending-grid {
  margin-top: 0.85rem;
}

.category-rail-section {
  padding: clamp(0.95rem, 2vw, 1.3rem);
}

.category-chip-row {
  margin-top: 0.72rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 0.16rem;
}

.category-status-note {
  margin: 0.55rem 0 0;
  color: #4f5b70;
  font-size: 0.9rem;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  border: 1px solid #d5d9e1;
  border-radius: 999px;
  background: #f2f4f8;
  color: #1a2539;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 0.92rem;
  cursor: pointer;
  text-decoration: none;
}

.category-chip.is-active {
  background: #101010;
  color: #ffffff;
  border-color: #101010;
}

.category-grid {
  margin-top: 0.72rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.62rem;
}

.category-empty-note {
  margin: 0;
  border: 1px dashed #cfd7e7;
  border-radius: 12px;
  background: #f8faff;
  color: #4a556a;
  padding: 1rem;
  grid-column: 1 / -1;
}

.category-feature-card,
.category-vehicle-card,
.category-empty-card {
  border: 1px solid #d8dde7;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.category-feature-card {
  grid-column: span 2;
  min-height: 252px;
  padding: 1rem;
  display: grid;
  align-content: end;
  gap: 0.55rem;
  background:
    radial-gradient(circle at 8% 12%, rgba(73, 99, 224, 0.18), transparent 55%),
    linear-gradient(165deg, #f6f8fe 0%, #eff3fb 100%);
}

.category-eyebrow {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b6780;
  font-weight: 700;
}

.category-feature-card h3 {
  margin: 0;
  font-size: 1.72rem;
  line-height: 1.02;
}

.category-feature-card p {
  margin: 0;
  color: #3a4559;
}

.category-support-copy {
  color: #5c6678 !important;
  font-size: 0.9rem;
}

.category-vehicle-card {
  display: grid;
  grid-template-rows: 132px 1fr;
}

.category-vehicle-media {
  display: block;
  position: relative;
  border-bottom: 1px solid #d9deea;
  background:
    linear-gradient(140deg, rgba(18, 28, 45, 0.78), rgba(40, 60, 100, 0.75));
}

.category-vehicle-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-vehicle-body {
  display: grid;
  align-content: start;
  gap: 0.42rem;
  padding: 0.7rem 0.75rem 0.78rem;
}

.category-vehicle-body h3 {
  margin: 0;
  font-size: 1rem;
}

.category-vehicle-price {
  margin: 0;
  color: #2d3648;
  font-weight: 600;
}

.category-shop-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 2.05rem;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 700;
  color: #111111;
  border: 1px solid #cfd6e4;
  background: #ffffff;
  padding: 0 0.76rem;
}

.category-shop-link:hover,
.category-shop-link:focus-visible {
  background: #eff3ff;
  border-color: #9fb0ef;
  outline: none;
}

.category-empty-card {
  grid-column: span 3;
  min-height: 252px;
  padding: 1rem;
  display: grid;
  align-content: center;
  gap: 0.72rem;
}

.inventory-preview-actions {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.inventory-spotlight {
  position: relative;
  margin-top: 0.2rem;
  min-height: 355px;
  border: 1px solid #cfd8eb;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  background: #0f1f3a;
}

.inventory-spotlight-media {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  background:
    linear-gradient(92deg, rgba(10, 24, 48, 0.84) 0%, rgba(10, 23, 45, 0.35) 42%, rgba(10, 23, 45, 0.72) 100%),
    url("https://images.unsplash.com/photo-1493238792000-8113da705763?auto=format&fit=crop&w=2200&q=80")
      center/cover no-repeat;
}

.inventory-spotlight-card {
  grid-column: 1;
  grid-row: 1;
  z-index: 2;
  width: min(430px, calc(100% - 2rem));
  margin: 1.05rem;
  border: 1px solid rgba(129, 159, 223, 0.55);
  border-radius: 16px;
  padding: 1rem;
  background: linear-gradient(165deg, rgba(12, 47, 117, 0.96), rgba(12, 63, 155, 0.92));
  color: #ffffff;
  box-shadow: 0 22px 36px -30px rgba(6, 15, 31, 0.8);
}

.inventory-spotlight-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 241, 255, 0.88);
  font-weight: 700;
}

.inventory-spotlight-card h2 {
  margin: 0.28rem 0 0;
  max-width: 12ch;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 0.98;
}

.inventory-spotlight-card h1 {
  margin: 0.28rem 0 0;
  max-width: 12ch;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 0.98;
}

.inventory-spotlight-subcopy {
  margin: 0.48rem 0 0;
  color: rgba(226, 236, 255, 0.92) !important;
  max-width: 35ch;
}

.inventory-finder-form {
  margin-top: 0.72rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.52rem;
}

.inventory-finder-form .inventory-finder-full {
  grid-column: 1 / -1;
}

.inventory-finder-form label {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(224, 235, 255, 0.9);
  font-weight: 600;
}

.inventory-finder-form input,
.inventory-finder-form select {
  min-height: 2.55rem;
  border: 1px solid rgba(164, 190, 236, 0.64);
  border-radius: 10px;
  background: rgba(7, 33, 82, 0.5);
  color: #ffffff;
  font-size: 1.02rem;
}

.inventory-finder-form input::placeholder {
  color: rgba(219, 231, 255, 0.72);
}

.inventory-finder-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.52rem;
}

.inventory-finder-actions .btn {
  width: 100%;
}

.inventory-finder-actions .btn-light {
  background: rgba(250, 252, 255, 0.95);
}

.inventory-spotlight-results {
  margin: 0.62rem 0 0;
  color: rgba(227, 237, 255, 0.94);
}

.inventory-spotlight-tagline {
  margin: 0;
  position: absolute;
  right: 1rem;
  bottom: 0.9rem;
  max-width: 31ch;
  padding: 0.52rem 0.66rem;
  border: 1px solid rgba(187, 202, 232, 0.35);
  border-radius: 11px;
  background: rgba(10, 18, 33, 0.56);
  color: #f5f7fd;
  font-size: 0.86rem;
}

.inventory-page .inventory-search-hero-section {
  padding-top: 0.8rem;
  padding-bottom: 0.75rem;
}

.inventory-page .inventory-spotlight {
  min-height: 430px;
}

.inventory-page .inventory-spotlight-card {
  width: min(450px, calc(100% - 2rem));
}

.inventory-page .inventory-landing-feature .inventory-spotlight-card {
  display: flex;
  flex-direction: column;
}

.inventory-page .inventory-manufacturer-directory {
  margin-top: 0.8rem;
}

.inventory-page .inventory-segment-panel {
  margin-top: 0.62rem;
  border: 1px solid #d6deeb;
  border-radius: 15px;
  padding: 0.82rem;
  background: #f8faff;
  box-shadow: none;
}

.inventory-page .inventory-segment-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.inventory-page .inventory-segment-column {
  min-height: 192px;
  border: 1px solid #d4dceb;
  border-radius: 10px;
  padding: 0.48rem;
  background: #ffffff;
}

.inventory-page .inventory-segment-column h2 {
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #203155;
}

.inventory-page .inventory-segment-column ul {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.34rem;
}

.inventory-page .inventory-segment-column a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  color: #10233d;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid #d9dfec;
  border-radius: 10px;
  min-height: 3rem;
  padding: 0.38rem 0.68rem;
  background: #ffffff;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.inventory-page .inventory-segment-column a:hover,
.inventory-page .inventory-segment-column a:focus-visible {
  background: #f4f7ff;
  border-color: #9fb3df;
  box-shadow: 0 10px 16px -14px rgba(31, 49, 87, 0.6);
  outline: none;
}

.inventory-brand-logo {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #c5d2e8;
  background: #f4f7ff;
}

.inventory-brand-logo-img {
  width: auto;
  max-width: 1.38rem;
  height: auto;
  max-height: 1.38rem;
  object-fit: contain;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}

.inventory-brand-name {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 0.68rem;
  color: #0f2345;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.inventory-page .inventory-segment-column a:hover .inventory-brand-logo-img,
.inventory-page .inventory-segment-column a:focus-visible .inventory-brand-logo-img {
  transform: scale(1.08);
  transition: transform 140ms ease;
}

.inventory-page .inventory-landing-form .inventory-finder-actions {
  grid-template-columns: 1fr;
}

.inventory-page .inventory-landing-footer {
  margin-top: 0.52rem;
  display: flex;
}

.inventory-page .inventory-landing-footer .btn {
  width: 100%;
}

.inventory-page .inventory-advanced-section {
  margin-top: 0.08rem;
  border: 1px solid #d6deeb;
  background: #f7f9fd;
}

.inventory-page .inventory-advanced-intro {
  border: 1px solid #d6deeb;
  background: linear-gradient(180deg, #f8fbff 0%, #edf3ff 100%);
}

.inventory-page .inventory-advanced-intro .section-head p {
  max-width: 62ch;
}

.inventory-page .inventory-advanced-intro .inventory-spotlight-eyebrow {
  color: #2f4f84;
}

.inventory-page .inventory-advanced-intro .inventory-spotlight-results {
  margin-top: 0.4rem;
  color: #243959;
}

.inventory-advanced-page .advanced-search-landing .inventory-spotlight {
  min-height: 450px;
}

.inventory-advanced-page .advanced-search-landing .inventory-spotlight-media {
  background:
    linear-gradient(92deg, rgba(10, 24, 48, 0.84) 0%, rgba(10, 23, 45, 0.34) 42%, rgba(10, 23, 45, 0.72) 100%),
    url("https://images.unsplash.com/photo-1542362567-b07e54358753?auto=format&fit=crop&w=2200&q=80")
      center/cover no-repeat;
}

.inventory-advanced-page .advanced-search-landing .inventory-spotlight-card {
  width: min(500px, calc(100% - 2rem));
}

.inventory-advanced-page .advanced-landing-actions {
  margin-top: 0.72rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.52rem;
}

.inventory-advanced-page .advanced-landing-actions .btn {
  width: 100%;
}

.inventory-advanced-page .inventory-advanced-section {
  margin-top: 0.7rem;
}

.inventory-page .inventory-advanced-section .search-card {
  margin-top: 0.7rem;
}

.inventory-page .inventory-advanced-section .search-subtitle {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.1;
  color: #0f1b2d;
}

.inventory-page .inventory-advanced-section .search-grid {
  margin-top: 0.72rem;
}

@media (max-width: 1220px) {
  .inventory-page .inventory-segment-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .inventory-page .inventory-segment-columns {
    grid-template-columns: 1fr;
  }
}

.inventory-preview-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.inventory-lists {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.inventory-block {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  padding: 0.8rem;
}

.block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.block-head h3 {
  margin: 0;
  font-size: 1.06rem;
}

.count-badge {
  min-width: 2rem;
  min-height: 1.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.83rem;
  color: var(--muted);
  background: #fff;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 0.65rem;
}

.vehicle-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
  display: grid;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.vehicle-card:hover {
  transform: translateY(-2px);
  border-color: #becbe7;
  box-shadow: 0 14px 22px -20px rgba(31, 44, 75, 0.62);
}

.vehicle-media {
  position: relative;
  overflow: hidden;
  min-height: 7rem;
  padding: 0.68rem 0.75rem;
  color: #fff;
  font-weight: 600;
  display: grid;
  align-content: space-between;
  gap: 0.52rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), transparent 46%),
    linear-gradient(165deg, #111827 0%, #334155 62%, #64748b 100%);
}

.hero-mobile-media,
.inventory-spotlight-media,
.vehicle-media,
.category-vehicle-media,
.seller-photo-thumb {
  position: relative;
  overflow: hidden;
}

.hero-mobile-media::after,
.inventory-spotlight-media::after {
  content: "To sponsor, contact support@udapx.com";
  position: absolute;
  right: 0.48rem;
  bottom: 0.42rem;
  z-index: 3;
  pointer-events: none;
  max-width: min(82%, 290px);
  padding: 0.16rem 0.42rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(7, 12, 22, 0.56);
  color: rgba(243, 246, 252, 0.92);
  font-size: clamp(0.56rem, 1.45vw, 0.72rem);
  font-weight: 600;
  line-height: 1.18;
  text-align: right;
  letter-spacing: 0.01em;
}

.picture-sponsor-note {
  margin: 0;
  position: absolute;
  right: 0.78rem;
  bottom: 0.72rem;
  z-index: 4;
  pointer-events: none;
  max-width: min(42ch, calc(100% - 2rem));
  padding: 0.22rem 0.52rem;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(6, 11, 22, 0.58);
  color: rgba(246, 249, 255, 0.94);
  font-size: clamp(0.58rem, 1.1vw, 0.76rem);
  font-weight: 600;
  line-height: 1.2;
  text-align: right;
}

.vehicle-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 13, 24, 0.22), rgba(8, 13, 24, 0.62));
  z-index: 1;
}

.vehicle-media > * {
  position: relative;
  z-index: 2;
}

.vehicle-media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.media-badge {
  justify-self: start;
  border-radius: 999px;
  padding: 0.18rem 0.52rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.media-badge.is-new {
  background: rgba(34, 197, 94, 0.26);
  border: 1px solid rgba(34, 197, 94, 0.58);
}

.media-badge.is-used {
  background: rgba(14, 165, 233, 0.24);
  border: 1px solid rgba(14, 165, 233, 0.52);
}

.media-name {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.28;
  letter-spacing: 0.03em;
}

.vehicle-body {
  padding: 0.72rem;
  display: grid;
  gap: 0.45rem;
}

.vehicle-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  align-items: start;
}

.vehicle-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.vehicle-title-link {
  color: inherit;
  text-decoration: none;
}

.vehicle-title-link:hover,
.vehicle-title-link:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.vehicle-price {
  margin: 0;
  font-weight: 700;
  font-size: 1.03rem;
  color: #0f172a;
}

.vehicle-meta,
.vehicle-dealer {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.dealer-name {
  color: #1f2937;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  background: #f7f7f7;
  color: #303030;
}

.card-actions {
  margin-top: 0.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.card-btn {
  min-height: 2.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.83rem;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.card-btn:hover,
.card-btn:focus-visible {
  border-color: #8ca0c9;
  background: #f8fbff;
  outline: none;
}

.card-btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: #0f0f0f;
}

.card-btn.is-on {
  background: #f0f0f0;
}

.vehicle-page .inventory-section.vehicle-detail-section {
  max-width: 860px;
  margin: 0 auto;
}

.vehicle-detail-card {
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  padding: 0.85rem;
  display: grid;
  gap: 0.5rem;
}

.vehicle-detail-facts {
  margin: 0.2rem 0 0;
}

.vehicle-detail-facts li {
  border-radius: 8px;
  background: #ffffff;
}

.vehicle-detail-card .panel-actions {
  flex-wrap: wrap;
}

.manufacturer-page .manufacturer-vehicles-section {
  margin-top: 0.88rem;
}

.manufacturer-page .page-landing.manufacturer-landing {
  padding: 1.35rem 1.5rem;
  background: #ffffff;
  border: 1px solid #d5ddea;
  color: #0f172a;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0.35rem;
  align-items: center;
}

.manufacturer-page .page-landing.manufacturer-landing .page-landing-eyebrow {
  grid-column: 2;
  margin: 0;
  color: #4d5c74;
}

.manufacturer-page .page-landing.manufacturer-landing h2 {
  grid-column: 2;
  margin: 0;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3rem);
}

.manufacturer-page .page-landing.manufacturer-landing p[data-manufacturer-subtitle] {
  grid-column: 2;
  margin: 0;
  color: #354154;
  max-width: 65ch;
}

.manufacturer-page .page-landing.manufacturer-landing .page-landing-actions {
  grid-column: 2;
  margin-top: 0.4rem;
}

.manufacturer-page .manufacturer-landing-logo-wrap {
  grid-column: 1;
  grid-row: 1 / span 4;
  width: 5rem;
  height: 5rem;
  margin: 0;
  border-radius: 16px;
  border: 1px solid #c8d6eb;
  background: #f3f7ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.manufacturer-page .manufacturer-landing-logo {
  max-width: 3rem;
  max-height: 3rem;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: none;
}

.manufacturer-vehicle-grid {
  margin-top: 0.72rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 0.72rem;
}

.manufacturer-vehicle-card {
  border: 1px solid #d2d8e5;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  display: grid;
  grid-template-rows: 156px 1fr;
  box-shadow: 0 12px 20px -22px rgba(13, 22, 39, 0.8);
}

.manufacturer-vehicle-media {
  position: relative;
  overflow: hidden;
  display: block;
  border-bottom: 1px solid #dce2ee;
  background: #0f1e35;
}

.manufacturer-vehicle-logo {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(196, 206, 227, 0.95);
  background: rgba(255, 255, 255, 0.94);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.manufacturer-vehicle-logo img {
  max-width: 1.3rem;
  max-height: 1.3rem;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.manufacturer-vehicle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.manufacturer-vehicle-body {
  padding: 0.7rem;
  display: grid;
  gap: 0.42rem;
}

.manufacturer-vehicle-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
}

.manufacturer-vehicle-top h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.2;
}

.manufacturer-vehicle-price {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.manufacturer-vehicle-meta,
.manufacturer-vehicle-dealer {
  margin: 0;
  color: #4b5568;
  font-size: 0.82rem;
}

.manufacturer-vehicle-actions {
  margin-top: 0.22rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.manufacturer-vehicle-actions .btn {
  justify-content: center;
}

.manufacturer-vehicle-actions .manufacturer-save-btn.is-on {
  background: #e8eefc;
  border-color: #99acda;
  color: #18335f;
  font-weight: 700;
}

@media (max-width: 760px) {
  .manufacturer-page .page-landing.manufacturer-landing {
    grid-template-columns: 1fr;
    row-gap: 0.6rem;
    padding: 1rem;
  }

  .manufacturer-page .manufacturer-landing-logo-wrap,
  .manufacturer-page .page-landing.manufacturer-landing .page-landing-eyebrow,
  .manufacturer-page .page-landing.manufacturer-landing h2,
  .manufacturer-page .page-landing.manufacturer-landing p[data-manufacturer-subtitle],
  .manufacturer-page .page-landing.manufacturer-landing .page-landing-actions {
    grid-column: 1;
  }

  .manufacturer-page .manufacturer-landing-logo-wrap {
    grid-row: auto;
    width: 4.25rem;
    height: 4.25rem;
  }

  .manufacturer-vehicle-actions {
    grid-template-columns: 1fr;
  }
}

.empty-state {
  margin: 0;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  padding: 0.8rem;
  color: var(--muted);
  background: #fff;
}

.empty-state-rich {
  display: grid;
  gap: 0.65rem;
}

.empty-state-rich p {
  margin: 0;
}

.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.empty-state-actions .btn {
  min-height: 2.25rem;
  padding: 0 0.75rem;
}

.research-section {
  padding: 0.95rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.tool-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  padding: 0.8rem;
  min-height: 100%;
}

.tool-card-expanded {
  min-height: 430px;
  display: grid;
  align-content: start;
}

.tool-card-expanded .stack-list {
  max-height: 360px;
  overflow: auto;
  padding-right: 0.15rem;
}

.tool-card-expanded .compare-table-wrap {
  min-height: 320px;
  max-height: 360px;
  overflow: auto;
}

.stack-list {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.5rem;
}

.saved-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.55rem;
  display: grid;
  gap: 0.45rem;
}

.saved-title {
  margin: 0;
  font-size: 0.92rem;
}

.saved-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.saved-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.saved-actions button {
  min-height: 1.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font: inherit;
  font-size: 0.78rem;
  background: #fff;
  padding: 0 0.55rem;
  cursor: pointer;
}

.saved-actions button.is-on {
  border-color: #111;
  background: #111;
  color: #fff;
}

.saved-compare-strip {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  padding: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.saved-compare-copy {
  margin: 0;
  color: #2f3b53;
  font-size: 0.8rem;
  font-weight: 600;
}

.saved-compare-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.saved-compare-actions button {
  min-height: 1.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  font: inherit;
  font-size: 0.76rem;
  padding: 0 0.55rem;
  cursor: pointer;
}

.saved-compare-actions button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.compare-table-wrap {
  margin-top: 0.6rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  border: 1px solid var(--line);
  padding: 0.45rem 0.52rem;
  font-size: 0.8rem;
}

th {
  background: #f4f4f4;
}

.estimator-form {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.45rem;
}

.estimator-output {
  margin: 0.65rem 0 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.56rem;
  color: #353535;
  min-height: 2.3rem;
}

.inventory-estimator-card {
  margin-top: 0.85rem;
  padding: 0.95rem;
}

@media (min-width: 900px) {
  .inventory-estimator-card .estimator-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
  }
}

@media (max-width: 900px) {
  .tool-card-expanded .stack-list,
  .tool-card-expanded .compare-table-wrap {
    max-height: none;
    min-height: 0;
  }
}

.checkout-layout {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 0.85rem;
}

.checkout-rail {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  padding: 0.8rem;
}

.udapx-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.52rem;
}

.udapx-flow li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.58rem;
  font-size: 0.82rem;
  color: #3b3b3b;
  background: #fff;
}

.checkout-workspace {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  padding: 0.8rem;
}

.stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.35rem;
}

.stepper li {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.42rem;
  text-align: center;
  font-size: 0.72rem;
  color: #575757;
  background: #fff;
}

.stepper li.active {
  border-color: #111;
  color: #fff;
  background: #111;
}

.stepper li.done {
  border-color: #212121;
  color: #212121;
  background: #eaeaea;
}

.step-panel {
  margin-top: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.8rem;
  display: none;
}

.step-panel.is-active {
  display: block;
}

.step-panel h3 {
  margin: 0;
  font-size: 1.02rem;
}

.step-copy {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.field-grid {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.trade-grid {
  margin-top: 0.62rem;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #313131;
  margin-top: 0.55rem;
}

.checkbox input {
  width: 1rem;
  height: 1rem;
  min-height: 1rem;
  margin: 0;
}

.panel-actions {
  margin-top: 0.65rem;
  display: flex;
  gap: 0.5rem;
}

.inline-output {
  margin: 0.6rem 0 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9f9f9;
  padding: 0.52rem;
  min-height: 2.2rem;
  color: #3c3c3c;
}

.ai-mode-copy {
  margin-top: 0.55rem;
  font-size: 0.86rem;
}

.checkout-section.ai-active {
  border-color: #6d7cf9;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  box-shadow:
    0 18px 36px -28px rgba(54, 72, 214, 0.45),
    0 0 0 1px rgba(109, 124, 249, 0.18) inset;
}

.checkout-section.ai-active .checkout-workspace {
  border-color: #b9c3ff;
}

.lender-results {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.5rem;
}

.lender-option {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.55rem;
  display: grid;
  gap: 0.3rem;
}

.lender-option label {
  color: #2f2f2f;
}

.status-message {
  margin: 0.6rem 0 0;
  min-height: 1.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.status-message.error {
  color: var(--danger);
}

.status-message.success {
  color: var(--success);
}

.checkout-controls {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.checkout-complete {
  margin-top: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.85rem;
}

.checkout-complete h3 {
  margin: 0;
}

.checkout-complete p {
  margin: 0.5rem 0 0;
  color: #333;
}

.subscriptions {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.subscriptions button {
  min-height: 2.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  padding: 0 0.65rem;
  cursor: pointer;
}

.subscriptions button.active {
  background: #111;
  color: #fff;
}

.sell-section {
  display: grid;
  gap: 0.8rem;
}

.consumer-sell-section {
  display: grid;
  gap: 0.8rem;
}

.consumer-sell-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.85fr);
  gap: 0.8rem;
  align-items: start;
}

.consumer-sell-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  align-items: end;
}

.consumer-sell-form .btn {
  width: 100%;
}

.consumer-sell-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(80, 114, 255, 0.12), transparent 42%),
    linear-gradient(180deg, #fbfcff 0%, #f3f7ff 100%);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.consumer-sell-card h3 {
  margin: 0.35rem 0 0;
  font-size: 1.35rem;
}

.consumer-sell-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.consumer-sell-card .btn {
  margin-top: 0.9rem;
}

.seller-listing-section {
  margin-top: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(80, 114, 255, 0.1), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  padding: 1rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.75rem;
}

.seller-listing-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  align-items: end;
}

.seller-listing-form .seller-span-2 {
  grid-column: span 2;
}

.seller-listing-form textarea {
  min-height: 6rem;
  resize: vertical;
}

.seller-listing-form .btn {
  width: 100%;
}

.seller-photo-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.seller-photo-thumb {
  border: 1px solid #cfd7e7;
  border-radius: 10px;
  overflow: hidden;
  background: #eef3fb;
  aspect-ratio: 4 / 3;
}

.seller-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.seller-photo-empty {
  margin: 0;
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.9rem;
}

.sell-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.6rem;
  align-items: end;
}

.sell-form .sell-span-3 {
  grid-column: 1 / -1;
}

.sell-form input[type="file"],
.seller-listing-form input[type="file"] {
  width: 100%;
  min-height: 2.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.24rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  color: #1f2b42;
  font: inherit;
  font-size: 0.95rem;
}

.sell-form input[type="file"]:focus-visible,
.seller-listing-form input[type="file"]:focus-visible {
  outline: 2px solid rgba(54, 90, 244, 0.28);
  outline-offset: 1px;
}

.sell-form input[type="file"]::file-selector-button,
.seller-listing-form input[type="file"]::file-selector-button {
  min-height: 2.05rem;
  border: 1px solid #4d64ee;
  border-radius: 8px;
  padding: 0 0.78rem;
  margin-right: 0.56rem;
  background: linear-gradient(135deg, #365af4 0%, #6c57dc 100%);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sell-form input[type="file"]::file-selector-button:hover,
.seller-listing-form input[type="file"]::file-selector-button:hover {
  filter: brightness(1.04);
}

.sell-form input[type="file"]::-webkit-file-upload-button,
.seller-listing-form input[type="file"]::-webkit-file-upload-button {
  min-height: 2.05rem;
  border: 1px solid #4d64ee;
  border-radius: 8px;
  padding: 0 0.78rem;
  margin-right: 0.56rem;
  background: linear-gradient(135deg, #365af4 0%, #6c57dc 100%);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.account-form {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  align-items: end;
}

.account-form .account-terms {
  margin-top: 0;
  grid-column: span 2;
}

.account-form .btn {
  width: 100%;
  grid-column: span 2;
}

.profile-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.profile-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0.85rem;
}

.profile-card h2 {
  margin: 0;
  font-size: 1.08rem;
}

.profile-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.profile-meta {
  margin: 0.65rem 0 0;
  display: grid;
  gap: 0.45rem;
}

.profile-row {
  margin: 0;
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 0.5rem;
  align-items: start;
}

.profile-row dt {
  margin: 0;
  color: var(--muted);
}

.profile-row dd {
  margin: 0;
  font-weight: 600;
  color: #192235;
  word-break: break-word;
}

.profile-actions {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.customer-overlay-open {
  overflow: hidden;
}

.account-overlay {
  position: fixed;
  inset: 0;
  display: none;
  padding: clamp(0.7rem, 2.2vw, 1.1rem);
  z-index: 70;
}

.account-overlay.open {
  display: grid;
  place-items: center;
}

.account-overlay-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(12, 17, 29, 0.56);
  cursor: pointer;
}

.account-overlay-panel {
  position: relative;
  width: min(1060px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 32px 60px -30px rgba(14, 21, 39, 0.75);
  padding: clamp(0.95rem, 2.1vw, 1.3rem);
  z-index: 1;
}

.account-overlay-panel .section-head {
  padding-right: 4.8rem;
}

.account-overlay-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  min-height: 2.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  padding: 0 0.75rem;
  cursor: pointer;
}

.account-overlay-close:hover,
.account-overlay-close:focus-visible {
  background: #f5f7fb;
  outline: none;
}

.account-mode-toggle {
  margin-top: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.24rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f5f7fc;
}

.account-mode-btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  line-height: 1;
  padding: 0 0.92rem;
  cursor: pointer;
}

.account-mode-btn.is-active {
  background: #0f172b;
  border-color: #0f172b;
  color: #fff;
}

.account-mode-btn:focus-visible {
  outline: 2px solid #4d64ee;
  outline-offset: 1px;
}

.account-overlay-pane {
  margin-top: 0.68rem;
}

.account-overlay-pane[hidden] {
  display: none !important;
}

.account-form-login {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sell-form button {
  width: 100%;
}

.vehicle-drawer {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 60;
}

.vehicle-drawer.open {
  display: block;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(490px, 94vw);
  height: 100%;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 48px -34px rgba(0, 0, 0, 0.8);
  padding: 0.95rem;
  overflow-y: auto;
}

.drawer-close {
  min-height: 2.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  padding: 0 0.7rem;
  font: inherit;
  cursor: pointer;
}

.drawer-body {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.55rem;
}

.drawer-body h3 {
  margin: 0;
}

.drawer-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.drawer-facts li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.48rem 0.55rem;
  background: #f9f9f9;
  font-size: 0.88rem;
}

.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.site-footer {
  margin-top: 1rem;
  padding: 0.9rem 0.2rem;
  color: #595959;
  display: flex;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1120px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-feature-card {
    grid-column: span 3;
  }

  .category-empty-card {
    grid-column: span 3;
  }

  .research-section {
    grid-template-columns: 1fr 1fr;
  }

  .sell-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .consumer-sell-layout {
    grid-template-columns: 1fr;
  }

  .consumer-sell-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-listing-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-photo-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-nav .nav-dropdown {
    display: grid;
  }

  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-nav {
    justify-content: center;
  }

  .auth-status {
    justify-self: center;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero.hero-landing {
    grid-template-columns: 1fr;
    min-height: auto;
    background-image: none;
    background-color: #eef2f8;
    border-color: var(--line);
    background-position: 60% center;
  }

  .hero.hero-landing::before {
    display: none;
  }

  .landing-panel {
    max-width: none;
  }

  .hero-stage {
    min-height: 140px;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .stepper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) and (pointer: coarse) {
  .site-nav .nav-dropdown {
    display: none !important;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
    line-height: 1.45;
  }

  p,
  li,
  label,
  .location-note,
  .backend-note,
  .selection-copy,
  .category-status-note {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  h1 {
    font-size: clamp(2.2rem, 10vw, 2.6rem);
  }

  input,
  select,
  textarea,
  .custom-select-trigger,
  .custom-select-search {
    font-size: 16px !important;
  }

  .inventory-spotlight {
    min-height: 0;
  }

  .inventory-spotlight-card {
    width: calc(100% - 1rem);
    margin: 0.5rem;
    padding: 0.78rem;
  }

  .inventory-spotlight-tagline {
    display: none;
  }

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

  .inventory-finder-actions {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: 100%;
    padding: 0 0.55rem 1.1rem;
  }

  .site-header {
    margin-top: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    border-radius: 0 0 16px 16px;
    width: 100%;
    grid-template-columns: 1fr auto;
    justify-items: stretch;
    text-align: left;
    padding: 0.72rem 0.74rem;
    gap: 0.55rem;
  }

  .brand {
    justify-self: start;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
  }

  .site-nav,
  .header-actions .header-cta {
    display: none;
  }

  .site-header.menu-open .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-column: 1 / -1;
    width: 100%;
    gap: 0.35rem;
    padding-top: 0.5rem;
  }

  .site-header.menu-open .site-nav > a,
  .site-header.menu-open .site-nav > .nav-item > a {
    padding: 0.5rem 0.45rem;
    text-align: center;
    border-color: var(--line);
    background: #f5f5f5;
  }

  .site-header.menu-open .header-actions {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-header.menu-open .header-actions .header-cta {
    display: inline-flex;
    width: 100%;
    margin-top: 0.35rem;
  }

  .site-header .header-actions {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .site-header .auth-status {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  main {
    margin-top: 0.72rem;
    gap: 0.72rem;
  }

  .hero,
  .dealer-hero,
  .category-rail-section,
  .manufacturer-section,
  .inventory-section,
  .research-section,
  .checkout-section,
  .account-section,
  .sell-section,
  .consumer-sell-section {
    border-radius: 14px;
  }

  .research-section {
    grid-template-columns: 1fr;
  }

  .search-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

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

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .account-form .account-terms,
  .account-form .btn {
    grid-column: span 1;
  }

  .account-overlay {
    padding: 0.35rem;
  }

  .account-overlay-panel {
    width: 100%;
    max-height: 95vh;
    border-radius: 14px;
  }

  .account-overlay-panel .section-head {
    padding-right: 0;
  }

  .account-overlay-close {
    position: static;
    margin-left: auto;
    margin-bottom: 0.55rem;
    display: inline-flex;
    align-items: center;
  }

  .account-mode-toggle {
    width: 100%;
  }

  .account-mode-btn {
    flex: 1;
    justify-content: center;
  }

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

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

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

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

  .index-page .hero.hero-landing {
    grid-template-columns: 1fr;
    min-height: auto;
    background-image: none;
    background-color: #edf1f7;
    border: 1px solid #d0daeb;
    box-shadow: 0 14px 22px -20px rgba(31, 44, 75, 0.45);
    padding: 0.62rem;
    border-radius: 14px;
    background-position: center top;
  }

  .index-page .hero.hero-landing::before {
    display: none;
  }

  .index-page .landing-panel {
    width: 100%;
    max-width: none;
    border: 1px solid #d4dce9;
    border-radius: 10px;
    box-shadow: none;
    background: #ffffff;
    padding: 0.72rem 0.7rem 0.76rem;
  }

  .index-page .hero-landing h1 {
    max-width: none;
    font-size: clamp(2rem, 10vw, 2.45rem);
  }

  .index-page .hero-landing .hero-copy {
    margin-bottom: 0.65rem;
  }

  .index-page .hero-points {
    margin-bottom: 0.62rem;
  }

  .index-page .hero-stage {
    display: none;
  }

  .index-page .search-card.search-card-landing {
    padding: 0.62rem 0.6rem 0.66rem;
    border-radius: 10px;
    border: 1px solid #d5ddea;
    background: #ffffff;
    box-shadow: none;
  }

  .index-page .landing-search-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .index-page .landing-search-grid .search-row:last-child {
    grid-column: auto;
  }

  .index-page .search-card-landing .search-row {
    padding: 0.58rem 0.7rem 0.62rem;
    border-radius: 10px;
    border: 1px solid #d6ddea;
    background: #ffffff;
    box-shadow: none;
  }

  .index-page .search-card-landing .search-row input,
  .index-page .search-card-landing .search-row select,
  .index-page .search-card-landing .custom-select-trigger {
    min-height: 2rem;
    font-size: 1.02rem;
  }

  .index-page .search-card-landing .search-actions {
    margin-top: 0.65rem;
    gap: 0.5rem;
    grid-template-columns: 1fr;
  }

  .index-page .trending-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(82vw, 82vw);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    gap: 0.58rem;
    padding: 0 0.08rem 0.32rem;
  }

  .index-page .trending-grid .vehicle-card {
    scroll-snap-align: start;
    min-width: 0;
  }

  .index-page .category-grid {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    gap: 0.58rem;
    padding: 0 0.08rem 0.32rem;
  }

  .index-page .category-grid > article {
    flex: 0 0 82vw;
    max-width: 82vw;
    min-width: 82vw;
    scroll-snap-align: start;
  }

  .index-page .category-feature-card {
    min-height: 228px;
  }

  .index-page .category-vehicle-card {
    grid-template-rows: 150px 1fr;
  }

  .index-page .inventory-preview-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .index-page .inventory-preview-actions .btn {
    width: 100%;
  }

  .index-page .inventory-block {
    padding: 0.62rem;
  }

  .index-page .vehicle-grid {
    grid-template-columns: 1fr;
  }

  .index-page .vehicle-top {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .index-page .card-actions {
    grid-template-columns: 1fr 1fr;
  }

  .index-page .vehicle-meta,
  .index-page .vehicle-dealer {
    font-size: 0.9rem;
  }

  .index-page .tag {
    font-size: 0.78rem;
  }

  .index-page .card-btn {
    min-height: 2.25rem;
    font-size: 0.9rem;
  }
}

body.mobile-viewport .research-section {
  grid-template-columns: 1fr;
}

body.mobile-viewport .search-grid,
body.mobile-viewport .field-grid {
  grid-template-columns: 1fr;
}

body.mobile-viewport .account-form {
  grid-template-columns: 1fr;
}

body.mobile-viewport .profile-grid {
  grid-template-columns: 1fr;
}

body.mobile-viewport .profile-row {
  grid-template-columns: 1fr;
  gap: 0.2rem;
}

body.mobile-viewport .account-form .account-terms,
body.mobile-viewport .account-form .btn {
  grid-column: span 1;
}

body.mobile-viewport .account-overlay {
  padding: 0.35rem;
}

body.mobile-viewport .account-overlay-panel {
  width: 100%;
  max-height: 95vh;
  border-radius: 14px;
}

body.mobile-viewport .account-overlay-panel .section-head {
  padding-right: 0;
}

body.mobile-viewport .account-overlay-close {
  position: static;
  margin-left: auto;
  margin-bottom: 0.55rem;
  display: inline-flex;
  align-items: center;
}

body.mobile-viewport .account-mode-toggle {
  width: 100%;
}

body.mobile-viewport .account-mode-btn {
  flex: 1;
  justify-content: center;
}

body.mobile-viewport .account-form-login {
  grid-template-columns: 1fr;
}

body.mobile-viewport .sell-form,
body.mobile-viewport .consumer-sell-form,
body.mobile-viewport .seller-listing-form {
  grid-template-columns: 1fr;
}

body.mobile-viewport .seller-listing-form .seller-span-2 {
  grid-column: span 1;
}

body.mobile-viewport .seller-photo-preview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.mobile-viewport .page-shell {
  width: 100%;
  padding: 0 0.55rem 1.1rem;
}

body.mobile-viewport .site-header {
  margin-top: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  border-radius: 0 0 16px 16px;
  width: 100%;
  grid-template-columns: 1fr auto;
  justify-items: stretch;
  text-align: left;
  padding: 0.72rem 0.74rem;
  gap: 0.55rem;
}

body.mobile-viewport .brand {
  justify-self: start;
}

body.mobile-viewport .mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
}

body.mobile-viewport .site-nav,
body.mobile-viewport .header-actions .header-cta {
  display: none;
}

body.mobile-viewport .site-header.menu-open .site-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-column: 1 / -1;
  width: 100%;
  gap: 0.35rem;
  padding-top: 0.5rem;
}

body.mobile-viewport .site-header.menu-open .site-nav > a,
body.mobile-viewport .site-header.menu-open .site-nav > .nav-item > a {
  padding: 0.5rem 0.45rem;
  text-align: center;
  border-color: var(--line);
  background: #f5f5f5;
}

body.mobile-viewport .site-nav .nav-dropdown {
  display: none !important;
}

body.mobile-viewport .site-header.menu-open .header-actions {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
}

body.mobile-viewport .site-header.menu-open .header-actions .header-cta {
  display: inline-flex;
  width: 100%;
  margin-top: 0.35rem;
}

body.mobile-viewport .site-header .header-actions {
  grid-column: 1 / -1;
  justify-self: stretch;
  justify-content: flex-end;
  flex-wrap: wrap;
}

body.mobile-viewport .site-header .auth-status {
  justify-content: flex-end;
  flex-wrap: wrap;
}

body.mobile-viewport main {
  margin-top: 0.72rem;
  gap: 0.72rem;
}

body.mobile-viewport .hero,
body.mobile-viewport .dealer-hero,
body.mobile-viewport .category-rail-section,
body.mobile-viewport .manufacturer-section,
body.mobile-viewport .inventory-section,
body.mobile-viewport .research-section,
body.mobile-viewport .checkout-section,
body.mobile-viewport .account-section,
body.mobile-viewport .sell-section,
body.mobile-viewport .consumer-sell-section {
  border-radius: 14px;
}

body.mobile-viewport.index-page .hero.hero-landing {
  grid-template-columns: 1fr;
  min-height: auto;
  background-image: none;
  background-color: #edf1f7;
  border: 1px solid #d0daeb;
  box-shadow: 0 14px 22px -20px rgba(31, 44, 75, 0.45);
  padding: 0.62rem;
  border-radius: 14px;
  background-position: center top;
}

body.mobile-viewport.index-page .hero.hero-landing::before {
  display: none;
}

body.mobile-viewport.index-page .landing-panel {
  width: 100%;
  max-width: none;
  border: 1px solid #d4dce9;
  border-radius: 10px;
  box-shadow: none;
  background: #ffffff;
  padding: 0.72rem 0.7rem 0.76rem;
}

body.mobile-viewport.index-page .hero-landing h1 {
  max-width: none;
  font-size: clamp(2rem, 10vw, 2.45rem);
}

body.mobile-viewport.index-page .hero-landing .hero-copy {
  margin-bottom: 0.65rem;
}

body.mobile-viewport.index-page .hero-points {
  margin-bottom: 0.62rem;
}

body.mobile-viewport.index-page .hero-stage {
  display: none;
}

body.mobile-viewport.index-page .search-card.search-card-landing {
  padding: 0.62rem 0.6rem 0.66rem;
  border-radius: 10px;
  border: 1px solid #d5ddea;
  background: #ffffff;
  box-shadow: none;
}

body.mobile-viewport.index-page .landing-search-grid {
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

body.mobile-viewport.index-page .landing-search-grid .search-row:last-child {
  grid-column: auto;
}

body.mobile-viewport.index-page .search-card-landing .search-row {
  padding: 0.58rem 0.7rem 0.62rem;
  border-radius: 10px;
  border: 1px solid #d6ddea;
  background: #ffffff;
  box-shadow: none;
}

body.mobile-viewport.index-page .search-card-landing .search-row input,
body.mobile-viewport.index-page .search-card-landing .search-row select,
body.mobile-viewport.index-page .search-card-landing .custom-select-trigger {
  min-height: 2rem;
  font-size: 1.02rem;
}

body.mobile-viewport.index-page .search-card-landing .search-actions {
  margin-top: 0.65rem;
  gap: 0.5rem;
  grid-template-columns: 1fr;
}

body.mobile-viewport.index-page .trending-grid {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(82vw, 82vw);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  gap: 0.58rem;
  padding: 0 0.08rem 0.32rem;
}

body.mobile-viewport.index-page .trending-grid .vehicle-card {
  scroll-snap-align: start;
  min-width: 0;
}

body.mobile-viewport.index-page .category-grid {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  gap: 0.58rem;
  padding: 0 0.08rem 0.32rem;
}

body.mobile-viewport.index-page .category-grid > article {
  flex: 0 0 82vw;
  max-width: 82vw;
  min-width: 82vw;
  scroll-snap-align: start;
}

body.mobile-viewport.index-page .category-grid > .category-empty-note {
  flex: 0 0 100%;
  max-width: 100%;
  min-width: 100%;
}

body.mobile-viewport.index-page .category-feature-card {
  min-height: 228px;
}

body.mobile-viewport.index-page .category-vehicle-card {
  grid-template-rows: 150px 1fr;
}

body.mobile-viewport.index-page .inventory-preview-actions {
  flex-direction: column;
  align-items: stretch;
}

body.mobile-viewport.index-page .inventory-preview-actions .btn {
  width: 100%;
}

body.mobile-viewport.index-page .inventory-block {
  padding: 0.62rem;
}

body.mobile-viewport.index-page .vehicle-grid,
body.mobile-viewport .card-actions {
  grid-template-columns: 1fr;
}

body.mobile-viewport.index-page .vehicle-meta,
body.mobile-viewport.index-page .vehicle-dealer {
  font-size: 0.9rem;
}

body.mobile-viewport.index-page .tag {
  font-size: 0.78rem;
}

body.mobile-viewport.index-page .card-btn {
  min-height: 2.25rem;
  font-size: 0.9rem;
}

body.mobile-viewport .search-split {
  grid-template-columns: 1fr;
}

body.mobile-viewport .search-split .search-row {
  border-right: none;
}

body.mobile-viewport .search-split .search-row + .search-row {
  border-top: none;
}

body.mobile-viewport .stepper {
  grid-template-columns: 1fr 1fr;
}

body.mobile-viewport {
  font-size: 17px;
  line-height: 1.45;
  max-width: 100%;
  overflow-x: hidden;
}

body.mobile-viewport .page-shell {
  max-width: 100%;
  overflow-x: hidden;
}

body.mobile-viewport .hero.hero-landing,
body.mobile-viewport .landing-panel,
body.mobile-viewport .search-card.search-card-landing,
body.mobile-viewport .search-card-landing .search-row,
body.mobile-viewport .search-card-landing .search-split,
body.mobile-viewport .search-card-landing .search-actions,
body.mobile-viewport .site-header,
body.mobile-viewport .location-note {
  min-width: 0;
  max-width: 100%;
}

body.mobile-viewport p,
body.mobile-viewport li,
body.mobile-viewport label,
body.mobile-viewport .location-note,
body.mobile-viewport .backend-note,
body.mobile-viewport .selection-copy,
body.mobile-viewport .category-status-note {
  font-size: 0.95rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-shell {
    max-width: 100%;
    overflow-x: hidden;
  }
}

body.mobile-viewport input,
body.mobile-viewport select,
body.mobile-viewport textarea,
body.mobile-viewport .custom-select-trigger,
body.mobile-viewport .custom-select-search {
  font-size: 16px !important;
}

@media (max-width: 560px) {
  .search-card-landing .search-actions {
    grid-template-columns: 1fr;
  }

  .index-page .landing-search-grid {
    grid-template-columns: 1fr;
  }

  .index-page .landing-search-grid .search-row:last-child {
    grid-column: auto;
  }

  .search-split {
    grid-template-columns: 1fr;
  }

  .search-split .search-row {
    border-right: none;
  }

  .search-split .search-row + .search-row {
    border-top: none;
  }

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

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

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

  .stepper {
    grid-template-columns: 1fr 1fr;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero,
  .dealer-hero,
  .category-rail-section,
  .manufacturer-section,
  .inventory-section,
  .research-section,
  .checkout-section,
  .account-section,
  .sell-section {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 230ms ease, transform 230ms ease;
  }

  .is-hydrated .hero,
  .is-hydrated .dealer-hero,
  .is-hydrated .category-rail-section,
  .is-hydrated .manufacturer-section,
  .is-hydrated .inventory-section,
  .is-hydrated .research-section,
  .is-hydrated .checkout-section,
  .is-hydrated .account-section,
  .is-hydrated .sell-section {
    opacity: 1;
    transform: none;
  }

  .is-hydrated .manufacturer-section {
    transition-delay: 45ms;
  }

  .is-hydrated .category-rail-section {
    transition-delay: 62ms;
  }

  .is-hydrated .inventory-section {
    transition-delay: 80ms;
  }

  .is-hydrated .research-section {
    transition-delay: 120ms;
  }

  .is-hydrated .checkout-section {
    transition-delay: 160ms;
  }

  .is-hydrated .account-section {
    transition-delay: 180ms;
  }

  .is-hydrated .sell-section {
    transition-delay: 200ms;
  }

  .drawer-panel {
    transform: translateX(18px);
    opacity: 0;
    transition: transform 190ms ease, opacity 190ms ease;
  }

  .vehicle-drawer.open .drawer-panel {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Final mobile homepage pass: reduce desktop density and keep key actions readable. */
body.mobile-viewport.index-page .hero.hero-landing {
  padding: 0.58rem;
  border-radius: 12px;
}

body.mobile-viewport.index-page .landing-panel {
  border-radius: 12px;
  padding: 0.78rem 0.74rem 0.82rem;
}

body.mobile-viewport.index-page .hero-landing h1 {
  font-size: clamp(2rem, 9vw, 2.4rem);
}

body.mobile-viewport.index-page .hero-landing .hero-copy {
  font-size: 0.98rem;
  line-height: 1.38;
}

body.mobile-viewport.index-page .hero-points li {
  font-size: 0.86rem;
}

body.mobile-viewport.index-page .search-card-landing .search-actions {
  grid-template-columns: 1fr;
}

body.mobile-viewport.index-page .search-card-landing .btn {
  width: 100%;
}

body.mobile-viewport.index-page .trending-section {
  padding: 0.72rem;
}

body.mobile-viewport.index-page .trending-grid {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  gap: 0.66rem;
  padding: 0 0.08rem 0.3rem;
}

body.mobile-viewport.index-page .trending-grid .vehicle-card {
  flex: 0 0 84vw;
  max-width: 84vw;
  min-width: 84vw;
  scroll-snap-align: start;
}

body.mobile-viewport.index-page .trending-grid .card-actions {
  grid-template-columns: 1fr 1fr;
}

body.mobile-viewport.index-page .consumer-sell-layout,
body.mobile-viewport.index-page .consumer-sell-form {
  grid-template-columns: 1fr;
}

body.mobile-viewport.index-page .seller-listing-form {
  grid-template-columns: 1fr;
}

body.mobile-viewport.index-page main > .manufacturer-section,
body.mobile-viewport.index-page main > .inventory-section:not(.trending-section),
body.mobile-viewport.index-page main > .research-section {
  display: none;
}

/* Final mobile hardening: prevent clipped text and force natural wrapping. */
@media (max-width: 760px) {
  .hero.hero-landing,
  .landing-panel,
  .search-card.search-card-landing,
  .search-card-landing .search-row,
  .search-card-landing .search-split,
  .search-card-landing .search-actions {
    min-width: 0;
    max-width: 100%;
  }

  .index-page .hero-landing h1 {
    font-size: clamp(1.85rem, 8vw, 2.2rem) !important;
    line-height: 1.06;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .index-page .hero-landing .hero-copy,
  .index-page .hero-points li,
  .index-page .location-note {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .index-page .location-tools {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    align-items: start;
  }

  .index-page .location-tools .btn {
    width: fit-content;
  }

  .index-page .location-note {
    margin: 0;
    min-width: 0;
    max-width: 100%;
  }

  .index-page .search-card-landing .search-row {
    padding-left: 0.64rem;
    padding-right: 0.64rem;
  }
}

body.mobile-viewport.index-page .hero.hero-landing,
body.mobile-viewport.index-page .landing-panel,
body.mobile-viewport.index-page .search-card.search-card-landing,
body.mobile-viewport.index-page .search-card-landing .search-row,
body.mobile-viewport.index-page .search-card-landing .search-split,
body.mobile-viewport.index-page .search-card-landing .search-actions {
  min-width: 0;
  max-width: 100%;
}

body.mobile-viewport.index-page .hero-landing h1 {
  font-size: clamp(1.85rem, 8vw, 2.2rem) !important;
  line-height: 1.06;
  overflow-wrap: anywhere;
  word-break: normal;
}

body.mobile-viewport.index-page .hero-landing .hero-copy,
body.mobile-viewport.index-page .hero-points li,
body.mobile-viewport.index-page .location-note {
  overflow-wrap: anywhere;
  word-break: normal;
}

body.mobile-viewport.index-page .location-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  align-items: start;
}

body.mobile-viewport.index-page .location-tools .btn {
  width: fit-content;
}

body.mobile-viewport.index-page .location-note {
  margin: 0;
  min-width: 0;
  max-width: 100%;
}

body.mobile-viewport.index-page .hero.hero-landing {
  grid-template-columns: 1fr !important;
  padding: 0.5rem !important;
  border-radius: 12px !important;
  border: 1px solid #d2daea !important;
  background: #eaf0f9 !important;
  box-shadow: none !important;
}

body.mobile-viewport.index-page .landing-panel {
  width: 100% !important;
  max-width: none !important;
  border: 1px solid #d5dcea !important;
  border-radius: 11px !important;
  padding: 0.82rem 0.72rem 0.78rem !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body.mobile-viewport.index-page .hero-landing .domain {
  font-size: 0.71rem;
  letter-spacing: 0.18em;
}

body.mobile-viewport.index-page .hero-landing h1 {
  font-size: clamp(1.9rem, 8.8vw, 2.2rem) !important;
  line-height: 1.06 !important;
  max-width: 10.4ch !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

body.mobile-viewport.index-page .hero-landing .hero-copy {
  margin: 0.44rem 0 0.62rem;
  font-size: 0.91rem;
  line-height: 1.36;
  max-width: none !important;
  color: #374357 !important;
}

body.mobile-viewport.index-page .hero-points {
  gap: 0.26rem;
  margin: 0 0 0.62rem;
}

body.mobile-viewport.index-page .hero-points li {
  font-size: 0.82rem;
  line-height: 1.3;
  color: #24334a !important;
}

body.mobile-viewport.index-page .landing-tabs {
  margin-top: 0.56rem;
  padding: 0.22rem;
  border-radius: 12px;
  border: 1px solid #d8e0ef;
  background: #edf1f8 !important;
}

body.mobile-viewport.index-page .landing-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1f2a3f !important;
  text-decoration: none !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
  opacity: 1 !important;
  padding: 0.52rem 0.32rem;
}

body.mobile-viewport.index-page .landing-tab > span {
  display: inline-block !important;
  color: inherit !important;
  font-weight: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

body.mobile-viewport.index-page .landing-tab.is-active {
  background: #ffffff !important;
  color: #121a28 !important;
}

body.mobile-viewport.index-page .hero-landing .backend-note {
  margin: 0.56rem 0 0.28rem;
  font-size: 0.9rem;
}

body.mobile-viewport.index-page .location-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.62rem;
  margin: 0 0 0.6rem;
}

body.mobile-viewport.index-page .location-note {
  font-size: 0.9rem;
  line-height: 1.33;
}

body.mobile-viewport.index-page .search-card.search-card-landing {
  padding: 0.62rem 0.58rem 0.64rem !important;
  border-radius: 12px !important;
}

body.mobile-viewport.index-page .search-divider {
  display: grid !important;
  padding: 0.14rem 0.12rem 0.56rem;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1d2738 !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

body.mobile-viewport.index-page .search-divider > span {
  display: inline-block !important;
  color: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

body.mobile-viewport.index-page .landing-search-grid {
  gap: 0.44rem !important;
}

body.mobile-viewport.index-page .search-card-landing .search-row {
  padding: 0.54rem 0.64rem 0.58rem !important;
  border-radius: 11px !important;
}

body.mobile-viewport.index-page .search-card-landing .field-label {
  font-size: 0.73rem;
}

body.mobile-viewport.index-page .search-card-landing .search-row input,
body.mobile-viewport.index-page .search-card-landing .search-row select,
body.mobile-viewport.index-page .search-card-landing .custom-select-trigger {
  font-size: 1rem !important;
  min-height: 1.9rem !important;
  color: #0f172a !important;
}

body.mobile-viewport.index-page .search-card-landing .search-actions {
  margin-top: 0.5rem !important;
  gap: 0.42rem !important;
}

body.mobile-viewport.index-page .hero-stage {
  display: none !important;
}

body.mobile-viewport .page-shell {
  width: 100% !important;
  margin: 0 !important;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

/* Final mobile lock: keep hero content stacked and prevent post-hydration overflow. */
body.mobile-viewport.index-page,
body.mobile-viewport.index-page .page-shell,
body.mobile-viewport.index-page main {
  max-width: 100% !important;
  overflow-x: clip !important;
}

body.mobile-viewport.index-page main {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.mobile-viewport.index-page main > section {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body.mobile-viewport.index-page .hero.hero-landing,
body.mobile-viewport.index-page .landing-panel,
body.mobile-viewport.index-page .search-card.search-card-landing {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: clip !important;
}

body.mobile-viewport.index-page .hero-landing h1 {
  min-width: 0 !important;
  max-width: 10.5ch !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  text-wrap: balance;
}

body.mobile-viewport.index-page .hero-landing .hero-copy,
body.mobile-viewport.index-page .hero-points li {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

body.mobile-viewport.index-page .location-tools {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0.38rem !important;
  align-items: start !important;
}

body.mobile-viewport.index-page .location-tools .btn {
  justify-self: start !important;
  width: fit-content !important;
  max-width: 100% !important;
}

body.mobile-viewport.index-page .location-note {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

/* Desktop compact pass: keep the full hero card visible on initial load. */
@media (min-width: 1024px) {
  body.index-page:not(.mobile-viewport) .hero.hero-landing {
    min-height: 560px !important;
    grid-template-columns: minmax(300px, 410px) 1fr !important;
    padding: 0.72rem !important;
  }

  body.index-page:not(.mobile-viewport) .landing-panel {
    border-radius: 18px !important;
    padding: 0.78rem 0.76rem 0.8rem !important;
  }

  body.index-page:not(.mobile-viewport) .hero-landing h1 {
    margin-top: 0.2rem !important;
    font-size: clamp(2.25rem, 3vw, 2.95rem) !important;
    line-height: 0.96 !important;
  }

  body.index-page:not(.mobile-viewport) .hero-landing .hero-copy {
    margin: 0.4rem 0 0.56rem !important;
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
  }

  body.index-page:not(.mobile-viewport) .landing-tabs {
    margin-top: 0.5rem !important;
    padding: 0.2rem !important;
  }

  body.index-page:not(.mobile-viewport) .landing-tab {
    min-height: 2.25rem !important;
    padding: 0.44rem 0.3rem !important;
    font-size: 1rem !important;
  }

  body.index-page:not(.mobile-viewport) .hero-landing .backend-note {
    margin: 0.44rem 0 0.22rem !important;
    font-size: 0.9rem !important;
  }

  body.index-page:not(.mobile-viewport) .hero-landing .location-tools {
    margin: 0 0 0.44rem !important;
    gap: 0.3rem 0.55rem !important;
  }

  body.index-page:not(.mobile-viewport) .hero-landing .location-note {
    font-size: 0.9rem !important;
    line-height: 1.25 !important;
  }

  body.index-page:not(.mobile-viewport) .search-card.search-card-landing {
    padding: 0.56rem 0.54rem 0.58rem !important;
    border-radius: 14px !important;
  }

  body.index-page:not(.mobile-viewport) .search-divider {
    padding: 0.1rem 0.12rem 0.44rem !important;
    font-size: 0.95rem !important;
  }

  body.index-page:not(.mobile-viewport) form[data-filter-form].search-card-landing .landing-search-grid {
    gap: 0.34rem !important;
  }

  body.index-page:not(.mobile-viewport) form[data-filter-form].search-card-landing .search-row {
    padding: 0.46rem 0.56rem 0.48rem !important;
  }

  body.index-page:not(.mobile-viewport) form[data-filter-form].search-card-landing .field-label {
    font-size: 0.68rem !important;
  }

  body.index-page:not(.mobile-viewport) form[data-filter-form].search-card-landing .search-row input,
  body.index-page:not(.mobile-viewport) form[data-filter-form].search-card-landing .search-row select,
  body.index-page:not(.mobile-viewport) form[data-filter-form].search-card-landing .custom-select-trigger {
    min-height: 1.84rem !important;
    font-size: 1rem !important;
  }

  body.index-page:not(.mobile-viewport) form[data-filter-form].search-card-landing .search-split {
    margin-top: 0.34rem !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.34rem !important;
  }

  body.index-page:not(.mobile-viewport) form[data-filter-form].search-card-landing .search-split .search-row:first-child {
    display: none !important;
  }

  body.index-page:not(.mobile-viewport) form[data-filter-form].search-card-landing .landing-search-grid > .search-row:last-child {
    display: none !important;
  }

  body.index-page:not(.mobile-viewport) form[data-filter-form].search-card-landing .search-actions {
    margin-top: 0.45rem !important;
    gap: 0.4rem !important;
  }

  body.index-page:not(.mobile-viewport) form[data-filter-form].search-card-landing .search-actions .btn {
    min-height: 2.2rem !important;
  }
}

/* Desktop hero refresh inspired by modern marketplace layouts (Autotrader-like direction). */
@media (min-width: 1024px) {
  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader {
    min-height: 680px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 0 !important;
    border-color: rgba(255, 255, 255, 0.24) !important;
    background-color: #121a28 !important;
    background-image:
      linear-gradient(
        98deg,
        rgba(6, 6, 6, 0.58) 0%,
        rgba(6, 6, 6, 0.28) 45%,
        rgba(6, 6, 6, 0.6) 100%
      ),
      url("https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=2400&q=80") !important;
    background-size: cover !important;
    background-position: center center !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.2), transparent 42%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 1;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .landing-panel {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    justify-self: start;
    width: min(620px, calc(100% - 2.6rem));
    margin: 1.3rem;
    z-index: 4;
    border-radius: 26px !important;
    border: 1px solid rgba(234, 234, 234, 0.98) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 244, 244, 0.95) 100%) !important;
    backdrop-filter: blur(6px);
    box-shadow:
      0 26px 52px -34px rgba(2, 11, 32, 0.76),
      0 1px 0 rgba(255, 255, 255, 0.92) inset !important;
    padding: 1.25rem 1.2rem 1.14rem !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .domain {
    color: #4b4b4b !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    font-size: 0.86rem !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader h1 {
    max-width: 12.2ch !important;
    margin-top: 0.3rem !important;
    color: #0f0f0f !important;
    font-size: clamp(2.2rem, 3vw, 3.4rem) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.02em !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .hero-copy {
    color: #333333 !important;
    margin: 0.62rem 0 0.78rem !important;
    max-width: 39ch !important;
    font-size: 1.03rem !important;
    line-height: 1.35 !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .landing-tabs {
    margin: 0.1rem 0 0.68rem !important;
    padding: 0.28rem !important;
    background: linear-gradient(180deg, #f4f4f4 0%, #e9e9e9 100%) !important;
    border: 1px solid #d7d7d7 !important;
    border-radius: 14px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.3rem !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .landing-tab {
    min-height: 2.5rem !important;
    padding: 0.38rem 0.44rem !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #404040 !important;
    font-size: 1.06rem !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .landing-tab.is-active {
    color: #101010 !important;
    border-color: rgba(202, 202, 202, 0.85) !important;
    background: #ffffff !important;
    box-shadow: 0 14px 22px -20px rgba(18, 28, 47, 0.45) !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .backend-note,
  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .location-note {
    color: #3e3e3e !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .location-tools .btn-light {
    border-color: rgba(196, 196, 196, 0.86) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    color: #171717 !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .search-card.search-card-landing {
    border-radius: 16px !important;
    border: 1px solid rgba(214, 214, 214, 0.95) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 244, 244, 0.95) 100%) !important;
    box-shadow: 0 16px 28px -24px rgba(18, 31, 56, 0.52) !important;
    padding: 0.72rem 0.72rem 0.78rem !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .search-divider {
    color: #5b5b5b !important;
    font-size: 0.92rem !important;
    padding: 0.1rem 0.12rem 0.52rem !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .search-divider span {
    color: #1a1a1a !important;
    font-weight: 700 !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .search-divider::before,
  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .search-divider::after {
    border-top-color: rgba(193, 193, 193, 0.72) !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .search-card-landing .search-row {
    border: 1px solid rgba(193, 193, 193, 0.86) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%) !important;
    box-shadow: none !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .search-card-landing .field-label {
    color: #5a5a5a !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .search-card-landing .search-row input,
  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .search-card-landing .search-row select,
  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .search-card-landing .custom-select-trigger {
    color: #131313 !important;
    font-weight: 700 !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .search-card-landing .search-row input::placeholder {
    color: rgba(108, 108, 108, 0.72) !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .search-card-landing .custom-select-trigger::before {
    border-right-color: #494949 !important;
    border-bottom-color: #494949 !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .search-card-landing .search-actions {
    margin-top: 0.56rem !important;
    gap: 0.46rem !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .search-card-landing .btn-dark {
    border: 1px solid #111111 !important;
    background: linear-gradient(180deg, #1d1d1d 0%, #0f0f0f 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 22px -18px rgba(8, 13, 24, 0.86) !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .search-card-landing .btn-light {
    border: 1px solid rgba(195, 195, 195, 0.9) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    color: #1a1a1a !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .hero-stage {
    grid-column: 1;
    grid-row: 1;
    align-items: flex-end !important;
    justify-content: flex-end !important;
    padding: 0 1.35rem 1.25rem !important;
    z-index: 2;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .hero-stage-copy {
    max-width: 460px;
    text-align: right;
    color: #f8fbff;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.52);
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .hero-stage-eyebrow {
    margin: 0 0 0.42rem;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #dfdfdf;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .hero-stage-title {
    margin: 0;
    font-size: clamp(1.5rem, 2.4vw, 2.35rem);
    line-height: 1.1;
    font-weight: 700;
  }
}

/* Hero inventory call-to-actions (New / Used) */
body.index-page .hero-quick-actions {
  margin: 0 0 0.66rem !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.44rem !important;
}

body.index-page .hero-quick-action {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 2.62rem !important;
  padding: 0.34rem 0.5rem !important;
  border-radius: 999px !important;
  border: 1px solid transparent !important;
  text-decoration: none !important;
  letter-spacing: 0.01em !important;
  font-size: 0.98rem !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease !important;
}

body.index-page .hero-quick-action:hover,
body.index-page .hero-quick-action:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.05);
}

body.index-page .hero-quick-action:focus-visible {
  outline: 2px solid rgba(18, 26, 40, 0.42);
  outline-offset: 2px;
}

body.index-page .hero-quick-action.is-active {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.95) inset,
    0 0 0 3px rgba(18, 26, 40, 0.24) !important;
}

body.index-page .hero-quick-action-new {
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
  background: linear-gradient(180deg, #3b82f6 0%, #1e40af 100%) !important;
  box-shadow: 0 14px 20px -16px rgba(29, 78, 216, 0.7);
}

body.index-page .hero-quick-action-used {
  color: #f8fafc !important;
  border-color: #1f2937 !important;
  background: linear-gradient(180deg, #4b5563 0%, #111827 100%) !important;
  box-shadow: 0 14px 20px -16px rgba(17, 24, 39, 0.78);
}

body.index-page .hero-quick-action-sell {
  color: #ffffff !important;
  border-color: #1f7a5a !important;
  background: linear-gradient(180deg, #2a9b71 0%, #1f7a5a 100%) !important;
  box-shadow: 0 14px 20px -16px rgba(20, 83, 62, 0.72);
}

@media (min-width: 1024px) {
  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .hero-quick-actions {
    margin: 0.04rem 0 0.72rem !important;
    gap: 0.5rem !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .hero-quick-action {
    min-height: 2.72rem !important;
    font-size: 1rem !important;
  }
}

body.mobile-viewport.index-page .hero-quick-actions {
  margin: 0.1rem 0 0.58rem;
  gap: 0.4rem;
}

body.mobile-viewport.index-page .hero-quick-action {
  min-height: 2.42rem !important;
  font-size: 0.94rem !important;
}

/* Simple homepage hero mode: keep only New/Used quick actions visible */
body.index-page .hero.hero-landing.hero-simple-cta .landing-panel {
  max-width: min(560px, 100%);
}

body.index-page .hero.hero-landing.hero-simple-cta .hero-copy {
  max-width: 36ch;
}

body.index-page .hero.hero-landing.hero-simple-cta .hero-quick-actions {
  margin-top: 0.95rem !important;
  max-width: 360px;
}

body.index-page .hero.hero-landing.hero-simple-cta .hero-points,
body.index-page .hero.hero-landing.hero-simple-cta .landing-tabs,
body.index-page .hero.hero-landing.hero-simple-cta .landing-view,
body.index-page .hero.hero-landing.hero-simple-cta .hero-stage {
  display: none !important;
}

body.mobile-viewport.index-page .hero.hero-landing.hero-simple-cta .hero-quick-actions {
  max-width: 100%;
}

body.mobile-viewport.index-page .hero.hero-landing.hero-simple-cta .hero-search-inline {
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  border-radius: 18px;
  padding: 0.48rem;
}

body.mobile-viewport.index-page .hero.hero-landing.hero-simple-cta .hero-search-inline button {
  width: 100%;
}

body.mobile-viewport.index-page .hero.hero-landing.hero-simple-cta .hero-ai-note {
  width: 100%;
  text-align: center;
  font-size: 0.82rem;
}

body.index-page .hero.hero-landing.hero-simple-cta .hero-search-inline {
  width: min(760px, 100%);
  margin: 0.95rem auto 0;
  padding: 0.34rem 0.36rem 0.34rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(233, 238, 248, 0.9);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 28px -22px rgba(12, 18, 28, 0.72);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.42rem;
  align-items: center;
}

body.index-page .hero.hero-landing.hero-simple-cta .hero-search-inline input[type="search"] {
  width: 100%;
  min-height: 2.45rem;
  border: none;
  outline: none;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
}

body.index-page .hero.hero-landing.hero-simple-cta .hero-search-inline input[type="search"]::placeholder {
  color: #6b7280;
}

body.index-page .hero.hero-landing.hero-simple-cta .hero-search-inline button {
  min-height: 2.45rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

body.index-page .hero.hero-landing.hero-simple-cta .hero-ai-note {
  margin: 0.56rem auto 0;
  width: min(760px, 100%);
  padding: 0 0.22rem;
  color: rgba(229, 237, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
}

/* Desktop center lock for simple two-button homepage hero */
@media (min-width: 1024px) {
  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-simple-cta {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: center !important;
    justify-items: center !important;
    min-height: 620px !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-simple-cta .landing-panel {
    width: min(940px, calc(100% - 2.8rem)) !important;
    margin: 0 auto !important;
    padding: clamp(2.2rem, 5vw, 3.4rem) 1.2rem 1.35rem !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: center !important;
    display: grid !important;
    justify-items: center !important;
    align-content: center !important;
    gap: 0.35rem !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-simple-cta .domain {
    color: rgba(248, 250, 255, 0.95) !important;
    letter-spacing: 0.2em !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-simple-cta h1 {
    margin: 0.24rem 0 0 !important;
    max-width: 13ch !important;
    color: #ffffff !important;
    font-size: clamp(3rem, 5.9vw, 5rem) !important;
    line-height: 0.97 !important;
    letter-spacing: -0.02em !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-simple-cta .hero-copy {
    margin: 0.48rem 0 0 !important;
    max-width: 54ch !important;
    color: rgba(244, 247, 253, 0.92) !important;
    font-size: clamp(1.05rem, 1.7vw, 1.34rem) !important;
    line-height: 1.34 !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-simple-cta .hero-quick-actions {
    width: min(460px, 100%) !important;
    margin: 0.88rem auto 0 !important;
    gap: 0.68rem !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-simple-cta .hero-quick-action {
    min-height: 3rem !important;
    font-size: 1.08rem !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-simple-cta .hero-search-inline {
    width: min(760px, calc(100% - 2rem));
    margin-top: 1.1rem;
  }
}

.hero-search-row {
  display: block;
  margin: 0 0 0.72rem;
}

.search-card-landing .hero-search-row input[type="search"] {
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid #cdd8ea;
  border-radius: 999px;
  padding: 0 1.05rem;
  background: #ffffff;
  color: #101828;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
}

.search-card-landing .hero-search-row input[type="search"]::placeholder {
  color: #7a8598;
}

.search-card-landing .hero-search-row input[type="search"]:focus-visible {
  outline: 2px solid rgba(54, 90, 244, 0.28);
  outline-offset: 1px;
}

@media (min-width: 1024px) {
  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader {
    min-height: 700px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: center !important;
    justify-items: center !important;
    padding: 0 !important;
    background-image:
      linear-gradient(
        180deg,
        rgba(10, 12, 20, 0.6) 0%,
        rgba(10, 12, 20, 0.5) 50%,
        rgba(10, 12, 20, 0.64) 100%
      ),
      url("https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=2400&q=80") !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .landing-panel {
    width: min(900px, calc(100% - 2.8rem)) !important;
    margin: 0 auto !important;
    padding: 3.3rem 1.2rem 2.5rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-align: center !important;
    display: grid !important;
    justify-items: center !important;
    align-content: center !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .domain {
    color: #f8f9fb !important;
    opacity: 0.9;
    letter-spacing: 0.2em !important;
    font-size: 0.88rem !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader h1 {
    margin: 0.34rem 0 0 !important;
    max-width: 13ch !important;
    color: #ffffff !important;
    font-size: clamp(3rem, 6vw, 5rem) !important;
    line-height: 0.96 !important;
    letter-spacing: -0.03em !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .hero-copy {
    margin: 0.62rem 0 0.9rem !important;
    max-width: 56ch !important;
    color: rgba(246, 248, 252, 0.92) !important;
    font-size: 1.22rem !important;
    line-height: 1.34 !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .backend-note,
  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .location-tools,
  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .search-divider,
  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .landing-search-grid,
  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .search-split,
  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .search-actions,
  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .hero-stage {
    display: none !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .hero-quick-actions {
    width: min(460px, 100%);
    margin: 0.05rem 0 0.9rem !important;
    gap: 0.7rem !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .hero-quick-action {
    min-height: 3rem !important;
    font-size: 1.08rem !important;
    font-weight: 700 !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .search-card.search-card-landing {
    width: min(720px, 100%) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .hero-search-row {
    margin: 0 !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .hero-search-row input[type="search"] {
    min-height: 4rem !important;
    border: 1px solid rgba(255, 255, 255, 0.88) !important;
    border-radius: 999px !important;
    padding: 0 1.45rem !important;
    background: rgba(255, 255, 255, 0.97) !important;
    color: #0f172a !important;
    font-size: 1.13rem !important;
    font-weight: 600 !important;
    box-shadow: 0 18px 30px -22px rgba(0, 0, 0, 0.74) !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .hero-search-row input[type="search"]::placeholder {
    color: #7d8898 !important;
  }

  body.index-page:not(.mobile-viewport) .hero.hero-landing.hero-autotrader .hero-search-row input[type="search"]:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.72) !important;
    outline-offset: 2px !important;
  }
}

/* Final desktop lock: Autotrader-style hero composition. */
@media (min-width: 1100px) {
  body.index-page .hero.hero-landing.hero-autotrader {
    min-height: 670px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: center !important;
    justify-items: center !important;
    padding: 0 !important;
    background-image:
      linear-gradient(
        180deg,
        rgba(8, 12, 20, 0.64) 0%,
        rgba(8, 12, 20, 0.48) 52%,
        rgba(8, 12, 20, 0.62) 100%
      ),
      url("https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=2400&q=80") !important;
    background-size: cover !important;
    background-position: center center !important;
  }

  body.index-page .hero.hero-landing.hero-autotrader .landing-panel {
    width: min(960px, calc(100% - 3rem)) !important;
    margin: 0 auto !important;
    padding: 3.6rem 1.25rem 2.8rem !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    text-align: center !important;
    display: grid !important;
    justify-items: center !important;
    align-content: center !important;
  }

  body.index-page .hero.hero-landing.hero-autotrader .domain {
    color: rgba(250, 252, 255, 0.9) !important;
    letter-spacing: 0.2em !important;
    font-size: 0.84rem !important;
  }

  body.index-page .hero.hero-landing.hero-autotrader h1 {
    margin: 0.34rem 0 0 !important;
    max-width: 13ch !important;
    color: #ffffff !important;
    font-size: clamp(3.2rem, 6vw, 5.35rem) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.03em !important;
    text-wrap: balance;
  }

  body.index-page .hero.hero-landing.hero-autotrader .hero-copy {
    margin: 0.64rem 0 1.04rem !important;
    max-width: 60ch !important;
    color: rgba(248, 250, 252, 0.94) !important;
    font-size: 1.17rem !important;
    line-height: 1.32 !important;
  }

  body.index-page .hero.hero-landing.hero-autotrader .landing-view {
    width: min(760px, 100%) !important;
    display: grid !important;
    justify-items: center !important;
  }

  body.index-page .hero.hero-landing.hero-autotrader .backend-note,
  body.index-page .hero.hero-landing.hero-autotrader .location-tools,
  body.index-page .hero.hero-landing.hero-autotrader .search-divider,
  body.index-page .hero.hero-landing.hero-autotrader .landing-search-grid,
  body.index-page .hero.hero-landing.hero-autotrader .search-split,
  body.index-page .hero.hero-landing.hero-autotrader .search-actions,
  body.index-page .hero.hero-landing.hero-autotrader .hero-stage {
    display: none !important;
  }

  body.index-page .hero.hero-landing.hero-autotrader .hero-quick-actions {
    width: auto !important;
    margin: 0.05rem 0 0.94rem !important;
    grid-template-columns: repeat(2, minmax(200px, 240px)) !important;
    justify-content: center !important;
    gap: 0.78rem !important;
  }

  body.index-page .hero.hero-landing.hero-autotrader .hero-quick-action {
    min-height: 3.08rem !important;
    font-size: 1.06rem !important;
  }

  body.index-page .hero.hero-landing.hero-autotrader .search-card.search-card-landing {
    width: min(700px, 100%) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.index-page .hero.hero-landing.hero-autotrader .hero-search-row {
    margin: 0 !important;
    width: 100% !important;
  }

  body.index-page .hero.hero-landing.hero-autotrader .hero-search-row input[type="search"] {
    min-height: 4.05rem !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 999px !important;
    padding: 0 1.5rem !important;
    background: rgba(255, 255, 255, 0.98) !important;
    color: #0f172a !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    box-shadow: 0 20px 34px -26px rgba(2, 6, 23, 0.88) !important;
  }
}

.hero-mobile-media {
  display: none;
}

body.mobile-viewport.index-page .hero-mobile-media {
  display: block !important;
  width: 100%;
  min-height: 168px;
  margin: 0 0 0.56rem;
  border-radius: 11px;
  border: 1px solid #d4dced;
  background-image:
    linear-gradient(
      140deg,
      rgba(10, 17, 33, 0.48) 0%,
      rgba(10, 17, 33, 0.18) 42%,
      rgba(10, 17, 33, 0.54) 100%
    ),
    url("https://images.unsplash.com/photo-1493238792000-8113da705763?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
  box-shadow: 0 14px 20px -18px rgba(15, 23, 42, 0.55);
}

/* -------------------------------------------------------------------------- */
/*  Full-Site Visual Refinement (2026-03)                                     */
/* -------------------------------------------------------------------------- */
:root {
  --ui-bg: #eef3f9;
  --ui-surface: #ffffff;
  --ui-surface-soft: #f7faff;
  --ui-text: #0f172a;
  --ui-muted: #4c5e78;
  --ui-line: #d4dfef;
  --ui-line-strong: #b9c8de;
  --ui-accent: #10294d;
  --ui-accent-soft: #285f9f;
  --ui-success: #1f7a45;
  --ui-danger: #b42318;
  --ui-radius: 20px;
  --ui-radius-sm: 12px;
  --ui-shadow: 0 24px 44px -34px rgba(15, 23, 42, 0.48);
}

* {
  box-sizing: border-box;
}

body {
  color: var(--ui-text);
  background:
    radial-gradient(circle at 0% 0%, #ffffff 0%, #f5f8fc 34%, #eef3f9 72%, #e9f0f8 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(236, 244, 252, 0.72));
}

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

.page-shell {
  width: min(1520px, 95vw);
  margin: 0 auto;
  padding-bottom: 2.1rem;
}

main {
  margin-top: 1.05rem;
  display: grid;
  gap: 1.18rem;
}

.hero,
.inventory-section,
.research-section,
.category-rail-section,
.manufacturer-section,
.account-section,
.checkout-section,
.consumer-sell-section,
.sell-section,
.page-landing,
.dealer-account-panel,
.admin-panel,
.vehicle-detail-card,
.inventory-block,
.tool-card,
.profile-card,
.checkout-workspace,
.checkout-rail,
.step-panel,
.consumer-sell-card,
.seller-listing-section {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow);
}

.site-header {
  margin-top: 0.8rem;
  padding: 0.84rem 1rem;
  border: 1px solid var(--ui-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 30px -28px rgba(15, 23, 42, 0.56);
  backdrop-filter: saturate(1.2) blur(4px);
}

.brand {
  color: #111c30;
  letter-spacing: 0.17em;
  font-size: 1.3rem;
}

.mobile-menu-toggle {
  min-height: 2.35rem;
  border-radius: 10px;
  border: 1px solid var(--ui-line-strong);
  background: #ffffff;
  color: #162b4a;
}

.site-nav {
  gap: 0.26rem;
}

.site-nav > a,
.site-nav > .nav-item > a {
  min-height: 2.42rem;
  border-radius: 12px;
  padding: 0.5rem 0.84rem;
  color: #17263d;
  border: 1px solid transparent;
  font-size: 0.98rem;
}

.site-nav > a:hover,
.site-nav > a:focus-visible,
.site-nav > .nav-item > a:hover,
.site-nav > .nav-item > a:focus-visible {
  border-color: #c9d7ec;
  background: #f3f8ff;
}

.nav-dropdown {
  border: 1px solid #cfdbed;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 20px 30px -24px rgba(15, 23, 42, 0.44);
  padding: 0.44rem;
}

.nav-dropdown a {
  border-radius: 9px;
  color: #203250;
  font-size: 0.9rem;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: #ebf4ff;
}

.header-actions {
  gap: 0.5rem;
}

.header-cta {
  min-height: 2.45rem;
  border-radius: 11px;
  border: 1px solid #10294d;
  background: linear-gradient(130deg, #10294d 0%, #1f487e 100%);
  color: #f5f9ff;
}

.auth-account,
.auth-signout {
  min-height: 2.26rem;
  border-radius: 999px;
  border: 1px solid #cad8ec;
  background: #f4f8ff;
  color: #1f2f48;
}

.auth-signout {
  background: #ffffff;
}

.btn,
.card-btn {
  min-height: 2.64rem;
  border-radius: 11px;
  font-weight: 700;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease, background-color 170ms ease;
}

.btn:hover,
.btn:focus-visible,
.card-btn:hover,
.card-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px -20px rgba(15, 23, 42, 0.58);
}

.btn-dark,
.card-btn.primary {
  border-color: #10294d;
  background: linear-gradient(130deg, #10294d 0%, #244f88 100%);
  color: #f5f9ff;
}

.btn-light,
.card-btn {
  border-color: #c9d6e8;
  background: #ffffff;
  color: #1d2f4c;
}

label {
  font-size: 0.88rem;
  color: #5d708c;
  gap: 0.36rem;
}

input,
select,
textarea {
  min-height: 2.6rem;
  border: 1px solid #c6d4e8;
  border-radius: 11px;
  background: #ffffff;
  color: #111c2f;
  padding: 0 0.72rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea {
  padding: 0.68rem 0.72rem;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: #3b6fb2;
  box-shadow: 0 0 0 3px rgba(59, 111, 178, 0.18);
}

input[type="file"] {
  padding: 0;
  min-height: 2.72rem;
}

input[type="file"]::file-selector-button {
  height: 100%;
  border: 0;
  border-right: 1px solid #c5d3e9;
  border-radius: 11px 0 0 11px;
  background: linear-gradient(135deg, #0f3d78 0%, #1b5ba8 100%);
  color: #f5f9ff;
  font: inherit;
  font-weight: 700;
  padding: 0 0.9rem;
  cursor: pointer;
}

.section-head h1,
.section-head h2 {
  color: #102039;
}

.section-head p {
  color: var(--ui-muted);
}

.page-landing {
  padding: clamp(1.2rem, 2.4vw, 1.95rem);
  border-color: #1e3c66;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.2), transparent 42%),
    linear-gradient(128deg, #102a4d 0%, #20467a 56%, #3b6fb2 100%);
  color: #f4f8ff;
}

.page-landing-eyebrow {
  color: rgba(229, 239, 255, 0.9);
}

.page-landing h2 {
  color: #f9fcff;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
}

.page-landing p {
  color: rgba(238, 245, 255, 0.94);
  max-width: 64ch;
}

.page-landing-actions {
  margin-top: 1rem;
  gap: 0.58rem;
}

.page-landing-actions .btn-light {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(255, 255, 255, 0.85);
}

.index-page .hero.hero-landing {
  min-height: 660px;
  grid-template-columns: minmax(340px, 470px) 1fr;
  padding: 1rem;
  border-color: #203f66;
  background-color: #0f2748;
  background-image:
    linear-gradient(102deg, rgba(8, 20, 40, 0.84) 0%, rgba(8, 20, 40, 0.4) 48%, rgba(8, 20, 40, 0.72) 100%),
    url("https://images.unsplash.com/photo-1494976388531-d1058494cdd8?auto=format&fit=crop&w=2200&q=80");
  background-size: cover;
  background-position: center;
}

.index-page .landing-panel {
  border-radius: 20px;
  border: 1px solid #d5e1f3;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 255, 0.97) 100%);
  box-shadow: 0 30px 44px -34px rgba(15, 23, 42, 0.58);
  padding: 1.22rem 1.2rem 1.26rem;
}

.index-page .hero-stage {
  border-radius: 18px;
}

.index-page .hero-landing .domain {
  color: #5b6c86;
}

.index-page .hero-landing h1 {
  max-width: 10.6ch;
  color: #0f1c34;
  font-size: clamp(2.35rem, 4.6vw, 3.65rem);
  line-height: 0.98;
}

.index-page .hero-landing .hero-copy {
  color: #44566f;
  line-height: 1.42;
  max-width: 38ch;
}

.hero-quick-actions {
  gap: 0.48rem;
}

.hero-quick-action {
  min-height: 2.75rem;
  border-radius: 12px;
  border: 1px solid #c7d5e9;
  padding: 0 1rem;
  text-decoration: none;
  font-weight: 700;
}

.hero-quick-action.hero-quick-action-new {
  border-color: #0f3f78;
  background: linear-gradient(130deg, #0f3f78 0%, #1f65ac 100%);
  color: #f4f9ff;
}

.hero-quick-action.hero-quick-action-used {
  border-color: #3d4a5f;
  background: linear-gradient(130deg, #374154 0%, #515c6f 100%);
  color: #f5f8fd;
}

.hero-search-inline {
  margin-top: 0.78rem;
  border: 1px solid #cfdcf0;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 16px 26px -24px rgba(15, 23, 42, 0.52);
}

.hero-search-inline input {
  border: 0;
  min-height: 2.75rem;
  font-weight: 600;
}

.hero-search-inline button {
  min-height: 2.45rem;
  border-radius: 10px;
  border: 1px solid #10294d;
  background: #10294d;
  color: #f4f9ff;
  font: inherit;
  font-weight: 700;
  padding: 0 0.9rem;
}

.hero-ai-note,
.hero-points li,
.location-note,
.backend-note {
  color: #4a5d79;
}

.search-card,
.search-card.search-card-landing {
  border: 1px solid #d5e0f0;
  border-radius: 16px;
  background: #f8fbff;
  box-shadow: 0 18px 28px -24px rgba(15, 23, 42, 0.44);
}

.search-card-landing .search-row,
.search-row {
  border-color: #cfdced;
  background: #ffffff;
  border-radius: 12px;
}

.search-card-landing .field-label {
  color: #667990;
}

.inventory-spotlight {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border: 1px solid #bfd0ea;
  border-radius: 22px;
  background: #0f2849;
}

.inventory-spotlight-media {
  grid-column: 1;
  grid-row: 1;
  min-height: 460px;
  background:
    linear-gradient(95deg, rgba(8, 24, 46, 0.86) 0%, rgba(8, 24, 46, 0.28) 45%, rgba(8, 24, 46, 0.72) 100%),
    url("https://images.unsplash.com/photo-1542362567-b07e54358753?auto=format&fit=crop&w=2200&q=80") center/cover no-repeat;
}

.inventory-spotlight-tagline {
  border: 1px solid rgba(201, 220, 249, 0.46);
  background: rgba(12, 28, 51, 0.64);
}

.inventory-spotlight-card {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  justify-self: start;
  width: min(520px, calc(100% - 2rem));
  margin: 1rem;
  border: 1px solid rgba(173, 198, 239, 0.52);
  border-radius: 16px;
  background: linear-gradient(162deg, rgba(17, 58, 128, 0.96), rgba(25, 86, 176, 0.9));
  box-shadow: none;
}

.inventory-finder-form {
  gap: 0.52rem;
}

.inventory-finder-actions,
.inventory-landing-footer,
.advanced-landing-actions {
  gap: 0.5rem;
}

.inventory-page .inventory-manufacturer-directory {
  margin-top: 0;
}

.inventory-page .inventory-segment-panel {
  border-radius: 16px;
  border: 1px solid #d2deef;
  background: #f7faff;
  box-shadow: 0 20px 30px -28px rgba(15, 23, 42, 0.38);
}

.inventory-page .inventory-segment-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.82rem;
}

.inventory-page .inventory-segment-column {
  border: 1px solid #d2deee;
  border-radius: 12px;
  background: #ffffff;
  padding: 0.55rem;
  min-height: 0;
}

.inventory-page .inventory-segment-column h2 {
  margin: 0 0 0.4rem;
  color: #1a355d;
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.inventory-page .inventory-segment-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.inventory-page .inventory-segment-column a {
  display: grid;
  grid-template-columns: 3rem 1fr 3rem;
  align-items: center;
  gap: 0.4rem;
  min-height: 3.25rem;
  border-radius: 11px;
  border: 1px solid #d3dfef;
  background: #ffffff;
  padding: 0.38rem 0.62rem;
  color: #122845;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.inventory-page .inventory-segment-column a::after {
  content: "";
  width: 3rem;
  height: 1px;
}

.inventory-page .inventory-segment-column a:hover,
.inventory-page .inventory-segment-column a:focus-visible {
  border-color: #9fb9df;
  background: #f4f8ff;
  transform: translateY(-1px);
}

.inventory-brand-logo {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  border: 1px solid #c3d3ea;
  background: #f3f8ff;
}

.inventory-brand-logo-img {
  width: auto;
  max-width: 1.85rem;
  height: auto;
  max-height: 1.85rem;
  filter: saturate(1.05) contrast(1.08);
}

.inventory-brand-name {
  position: static;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #122a4a;
}

.inventory-block,
.tool-card,
.profile-card,
.vehicle-detail-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.vehicle-grid,
.manufacturer-vehicle-grid,
.category-grid {
  gap: 0.95rem;
}

.vehicle-card,
.category-vehicle-card,
.manufacturer-vehicle-card {
  border-radius: 14px;
  border: 1px solid #d1deee;
  background: #ffffff;
  box-shadow: 0 20px 30px -30px rgba(15, 23, 42, 0.48);
}

.vehicle-media {
  min-height: 8.6rem;
  border-radius: 11px;
  overflow: hidden;
}

.vehicle-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-title {
  color: #0f213e;
}

.vehicle-meta,
.vehicle-dealer,
.vehicle-detail-card .vehicle-meta,
.vehicle-detail-card .vehicle-dealer {
  color: #50637e;
}

.vehicle-tag,
.count-badge {
  border-color: #c8d6ea;
  background: #f4f8ff;
  color: #233957;
}

.inventory-page .inventory-block h3,
.manufacturer-page #manufacturer-vehicles-title,
.profile-card h2,
.tool-card h2 {
  color: #102039;
}

.manufacturer-page .page-landing.manufacturer-landing {
  border-color: #1f3f6b;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.2), transparent 42%),
    linear-gradient(128deg, #102a4d 0%, #1f477c 56%, #3c72b8 100%);
}

.manufacturer-page .page-landing.manufacturer-landing h2,
.manufacturer-page .page-landing.manufacturer-landing .page-landing-eyebrow,
.manufacturer-page .page-landing.manufacturer-landing p[data-manufacturer-subtitle] {
  color: #f4f8ff;
}

.manufacturer-page .manufacturer-landing-logo-wrap {
  border: 1px solid rgba(197, 214, 239, 0.64);
  background: rgba(10, 30, 57, 0.36);
}

.manufacturer-vehicle-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dealer-page,
.admin-page {
  background:
    radial-gradient(circle at 0% 0%, #ffffff 0%, #f4f8fc 34%, #edf3fb 70%, #e8f0f9 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(238, 245, 253, 0.72));
}

.dealer-dashboard,
.admin-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 1.15rem 0 0.3rem;
}

.dealer-grid {
  margin-top: 0.2rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dealer-card {
  border: 1px solid #d1ddef;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 20px 30px -30px rgba(15, 23, 42, 0.54);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.dealer-card:hover,
.dealer-card:focus-visible {
  transform: translateY(-2px);
  border-color: #9db7dc;
  box-shadow: 0 20px 30px -24px rgba(15, 23, 42, 0.62);
}

.dealer-card h2 {
  margin: 0.1rem 0 0.44rem;
  color: #12243f;
  font-size: 1.06rem;
}

.dealer-card p {
  margin: 0;
  color: #50647f;
  font-size: 0.92rem;
}

.dealer-card .card-link {
  margin-top: 0.72rem;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.76rem;
  font-weight: 700;
  color: #1b4f8a;
}

.dealer-account-panel,
.admin-panel {
  margin-top: 0.2rem;
  padding: 1.08rem;
}

.admin-panel.admin-create {
  border-style: dashed;
}

.dealer-account-panel .account-form,
.admin-panel .account-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dealer-account-panel .account-form .full-width,
.admin-panel .account-form .full-width {
  grid-column: 1 / -1;
}

.dealer-email-status {
  margin-top: 0.36rem;
  display: block;
  font-size: 0.82rem;
  color: #627792;
}

.dealer-email-status.error {
  color: var(--ui-danger);
}

.dealer-email-status.success {
  color: var(--ui-success);
}

.checkout-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.checkout-layout {
  gap: 0.9rem;
}

.checkout-rail,
.checkout-workspace {
  border-color: #d1deee;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.stepper li {
  border-color: #ccd8ea;
  border-radius: 10px;
  background: #f7faff;
}

.stepper li.active {
  border-color: #112d55;
  background: #112d55;
}

.inline-output,
.estimator-output,
.status-message {
  border-color: #d0dceb;
  background: #f8fbff;
  color: #34465f;
}

.account-overlay-backdrop {
  background: rgba(10, 18, 32, 0.6);
}

.account-overlay-panel {
  border-color: #d2deee;
  border-radius: 18px;
  background: #ffffff;
}

.site-footer {
  margin-top: 1.1rem;
  padding: 0.92rem 0.35rem;
  border-top: 1px solid #d2deee;
  color: #5f728c;
}

@media (max-width: 1200px) {
  .page-shell {
    width: min(1520px, 97vw);
  }

  .index-page .hero.hero-landing,
  .inventory-spotlight {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .index-page .hero-stage {
    min-height: 220px;
  }

  .inventory-spotlight-media {
    min-height: 320px;
  }

  .inventory-spotlight-card {
    margin: 0.9rem;
  }
}

@media (max-width: 980px) {
  .dealer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dealer-account-panel .account-form,
  .admin-panel .account-form,
  .manufacturer-vehicle-actions {
    grid-template-columns: 1fr;
  }

  .inventory-page .inventory-segment-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: 100%;
    padding: 0 0.66rem 1.2rem;
  }

  .site-header {
    padding: 0.66rem 0.72rem;
    border-radius: 14px;
    gap: 0.56rem;
  }

  .site-header .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .site-header.menu-open .site-nav,
  body.mobile-viewport .site-header.menu-open .site-nav {
    background: #ffffff;
    border: 1px solid #cfdbed;
    border-radius: 12px;
    box-shadow: 0 16px 24px -20px rgba(15, 23, 42, 0.52);
  }

  main {
    gap: 0.92rem;
    margin-top: 0.84rem;
  }

  .hero,
  .inventory-section,
  .research-section,
  .category-rail-section,
  .manufacturer-section,
  .account-section,
  .checkout-section,
  .consumer-sell-section,
  .sell-section,
  .page-landing,
  .dealer-account-panel,
  .admin-panel,
  .vehicle-detail-card,
  .inventory-block,
  .tool-card,
  .profile-card,
  .checkout-workspace,
  .checkout-rail,
  .step-panel,
  .consumer-sell-card,
  .seller-listing-section {
    border-radius: 15px;
  }

  .page-landing {
    padding: 0.98rem;
  }

  .page-landing h2 {
    font-size: clamp(1.62rem, 8.2vw, 2.3rem);
  }

  .index-page .hero.hero-landing {
    padding: 0.56rem;
    min-height: auto;
  }

  .index-page .landing-panel {
    border-radius: 14px;
    padding: 0.9rem 0.84rem;
  }

  .hero-quick-actions,
  .search-card-landing .search-actions,
  .inventory-finder-actions,
  .inventory-landing-footer,
  .advanced-landing-actions,
  .page-landing-actions {
    grid-template-columns: 1fr;
  }

  .inventory-spotlight-media {
    min-height: 260px;
  }

  .inventory-spotlight-card {
    margin: 0.7rem;
  }

  .inventory-page .inventory-segment-column a {
    grid-template-columns: 2.7rem 1fr 2.7rem;
    min-height: 3.05rem;
  }

  .inventory-brand-logo {
    width: 2.2rem;
    height: 2.2rem;
  }

  .inventory-brand-logo-img {
    max-width: 1.6rem;
    max-height: 1.6rem;
  }

  .dealer-dashboard,
  .admin-shell {
    padding-top: 0.3rem;
  }

  .dealer-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------- */
/*  Mobile Excellence Pass (2026-03)                                          */
/* -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  body,
  body.mobile-viewport {
    background:
      radial-gradient(circle at 0% 0%, #f9fcff 0%, #edf3fb 48%, #e7eef8 100%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(238, 245, 253, 0.68));
  }

  .page-shell,
  body.mobile-viewport .page-shell {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0.56rem 1rem !important;
  }

  .site-header,
  body.mobile-viewport .site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    margin-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 0 !important;
    border-radius: 0 0 16px 16px !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 0.52rem !important;
    padding: 0.7rem 0.72rem !important;
    background: linear-gradient(140deg, #0d2e5a 0%, #144483 100%) !important;
    border-bottom: 1px solid rgba(148, 178, 224, 0.45) !important;
    box-shadow: 0 14px 24px -20px rgba(9, 19, 35, 0.9) !important;
  }

  .brand,
  body.mobile-viewport .brand {
    color: #f6f9ff !important;
    font-size: 1.18rem !important;
    letter-spacing: 0.11em !important;
  }

  .mobile-menu-toggle,
  body.mobile-viewport .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.4rem;
    min-height: 2.4rem;
    border-radius: 10px;
    border: 1px solid rgba(219, 231, 250, 0.34) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f7fbff !important;
    font-size: 1.26rem;
    line-height: 1;
    padding: 0;
  }

  .site-nav,
  body.mobile-viewport .site-nav {
    display: none !important;
  }

  .site-header.menu-open .site-nav,
  body.mobile-viewport .site-header.menu-open .site-nav {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-column: 1 / -1;
    width: 100%;
    gap: 0.34rem;
    padding-top: 0.5rem;
  }

  .site-header.menu-open .site-nav > a,
  .site-header.menu-open .site-nav > .nav-item > a,
  body.mobile-viewport .site-header.menu-open .site-nav > a,
  body.mobile-viewport .site-header.menu-open .site-nav > .nav-item > a {
    min-height: 2.45rem;
    border-radius: 10px;
    border: 1px solid rgba(206, 223, 249, 0.34) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f5f9ff !important;
    text-align: left;
  }

  .site-nav .nav-dropdown,
  body.mobile-viewport .site-nav .nav-dropdown {
    display: none !important;
  }

  .site-header .header-actions,
  body.mobile-viewport .site-header .header-actions {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: flex-end;
    width: 100%;
  }

  .site-header .header-actions .header-cta,
  body.mobile-viewport .site-header .header-actions .header-cta {
    display: none !important;
  }

  .site-header.menu-open .header-actions .header-cta,
  body.mobile-viewport .site-header.menu-open .header-actions .header-cta {
    display: inline-flex !important;
    width: 100%;
    justify-content: center;
    border-color: rgba(208, 224, 249, 0.4) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #f5f9ff !important;
  }

  .auth-account,
  .auth-signout {
    border-color: rgba(198, 215, 241, 0.52) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #f7fbff !important;
  }

  main,
  body.mobile-viewport main {
    margin-top: 0.68rem !important;
    gap: 0.72rem !important;
  }

  .hero,
  .inventory-section,
  .research-section,
  .category-rail-section,
  .manufacturer-section,
  .account-section,
  .checkout-section,
  .consumer-sell-section,
  .sell-section,
  .page-landing,
  .dealer-account-panel,
  .admin-panel,
  .vehicle-detail-card,
  .inventory-block,
  .tool-card,
  .profile-card,
  .checkout-workspace,
  .checkout-rail,
  .step-panel,
  .consumer-sell-card,
  .seller-listing-section {
    border-radius: 14px !important;
  }

  .page-landing {
    padding: 0.95rem !important;
  }

  .page-landing h2 {
    font-size: clamp(1.72rem, 8vw, 2.32rem) !important;
    line-height: 1.06;
  }

  .page-landing p {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .index-page .hero.hero-landing.hero-simple-cta {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: none !important;
  }

  .index-page .hero.hero-landing.hero-simple-cta .landing-panel {
    width: 100% !important;
    max-width: none !important;
    padding: 1rem 0.92rem 0.92rem !important;
    border-radius: 15px !important;
    border: 1px solid #2b5593 !important;
    background:
      radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.14), transparent 38%),
      linear-gradient(138deg, #0d2f5c 0%, #174989 56%, #1f5fab 100%) !important;
    box-shadow: 0 22px 34px -30px rgba(8, 16, 32, 0.88) !important;
  }

  .index-page .hero.hero-landing.hero-simple-cta .domain,
  .index-page .hero.hero-landing.hero-simple-cta h1,
  .index-page .hero.hero-landing.hero-simple-cta .hero-copy,
  .index-page .hero.hero-landing.hero-simple-cta .hero-ai-note,
  .index-page .hero.hero-landing.hero-simple-cta .hero-points li {
    color: #f4f8ff !important;
  }

  .index-page .hero.hero-landing.hero-simple-cta h1 {
    margin-top: 0.28rem;
    max-width: 11.3ch;
    font-size: clamp(2.1rem, 10vw, 2.85rem) !important;
    line-height: 0.97 !important;
  }

  .index-page .hero.hero-landing.hero-simple-cta .hero-copy {
    margin: 0.56rem 0 0.66rem;
    max-width: none;
    font-size: 1rem;
  }

  .index-page .hero.hero-landing.hero-simple-cta .hero-quick-actions {
    margin-top: 0.12rem;
    margin-bottom: 0.7rem;
    gap: 0.48rem;
  }

  .index-page .hero.hero-landing.hero-simple-cta .hero-quick-action {
    min-height: 2.72rem;
    border-radius: 11px;
    font-size: 1rem;
  }

  .index-page .hero.hero-landing.hero-simple-cta .hero-search-inline {
    margin-top: 0 !important;
    border: 1px solid rgba(234, 241, 252, 0.86) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.97) !important;
  }

  .index-page .hero.hero-landing.hero-simple-cta .hero-search-inline input[type="search"] {
    min-height: 2.7rem !important;
    border: 0 !important;
    background: transparent !important;
    color: #12253f !important;
  }

  .index-page .hero.hero-landing.hero-simple-cta .hero-search-inline button {
    min-height: 2.38rem !important;
    border-radius: 10px !important;
    border: 1px solid #dc5f00 !important;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: #fff !important;
  }

  .index-page .hero.hero-landing.hero-simple-cta .hero-stage {
    display: block !important;
    margin-top: 0.62rem;
    min-height: 230px !important;
    border-radius: 14px !important;
    background-image:
      linear-gradient(180deg, rgba(9, 22, 41, 0.12) 0%, rgba(9, 22, 41, 0.55) 100%),
      url("https://images.unsplash.com/photo-1552519507-da3b142c6e3d?auto=format&fit=crop&w=1600&q=80") !important;
    background-size: cover !important;
    background-position: center !important;
    box-shadow: 0 18px 30px -26px rgba(11, 23, 44, 0.78) !important;
  }

  .index-page .hero.hero-landing.hero-simple-cta .hero-stage::after {
    content: "Premium picks updated daily";
    position: absolute;
    left: 0.72rem;
    bottom: 0.66rem;
    padding: 0.2rem 0.54rem;
    border-radius: 999px;
    border: 1px solid rgba(227, 237, 252, 0.45);
    background: rgba(7, 16, 31, 0.52);
    color: #f5f9ff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .inventory-spotlight {
    min-height: 0 !important;
    grid-template-columns: 1fr !important;
    border-radius: 16px !important;
  }

  .inventory-spotlight-media {
    min-height: 250px !important;
  }

  .inventory-spotlight-card {
    width: calc(100% - 1rem) !important;
    margin: 0.5rem !important;
    padding: 0.84rem !important;
    border-radius: 14px !important;
  }

  .inventory-spotlight-card h1,
  .inventory-spotlight-card h2 {
    font-size: clamp(1.9rem, 9vw, 2.4rem) !important;
    max-width: 11.2ch !important;
  }

  .inventory-spotlight-subcopy {
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .inventory-spotlight-tagline {
    display: none !important;
  }

  .inventory-finder-form,
  .search-grid,
  .field-grid,
  .account-form,
  .profile-grid,
  .consumer-sell-layout,
  .checkout-layout {
    grid-template-columns: 1fr !important;
  }

  .inventory-finder-actions,
  .inventory-landing-footer,
  .advanced-landing-actions,
  .search-actions,
  .page-landing-actions,
  .checkout-controls {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.45rem !important;
  }

  .inventory-page .inventory-segment-columns {
    grid-template-columns: 1fr !important;
  }

  .inventory-page .inventory-segment-column a {
    grid-template-columns: 2.8rem 1fr 2.8rem !important;
    min-height: 3.05rem !important;
  }

  .inventory-brand-logo {
    width: 2.16rem !important;
    height: 2.16rem !important;
  }

  .inventory-brand-logo-img {
    max-width: 1.56rem !important;
    max-height: 1.56rem !important;
  }

  .vehicle-grid,
  .manufacturer-vehicle-grid,
  .category-grid {
    grid-template-columns: 1fr !important;
    gap: 0.7rem !important;
  }

  .vehicle-card,
  .category-vehicle-card,
  .manufacturer-vehicle-card {
    padding: 0.62rem !important;
  }

  .vehicle-media {
    min-height: 160px !important;
  }

  .vehicle-actions,
  .manufacturer-vehicle-actions,
  .profile-actions,
  .panel-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.4rem !important;
  }

  .estimator-form,
  .consumer-sell-form,
  .seller-listing-form,
  .dealer-account-panel .account-form,
  .admin-panel .account-form {
    grid-template-columns: 1fr !important;
  }

  .seller-listing-form .seller-span-2,
  .account-form .full-width {
    grid-column: 1 / -1 !important;
  }

  .checkout-rail {
    order: 2;
  }

  .checkout-workspace {
    order: 1;
  }

  .stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .dealer-dashboard,
  .admin-shell {
    max-width: none;
    padding: 0.24rem 0 0 !important;
  }

  .dealer-grid {
    grid-template-columns: 1fr !important;
  }

  .site-footer {
    text-align: center;
    gap: 0.22rem;
  }
}

/* -------------------------------------------------------------------------- */
/*  Mobile Visual Cleanup (2026-03b)                                          */
/* -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .site-header,
  body.mobile-viewport .site-header {
    position: static !important;
    background: #ffffff !important;
    border: 1px solid #d4deed !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 24px -20px rgba(15, 23, 42, 0.42) !important;
    padding: 0.62rem 0.68rem !important;
  }

  .brand,
  body.mobile-viewport .brand {
    color: #102039 !important;
    letter-spacing: 0.1em !important;
    font-size: 1.18rem !important;
  }

  .mobile-menu-toggle,
  body.mobile-viewport .mobile-menu-toggle {
    border: 1px solid #c9d7eb !important;
    background: #f2f6fd !important;
    color: #14345f !important;
  }

  .site-header.menu-open .site-nav > a,
  .site-header.menu-open .site-nav > .nav-item > a,
  body.mobile-viewport .site-header.menu-open .site-nav > a,
  body.mobile-viewport .site-header.menu-open .site-nav > .nav-item > a {
    border-color: #d2deee !important;
    background: #f8fbff !important;
    color: #152845 !important;
  }

  .site-header .header-actions,
  body.mobile-viewport .site-header .header-actions {
    margin-top: 0.06rem;
    justify-content: flex-end !important;
  }

  .auth-account,
  .auth-signout {
    border-color: #ccd8ea !important;
    background: #f3f7fe !important;
    color: #1b2e4a !important;
  }

  .index-page .hero.hero-landing.hero-simple-cta,
  body.mobile-viewport.index-page .hero.hero-landing.hero-simple-cta {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible !important;
  }

  .index-page .hero.hero-landing.hero-simple-cta .landing-panel,
  body.mobile-viewport.index-page .hero.hero-landing.hero-simple-cta .landing-panel {
    border: 1px solid #2a5ea2 !important;
    border-radius: 16px !important;
    padding: 0.94rem 0.88rem !important;
    background:
      radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.12), transparent 40%),
      linear-gradient(138deg, #103768 0%, #1a4f92 58%, #2a68b2 100%) !important;
    box-shadow: 0 18px 32px -24px rgba(10, 20, 36, 0.82) !important;
    overflow: visible !important;
  }

  .index-page .hero.hero-landing.hero-simple-cta .domain,
  .index-page .hero.hero-landing.hero-simple-cta h1,
  .index-page .hero.hero-landing.hero-simple-cta .hero-copy,
  .index-page .hero.hero-landing.hero-simple-cta .hero-ai-note,
  body.mobile-viewport.index-page .hero.hero-landing.hero-simple-cta .domain,
  body.mobile-viewport.index-page .hero.hero-landing.hero-simple-cta h1,
  body.mobile-viewport.index-page .hero.hero-landing.hero-simple-cta .hero-copy,
  body.mobile-viewport.index-page .hero.hero-landing.hero-simple-cta .hero-ai-note {
    color: #f6faff !important;
  }

  .index-page .hero.hero-landing.hero-simple-cta h1,
  body.mobile-viewport.index-page .hero.hero-landing.hero-simple-cta h1 {
    margin: 0.08rem 0 0.56rem !important;
    max-width: 11ch !important;
    font-size: clamp(2.12rem, 10vw, 2.75rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.015em;
    text-wrap: balance;
  }

  .index-page .hero.hero-landing.hero-simple-cta .hero-copy,
  body.mobile-viewport.index-page .hero.hero-landing.hero-simple-cta .hero-copy {
    margin: 0 0 0.62rem !important;
    font-size: 0.98rem !important;
    line-height: 1.36 !important;
  }

  .index-page .hero.hero-landing.hero-simple-cta .hero-quick-actions,
  body.mobile-viewport.index-page .hero.hero-landing.hero-simple-cta .hero-quick-actions {
    margin: 0.08rem 0 0.68rem !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.44rem !important;
  }

  .index-page .hero.hero-landing.hero-simple-cta .hero-quick-action,
  body.mobile-viewport.index-page .hero.hero-landing.hero-simple-cta .hero-quick-action {
    min-height: 2.6rem !important;
    border-radius: 999px !important;
    font-size: 1rem !important;
    border-width: 1px !important;
  }

  .index-page .hero.hero-landing.hero-simple-cta .hero-quick-action-new,
  body.mobile-viewport.index-page .hero.hero-landing.hero-simple-cta .hero-quick-action-new {
    border-color: #3f7de0 !important;
    background: linear-gradient(135deg, #3f7de0 0%, #2a63c8 100%) !important;
  }

  .index-page .hero.hero-landing.hero-simple-cta .hero-quick-action-used,
  body.mobile-viewport.index-page .hero.hero-landing.hero-simple-cta .hero-quick-action-used {
    border-color: #334560 !important;
    background: linear-gradient(135deg, #3b4b62 0%, #2a3648 100%) !important;
  }

  .index-page .hero.hero-landing.hero-simple-cta .hero-search-inline,
  body.mobile-viewport.index-page .hero.hero-landing.hero-simple-cta .hero-search-inline {
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.4rem !important;
    border: 1px solid rgba(236, 244, 255, 0.86) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.97) !important;
    padding: 0.34rem !important;
  }

  .index-page .hero.hero-landing.hero-simple-cta .hero-search-inline input[type="search"],
  body.mobile-viewport.index-page .hero.hero-landing.hero-simple-cta .hero-search-inline input[type="search"] {
    min-height: 2.56rem !important;
    border: 1px solid #cad8ec !important;
    border-radius: 10px !important;
    background: #f9fbff !important;
    color: #142741 !important;
  }

  .index-page .hero.hero-landing.hero-simple-cta .hero-search-inline button,
  body.mobile-viewport.index-page .hero.hero-landing.hero-simple-cta .hero-search-inline button {
    width: 100% !important;
    min-height: 2.46rem !important;
    border-radius: 10px !important;
    border: 1px solid #dc5f00 !important;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: #ffffff !important;
  }

  .index-page .hero.hero-landing.hero-simple-cta .hero-ai-note,
  body.mobile-viewport.index-page .hero.hero-landing.hero-simple-cta .hero-ai-note {
    margin: 0.5rem 0 0 !important;
    font-size: 0.92rem !important;
    line-height: 1.34 !important;
    text-align: left;
  }

  .index-page .hero.hero-landing.hero-simple-cta .hero-points,
  .index-page .hero.hero-landing.hero-simple-cta .landing-tabs,
  .index-page .hero.hero-landing.hero-simple-cta .landing-view,
  body.mobile-viewport.index-page .hero.hero-landing.hero-simple-cta .hero-points,
  body.mobile-viewport.index-page .hero.hero-landing.hero-simple-cta .landing-tabs,
  body.mobile-viewport.index-page .hero.hero-landing.hero-simple-cta .landing-view {
    display: none !important;
  }

  .index-page .hero.hero-landing.hero-simple-cta .hero-stage,
  body.mobile-viewport.index-page .hero.hero-landing.hero-simple-cta .hero-stage {
    display: block !important;
    min-height: 210px !important;
    margin-top: 0.58rem !important;
    border-radius: 14px !important;
    background-image:
      linear-gradient(180deg, rgba(11, 22, 39, 0.16) 0%, rgba(11, 22, 39, 0.56) 100%),
      url("https://images.unsplash.com/photo-1552519507-da3b142c6e3d?auto=format&fit=crop&w=1600&q=80") !important;
    background-size: cover !important;
    background-position: center !important;
    box-shadow: 0 16px 28px -22px rgba(11, 21, 37, 0.78) !important;
  }
}

/* -------------------------------------------------------------------------- */
/*  Mobile Menu + Hero Cleanup (2026-03c)                                     */
/* -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .site-header.menu-open .site-nav,
  body.mobile-viewport .site-header.menu-open .site-nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.36rem !important;
    padding-top: 0.52rem !important;
    margin-top: 0.08rem;
    border-top: 1px solid #dee7f3;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .site-header.menu-open .site-nav > .nav-item,
  body.mobile-viewport .site-header.menu-open .site-nav > .nav-item {
    width: 100%;
  }

  .site-header.menu-open .site-nav > .nav-item::after,
  body.mobile-viewport .site-header.menu-open .site-nav > .nav-item::after {
    display: none;
  }

  .site-header.menu-open .site-nav > a,
  .site-header.menu-open .site-nav > .nav-item > a,
  body.mobile-viewport .site-header.menu-open .site-nav > a,
  body.mobile-viewport .site-header.menu-open .site-nav > .nav-item > a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 2.54rem !important;
    padding: 0 0.82rem !important;
    border-radius: 10px !important;
    border: 1px solid #cfdced !important;
    background: #f7fbff !important;
    color: #14345c !important;
    font-size: 1.02rem !important;
    font-weight: 600 !important;
  }

  .site-header .header-actions,
  body.mobile-viewport .site-header .header-actions {
    margin-top: 0.32rem;
    padding-top: 0.45rem;
    border-top: 1px solid #e1e8f3;
    justify-content: flex-start !important;
    gap: 0.45rem !important;
  }

  .site-header.menu-open .header-actions .header-cta,
  body.mobile-viewport .site-header.menu-open .header-actions .header-cta {
    display: none !important;
  }

  .site-header .auth-status,
  body.mobile-viewport .site-header .auth-status {
    justify-content: flex-start !important;
  }

  .index-page .hero.hero-landing.hero-simple-cta .landing-panel,
  body.mobile-viewport.index-page .hero.hero-landing.hero-simple-cta .landing-panel {
    padding-top: 1.04rem !important;
  }

  .index-page .hero.hero-landing.hero-simple-cta h1,
  body.mobile-viewport.index-page .hero.hero-landing.hero-simple-cta h1 {
    margin-top: 0 !important;
    line-height: 1.08 !important;
    text-wrap: balance;
  }
}

/* -------------------------------------------------------------------------- */
/*  Sponsor Badge Pass (2026-03d)                                             */
/* -------------------------------------------------------------------------- */
.index-page .hero-stage,
.hero-mobile-media {
  position: relative;
  overflow: hidden;
}

.index-page .hero-stage::after,
.hero-mobile-media::after {
  content: "To sponsor, contact support@udapx.com";
  position: absolute;
  right: 0.58rem;
  bottom: 0.52rem;
  z-index: 4;
  pointer-events: none;
  max-width: min(84%, 330px);
  padding: 0.18rem 0.46rem;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(7, 12, 22, 0.62);
  color: rgba(243, 246, 252, 0.96);
  font-size: clamp(0.58rem, 1.2vw, 0.74rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: right;
}

/* Keep inventory page photos and inventory hero media clean. */
body.inventory-page .inventory-spotlight-media::after {
  content: none !important;
  display: none !important;
}
