/* ── Coupon modal backdrop ─────────────────────────────────── */
.coupon-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: rgba(8, 8, 10, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), backdrop-filter .3s var(--ease), -webkit-backdrop-filter .3s var(--ease);
}
.coupon-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Dialog card ───────────────────────────────────────────── */
.coupon-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  flex-shrink: 0;
  margin: auto;
  isolation: isolate;
  padding: 48px 48px 44px;
  border: none;
  border-radius: var(--r-xl);
  background-image: url('../img/bg-4o1twCE787.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow: hidden;
  box-shadow:
    0 0 60px 16px oklch(0.505 0.293 285.7 / .3),
    0 0 130px 50px oklch(0.505 0.293 285.7 / .18),
    0 0 200px 80px oklch(0.505 0.293 285.7 / .08),
    0 32px 100px rgba(0, 0, 0, .65);
  opacity: 0;
  transform: translateY(24px) scale(.96);
  transition:
    opacity .38s var(--ease),
    transform .38s var(--ease);
}
.coupon-modal__dialog::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 10, .84);
  z-index: -1;
}
.coupon-modal.is-open .coupon-modal__dialog {
  opacity: 1;
  transform: none;
}

/* ── Close button ──────────────────────────────────────────── */
.coupon-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px;
  border: none;
  background: none;
  color: var(--c-text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.coupon-modal__close:hover {
  color: var(--c-text);
  background: rgba(255, 255, 255, .06);
}

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 520px) {
  .coupon-modal {
    padding: 16px;
    justify-content: center;
  }
  .coupon-modal__dialog {
    padding: 40px 24px 36px;
    border-radius: 20px;
    max-width: 100%;
  }
}
