/* ==========================================================================
   9. MODALS & INSTANT SEARCH OVERLAY
   ========================================================================== */
.overlay-bg {
  position: fixed;
  inset: 0;
  background: rgba(3, 10, 12, 0.88);
  backdrop-filter: blur(10px);
  z-index: 140;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.overlay-bg.open { display: flex; }
.overlay-box {
  width: 100%;
  max-width: 880px;
  max-height: 88vh;
  overflow-y: auto;
  background: #081C22;
  border: 1px solid var(--dy-border-gold);
  padding: 40px;
  position: relative;
}
.overlay-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  color: var(--dy-text-secondary);
  font-size: 26px;
  cursor: pointer;
}
.overlay-close:hover { color: var(--dy-gold-light); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  padding: 12px 26px;
  background: #061317;
  border: 1px solid var(--dy-gold-mid);
  color: var(--dy-gold-light);
  font-size: 13px;
  letter-spacing: 0.8px;
  z-index: 180;
  display: none;
}

.showroom-card-button {
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.showroom-dialog {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100% - 48px);
  padding: 0;
  color: var(--dy-text-primary);
  background: var(--dy-bg-primary);
  border: 1px solid var(--dy-border-gold);
}

.showroom-dialog::backdrop { background: rgba(0, 0, 0, 0.72); }
.showroom-dialog-content { padding: 24px; }
.showroom-close {
  display: block;
  margin-left: auto;
  background: none;
  color: var(--dy-gold-light);
  border: 0;
  font: inherit;
  font-size: 26px;
  cursor: pointer;
}

.showroom-dialog .dy-auth-input,
.showroom-dialog .rule-input {
  width: 100%;
  padding: 12px 4px;
  margin-bottom: 14px;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--dy-border-gold);
  font: inherit;
}

.showroom-media { display: block; width: 100%; max-height: 54vh; object-fit: contain; }
.showroom-specs div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--dy-border); }
.showroom-specs dt { flex-shrink: 0; color: var(--dy-gold-mid); }
.showroom-specs dd { margin: 0; text-align: right; }
.showroom-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.showroom-disclaimer { color: var(--dy-text-secondary); font-size: 12px; }
.showroom-notice {
  position: fixed;
  z-index: 10;
  right: 24px;
  bottom: 24px;
  padding: 14px 20px;
  color: var(--dy-gold-light);
  background: var(--dy-bg-primary);
  border: 1px solid var(--dy-border-gold);
}
