.exit-overlay {
  --exit-navy: #001d7d;
  --exit-green: #32a300;
  --exit-gold: #dfbb16;
  --exit-text: #212529;
  --exit-muted: #667085;

  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 20px;
  background: rgba(0, 15, 65, 0.72);
}

.exit-popup {
  position: relative;
  width: min(100%, 430px);
  box-sizing: border-box;
  overflow: hidden;
  padding: 32px 28px 25px;
  border: 2px solid var(--exit-gold);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  color: var(--exit-text);
  font-family: Poppins, Roboto, sans-serif;
  text-align: center;
}

.exit-popup::before {
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: var(--exit-navy);
  content: "";
}

.exit-gift {
  margin-bottom: 5px;
  font-size: 44px;
  line-height: 1;
}

.exit-popup h3 {
  margin: 8px 18px 7px;
  color: var(--exit-navy);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
}

.exit-popup p {
  margin: 0;
  color: var(--exit-muted);
  font-family: Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.exit-price {
  margin: 18px 0;
  padding: 15px;
  border: 1px solid rgba(0, 29, 125, 0.12);
  border-radius: 14px;
  background: rgba(0, 29, 125, 0.05);
}

.exit-old {
  color: #e03130;
  font-size: 18px;
  text-decoration: line-through;
}

.exit-new {
  margin-left: 8px;
  color: var(--exit-green);
  font-size: 34px;
  font-weight: 900;
}

.exit-price small {
  display: block;
  margin-top: 4px;
  color: var(--exit-muted);
  font-family: Roboto, sans-serif;
  font-size: 12px;
}

.exit-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 14px;
  padding: 16px 14px;
  background: var(--exit-green);
  box-shadow: 0 9px 22px rgba(50, 163, 0, 0.25);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.exit-btn:hover,
.exit-btn:focus-visible {
  background: #298600;
  color: #fff;
}

.exit-close {
  position: absolute;
  top: 13px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--exit-muted);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.exit-skip {
  margin-top: 13px;
  border: 0;
  background: transparent;
  color: var(--exit-muted);
  cursor: pointer;
  font-family: Roboto, sans-serif;
  font-size: 13px;
  text-decoration: underline;
}

.exit-close:focus-visible,
.exit-skip:focus-visible,
.exit-btn:focus-visible {
  outline: 3px solid var(--exit-gold);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .exit-overlay { padding: 14px; }
  .exit-popup { padding: 29px 19px 22px; }
  .exit-popup h3 { font-size: 21px; }
  .exit-new { font-size: 31px; }
}

@media (prefers-reduced-motion: no-preference) {
  .exit-popup { animation: exit-popup-in 180ms ease-out; }
  @keyframes exit-popup-in {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}
