/**
 * auction.css — auction and group deal panels.
 *
 * Flat colours only (no gradients), generous spacing, one simple card.
 * Meaning is never carried by colour alone: every state also has an icon
 * and a text label.
 */

/* ---- dedicated auction layer (sits above Customer Reviews) ---- */
.layer-auction {
  width: 100%;
  margin-top: 20px;
  border-radius: 16px;
  background: var(--color-surface, var(--white));
  border: 1px solid var(--color-border, rgba(15, 39, 66, 0.14));
  overflow: hidden;
}

.auction-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--color-border, #e6edf5);
  background: var(--color-surface-raised, var(--neutral-50, var(--neutral-50)));
  color: var(--color-on-surface, var(--brand-navy-700, var(--brand-navy-700)));
  font-size: 15px;
  font-weight: 700;
}

.auction-header svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.auction-body { padding: 22px; }

.auc-wrap { width: 100%; }

/* ---- panel ---- */
.auc-card {
  --auc-ink: var(--color-on-surface, var(--brand-navy-700, var(--brand-navy-700)));
  --auc-muted: var(--color-muted, #5b6b80);
  --auc-line: var(--color-border, var(--neutral-200, var(--neutral-200)));
  --auc-soft: var(--color-surface-raised, var(--neutral-50, var(--neutral-50)));
  --auc-win: var(--color-success, #166534);
  --auc-lose: var(--color-destructive, #b42318);
  --auc-live: var(--brand-orange-700, #b45309);
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--auc-line);
  border-radius: 14px;
  background: var(--color-surface, var(--white));
  color: var(--auc-ink);
}

.auc-empty {
  padding: 20px 24px;
  color: var(--auc-muted, #5b6b80);
}

.auc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.auc-chip-static {
  background: var(--color-surface-raised, #eef4ff);
  border-color: var(--color-border, #c7d7f7);
  color: var(--color-primary, #1d4ed8);
}
.auc-chip-live {
  background: var(--brand-orange-100, #fff4e5);
  border-color: var(--brand-orange-300, #f0c48a);
  color: var(--auc-live);
}
.auc-chip-done {
  background: var(--color-surface-raised, #edf7f1);
  border-color: var(--color-border, #b6ddc6);
  color: var(--auc-win);
}
.auc-chip-muted {
  background: var(--color-surface-raised, var(--neutral-100, var(--neutral-100)));
  border-color: var(--color-border, #d8e1ec);
  color: var(--auc-muted);
}

.auc-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.auc-prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid var(--auc-line);
  border-radius: 12px;
  background: var(--auc-soft);
}

.auc-label {
  display: block;
  margin-bottom: 6px;
  color: var(--auc-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.auc-price { font-size: 28px; line-height: 1.1; }
.auc-next { font-size: 17px; font-weight: 700; }

.auc-timers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.auc-timer-block {
  padding: 14px 16px;
  border: 1px solid var(--auc-line);
  border-radius: 12px;
  background: var(--color-surface, var(--white));
}

.auc-timer {
  display: block;
  color: var(--auc-ink);
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.auc-timer-soft { color: var(--auc-live); }

.auc-reserve,
.auc-meta {
  margin: 0;
  color: var(--auc-muted);
  font-size: 14px;
  line-height: 1.5;
}

.auc-win { color: var(--auc-win); font-weight: 700; }
.auc-lose { color: var(--auc-lose); font-weight: 700; }

.auc-my {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--auc-line);
  border-radius: 10px;
  background: var(--auc-soft);
  font-size: 14px;
}

.auc-buynow-line { margin: 0; font-size: 14px; color: var(--auc-muted); }

.auc-join,
.auc-form {
  display: grid;
  gap: 14px;
}

.auc-rules {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--auc-line);
  border-radius: 10px;
  background: var(--auc-soft);
  color: var(--neutral-700, var(--neutral-700));
  font-size: 13px;
  line-height: 1.6;
}

.auc-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
}

.auc-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.auc-field input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--auc-line);
  border-radius: 10px;
  font: inherit;
}

.auc-card .btn {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 700;
}

.auc-buynow {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--brand-navy-800, #0f172a);
  color: var(--color-on-primary, var(--white));
  font-weight: 700;
}

.auc-buynow:hover { background: var(--brand-navy-700, var(--neutral-800, var(--neutral-800))); }

.auc-card button:focus-visible,
.auc-card input:focus-visible,
.auc-card summary:focus-visible {
  outline: 2px solid var(--color-ring, #1d4ed8);
  outline-offset: 2px;
}

.auc-history {
  padding-top: 18px;
  border-top: 1px solid var(--auc-line);
}

.auc-history summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.auc-history ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 14px;
}

.auc-history li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.auc-history li.is-mine { font-weight: 700; }

.auc-error {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #fda29b;
  border-radius: 10px;
  background: var(--neutral-50);
  color: var(--auc-lose);
  font-size: 13px;
}

.auc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---- group deal panel ---- */
.gb-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--color-border, var(--neutral-200, var(--neutral-200)));
  border-radius: 14px;
  background: var(--color-surface, var(--white));
  color: var(--color-on-surface, var(--brand-navy-700, var(--brand-navy-700)));
}

.gb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gb-head h3 { margin: 0; font-size: 17px; }

.gb-progress {
  height: 10px;
  border-radius: 999px;
  background: var(--color-surface-raised, var(--surface));
  overflow: hidden;
}

.gb-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--color-primary, #1d4ed8);
}

.gb-counts { margin: 0; font-size: 14px; }

.gb-meta,
.gb-mine {
  margin: 0;
  color: #5b6b80;
  font-size: 13px;
  line-height: 1.5;
}

.gb-win { margin: 0; color: #166534; font-weight: 700; }

.gb-form { display: grid; gap: 14px; }

.gb-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.gb-form input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--neutral-200, var(--neutral-200));
  border-radius: 10px;
  font: inherit;
}

.gb-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gb-timer-block { margin: 0; }
.gb-timer { font-variant-numeric: tabular-nums; font-weight: 800; }

.gb-error {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #fda29b;
  border-radius: 10px;
  background: var(--neutral-50);
  color: #b42318;
  font-size: 13px;
}

/* ---- dark theme ---- */
[data-theme="dark"] .layer-auction,
[data-theme="dark"] .auc-card,
[data-theme="dark"] .gb-card {
  background: #0f1f2e;
  border-color: rgba(255, 255, 255, 0.14);
  color: #e6eef7;
}
[data-theme="dark"] .auction-header {
  background: #12263a;
  border-bottom-color: rgba(255, 255, 255, 0.12);
  color: #e6eef7;
}
[data-theme="dark"] .auc-prices,
[data-theme="dark"] .auc-timer-block,
[data-theme="dark"] .auc-rules,
[data-theme="dark"] .auc-my {
  background: #14293d;
  border-color: rgba(255, 255, 255, 0.12);
  color: #dbe7f3;
}
[data-theme="dark"] .auc-label,
[data-theme="dark"] .auc-meta,
[data-theme="dark"] .auc-buynow-line,
[data-theme="dark"] .gb-meta,
[data-theme="dark"] .gb-mine {
  color: #9fb3c8;
}
[data-theme="dark"] .auc-field input,
[data-theme="dark"] .gb-form input {
  background: #0b1826;
  border-color: rgba(255, 255, 255, 0.16);
  color: #e6eef7;
}
[data-theme="dark"] .auc-history { border-top-color: rgba(255, 255, 255, 0.12); }

[data-theme="dark"] .gb-win { color: #4ade80; }

/* ---- small screens ---- */
@media (max-width: 720px) {
  .auction-header { padding: 14px 16px; }
  .auction-body { padding: 16px; }
  .auc-card { padding: 18px; gap: 16px; }
  .auc-price { font-size: 24px; }
  .gb-card { padding: 18px; }
  .gb-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .auc-card *,
  .gb-card * { transition: none !important; }
}

@media (prefers-contrast: more) {
  .auc-card,
  .gb-card { border-width: 2px; }
  .auc-chip { border-width: 2px; }
}

/* ---- winner modal (gold) ---- */
.auc-winner-overlay,
.auc-bid-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.6);
  padding: 20px;
}
.auc-winner-modal {
  width: min(420px, 100%);
  padding: 32px 28px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(180deg, #fff7d6 0%, #fde68a 45%, #fbbf24 100%);
  color: #78350f;
  box-shadow: 0 20px 60px rgba(120, 53, 15, 0.35);
  animation: aucWinnerPop 0.45s ease-out;
}
@keyframes aucWinnerPop {
  0% { transform: scale(0.7) translateY(20px); opacity: 0; }
  60% { transform: scale(1.05) translateY(-4px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.auc-winner-gold {
  font-size: 56px;
  line-height: 1;
  color: #b45309;
  text-shadow: 0 2px 0 #fde68a, 0 4px 12px rgba(180, 83, 9, 0.4);
  margin-bottom: 8px;
  animation: aucGoldShimmer 1.6s ease-in-out infinite;
}
@keyframes aucGoldShimmer {
  0%, 100% { transform: scale(1) rotate(0deg); filter: brightness(1); }
  50% { transform: scale(1.12) rotate(8deg); filter: brightness(1.25); }
}
.auc-winner-modal h2 { margin: 0 0 6px; font-size: 22px; }
.auc-winner-name { font-size: 18px; font-weight: 800; margin: 4px 0; }
.auc-winner-amount { font-size: 16px; margin: 6px 0; }
.auc-winner-sub { font-size: 13px; margin: 6px 0 14px; opacity: 0.85; }
.auc-winner-close {
  min-height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: #78350f;
  color: #fef3c7;
  font-weight: 700;
  cursor: pointer;
}

/* ---- bid history modal ---- */
.auc-bid-modal {
  width: min(560px, 100%);
  max-height: 80vh;
  overflow: auto;
  padding: 24px;
  border-radius: 16px;
  background: var(--color-surface, #fff);
  color: var(--color-on-surface, #0f2742);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
}
.auc-bid-modal h2 { margin: 0 0 6px; }
.auc-bid-sub { font-size: 13px; color: var(--color-muted, #5b6b80); margin: 0 0 12px; }
.auc-bid-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.auc-bid-table th, .auc-bid-table td { padding: 8px 6px; border-bottom: 1px solid var(--color-border, #e6edf5); text-align: left; }
.auc-bid-table th { font-size: 12px; text-transform: uppercase; color: var(--color-muted, #5b6b80); }
.auc-bid-close {
  margin-top: 14px;
  min-height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--brand-navy-800, #0f172a);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.auc-viewbids {
  justify-self: start;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--color-border, #d8e1ec);
  border-radius: 8px;
  background: var(--color-surface-raised, #eef4ff);
  color: var(--color-primary, #1d4ed8);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

/* ---- start-auction modal ---- */
.auc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  padding: 20px;
}
.auc-modal-overlay[hidden] { display: none; }
.auc-modal {
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
  border-radius: 16px;
  background: var(--color-surface, #fff);
  color: var(--color-on-surface, #0f2742);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
}
.auc-modal h2 { margin: 0 0 6px; }
.auc-modal-sub { font-size: 13px; color: var(--color-muted, #5b6b80); margin: 0 0 14px; }
.auc-modal-form { display: grid; gap: 12px; }
.auc-modal-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.auc-modal-form input {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--color-border, #d8e1ec);
  border-radius: 8px;
  font: inherit;
}
.auc-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }

/* ============================================================
   Auction polish — premium visual pass
   ============================================================ */
.layer-auction {
  margin: 28px 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--color-border, #e6edf5);
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}
.auction-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
  text-transform: none;
}
.auction-header svg { color: #fbbf24; }
.auction-body { padding: 24px; }

.auc-card {
  border-radius: 16px;
  padding: 22px 22px 20px;
  background: var(--color-surface, #fff);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--color-border, #e6edf5);
}
.auc-card.auc-empty { text-align: center; padding: 34px 22px; }

.auc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.auc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.auc-chip-live {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
  border-color: #86efac;
}
.auc-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: aucPulse 1.6s ease-out infinite;
}
@keyframes aucPulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.auc-chip-done { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.auc-chip-muted { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }

.auc-prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 6px 0 14px;
}
.auc-prices > div {
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border: 1px solid var(--color-border, #e6edf5);
}
.auc-price {
  display: block;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
  color: #0f172a;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.auc-next {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.auc-timers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.auc-timer-block {
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  text-align: center;
}
.auc-timer {
  display: block;
  font-size: 22px;
  font-weight: 800;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
  color: #1e40af;
  letter-spacing: 0.02em;
}
.auc-timer-soft { color: #b45309; }

.auc-reserve { margin: 8px 0; font-size: 14px; font-weight: 600; }
.auc-my { margin: 10px 0; font-size: 15px; }

.auc-form, .auc-join { margin-top: 16px; }
.auc-field input {
  min-height: 46px;
  font-size: 16px;
  font-weight: 600;
}
.auc-card .btn.btn-primary,
.auc-start-btn {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
  transition: transform .12s ease, box-shadow .12s ease;
}
.auc-card .btn.btn-primary:hover,
.auc-start-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(37, 99, 235, 0.32); }
.auc-buynow {
  min-height: 44px;
  border-radius: 12px;
  font-weight: 700;
}

.auc-history { margin-top: 18px; border-radius: 12px; padding: 10px 12px; background: #f8fafc; border: 1px solid var(--color-border, #e6edf5); }
.auc-history summary { cursor: pointer; font-weight: 700; }
.auc-history ol { padding-left: 18px; margin: 8px 0 0; }
.auc-history li { padding: 4px 0; font-size: 14px; }
.auc-viewbids { margin-top: 10px; }

/* start-auction empty state */
.auc-start { text-align: left; }
.auc-start-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.auc-start-icon {
  font-size: 34px;
  line-height: 1;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  box-shadow: 0 6px 14px rgba(251, 191, 36, 0.25);
  flex-shrink: 0;
}
.auc-start-icon svg {
  width: 26px; height: 26px;
  stroke: #92400e;
}
.auc-start-title { margin: 0 0 4px; font-size: 18px; font-weight: 800; color: #0f172a; }
.auc-start .auc-meta { margin: 0; }

/* modals polish */
.auc-modal-overlay { backdrop-filter: blur(4px); }
.auc-modal { border-radius: 20px; box-shadow: 0 30px 80px rgba(15,23,42,0.28); }
.auc-modal h2 { font-size: 20px; font-weight: 800; }
.auc-bid-modal, .auc-winner-modal { border-radius: 20px; }

/* responsive */
@media (max-width: 640px) {
  .auc-prices { grid-template-columns: 1fr; }
  .auction-body { padding: 16px; }
  .auc-timer { font-size: 18px; }
}

/* ============================================================
   Theme-aware modals & buttons (dark mode fix)
   ============================================================ */
.auc-modal-overlay,
.auc-winner-overlay,
.auc-bid-overlay {
  background: color-mix(in srgb, #000 55%, transparent);
}
.auc-modal,
.auc-bid-modal {
  background: var(--color-surface, #fff);
  color: var(--color-on-surface, #0f172a);
  border: 1px solid var(--color-border, #e2e8f0);
}
.auc-modal-form label { color: var(--color-on-surface, #0f172a); }
.auc-modal-form input {
  background: var(--color-surface, #fff);
  color: var(--color-on-surface, #0f172a);
  border: 1px solid var(--color-border, #cbd5e1);
}
.auc-modal-form input::placeholder { color: var(--color-muted, #94a3b8); }
.auc-error { color: var(--color-destructive, #b42318); }
.auc-bid-sub { color: var(--color-muted, #64748b); }
.auc-bid-table th { color: var(--color-muted, #64748b); border-bottom-color: var(--color-border, #e2e8f0); }
.auc-bid-table td { border-bottom-color: var(--color-border, #e2e8f0); color: var(--color-on-surface, #0f172a); }
.auc-bid-close,
.auc-winner-close {
  background: var(--color-primary, #1d4ed8);
  color: var(--color-on-primary, #fff);
  border: 1px solid var(--color-primary, #1d4ed8);
}
.auc-viewbids {
  background: var(--color-surface-raised, #f1f5f9);
  color: var(--color-primary, #1d4ed8);
  border: 1px solid var(--color-border, #cbd5e1);
}
.auc-start-btn { border: 1px solid transparent; }
/* winner modal stays gold but text adapts */
.auc-winner-modal { color: #78350f; }

/* ============================================================
   Header containment: keep auction body from overlapping header text
   ============================================================ */
.layer-auction { position: relative; }
.auction-header {
  position: relative;
  z-index: 2;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.auction-body {
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.auc-card { overflow: hidden; }

/* ============================================================
   FLAT PALETTE PASS
   ------------------------------------------------------------
   The auction block used a different gradient for every surface
   (navy→blue header, amber winner card, green live chip, blue
   timers, amber start icon). That read as a rainbow next to the
   rest of the product page, which is white + navy + one orange.

   Everything below is a single flat colour. The only accents kept
   are the orange for actions and a small green dot for "live",
   because those two carry meaning rather than decoration.
   ============================================================ */

.layer-auction {
  background: #ffffff;
  border: 1px solid #e4ebf3;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.auction-header {
  background: #0f2742;      /* flat navy, same as the admin rail */
  color: #ffffff;
  border-bottom: 1px solid #1c3d5a;
}
.auction-header svg { color: #ff9d2e; }

.auction-body { background: #ffffff; }

.auc-prices > div {
  background: #f7f9fc;
  border: 1px solid #e4ebf3;
}

.auc-timer-block {
  background: #f7f9fc;
  border: 1px solid #e4ebf3;
}

.auc-chip {
  background: #f1f5f9;
  border-color: #e2e9f2;
  color: #41556b;
}
.auc-chip-live {
  background: #eef8f2;
  border-color: #cfe9db;
  color: #0f6c43;
}
.auc-pulse {
  background: #128a55;
  box-shadow: none;
  animation: none;          /* no looping motion on a price page */
}

.auc-winner-modal {
  background: #ffffff;
  color: #0f2742;
  border: 2px solid #ffb46b;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.auc-card .btn.btn-primary,
.auc-start-btn {
  background: #ff7f11;
  color: #1a0d00;
  box-shadow: 0 8px 18px rgba(255, 127, 17, 0.28);
}
.auc-card .btn.btn-primary:hover,
.auc-start-btn:hover {
  background: #ff9333;
  box-shadow: 0 10px 22px rgba(255, 127, 17, 0.34);
}

.auc-start-icon {
  background: #fff5e8;
  border: 1px solid #ffe0bd;
  box-shadow: none;
}
.auc-start-icon svg { stroke: #b35b00; }

/* Dark theme keeps the same flat logic. */
[data-theme="dark"] .layer-auction,
[data-theme="dark"] .auction-body { background: #0f2438; border-color: #1c3d5a; }
[data-theme="dark"] .auc-prices > div,
[data-theme="dark"] .auc-timer-block { background: #132c44; border-color: #1f425e; }
[data-theme="dark"] .auc-winner-modal { background: #10263c; color: #eaf2fb; border-color: #b8742c; }
[data-theme="dark"] .auc-chip { background: #17334c; border-color: #24445f; color: #c6d7e6; }
[data-theme="dark"] .auc-chip-live { background: #10352a; border-color: #1e5641; color: #7fe3ae; }

@media (prefers-reduced-motion: reduce) {
  .auc-winner-modal { animation: none; }
}
