:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #101010;
  --panel-2: #191919;
  --line: rgba(255, 255, 255, 0.14);
  --text: #f7f7f7;
  --muted: #b9b9b9;
  --red: #d10f12;
  --red-dark: #87090b;
  --steel: #d7d9dc;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(209, 15, 18, 0.2), transparent 28rem),
    linear-gradient(180deg, #090909 0%, var(--bg) 48%, #0b0b0b 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body.inventory-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(209, 15, 18, 0.22), transparent 26rem),
    #050505;
}

body.search-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 0%, rgba(209, 15, 18, 0.18), transparent 28rem),
    #050505;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  min-height: 82px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  width: 74px;
  height: 58px;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.94rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
footer a:hover {
  color: var(--text);
}

.header-action,
.button,
.parts-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(209, 15, 18, 0.25);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
  box-shadow: none;
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.mobile-nav {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  min-height: calc(100svh - 82px);
  padding: clamp(42px, 7vw, 92px) clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 8vw, 7.6rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  text-transform: uppercase;
}

.hero-text {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.hero-actions,
.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.proof-row span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--steel);
  font-size: 0.9rem;
}

.hero-logo-wrap {
  position: relative;
  min-height: 500px;
}

.hero-logo-wrap::before {
  content: "";
  position: absolute;
  inset: 9% -12%;
  border: 1px solid rgba(209, 15, 18, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.03);
  transform: skew(-6deg);
}

.hero-logo-wrap img {
  position: relative;
  width: min(100%, 620px);
  height: auto;
  filter: drop-shadow(0 30px 55px rgba(0, 0, 0, 0.72));
}

.quick-request,
.inventory-search,
.promo-section,
.section,
.deal-band,
.visit {
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.quick-request {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  background: linear-gradient(135deg, #161616, #0a0a0a);
  border-bottom: 1px solid var(--line);
}

.parts-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.parts-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 800;
  text-transform: uppercase;
}

.parts-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: #080808;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.parts-form input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(209, 15, 18, 0.18);
}

.form-note {
  grid-column: 2;
  margin: -10px 0 0;
  color: var(--muted);
}

.inventory-search {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 10%, rgba(209, 15, 18, 0.16), transparent 24rem),
    #080808;
}

.inventory-search .section-heading p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
}

.inventory-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.inventory-card {
  display: grid;
  gap: 8px;
  min-height: 154px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.inventory-card.featured {
  border-color: rgba(209, 15, 18, 0.72);
  background:
    linear-gradient(145deg, rgba(209, 15, 18, 0.28), transparent 60%),
    var(--panel);
}

.inventory-card strong {
  font-size: 1.08rem;
  text-transform: uppercase;
}

.inventory-card span {
  color: var(--muted);
}

.inventory-frame-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
  box-shadow: var(--shadow);
}

.frame-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #111;
}

.frame-toolbar a {
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
}

.inventory-frame-wrap iframe {
  display: block;
  width: 100%;
  height: min(640px, 78vh);
  border: 0;
  background: #fff;
}

.promo-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.32fr);
  gap: clamp(14px, 2.2vw, 24px);
  align-items: center;
  padding-block: clamp(24px, 4vw, 38px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.16), transparent 10rem),
    radial-gradient(circle at 82% 12%, rgba(255, 191, 0, 0.16), transparent 14rem),
    repeating-conic-gradient(from -18deg at 46% 44%, rgba(209, 15, 18, 0.3) 0deg 8deg, rgba(255, 255, 255, 0.03) 8deg 14deg, transparent 14deg 20deg),
    linear-gradient(135deg, rgba(209, 15, 18, 0.38), transparent 48%),
    #0d0d0d;
  overflow: hidden;
}

.promo-section::before,
.promo-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.promo-section::before {
  inset: 18px;
  border: 1px solid rgba(209, 15, 18, 0.42);
  border-radius: 10px;
}

.promo-section::after {
  right: -80px;
  bottom: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(209, 15, 18, 0.36), transparent 68%);
}

.promo-copy {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 12px;
  padding: 0 12px;
  border: 1px solid rgba(209, 15, 18, 0.66);
  border-radius: 999px;
  background: rgba(209, 15, 18, 0.18);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.promo-section h2 {
  max-width: 760px;
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3.2vw, 3.5rem);
  color: #fff;
  text-shadow:
    0 4px 0 rgba(209, 15, 18, 0.8),
    0 18px 34px rgba(0, 0, 0, 0.68);
}

.promo-prize-burst {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 180px;
  min-height: 60px;
  margin: 0 0 12px;
  padding: 10px 16px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #fff3a6, #ffbf00 58%, #b70d10);
  color: #080808;
  text-align: center;
  box-shadow:
    0 8px 0 rgba(135, 9, 11, 0.72),
    0 18px 34px rgba(0, 0, 0, 0.44);
}

.promo-prize-burst strong {
  display: block;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1;
  text-transform: uppercase;
}

.promo-prize-burst span {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.promo-subheadline {
  max-width: 660px;
  color: var(--steel);
  font-size: clamp(0.92rem, 1.2vw, 1rem);
}

.promo-offer {
  color: #fff;
  font-size: clamp(0.94rem, 1.25vw, 1.06rem);
  font-weight: 900;
  text-transform: uppercase;
}

.promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 14px 0 12px;
}

.promo-call {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: var(--steel);
  font-weight: 900;
  text-transform: uppercase;
}

.promo-terms {
  max-width: 880px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.promo-grand-prize {
  display: grid;
  gap: 4px;
  max-width: 680px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 191, 0, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 191, 0, 0.16), transparent 64%),
    rgba(255, 255, 255, 0.05);
}

.promo-grand-prize strong {
  color: #ffbf00;
  font-size: 0.96rem;
  text-transform: uppercase;
}

.promo-grand-prize span {
  color: var(--steel);
  font-size: 0.9rem;
}

.ticket-front-card {
  position: relative;
  z-index: 1;
  margin: 0;
  align-self: center;
  justify-self: center;
  width: min(100%, 230px);
  transform: rotate(-2deg) translateY(4px);
}

.ticket-front-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.68));
}

.scratch-ticket {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: clamp(14px, 2.2vw, 20px);
  border: 1px solid rgba(209, 15, 18, 0.82);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.2), transparent 7rem),
    linear-gradient(180deg, rgba(209, 15, 18, 0.2), transparent 22%),
    repeating-linear-gradient(-35deg, rgba(255, 255, 255, 0.08) 0 6px, transparent 6px 14px),
    linear-gradient(135deg, #202020, #090909);
  box-shadow:
    0 0 0 6px rgba(209, 15, 18, 0.08),
    var(--shadow);
  overflow: hidden;
}

.scratch-ticket::before,
.scratch-ticket::after {
  content: none;
  position: absolute;
  top: 50%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0d0d0d;
  transform: translateY(-50%);
}

.scratch-ticket::before {
  left: -18px;
}

.scratch-ticket::after {
  right: -18px;
}

.ticket-topline,
.ticket-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.scratch-ticket summary,
.promo-terms-card summary {
  cursor: pointer;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}

.ticket-topline span,
.ticket-footer strong {
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
}

.ticket-topline strong {
  padding: 6px 12px;
  border-radius: 6px;
  background: #fff;
  color: var(--red);
  text-align: right;
  text-transform: uppercase;
}

.ticket-instructions {
  margin: -2px 0 4px;
  padding: 9px 12px;
  border-block: 1px solid rgba(209, 15, 18, 0.72);
  color: var(--steel);
  font-weight: 800;
  text-align: center;
}

.ticket-prize-list {
  display: grid;
  gap: 0;
}

.ticket-prize-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  min-height: 50px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(209, 15, 18, 0.65);
}

.ticket-prize-list div:first-child {
  border-top: 1px solid rgba(209, 15, 18, 0.65);
}

.ticket-prize-list span {
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}

.ticket-prize-list strong {
  color: var(--red);
  font-size: clamp(1.08rem, 1.6vw, 1.45rem);
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticket-prize-list small {
  grid-column: 2;
  margin-top: -8px;
  font-size: 0.72rem;
  color: #ffbf00;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
}

.bonus-prize-box {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 191, 0, 0.78);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
}

.bonus-prize-box strong {
  color: #ffbf00;
  font-size: 1.08rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bonus-prize-box span {
  display: grid;
  align-items: center;
  min-height: 46px;
  padding: 8px 12px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08)),
    #bfc0c2;
  color: #151515;
  font-weight: 900;
}

.scratch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.scratch-grid span {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(215, 217, 220, 0.34), rgba(215, 217, 220, 0.08)),
    #151515;
  color: #fff;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.ticket-footer span {
  color: var(--muted);
  text-align: right;
}

.promo-terms-card {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  padding: 12px 14px;
  border: 1px solid rgba(209, 15, 18, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(209, 15, 18, 0.16), transparent 80px),
    rgba(0, 0, 0, 0.34);
}

.promo-terms-card h3 {
  display: none;
  margin-bottom: 10px;
  color: #fff;
}

.promo-terms-card ul {
  columns: 2;
  column-gap: 34px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

.promo-terms-card li {
  break-inside: avoid;
  margin-bottom: 6px;
}

.inventory-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: 24px;
  align-items: end;
  padding: clamp(34px, 6vw, 70px) clamp(18px, 5vw, 72px) 28px;
}

.inventory-hero h1 {
  max-width: 960px;
  margin-bottom: 14px;
  font-size: clamp(3rem, 7vw, 6.8rem);
}

.inventory-hero p {
  max-width: 760px;
  color: var(--muted);
}

.inventory-contact {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(209, 15, 18, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.inventory-contact strong,
.inventory-contact span:first-of-type {
  color: var(--text);
  font-weight: 900;
}

.inventory-contact span {
  color: var(--muted);
}

.inventory-shell {
  padding: 0 clamp(18px, 5vw, 72px) clamp(42px, 7vw, 86px);
}

.custom-search-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.36fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(209, 15, 18, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(209, 15, 18, 0.18), transparent 50%),
    #111;
  box-shadow: var(--shadow);
}

.custom-search-copy h2 {
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 3vw, 3rem);
}

.custom-search-copy p:not(.eyebrow) {
  color: var(--muted);
}

.custom-inventory-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.custom-inventory-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.custom-inventory-form input,
.custom-inventory-form select {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: #050505;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.custom-inventory-form input:focus,
.custom-inventory-form select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(209, 15, 18, 0.2);
}

.custom-inventory-form button {
  align-self: end;
  min-height: 50px;
  border: 0;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(209, 15, 18, 0.25);
}

.search-helper-result {
  grid-column: 2;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.search-helper-result strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1rem;
  text-transform: uppercase;
}

.search-helper-result p {
  margin-bottom: 10px;
  color: var(--muted);
}

.search-helper-result a {
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
}

.inventory-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.inventory-tab {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.inventory-tab.active {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.full-inventory iframe {
  height: min(820px, 82vh);
}

.search-app {
  padding-bottom: clamp(42px, 7vw, 86px);
}

.search-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.28fr);
  gap: 24px;
  align-items: end;
  padding: clamp(34px, 6vw, 70px) clamp(18px, 5vw, 72px) 24px;
}

.search-hero h1 {
  max-width: 1040px;
  margin-bottom: 14px;
  font-size: clamp(3rem, 7vw, 6.7rem);
}

.search-hero p {
  max-width: 760px;
  color: var(--muted);
}

.search-summary {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(209, 15, 18, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.search-summary strong {
  color: var(--text);
  font-size: 1.3rem;
  text-transform: uppercase;
}

.search-summary span {
  color: var(--muted);
}

.parts-search-console,
.search-layout {
  margin-inline: clamp(18px, 5vw, 72px);
}

.parts-search-console {
  padding: 18px;
  border: 1px solid rgba(209, 15, 18, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(209, 15, 18, 0.18), transparent 55%),
    #111;
  box-shadow: var(--shadow);
}

.garage-form {
  display: grid;
  grid-template-columns: 0.75fr 1.2fr 1.2fr auto;
  gap: 12px;
  align-items: end;
}

.garage-form label,
.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.garage-form input,
.garage-form select,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: #050505;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.garage-form button,
.result-actions button,
.dialog-close {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  padding: 0 18px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.category-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.category-chip {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0b0b0b;
  color: var(--muted);
  padding: 0 13px;
  font-weight: 800;
  cursor: pointer;
}

.category-chip.active {
  border-color: var(--red);
  background: rgba(209, 15, 18, 0.22);
  color: var(--text);
}

.search-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.filter-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.filter-panel h2 {
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.check-row {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px !important;
  min-height: 32px;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

#price-filter {
  accent-color: var(--red);
}

.fallback-link,
.results-toolbar a {
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
}

.policy-summary {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(209, 15, 18, 0.32);
  border-radius: 8px;
  background: rgba(209, 15, 18, 0.08);
}

.policy-summary strong {
  text-transform: uppercase;
}

.policy-summary span {
  color: var(--muted);
  font-size: 0.92rem;
}

.policy-summary a {
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
}

.results-panel {
  min-width: 0;
}

.results-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.results-toolbar div {
  display: grid;
  gap: 3px;
}

.results-toolbar span {
  color: var(--muted);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.result-card {
  display: grid;
  gap: 12px;
  min-height: 260px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 45%),
    var(--panel);
  box-shadow: var(--shadow);
}

.result-topline,
.result-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.result-topline span {
  color: var(--muted);
  font-weight: 900;
}

.result-topline strong {
  color: var(--red);
  font-size: 1.35rem;
}

.result-card h3 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.result-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-meta span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--steel);
  font-size: 0.84rem;
}

.result-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-weight: 900;
  text-transform: uppercase;
}

.empty-state,
.start-state {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.start-state p {
  color: var(--muted);
}

.part-dialog {
  width: min(560px, calc(100% - 28px));
  border: 1px solid rgba(209, 15, 18, 0.5);
  border-radius: 8px;
  background: #101010;
  color: var(--text);
  padding: 24px;
}

.part-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.dialog-close {
  float: right;
  min-height: 36px;
  background: rgba(255, 255, 255, 0.1);
}

.dialog-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.dialog-detail span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.policy-section {
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 72px) 0;
}

.policy-section .section-heading p:not(.eyebrow) {
  max-width: 820px;
  color: var(--muted);
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.policy-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 42%),
    var(--panel);
}

.policy-card.featured {
  grid-column: span 2;
  border-color: rgba(209, 15, 18, 0.58);
  background:
    linear-gradient(145deg, rgba(209, 15, 18, 0.18), transparent 55%),
    var(--panel);
}

.policy-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  padding: 0 14px;
  cursor: pointer;
}

.filter-button.active {
  border-color: var(--red);
  background: rgba(209, 15, 18, 0.16);
  color: var(--text);
}

.parts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.part-card {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 38%),
    var(--panel);
  box-shadow: var(--shadow);
}

.part-card span {
  display: block;
  margin-bottom: 34px;
  color: var(--red);
  font-weight: 900;
}

.part-card p,
.deal-band p,
.idea-list p,
.visit p {
  color: var(--muted);
}

.part-card.hidden {
  display: none;
}

.deal-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 28px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(209, 15, 18, 0.2), transparent 52%),
    #111;
  border-block: 1px solid var(--line);
}

.deal-stack {
  display: grid;
  gap: 12px;
}

.deal-item {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-left: 4px solid var(--red);
  background: rgba(255, 255, 255, 0.06);
}

.deal-item span {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(250px, 0.42fr) minmax(0, 1fr);
  gap: 34px;
}

.idea-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.idea-list article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.visit {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  background: #0e0e0e;
  border-block: 1px solid var(--line);
}

.muted {
  color: var(--muted);
}

.phone-line {
  color: var(--steel);
  font-weight: 900;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 5vw, 72px);
  color: var(--muted);
}

footer img {
  width: 74px;
  height: 54px;
  object-fit: contain;
}

footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .desktop-nav,
  .header-action {
    display: none;
  }

  .menu-button {
    display: block;
    grid-column: 3;
  }

  .mobile-nav.open {
    position: sticky;
    top: 82px;
    z-index: 19;
    display: grid;
    gap: 1px;
    border-bottom: 1px solid var(--line);
    background: #070707;
  }

  .mobile-nav a {
    padding: 16px 22px;
    background: var(--panel);
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 800;
  }

  .hero,
  .quick-request,
  .promo-section,
  .deal-band,
  .inventory-hero,
  .search-hero,
  .custom-search-panel,
  .search-layout,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-logo-wrap {
    min-height: 0;
    order: -1;
  }

  .hero-logo-wrap img {
    max-height: 390px;
    object-fit: contain;
  }

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

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

  .garage-form button {
    grid-column: 1 / -1;
  }

  .parts-form label:last-of-type,
  .parts-form button {
    grid-column: 1 / -1;
  }

  .form-note {
    grid-column: 1;
  }

  .inventory-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .search-helper-result {
    grid-column: 1;
  }

  .parts-grid,
  .idea-list,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .promo-terms-card ul {
    columns: 1;
  }

  .ticket-front-card {
    transform: none;
  }

  .policy-card.featured {
    grid-column: auto;
  }

  .visit,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 72px;
    padding-inline: 14px;
  }

  .brand {
    width: 66px;
    height: 50px;
  }

  h1 {
    font-size: clamp(2.6rem, 17vw, 4.4rem);
  }

  .hero-actions,
  .visit-actions,
  .promo-actions,
  .button,
  .parts-form button {
    width: 100%;
  }

  .promo-call {
    justify-content: center;
    width: 100%;
  }

  .promo-prize-burst {
    width: 100%;
    min-width: 0;
  }

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

  .ticket-prize-list div,
  .bonus-prize-box {
    grid-template-columns: 1fr;
  }

  .ticket-prize-list strong,
  .ticket-prize-list small {
    grid-column: 1;
    margin-top: 0;
    text-align: left;
    white-space: normal;
  }

  .ticket-topline,
  .ticket-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .ticket-topline strong,
  .ticket-footer span {
    text-align: left;
  }

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

  .garage-form,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .results-toolbar,
  .result-topline,
  .result-actions {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .frame-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 14px;
  }

  .parts-form label,
  .parts-form label:last-of-type,
  .parts-form button {
    grid-column: auto;
  }
}
