.exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 21, 48, 0.72);
  backdrop-filter: blur(3px);
}

.exit-overlay[hidden] {
  display: none;
}

body.exit-popup-open {
  overflow: hidden;
}

.exit-popup {
  position: relative;
  width: min(100%, 430px);
  padding: 32px 28px 26px;
  border: 2px solid rgba(242, 147, 28, 0.75);
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.exit-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 50%;
  background: rgba(242, 147, 28, 0.16);
  font-size: 30px;
}

.exit-popup h2 {
  margin: 0 0 9px;
  color: var(--navy);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 4.8vw, 1.7rem);
  line-height: 1.2;
}

.exit-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.exit-price {
  margin: 18px 0;
  padding: 15px;
  border: 1px solid rgba(14, 28, 63, 0.1);
  border-radius: 14px;
  background: var(--bg);
}

.exit-old {
  color: var(--muted);
  font-size: 1rem;
  text-decoration: line-through;
}

.exit-new {
  margin-left: 8px;
  color: var(--navy);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.exit-coupon {
  display: block;
  margin-top: 5px;
  color: var(--green);
  font-size: 0.79rem;
  font-weight: 700;
}

.exit-btn {
  display: block;
  width: 100%;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--white);
  box-shadow: 0 7px 22px rgba(242, 147, 28, 0.4);
  font-weight: 800;
  text-decoration: none;
}

.exit-btn:hover,
.exit-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 9px 25px rgba(242, 147, 28, 0.5);
}

.exit-close,
.exit-skip {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.exit-close {
  position: absolute;
  top: 10px;
  right: 13px;
  width: 40px;
  height: 40px;
  font-size: 26px;
  line-height: 1;
}

.exit-skip {
  margin-top: 13px;
  padding: 5px;
  font-size: 0.82rem;
  text-decoration: underline;
}

.exit-close:focus-visible,
.exit-skip:focus-visible,
.exit-btn:focus-visible {
  outline: 3px solid rgba(14, 28, 63, 0.32);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .exit-overlay { padding: 14px; }
  .exit-popup { padding: 30px 20px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .exit-btn { transition: none; }
}
