body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > .amContainer {
  flex: 1;
  display: flex;
  align-items: center;
}
.wrap {
  width: 100%;
  max-width: 520px;
  margin: 32px auto;
  padding: 18px;
}
.box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-modal);
  padding: 28px;
  box-shadow: 0 12px 36px #46331914;
}
.brand {
  text-align: center;
  margin-bottom: 20px;
}
.brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream);
  border-radius: var(--radius-btn);
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}
.tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.tabs button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 8px #46331914;
}
label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--muted);
  margin: 14px 0 5px;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 12px 14px;
  font: inherit;
  font-size: var(--fs-md);
  background: var(--surface);
  color: var(--ink);
  transition:
    border-color 0.15s ease,
    outline 0.15s ease;
}
input:focus,
select:focus {
  outline: 2px solid rgba(174, 136, 76, 0.28);
  outline-offset: 1px;
  border-color: var(--border-gold-soft);
}
.primary {
  width: 100%;
  margin-top: 12px;
}
.primary:hover {
  transform: translateY(-1px);
}
.primary:active {
  transform: translateY(0);
}
.primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.msg {
  display: none;
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-btn);
  font-size: var(--fs-sm);
  line-height: 1.7;
  background: var(--bg);
}
.msg.show {
  display: block;
}
.msg.ok {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid var(--line-strong);
}
.msg.err {
  background: var(--danger-soft);
  color: var(--live);
  border: 1px solid var(--line-strong);
}
.note {
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.8;
  margin-top: 14px;
}
.consentBox {
  margin: 14px 0 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  border-radius: var(--radius-btn);
  padding: 13px;
}
.consentRow {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: var(--fs-sm);
  line-height: 1.8;
  font-weight: 600;
}
.consentRow input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--gold);
}
.consentRow a {
  color: var(--gold-dk);
  text-decoration: underline;
  font-weight: 700;
}
@media (max-width: 640px) {
  .wrap {
    margin: 0;
    padding: 12px;
  }
  .box {
    padding: 20px 16px;
    border-radius: var(--radius-card);
  }
}
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);
}
.dallalField input,
.dallalField textarea,
.dallalField select {
  border-radius: var(--radius-btn);
  padding: 12px;
  font-size: var(--fs-md);
}
.dallalField label {
  font-size: var(--fs-sm);
  font-weight: 600;
}
.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;
  }
}
