.auction-body {
  background: var(--paper);
}

.auction-header {
  position: absolute;
}

.auction-hero {
  min-height: 590px;
  padding: 154px 0 72px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(5, 4, 3, 0.9), rgba(20, 10, 4, 0.68), rgba(5, 4, 3, 0.36)),
    url("assets/hero-coffee.png") center / cover no-repeat;
}

.auction-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
  gap: 32px;
  align-items: end;
}

.auction-hero h1 {
  max-width: 780px;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
}

.auction-hero p:not(.eyebrow) {
  max-width: 720px;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(15px, 1.7vw, 19px);
}

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

.auction-hero-panel {
  display: grid;
  gap: 8px;
  align-self: end;
  padding: 22px;
  background: rgba(10, 8, 6, 0.62);
  border: 1px solid rgba(212, 161, 77, 0.36);
  border-radius: var(--radius);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.auction-hero-panel span,
.auction-hero-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.auction-hero-panel strong {
  color: var(--gold-2);
  font-size: clamp(46px, 6vw, 72px);
  line-height: 0.9;
}

.auction-section {
  padding-top: clamp(42px, 6vw, 72px);
  padding-bottom: 42px;
  background:
    radial-gradient(circle at 90% 0, rgba(101, 115, 77, 0.13), transparent 25%),
    linear-gradient(180deg, #fffdf9, #f7f3ed);
}

.auction-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: 20px;
  align-items: start;
}

.buyer-card,
.auction-rules-card,
.auction-detail,
.auction-lot-card {
  background: rgba(255, 253, 249, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.buyer-card,
.auction-rules-card {
  padding: clamp(18px, 2.6vw, 28px);
}

.auction-card-head,
.buyer-profile-line,
.auction-section-row,
.auction-detail-head,
.auction-bid-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.auction-card-head h2,
.auction-rules-card h2 {
  margin-bottom: 0;
  max-width: 720px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.05;
  text-wrap: balance;
}

.auction-rules-card h2 {
  font-size: clamp(24px, 2.8vw, 34px);
}

.auction-status-pill,
.auction-lot-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 10px;
  color: #6f461c;
  background: rgba(182, 122, 45, 0.14);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.auction-status-pill.is-ready,
.auction-lot-status.status-live,
.auction-lot-status.status-closing {
  color: #175f3b;
  background: rgba(36, 133, 84, 0.14);
}

.auction-lot-status.status-sold {
  color: #332417;
  background: rgba(51, 36, 23, 0.12);
}

.auction-lot-status.status-unsold,
.auction-status-pill.is-blocked {
  color: #873222;
  background: rgba(135, 50, 34, 0.14);
}

.auction-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 420px);
  gap: 6px;
  margin: 24px 0 18px;
  padding: 6px;
  background: #f5eadc;
  border: 1px solid #e3d8ca;
  border-radius: var(--radius);
}

.auction-role-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0 6px;
}

.auction-role-switch button {
  min-height: 46px;
  color: #6f461c;
  background: #fffaf3;
  border: 1px solid #e3d8ca;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.auction-role-switch button.is-active {
  color: var(--white);
  background: #332417;
  border-color: #332417;
}

.auction-tabs button {
  min-height: 40px;
  color: #6f461c;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.auction-tabs button.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--gold), #d39b48);
}

.auction-auth-form,
.buyer-verify-form,
.seller-lot-form,
.auction-bid-form,
.auction-proxy-form {
  display: grid;
  gap: 16px;
}

.auction-auth-form .form-grid,
.buyer-verify-form .form-grid,
.seller-lot-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.auction-auth-form label,
.buyer-verify-form label,
.seller-lot-form label,
.auction-bid-form label,
.auction-proxy-form label {
  display: grid;
  gap: 8px;
  color: #35281f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.auction-auth-form input,
.auction-auth-form select,
.buyer-verify-form input,
.buyer-verify-form select,
.seller-lot-form input,
.seller-lot-form textarea,
.auction-bid-form input,
.auction-proxy-form input {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #d5c9ba;
  border-radius: 6px;
  font: inherit;
  outline: none;
}

.seller-lot-form label.wide {
  grid-column: 1 / -1;
}

.seller-lot-form textarea {
  min-height: 92px;
  resize: vertical;
  text-transform: none;
}

.buyer-ready-panel,
.seller-ready-panel,
.role-notice {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.role-notice {
  padding: 16px;
  background: #fff5f1;
  border: 1px solid rgba(135, 50, 34, 0.2);
  border-radius: 7px;
}

.role-notice strong,
.role-notice p {
  margin: 0;
}

.role-notice p {
  color: var(--muted);
}

.buyer-profile-line strong,
.buyer-profile-line span {
  display: block;
}

.buyer-profile-line span {
  color: var(--muted);
  font-size: 13px;
}

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

.buyer-step {
  min-width: 0;
  padding: 14px 13px;
  background: #fffaf3;
  border: 1px solid #e5d7c8;
  border-radius: 7px;
}

.buyer-step.is-complete {
  border-color: rgba(36, 133, 84, 0.24);
  background: rgba(36, 133, 84, 0.08);
}

.buyer-step span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #6f461c;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.buyer-step strong {
  display: block;
  margin-bottom: 6px;
}

.buyer-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

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

.seller-empty,
.seller-lot-row {
  padding: 14px;
  background: #fffaf3;
  border: 1px solid #e5d7c8;
  border-radius: 7px;
}

.seller-lot-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.seller-lot-row strong,
.seller-lot-row p {
  display: block;
  margin: 7px 0 0;
}

.seller-lot-row p,
.seller-empty {
  color: var(--muted);
  font-size: 12px;
}

.seller-lot-row > div:last-child {
  text-align: right;
}

.auction-rules-card ul {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
  padding: 0;
  color: #3d3128;
  list-style: none;
}

.auction-rules-card li {
  padding: 12px 0;
  border-top: 1px solid #eaded0;
  font-size: 13px;
}

.auction-live-section {
  padding-top: 48px;
  background: var(--paper);
}

.auction-kpis {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.auction-kpis span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 12px;
  color: #6f461c;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.auction-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.auction-lot-list {
  display: grid;
  gap: 12px;
}

.auction-lot-card {
  display: grid;
  gap: 11px;
  width: 100%;
  min-width: 0;
  padding: 18px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.auction-lot-card:hover,
.auction-lot-card.is-active {
  border-color: rgba(154, 100, 34, 0.5);
  transform: translateY(-2px);
}

.auction-lot-card h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 19px;
  line-height: 1.14;
}

.auction-lot-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.auction-lot-card strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.auction-detail {
  overflow: hidden;
}

.auction-detail-media {
  width: 100%;
  aspect-ratio: 16 / 5.6;
  object-fit: cover;
}

.auction-detail-body {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.6vw, 28px);
}

.auction-detail h2 {
  margin: 10px 0 0;
  max-width: 760px;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.02;
  text-wrap: balance;
}

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

.auction-detail-meta div,
.auction-price-panel,
.bid-history,
.payment-note {
  min-width: 0;
  padding: 13px;
  background: #fffaf3;
  border: 1px solid #e3d8ca;
  border-radius: 7px;
}

.auction-detail-meta span,
.auction-price-panel span,
.bid-history span,
.payment-note span {
  display: block;
  margin-bottom: 6px;
  color: #735234;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.auction-detail-meta strong,
.auction-price-panel strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.35;
}

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

.auction-price-panel {
  display: grid;
  align-content: start;
  gap: 8px;
}

.auction-price-panel strong {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1;
}

.auction-price-panel.is-live strong {
  color: #175f3b;
}

.auction-bid-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  gap: 16px;
  align-items: start;
}

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

.quick-bids button {
  min-height: 44px;
  color: #6f461c;
  background: rgba(182, 122, 45, 0.1);
  border: 1px solid rgba(182, 122, 45, 0.22);
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.quick-bids button:hover {
  color: var(--white);
  background: var(--gold);
}

.legal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.legal-check input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.bid-history {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}

.bid-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #eaded0;
}

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

.bid-history-row strong,
.bid-history-row p {
  margin: 0;
}

.bid-history-row p {
  color: var(--muted);
  font-size: 12px;
}

.auction-pulse {
  animation: auctionPulse 520ms ease;
}

@keyframes auctionPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(36, 133, 84, 0.32);
  }
  100% {
    box-shadow: 0 0 0 18px rgba(36, 133, 84, 0);
  }
}

.payment-note {
  color: #3d3128;
  font-size: 13px;
}

.payment-note p {
  margin: 0;
}

@media (max-width: 1100px) {
  .auction-hero-grid,
  .auction-access-grid,
  .auction-layout,
  .auction-bid-zone {
    grid-template-columns: 1fr;
  }

  .auction-hero {
    min-height: auto;
    padding-bottom: 58px;
  }

}

@media (max-width: 780px) {
  .auction-hero {
    padding: 128px 0 58px;
  }

  .auction-hero-actions,
  .auction-card-head,
  .buyer-profile-line,
  .auction-section-row,
  .auction-detail-head {
    display: grid;
  }

  .auction-hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .auction-auth-form .form-grid,
  .buyer-verify-form .form-grid,
  .seller-lot-form .form-grid,
  .buyer-steps,
  .auction-detail-meta,
  .auction-live-grid,
  .quick-bids {
    grid-template-columns: 1fr;
  }

  .auction-detail-media {
    aspect-ratio: 16 / 9;
  }

  .auction-detail h2 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .auction-kpis {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .auction-hero-grid {
    gap: 24px;
  }

  .auction-hero h1 {
    font-size: clamp(32px, 9.7vw, 40px);
    line-height: 1.04;
  }

  .auction-hero p:not(.eyebrow) {
    font-size: 14px;
  }

  .buyer-card,
  .auction-rules-card,
  .auction-detail-body,
  .auction-lot-card {
    padding: 16px;
  }

  .auction-card-head h2,
  .auction-rules-card h2 {
    font-size: clamp(25px, 8vw, 32px);
  }

  .auction-section-row h2 {
    font-size: clamp(32px, 10vw, 40px);
    line-height: 1.05;
  }

  .auction-tabs {
    width: 100%;
  }

  .auction-role-switch,
  .seller-lot-row {
    grid-template-columns: 1fr;
  }

  .seller-lot-row > div:last-child {
    text-align: left;
  }

  .auction-price-panel strong {
    font-size: 30px;
  }

  .auction-kpis {
    gap: 8px;
  }

  .auction-kpis span {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 11px;
  }
}
