/* Kampanya popup */
body.popup-open { overflow: hidden; }

.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.promo-popup[hidden] { display: none; }

.promo-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 12, 0.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.promo-popup.is-open .promo-popup-backdrop { opacity: 1; }

.promo-popup-card {
  position: relative;
  width: min(430px, 100%);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.promo-popup.is-open .promo-popup-card {
  opacity: 1;
  transform: none;
}

.promo-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 11, 18, 0.72);
  color: var(--cream);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.promo-popup-close:hover,
.promo-popup-close:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  outline: none;
}

.promo-popup-media {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  background: #05070c;
}
.promo-popup-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: min(58vh, 520px);
  object-fit: contain;
}

.promo-popup-body {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line-soft);
  background: rgba(8, 11, 18, 0.5);
}
.promo-popup-text {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}
.promo-popup-text strong { color: var(--gold-bright); }
.promo-popup-note {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--muted-2);
  text-align: center;
}

@media (max-width: 480px) {
  .promo-popup { padding: 12px; }
  .promo-popup-card { max-height: calc(100vh - 24px); }
  .promo-popup-media img { max-height: 54vh; }
  .promo-popup-body { padding: 12px 14px 14px; }
}
