:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #66736e;
  --line: #d9e2dd;
  --surface: #ffffff;
  --surface-soft: #f4f7f5;
  --surface-warm: #fbf4e6;
  --accent: #0f6d5d;
  --accent-strong: #0b4c42;
  --accent-soft: #dceee9;
  --gold: #c78521;
  --red: #b54232;
  --blue: #2c628f;
  --shadow: 0 20px 48px rgba(23, 32, 29, 0.14);
  --radius: 8px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 226, 221, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--accent-strong);
  box-shadow: 0 8px 20px rgba(15, 109, 93, 0.28);
}

.brand-text {
  font-size: 1rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.primary-nav a {
  border-bottom: 2px solid transparent;
  padding: 8px 0;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--ink);
  border-color: var(--accent);
}

.header-actions,
.hero-actions,
.toolbar-controls,
.panel-header,
.sealed-note,
.results-status,
.card-actions,
.lot-meta,
.lot-title-row,
.modal-actions {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 10px;
}

.button,
.icon-button {
  border: 1px solid transparent;
  border-radius: var(--radius);
  min-height: 42px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-weight: 760;
  line-height: 1.1;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 109, 93, 0.25);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-strong);
}

.button-secondary {
  background: var(--ink);
  color: #ffffff;
}

.button-ghost {
  background: #ffffff;
  border-color: var(--line);
  color: var(--ink);
}

.button-on-dark {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: #ffffff;
  border-color: var(--line);
  color: var(--ink);
}

.icon-button.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent);
}

.icon,
i[data-lucide],
.button svg,
.icon-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke-width: 2.1;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height) - 72px);
  overflow: hidden;
  background: #1e2926;
}

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

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 18, 15, 0.8) 0%, rgba(9, 18, 15, 0.48) 44%, rgba(9, 18, 15, 0.12) 100%),
    linear-gradient(0deg, rgba(9, 18, 15, 0.22), rgba(9, 18, 15, 0.22));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 430px);
  gap: 36px;
  align-items: end;
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100svh - var(--header-height) - 72px);
  margin: 0 auto;
  padding: 58px 0 46px;
}

.hero-copy {
  max-width: 690px;
  color: #ffffff;
  padding-bottom: 18px;
}

.eyebrow,
.small-label {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f5c978;
}

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

h1 {
  margin-bottom: 16px;
  font-size: 4rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 2.2rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.04rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 630px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.closing-panel {
  padding: 18px;
  color: #ffffff;
  background: rgba(9, 18, 15, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panel-header {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #57d39a;
  box-shadow: 0 0 0 7px rgba(87, 211, 154, 0.16);
}

.closing-list {
  display: grid;
  gap: 10px;
}

.closing-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 12px;
  color: #ffffff;
  text-align: left;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
}

.closing-list button:hover,
.closing-list button:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.closing-list span {
  font-weight: 760;
}

.closing-list strong {
  color: #f5c978;
  font-size: 0.86rem;
  white-space: nowrap;
}

.sealed-note {
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(15, 109, 93, 0.34);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.market-snapshot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(1180px, calc(100% - 48px));
  margin: -34px auto 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.market-snapshot div {
  padding: 20px;
  background: #ffffff;
}

.market-snapshot strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.7rem;
  line-height: 1;
}

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

.inventory-section,
.sealed-section,
.seller-section,
.resources-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 82px 0 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 26px;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
}

.inventory-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field svg {
  position: absolute;
  left: 14px;
  color: var(--muted);
}

.search-field input,
.toolbar-controls select,
.filter-grid select,
.seller-form input,
.seller-form select,
.seller-form textarea,
.bid-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

.search-field input {
  min-height: 52px;
  padding: 0 16px 0 44px;
  font-weight: 680;
}

.search-field input:focus,
.toolbar-controls select:focus,
.filter-grid select:focus,
.seller-form input:focus,
.seller-form select:focus,
.seller-form textarea:focus,
.bid-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 109, 93, 0.12);
}

.toolbar-controls {
  gap: 10px;
  color: var(--muted);
  font-weight: 760;
}

.toolbar-controls select {
  min-width: 170px;
  min-height: 52px;
  padding: 0 12px;
}

.inventory-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.filters {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  display: grid;
  gap: 22px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filter-group,
.filter-grid {
  display: grid;
  gap: 10px;
}

.filter-label,
.filter-grid label,
.seller-form label,
.bid-form label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 780;
}

.filter-grid select,
.seller-form input,
.seller-form select,
.seller-form textarea,
.bid-form input {
  margin-top: 7px;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  font-weight: 650;
}

.seller-form textarea {
  min-height: 104px;
  padding-top: 10px;
  resize: vertical;
}

.segmented-control,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented-control button,
.chip-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  min-height: 34px;
  padding: 7px 11px;
  font-size: 0.86rem;
  font-weight: 780;
}

.segmented-control button.active,
.chip-row button.active {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: rgba(15, 109, 93, 0.34);
}

.buyer-power {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--surface-warm);
  border: 1px solid #ebd6af;
  border-radius: var(--radius);
}

.buyer-power div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.buyer-power span,
.buyer-power p {
  color: #7b633d;
}

.buyer-power p {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.buyer-power strong {
  color: var(--ink);
}

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

.results-status {
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 740;
}

.results-status span:last-child {
  color: var(--accent-strong);
}

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

.lot-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.lot-card:hover {
  border-color: rgba(15, 109, 93, 0.34);
  box-shadow: 0 14px 34px rgba(23, 32, 29, 0.1);
}

.lot-photo {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #d6ddd9;
}

.lot-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-truck {
  object-position: 92% 58%;
}

.photo-trailer {
  object-position: 14% 60%;
}

.photo-rv {
  object-position: 24% 54%;
}

.photo-equipment {
  object-position: 58% 45%;
}

.photo-boat {
  object-position: 44% 62%;
}

.photo-reefer {
  object-position: 78% 58%;
}

.lot-badges {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(23, 32, 29, 0.82);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
}

.badge-accent {
  background: var(--accent);
}

.lot-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.lot-title-row {
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.lot-title-row h3 {
  margin: 0;
  min-width: 0;
}

.lot-title-row .icon-button {
  width: 36px;
  height: 36px;
  min-height: 36px;
}

.lot-id {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.lot-meta {
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.lot-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

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

.lot-facts div {
  min-width: 0;
  padding: 10px;
  background: var(--surface-soft);
  border-radius: var(--radius);
}

.lot-facts span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 780;
  text-transform: uppercase;
}

.lot-facts strong {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.sealed-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  color: var(--accent-strong);
}

.sealed-status span {
  font-size: 0.84rem;
  font-weight: 850;
}

.sealed-status strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.card-actions {
  gap: 10px;
}

.card-actions .button {
  flex: 1 1 0;
  min-width: 0;
  padding-inline: 10px;
}

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

.process-grid article,
.resource-grid article {
  min-width: 0;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-grid .icon {
  width: 26px;
  height: 26px;
  margin-bottom: 14px;
  color: var(--accent);
}

.process-grid p,
.resource-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.bid-policy {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 18px;
  padding: 22px;
  background: #17201d;
  color: #ffffff;
  border-radius: var(--radius);
}

.bid-policy .small-label {
  color: #f5c978;
}

.bid-policy strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
}

.bid-policy p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.seller-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 34px;
  align-items: start;
}

.seller-copy > p {
  color: var(--muted);
  font-size: 1rem;
}

.seller-steps {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.seller-steps div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  column-gap: 14px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.seller-steps span {
  grid-row: span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: var(--ink);
  border-radius: var(--radius);
  font-weight: 850;
}

.seller-steps p {
  margin: 4px 0 0;
  color: var(--muted);
}

.seller-form,
.bid-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(23, 32, 29, 0.08);
}

.seller-form h3,
.bid-form h2 {
  margin-bottom: 0;
}

.resources-section {
  padding-bottom: 82px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 28px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 12px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-weight: 740;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(9, 18, 15, 0.68);
}

.modal.active {
  display: flex;
}

.modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100svh - 44px);
  overflow: auto;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modal-wide {
  width: min(980px, 100%);
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
}

.lot-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.78fr);
}

.detail-media {
  min-height: 520px;
  background: #d6ddd9;
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-content {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.detail-content h2 {
  max-width: calc(100% - 52px);
  font-size: 1.9rem;
}

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

.detail-list div,
.doc-row,
.deposit-estimate {
  padding: 12px;
  background: var(--surface-soft);
  border-radius: var(--radius);
}

.detail-list span,
.doc-row span,
.deposit-estimate span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-list strong,
.doc-row strong,
.deposit-estimate strong {
  display: block;
  margin-top: 3px;
}

.doc-stack {
  display: grid;
  gap: 8px;
}

.detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tabs button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 780;
}

.detail-tabs button.active {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: rgba(15, 109, 93, 0.34);
}

.detail-tab-panel {
  color: var(--muted);
}

.detail-tab-panel strong {
  color: var(--ink);
}

.bid-form p {
  margin-bottom: 0;
  color: var(--muted);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 650;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: min(360px, calc(100% - 44px));
  padding: 14px 16px;
  color: #ffffff;
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

.toast.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .primary-nav {
    display: none;
  }

  .hero-inner,
  .section-heading,
  .inventory-layout,
  .seller-section,
  .bid-policy,
  .lot-detail {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    align-items: center;
  }

  .closing-panel {
    max-width: 540px;
  }

  .filters {
    position: static;
  }

  .process-grid,
  .resource-grid,
  .market-snapshot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-media {
    min-height: 300px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    padding: 12px 16px;
  }

  .brand-text,
  .button-ghost,
  .header-actions .button-primary {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner,
  .inventory-section,
  .sealed-section,
  .seller-section,
  .resources-section,
  .market-snapshot {
    width: min(100% - 28px, 1180px);
  }

  .hero-inner {
    gap: 22px;
    padding: 34px 0 96px;
  }

  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .market-snapshot {
    grid-template-columns: 1fr 1fr;
    margin-top: -74px;
  }

  .market-snapshot div {
    padding: 16px;
  }

  .closing-panel {
    padding: 12px;
  }

  .closing-list {
    gap: 8px;
  }

  .closing-list button {
    padding: 10px;
  }

  .sealed-note {
    display: none;
  }

  .inventory-toolbar,
  .auction-grid,
  .process-grid,
  .resource-grid,
  .lot-facts,
  .detail-list {
    grid-template-columns: 1fr;
  }

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

  .card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer {
    flex-direction: column;
  }

  .modal {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
