.promo-popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1055;
}

.promo-popup.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.promo-popup__dialog {
  position: relative;
  max-width: 520px;
  width: min(520px, 100%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  padding: 1.5rem 1.25rem 1.25rem;
}

.promo-popup__dialog--wide {
  max-width: 720px;
  width: min(720px, 100%);
}

.promo-popup__dialog--flush {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: none;
  width: auto;
}

.promo-popup--dark .promo-popup__dialog {
  background: #0f1624;
  color: #e8ecf5;
  box-shadow: 0 12px 40px rgba(5, 8, 15, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.promo-popup--dark .promo-popup__body {
  color: #e5e7eb;
}

.promo-popup--dark .promo-popup__body .text-muted {
  color: #9ca3af !important;
}

.promo-popup--dark .btn-close {
  filter: invert(0.9);
}

.promo-popup__body {
  max-height: 70vh;
  overflow-y: auto;
}

.promo-popup .btn-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.promo-popup__embed {
  border-radius: 10px;
  overflow: hidden;
  background: #f8f9fa;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.promo-popup__embed--dark {
  background: linear-gradient(135deg, rgba(20, 25, 39, 0.95), rgba(12, 16, 26, 0.95));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.promo-popup__iframe {
  width: 100%;
  min-height: 520px;
  border: 0;
  background: transparent;
}

.promo-popup--dark .promo-popup__iframe {
  /* Gentle invert to make the Tally form dark without crushing contrast */
  filter: invert(0.88) hue-rotate(180deg) saturate(1.12) brightness(1.12);
  background: transparent;
}
