:root {
  color-scheme: light;
  --ink: #161616;
  --muted: #666a72;
  --soft: #f5f3ef;
  --paper: #ffffff;
  --line: #ded8cc;
  --charcoal: #090a0c;
  --teal: #00b8ad;
  --teal-dark: #08766f;
  --coral: #df332d;
  --amber: #d6a95d;
  --gold: #b88938;
  --violet: #7258d8;
  --green: #1c8b5b;
  --shadow: 0 18px 48px rgba(17, 20, 24, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(245, 243, 239, 0.95), rgba(255, 255, 255, 1) 34rem),
    var(--soft);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

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

img {
  max-width: 100%;
}

#market,
#command,
#pulse,
#sell,
.department-floor,
.deal-desk {
  scroll-margin-top: 92px;
}

[hidden] {
  display: none !important;
}

.mode-customer .admin-only,
.mode-customer .admin-inline,
.mode-admin .customer-only {
  display: none !important;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto auto auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(222, 216, 204, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.08rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.18), transparent 24%),
    radial-gradient(circle at 70% 76%, rgba(214, 169, 93, 0.24), transparent 34%),
    linear-gradient(145deg, #050608, #18130d 64%, #3b2a12);
  border: 1px solid rgba(214, 169, 93, 0.34);
  border-radius: 16px;
  font-size: 0.76rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.11),
    inset 0 -18px 32px rgba(0, 0, 0, 0.2),
    0 12px 24px rgba(9, 10, 12, 0.2);
}

.brand-logo {
  width: 44px;
  height: 44px;
  overflow: visible;
}

.logo-orbit {
  fill: rgba(255, 255, 255, 0.03);
  stroke: rgba(214, 169, 93, 0.94);
  stroke-width: 2.2;
}

.logo-i,
.logo-tonearm,
.logo-cut {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-i {
  stroke: var(--amber);
  stroke-width: 5;
}

.logo-tonearm {
  stroke: #fff;
  stroke-width: 3.2;
}

.logo-cut {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 4.2;
}

.logo-center {
  fill: #fff;
  stroke: var(--amber);
  stroke-width: 2;
}

.logo-knob {
  fill: var(--amber);
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand-copy strong {
  font-size: 1.08rem;
  font-weight: 950;
  letter-spacing: 0.03em;
}

.brand-copy small {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.topnav {
  display: inline-flex;
  justify-content: center;
  gap: 8px;
}

.topnav a {
  min-height: 40px;
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 700;
  border-radius: var(--radius);
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--ink);
  background: var(--soft);
}

.advisor-pill {
  display: grid;
  gap: 2px;
  min-width: 168px;
  padding: 9px 12px;
  background: #111;
  border: 1px solid rgba(214, 169, 93, 0.38);
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(9, 10, 12, 0.12);
}

.advisor-pill span {
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.advisor-pill strong {
  color: #fff;
  font-size: 0.86rem;
}

.view-mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(74px, 1fr));
  gap: 3px;
  padding: 4px;
  background: #f4f1ea;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.view-mode-switch button {
  min-height: 36px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.view-mode-switch button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--charcoal), #2a2117);
  box-shadow: 0 8px 18px rgba(9, 10, 12, 0.14);
}

.top-actions,
.toolbar-controls,
.view-toggle,
.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-button,
.secondary-button,
.text-button,
.icon-button,
.segment,
.category-chip {
  border: 1px solid transparent;
  border-radius: var(--radius);
  min-height: 42px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  font-weight: 800;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--charcoal), #24211d);
  border-color: rgba(214, 169, 93, 0.48);
  box-shadow: 0 10px 22px rgba(9, 10, 12, 0.2);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: linear-gradient(135deg, #1a1714, #33271a);
  border-color: var(--amber);
}

.secondary-button {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: var(--ink);
}

.text-button {
  padding: 8px 10px;
  color: var(--teal-dark);
  background: transparent;
  font-weight: 800;
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
  font-weight: 900;
}

.icon-button:hover,
.icon-button:focus-visible,
.icon-button.active {
  color: var(--coral);
  border-color: var(--gold);
}

.badge-count {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  color: #fff;
  background: var(--coral);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.retail-rail {
  position: sticky;
  top: 72px;
  z-index: 19;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px clamp(16px, 4vw, 48px);
  background: rgba(9, 10, 12, 0.96);
  border-bottom: 1px solid rgba(214, 169, 93, 0.28);
  scrollbar-width: none;
}

.retail-rail::-webkit-scrollbar {
  display: none;
}

.retail-rail button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.retail-rail button:hover,
.retail-rail button:focus-visible {
  color: #fff;
  border-color: var(--amber);
}

.compact {
  min-height: 42px;
  padding: 10px 14px;
}

.hero {
  position: relative;
  min-height: clamp(520px, 64vh, 660px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 5, 7, 0.92) 0%, rgba(4, 5, 7, 0.72) 36%, rgba(4, 5, 7, 0.18) 82%),
    linear-gradient(180deg, rgba(184, 137, 56, 0.18), rgba(4, 5, 7, 0.48));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 96px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2d49a;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 8.5vw, 8.2rem);
  line-height: 0.88;
  font-weight: 950;
}

.hero-copy {
  max-width: 610px;
  margin: 22px 0 26px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.glass-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.glass-button:hover,
.glass-button:focus-visible {
  color: #fff;
  border-color: var(--amber);
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 680px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}

.hero-search input {
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  outline: none;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.hero-search input:focus {
  border-color: #f2d49a;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin-top: 18px;
}

.hero-metrics div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.hero-metrics strong {
  display: block;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
}

.hero-metrics span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--charcoal);
  border-top: 1px solid rgba(214, 169, 93, 0.32);
  border-bottom: 1px solid rgba(214, 169, 93, 0.28);
}

.service-strip > div {
  display: grid;
  gap: 6px;
  min-height: 128px;
  padding: 22px clamp(16px, 2.4vw, 30px);
  color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0));
}

.service-strip span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 950;
}

.service-strip strong {
  font-size: 1.04rem;
}

.service-strip small {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
  font-weight: 650;
}

.department-floor {
  width: min(1540px, calc(100% - 32px));
  margin: 28px auto 8px;
}

.department-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: 20px;
  align-items: end;
  margin-bottom: 14px;
}

.department-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  line-height: 0.98;
}

.department-heading p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 720;
}

.department-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 12px;
}

.department-card {
  position: relative;
  display: grid;
  align-content: end;
  gap: 8px;
  min-height: 238px;
  overflow: hidden;
  padding: 18px;
  color: #fff;
  background-image:
    linear-gradient(180deg, rgba(9, 10, 12, 0.1), rgba(9, 10, 12, 0.88)),
    url("assets/dj-market-hero.png");
  background-size: cover, 250%;
  background-repeat: no-repeat;
  border: 1px solid rgba(214, 169, 93, 0.28);
  border-radius: var(--radius);
  text-align: left;
  box-shadow: 0 18px 42px rgba(9, 10, 12, 0.12);
  isolation: isolate;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.department-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(214, 169, 93, 0.2), rgba(223, 51, 45, 0.08) 42%, transparent 68%),
    rgba(0, 0, 0, 0.1);
  pointer-events: none;
  z-index: -1;
}

.department-card:hover,
.department-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--amber);
  box-shadow: 0 22px 52px rgba(9, 10, 12, 0.2);
}

.department-card.club {
  grid-row: span 2;
  min-height: 488px;
  background-position: center, 49% 57%;
}

.department-card.mobile {
  background-position: center, 57% 64%;
}

.department-card.vinyl {
  background-position: center, 8% 84%;
}

.department-card.starter {
  background-position: center, 60% 63%;
}

.department-card.venue {
  background-position: center, 86% 34%;
}

.department-card span {
  width: max-content;
  max-width: 100%;
  padding: 5px 8px;
  color: #19140c;
  background: var(--amber);
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.department-card strong {
  max-width: 420px;
  font-size: clamp(1.22rem, 2vw, 1.9rem);
  line-height: 1.04;
}

.department-card small {
  max-width: 390px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.45;
  font-weight: 720;
}

.category-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 18px clamp(16px, 4vw, 48px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.category-chip {
  flex: 0 0 auto;
  padding: 10px 14px;
  color: var(--muted);
  background: var(--soft);
  border-color: var(--line);
  font-weight: 800;
  white-space: nowrap;
}

.category-chip.active,
.category-chip:hover,
.category-chip:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, var(--charcoal), #2a2117);
  border-color: var(--gold);
}

.deal-desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 22px;
  width: min(1540px, calc(100% - 32px));
  margin: 26px auto;
  padding: 22px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(214, 169, 93, 0.2), rgba(16, 17, 20, 0) 38%),
    linear-gradient(90deg, rgba(223, 51, 45, 0.12), rgba(16, 17, 20, 0) 62%),
    #111;
  border: 1px solid rgba(214, 169, 93, 0.28);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(16, 17, 20, 0.16);
}

.deal-desk-copy {
  align-self: center;
  max-width: 760px;
}

.deal-desk h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1;
}

.deal-desk p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}

.deal-desk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.package-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  color: var(--ink);
  background: #fff;
  border-radius: var(--radius);
}

.package-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.package-head strong {
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1;
}

.package-items,
.bundle-offer-grid {
  display: grid;
  gap: 8px;
}

.package-item,
.bundle-offer-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  color: inherit;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}

.package-item:hover,
.package-item:focus-visible,
.bundle-offer-item:hover,
.bundle-offer-item:focus-visible {
  border-color: var(--teal);
}

.package-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 62px;
  overflow: hidden;
  background-image: url("assets/dj-market-hero.png");
  background-size: 270%;
  background-repeat: no-repeat;
  border-radius: var(--radius);
}

.package-item strong,
.package-item small,
.bundle-offer-item strong,
.bundle-offer-item small {
  display: block;
}

.package-item small,
.bundle-offer-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.package-card > p {
  margin: 0;
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-weight: 850;
}

.command-band {
  background: #111;
  color: #fff;
  border-bottom: 1px solid #272a2e;
}

.command-inner {
  width: min(1540px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.command-heading,
.panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.command-heading h2,
.operator-panel h3 {
  margin: 0;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric-tile,
.operator-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
}

.metric-tile {
  padding: 16px;
}

.metric-tile strong {
  display: block;
  margin-top: 9px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.metric-tile p,
.panel-head span {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 750;
}

.operator-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.82fr) minmax(360px, 1.08fr) minmax(260px, 0.88fr);
  gap: 12px;
  margin-top: 12px;
}

.operator-panel {
  padding: 16px;
}

.demand-lanes,
.rig-results {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.lane-row,
.rig-item {
  display: grid;
  align-items: center;
  gap: 10px;
  width: 100%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.lane-row {
  grid-template-columns: 1fr auto;
  padding: 11px;
  text-align: left;
}

.lane-row:hover,
.lane-row:focus-visible,
.rig-item:hover,
.rig-item:focus-visible {
  border-color: var(--teal);
}

.lane-row i {
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.lane-row b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--amber));
}

.rig-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.rig-button {
  min-height: 38px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  font-weight: 850;
}

.rig-button.active,
.rig-button:hover,
.rig-button:focus-visible {
  color: #111;
  background: #fff;
}

.budget-control {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.budget-control span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.rig-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px;
  color: #111;
  background: #fff;
  border-radius: var(--radius);
}

.rig-status.over {
  color: #fff;
  background: var(--coral);
}

.rig-item {
  grid-template-columns: 82px 1fr;
  padding: 8px;
  text-align: left;
}

.rig-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 62px;
  overflow: hidden;
  background-image: url("assets/dj-market-hero.png");
  background-size: 270%;
  background-repeat: no-repeat;
  border-radius: var(--radius);
}

.rig-item strong,
.rig-item small {
  display: block;
}

.rig-item small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.66);
}

.price-radar {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.radar-item {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  text-align: left;
}

.radar-item:hover,
.radar-item:focus-visible {
  border-color: var(--teal);
}

.radar-item strong,
.radar-item small {
  display: block;
}

.radar-item small {
  color: rgba(255, 255, 255, 0.68);
}

.radar-meter {
  width: max-content;
  min-height: 24px;
  padding: 4px 7px;
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.radar-meter.under,
.radar-meter.allocation {
  color: #111;
  background: var(--amber);
}

.radar-meter.fair,
.radar-meter.stock {
  color: #fff;
  background: var(--teal-dark);
}

.radar-meter.high,
.radar-meter.out {
  color: #fff;
  background: var(--coral);
}

.market-shell {
  display: grid;
  grid-template-columns: minmax(240px, 292px) 1fr;
  gap: clamp(18px, 3vw, 32px);
  width: min(1540px, calc(100% - 32px));
  margin: 26px auto 96px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 22px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(20, 24, 28, 0.06);
  backdrop-filter: blur(12px);
}

.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.filter-head h2,
.market-toolbar h2,
.modal h2,
.drawer h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.1;
}

.filter-group {
  display: grid;
  gap: 11px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.filter-group:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.filter-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #31343a;
  font-weight: 700;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--teal-dark);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--teal-dark);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 5px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.segment {
  min-height: 36px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.segment.active {
  color: #fff;
  background: var(--charcoal);
}

.market-mini {
  padding: 16px;
  background: #111;
  color: #fff;
  border: 0;
  border-radius: var(--radius);
}

.pulse-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pulse-row:first-of-type {
  border-top: 0;
}

.pulse-row strong {
  color: #fff;
  text-align: right;
}

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

.market-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 12px;
}

.toolbar-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 650;
}

.select-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

select,
input,
textarea {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

select {
  min-height: 42px;
  padding: 0 36px 0 12px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 38px;
  margin-bottom: 14px;
}

.active-filters button {
  min-height: 32px;
  padding: 7px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
}

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

.listing-grid.list-view {
  grid-template-columns: 1fr;
}

.listing-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(18, 22, 25, 0.075);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.listing-card:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 137, 56, 0.6);
  box-shadow: 0 20px 42px rgba(18, 22, 25, 0.14);
}

.listing-grid.list-view .listing-card {
  grid-template-columns: minmax(210px, 32%) 1fr;
  grid-template-rows: auto;
}

.listing-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 214px;
  overflow: hidden;
  background-image: url("assets/dj-market-hero.png");
  background-size: 270%;
  background-repeat: no-repeat;
  border: 0;
  isolation: isolate;
}

.media-controller {
  background-position: 57% 65%;
}

.media-turntable {
  background-position: 4% 86%;
}

.media-mixer {
  background-position: 48% 67%;
}

.media-synth {
  background-position: 62% 25%;
}

.media-cables {
  background-position: 84% 38%;
}

.media-headphones {
  background-position: 10% 50%;
}

.media-case {
  background-position: 99% 22%;
}

.media-pads {
  background-position: 72% 78%;
}

.listing-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.58));
  pointer-events: none;
  z-index: 0;
}

.media-badges {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.has-product-image {
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.98), rgba(255, 252, 245, 0.78) 38%, rgba(232, 225, 211, 0.78) 70%),
    linear-gradient(135deg, #fcfbf8, #e7e0d2);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.listing-media.has-product-image::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 46%, rgba(16, 17, 20, 0.36));
}

.product-image {
  position: relative;
  z-index: 1;
  display: block;
  width: min(84%, 340px);
  max-height: 76%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 16px 20px rgba(16, 17, 20, 0.18));
}

.listing-media .product-image {
  max-height: 158px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(9, 10, 12, 0.72);
  border: 1px solid rgba(214, 169, 93, 0.32);
  border-radius: var(--radius);
  font-size: 0.74rem;
  font-weight: 850;
  backdrop-filter: blur(8px);
}

.pill.hot {
  background: rgba(223, 51, 45, 0.94);
}

.pill.new {
  background: rgba(8, 118, 111, 0.94);
}

.pill.shield {
  color: #19140c;
  background: rgba(214, 169, 93, 0.94);
}

.listing-body {
  display: grid;
  gap: 13px;
  min-width: 0;
  padding: 15px;
}

.listing-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}

.listing-title {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.25;
}

.listing-title button {
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  text-align: left;
  font-weight: 850;
}

.listing-title button:hover,
.listing-title button:focus-visible {
  color: var(--coral);
}

.price {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 142px;
  text-align: right;
}

.price span,
.drawer-price span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.price strong {
  white-space: nowrap;
  font-size: 1.22rem;
  font-weight: 950;
}

.price small,
.drawer-price small {
  max-width: 168px;
  color: var(--gold);
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 850;
}

.listing-meta,
.seller-row,
.card-actions,
.spec-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.listing-meta {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.seller-row {
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.seller {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  font-weight: 850;
}

.seller-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  color: #fff;
  background: linear-gradient(135deg, var(--charcoal), #332617);
  border-radius: 50%;
  font-size: 0.76rem;
}

.seller small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.trust-meter {
  display: grid;
  gap: 4px;
  min-width: 86px;
}

.trust-meter span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-align: right;
}

.meter-track {
  height: 7px;
  overflow: hidden;
  background: #ecefed;
  border-radius: 999px;
}

.meter-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--teal));
}

.spec-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-list li {
  min-height: 30px;
  padding: 7px 9px;
  color: #3f444b;
  background: var(--soft);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 800;
}

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

.card-actions button {
  min-width: 0;
}

.save-button.saved {
  color: #fff;
  background: var(--coral);
  border-color: var(--coral);
}

.compare-button.selected {
  color: #fff;
  background: var(--violet);
  border-color: var(--violet);
}

.empty-state {
  padding: 52px 24px;
  text-align: center;
  background: #fff;
  border: 1px dashed #bbc6c1;
  border-radius: var(--radius);
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.empty-state p {
  margin: 0 auto 18px;
  color: var(--muted);
}

.compare-tray {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
  padding: 14px;
  color: #fff;
  background: rgba(16, 17, 20, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.compare-items {
  display: flex;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
}

.compare-actions {
  display: flex;
  gap: 8px;
}

.compare-token {
  flex: 0 0 auto;
  max-width: 230px;
  padding: 8px 10px;
  overflow: hidden;
  color: var(--ink);
  background: #fff;
  border-radius: var(--radius);
  font-size: 0.83rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
}

.drawer,
.modal {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(16, 17, 20, 0.58);
}

.drawer {
  z-index: 40;
}

.modal {
  z-index: 50;
}

.drawer.open,
.modal.open {
  display: block;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(540px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 26px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.compact-panel {
  width: min(440px, 100%);
}

.drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.drawer-hero {
  display: grid;
  place-items: center;
  height: 260px;
  margin: 44px -26px 24px;
  overflow: hidden;
  background-image: url("assets/dj-market-hero.png");
  background-size: 260%;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--line);
}

.drawer-hero.has-product-image {
  border-bottom-color: rgba(223, 228, 226, 0.78);
}

.detail-product-image {
  width: min(88%, 430px);
  max-height: 220px;
}

.drawer h3 {
  margin: 24px 0 10px;
}

.drawer-price {
  display: grid;
  gap: 4px;
  margin: 12px 0;
}

.drawer-price strong {
  font-size: 2rem;
  font-weight: 950;
}

.drawer-section {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.drawer-section p {
  color: var(--muted);
  line-height: 1.6;
}

.trust-passport {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 12px;
}

.passport-score,
.passport-checks,
.offer-passport,
.protection-grid > div {
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.passport-score strong {
  display: block;
  margin-top: 6px;
  font-size: 2.35rem;
  line-height: 1;
}

.passport-score p {
  margin: 8px 0 0;
  font-size: 0.84rem;
}

.passport-checks {
  display: grid;
  gap: 8px;
}

.passport-checks span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 850;
}

.passport-checks i {
  width: 13px;
  height: 13px;
  background: #cfd7d3;
  border-radius: 50%;
}

.passport-checks span.ok {
  color: var(--ink);
}

.passport-checks span.ok i {
  background: var(--teal-dark);
  box-shadow: 0 0 0 4px rgba(0, 169, 157, 0.12);
}

.protection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.protection-grid span,
.protection-grid strong,
.offer-passport strong {
  display: block;
}

.protection-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.protection-grid strong,
.offer-passport strong {
  margin-top: 6px;
}

.modal {
  overflow-y: auto;
  padding: 28px 16px;
}

.modal-panel {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 24px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.compare-panel {
  width: min(1120px, 100%);
}

.offer-panel {
  width: min(980px, 100%);
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.post-form,
.form-grid {
  display: grid;
  gap: 16px;
}

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

.post-form label,
.full-field {
  display: grid;
  gap: 7px;
}

.post-form label span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.post-form input,
.post-form select,
.post-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
}

.post-form textarea {
  resize: vertical;
}

.photo-uploader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.46fr);
  gap: 12px;
  align-items: stretch;
}

.photo-drop {
  min-height: 150px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(0, 169, 157, 0.1), rgba(255, 255, 255, 0) 54%),
    var(--soft);
  border: 1px dashed #aebbb6;
  border-radius: var(--radius);
  cursor: pointer;
}

.photo-drop:hover,
.photo-drop:focus-within {
  border-color: var(--teal);
}

.photo-drop strong,
.photo-drop small {
  display: block;
}

.photo-drop strong {
  margin-top: 6px;
  font-size: 1.05rem;
}

.photo-drop small {
  color: var(--muted);
  line-height: 1.35;
}

.photo-drop input {
  min-height: auto;
  margin-top: 14px;
  padding: 0;
  background: transparent;
  border: 0;
}

.photo-preview {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.photo-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.photo-preview[hidden] {
  display: none;
}

.listing-intel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.listing-intel > div {
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.listing-intel strong {
  display: block;
  margin-top: 8px;
}

.listing-intel p {
  margin: 6px 0 0;
  color: var(--muted);
}

.seller-checklist {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.seller-checklist div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 10px;
  color: #3f444b;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 850;
}

.check-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  background: #cfd7d3;
  border-radius: 50%;
}

.check-dot.active {
  background: var(--teal-dark);
  box-shadow: 0 0 0 4px rgba(0, 169, 157, 0.12);
}

.verification-pack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.verification-pack legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.verification-pack label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 850;
}

.compare-matrix {
  display: grid;
  gap: 8px;
  overflow-x: auto;
}

.compare-row {
  display: grid;
  grid-template-columns: 150px repeat(var(--compare-count), minmax(190px, 1fr));
  gap: 8px;
  align-items: stretch;
}

.compare-row > span,
.compare-row > strong,
.compare-product,
.compare-recommendation > div {
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare-heading > span,
.compare-row > span {
  color: var(--muted);
  font-weight: 900;
}

.compare-product {
  display: grid;
  gap: 10px;
}

.compare-product strong,
.compare-row > strong {
  font-size: 0.92rem;
  line-height: 1.35;
}

.compare-thumb,
.offer-photo {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 118px;
  overflow: hidden;
  background-image: url("assets/dj-market-hero.png");
  background-size: 270%;
  background-repeat: no-repeat;
  border: 0;
  border-radius: var(--radius);
}

.small-product-image {
  width: 86%;
  max-height: 82%;
  filter: drop-shadow(0 8px 10px rgba(16, 17, 20, 0.16));
}

.compare-recommendation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.compare-recommendation strong {
  display: block;
  margin-top: 6px;
}

.compare-recommendation p {
  margin: 6px 0 0;
  color: var(--muted);
}

.compact-empty {
  padding: 32px 18px;
}

.offer-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  gap: 18px;
}

.offer-listing {
  display: grid;
  gap: 14px;
  align-content: start;
}

.offer-listing h3 {
  margin: 8px 0 8px;
  font-size: 1.35rem;
}

.offer-listing p {
  color: var(--muted);
  line-height: 1.55;
}

.offer-passport {
  display: grid;
  gap: 2px;
}

.offer-photo {
  min-height: 220px;
}

.offer-product-image {
  width: min(88%, 360px);
  max-height: 190px;
}

.offer-controls {
  display: grid;
  gap: 14px;
}

.contact-capture {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.offer-controls label {
  display: grid;
  gap: 7px;
}

.offer-controls label span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.offer-controls input,
.offer-controls select,
.offer-controls textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
}

.contact-capture input,
.contact-capture select {
  background: #fff;
}

.offer-breakdown {
  display: grid;
  gap: 9px;
  padding: 14px;
  background: #111;
  color: #fff;
  border-radius: var(--radius);
}

.offer-breakdown .meter-track {
  background: rgba(255, 255, 255, 0.18);
}

.offer-meter {
  display: grid;
  gap: 7px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.offer-meter p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.76);
}

.breakdown-row strong {
  color: #fff;
}

.breakdown-row.total {
  padding-top: 10px;
  margin-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 1.08rem;
}

.saved-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.saved-quote-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.saved-quote-panel strong,
.saved-quote-panel small {
  display: block;
}

.saved-quote-panel strong {
  margin-top: 5px;
  font-size: 1.25rem;
}

.saved-quote-panel small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 750;
}

.deal-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.deal-summary > div,
.alert-summary > div {
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.deal-summary strong,
.alert-summary strong {
  display: block;
  margin-top: 6px;
}

.alert-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.deal-list,
.alert-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.deal-item,
.alert-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.alert-item.paused {
  opacity: 0.62;
}

.deal-item strong,
.alert-item strong,
.alert-item small,
.deal-item small,
.deal-amount span {
  display: block;
}

.alert-item small,
.deal-item small,
.deal-amount span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.deal-contact {
  color: var(--ink);
}

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

.deal-amount {
  text-align: right;
}

.alert-actions {
  display: flex;
  gap: 8px;
}

.saved-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.saved-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 58px;
  overflow: hidden;
  background-image: url("assets/dj-market-hero.png");
  background-size: 270%;
  background-repeat: no-repeat;
  border: 0;
  border-radius: var(--radius);
}

.saved-item strong,
.saved-item span {
  display: block;
}

.saved-item span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  display: none;
  max-width: min(420px, calc(100% - 32px));
  padding: 12px 16px;
  color: #fff;
  background: var(--charcoal);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  font-weight: 800;
}

.toast.show {
  display: block;
}

.mode-customer {
  background:
    linear-gradient(180deg, #f7f4ec 0, #ffffff 34rem),
    #fff;
}

.mode-customer .topbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(222, 216, 204, 0.62);
}

.mode-customer .hero {
  min-height: clamp(620px, 76vh, 780px);
}

.mode-customer .hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 5, 7, 0.93) 0%, rgba(4, 5, 7, 0.68) 38%, rgba(4, 5, 7, 0.1) 82%),
    linear-gradient(180deg, rgba(214, 169, 93, 0.18), rgba(4, 5, 7, 0.46));
}

.mode-customer .hero-content {
  width: min(680px, calc(100% - 40px));
}

.mode-customer .hero-copy {
  max-width: 575px;
}

.mode-customer .hero-search {
  max-width: 620px;
  background: rgba(255, 255, 255, 0.11);
}

.mode-customer .service-strip > div {
  min-height: 116px;
}

.mode-customer .department-floor {
  width: min(1320px, calc(100% - 40px));
  margin-top: 48px;
}

.mode-customer .department-heading {
  grid-template-columns: minmax(0, 740px);
  justify-content: center;
  text-align: center;
  margin-bottom: 20px;
}

.mode-customer .department-heading p:last-child {
  max-width: 680px;
  margin-inline: auto;
}

.mode-customer .department-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mode-customer .department-card,
.mode-customer .department-card.club {
  grid-row: auto;
  min-height: 250px;
  box-shadow: none;
}

.mode-customer .department-card strong {
  font-size: clamp(1.06rem, 1.35vw, 1.45rem);
}

.mode-customer .category-rail {
  justify-content: center;
  border-top: 1px solid var(--line);
}

.mode-customer .deal-desk {
  width: min(1320px, calc(100% - 40px));
  margin-top: 36px;
}

.mode-customer .market-shell {
  grid-template-columns: 1fr;
  width: min(1320px, calc(100% - 40px));
  margin-top: 44px;
}

.mode-customer .market-toolbar {
  justify-content: center;
  text-align: center;
  margin-bottom: 20px;
}

.mode-customer .market-toolbar > div:first-child {
  max-width: 780px;
  margin: 0 auto;
}

.mode-customer .market-toolbar h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
  letter-spacing: 0;
}

.mode-customer .active-filters,
.mode-customer .hero-metrics,
.mode-customer .media-badges,
.mode-customer .listing-card .spec-list,
.mode-customer .listing-card .seller-row,
.mode-customer .compare-button,
.mode-customer .trust-meter,
.mode-customer .compare-tray {
  display: none !important;
}

.mode-customer .listing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.mode-customer .listing-card {
  border-color: rgba(222, 216, 204, 0.82);
  box-shadow: none;
}

.mode-customer .listing-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(18, 22, 25, 0.09);
}

.mode-customer .listing-media {
  min-height: 248px;
}

.mode-customer .listing-media.has-product-image::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 62%, rgba(16, 17, 20, 0.08));
}

.mode-customer .listing-media .product-image {
  width: min(86%, 310px);
  max-height: 184px;
}

.mode-customer .listing-body {
  gap: 12px;
  padding: 18px;
}

.mode-customer .listing-top {
  display: grid;
  gap: 12px;
}

.mode-customer .price {
  justify-items: start;
  min-width: 0;
  text-align: left;
}

.mode-customer .price small {
  max-width: none;
  color: #7a622e;
}

.mode-customer .listing-meta {
  font-size: 0.82rem;
}

.mode-customer .card-actions {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  margin-top: 2px;
}

.mode-customer .drawer-panel {
  border-left: 1px solid rgba(214, 169, 93, 0.18);
}

@media (max-width: 1180px) {
  .service-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .department-card.club {
    min-height: 360px;
  }

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

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

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

  .rig-panel {
    grid-row: span 2;
  }
}

@media (max-width: 940px) {
  .topbar {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
  }

  .topnav,
  .advisor-pill {
    display: none;
  }

  .market-shell {
    grid-template-columns: 1fr;
  }

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

  .rig-panel {
    grid-row: auto;
  }

  .filters {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .department-heading {
    grid-template-columns: 1fr;
  }

  .filter-head,
  .market-mini {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  #market,
  #command,
  #pulse,
  #sell,
  .department-floor,
  .deal-desk {
    scroll-margin-top: 76px;
  }

  .topbar {
    min-height: 64px;
    padding: 0 14px;
    gap: 12px;
  }

  .view-mode-switch {
    grid-template-columns: repeat(2, minmax(58px, 1fr));
  }

  .view-mode-switch button {
    min-height: 34px;
    padding-inline: 8px;
    font-size: 0.68rem;
  }

  .top-actions {
    gap: 6px;
  }

  .retail-rail {
    top: 64px;
    padding-inline: 14px;
  }

  .brand span:last-child,
  .top-actions .compact {
    display: none;
  }

  .hero {
    min-height: 540px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(4, 6, 8, 0.72), rgba(4, 6, 8, 0.42));
  }

  .hero-content {
    width: min(100% - 28px, 680px);
    margin: 0 auto;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 18vw, 5.2rem);
  }

  .hero-search,
  .hero-metrics,
  .service-strip,
  .department-grid,
  .deal-desk,
  .market-toolbar,
  .command-heading,
  .compare-tray,
  .listing-intel,
  .photo-uploader,
  .form-grid,
  .offer-layout,
  .compare-recommendation {
    grid-template-columns: 1fr;
  }

  .hero-search button {
    width: 100%;
  }

  .hero-actions,
  .hero-actions a {
    width: 100%;
  }

  .department-card,
  .department-card.club {
    grid-row: auto;
    min-height: 224px;
  }

  .hero-metrics {
    gap: 8px;
  }

  .deal-desk {
    padding: 18px;
    margin-top: 18px;
  }

  .deal-desk-actions,
  .deal-desk-actions button {
    width: 100%;
  }

  .market-toolbar {
    align-items: stretch;
  }

  .toolbar-controls {
    justify-content: space-between;
    flex-wrap: wrap;
  }

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

  .rig-controls,
  .contact-capture,
  .deal-summary,
  .alert-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters,
  .listing-grid {
    grid-template-columns: 1fr;
  }

  .listing-grid.list-view .listing-card {
    grid-template-columns: 1fr;
  }

  .listing-media {
    min-height: 210px;
  }

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

  .compare-tray {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

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

  .compare-row {
    grid-template-columns: 110px repeat(var(--compare-count), minmax(176px, 1fr));
  }

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

  .trust-passport,
  .protection-grid,
  .verification-pack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .drawer-panel {
    padding: 22px;
  }
}

@media (max-width: 430px) {
  .hero-copy {
    font-size: 1rem;
  }

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

  .hero-metrics div:last-child {
    grid-column: 1 / -1;
  }

  .toolbar-controls {
    flex-wrap: wrap;
  }

  .saved-item {
    grid-template-columns: 64px 1fr;
  }

  .deal-item,
  .alert-item,
  .saved-quote-panel {
    grid-template-columns: 1fr;
  }

  .saved-quote-panel button {
    width: 100%;
  }

  .deal-amount {
    text-align: left;
  }

  .saved-item .icon-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .seller-checklist,
  .compare-actions,
  .rig-controls,
  .contact-capture,
  .deal-summary,
  .alert-summary,
  .trust-passport,
  .protection-grid,
  .verification-pack {
    grid-template-columns: 1fr;
  }
}
