.pill.live,
.status-live {
  background: var(--danger-soft);
  color: var(--live);
}
.pill.ended,
.status-ended {
  background: var(--cream);
  color: var(--muted);
}
.status-upcoming {
  background: var(--cream);
  color: var(--gold-dk);
}
.liveDot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--live);
  box-shadow: 0 0 0 4px #b832371f;
  animation: livePulse 1.4s infinite;
}
@media (prefers-reduced-motion: reduce) {
  .liveDot {
    animation: none;
  }
}
body {
  background: var(--bg);
  color: var(--brand-ink);
  font-family: var(--font, Tahoma, Arial, sans-serif);
}
header {
  background: transparent;
  border: 0;
  box-shadow: none;
}
.nav {
  max-width: 1360px;
  height: 70px;
  padding: 0 24px;
}
main {
  padding-block: var(--am-space-2) 80px;
}
.filters {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr 0.7fr auto;
  gap: 10px;
  align-items: center;
  margin: 16px 0 0;
  background: var(--surface);
  padding: 10px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-xs);
}
.filters input,
.filters select {
  height: 52px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  color: var(--ink);
  padding: 0 16px;
  font-size: var(--fs-lg);
  font-weight: 400;
}
.filters input {
  font-size: var(--fs-lg);
}
.filters button {
  height: 52px;
  padding: 0 22px;
  background: var(--brand-gold);
  border: 0;
  border-radius: var(--radius-card);
  color: var(--surface);
  font-weight: 600;
  font-size: var(--fs-lg);
  white-space: nowrap;
}
.filters button:hover {
  background: var(--brand-gold-dark);
}
#map {
  height: 560px;
  min-height: 560px;
}
@keyframes pulse {
  0% {
    opacity: 0.75;
    transform: scale(0.9);
  }
  70% {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 0;
  }
}
#auctions {
  scroll-margin-top: 88px;
}
#auctions {
  margin-top: var(--space-section, 96px);
}
#auctions .title {
  padding: 0 0 22px;
}
#auctions .title h2 {
  font-size: var(--fs-3xl);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-gold-soft);
}
.card h3 {
  font-size: var(--fs-xl);
  line-height: 1.45;
  margin: 0 0 8px;
  font-weight: 700;
}
.card .out {
  background: var(--brand-gold);
  color: var(--surface);
  border: 0;
  border-radius: var(--radius-btn);
  height: 42px;
  font-weight: 600;
}
.pill {
  background: var(--line);
  color: var(--gold-dk);
  font-weight: 600;
}
.countdown .unit {
  background: var(--ink);
  border-radius: var(--radius-btn);
}
.bidCount b {
  font-size: var(--fs-xl);
  color: var(--gold-dk);
  margin-inline-end: 4px;
}
.amLangSwitch {
  border-color: var(--border-gold-soft);
  background: var(--cream);
}
.amLangSwitch button.active {
  color: var(--gold-dk) !important;
}
@media (max-width: 900px) {
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .filters input {
    grid-column: 1/-1;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  #map {
    height: 380px;
    min-height: 380px;
  }
}
@media (max-width: 640px) {
  main {
    padding-block: var(--am-space-2) 48px;
  }
  .filters {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  .filters input,
  .filters select,
  .filters button {
    height: 52px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
}
.modal,
.amModal,
.fbOverlay,
.loginGate {
  align-items: flex-start !important;
  justify-content: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
}
.amModalCard,
.loginCard,
.fbCard {
  max-width: 100%;
  width: 100%;
  margin: auto;
  max-height: none;
  overflow: visible;
}
@media (max-width: 640px) {
  :where(main, .wrap, .workspace) {
    width: 100%;
    max-width: none;
  }
  :where(.actions, .actionArea, .formActions, .modalActions, .amModalActions)
    > :is(button, .btn, .primary, .action, .go, .am-btn) {
    flex: 1 1 140px;
  }
  :where(.grid, .formGrid, .form-grid) {
    min-width: 0;
  }
  :where(.tableWrap, .table-wrap, .table-scroll, .table-responsive) table {
    min-width: 620px;
  }
  .modal,
  .amModal,
  .fbOverlay,
  .loginGate {
    padding: 8px;
  }
}
