.exit-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.exit-popup-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.exit-popup {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(160deg, var(--bg-card), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 42px 32px 32px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  transform: translateY(20px) scale(.96);
  transition: transform .3s ease;
}
.exit-popup-overlay.is-open .exit-popup {
  transform: translateY(0) scale(1);
}

.exit-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s ease, border-color .2s ease;
}
.exit-popup-close:hover { color: #fff; border-color: var(--blue); }

.exit-popup-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 0 auto 20px;
  background: rgba(37, 99, 235, .15);
  color: var(--blue-bright);
  display: flex;
  align-items: center;
  justify-content: center;
}

.exit-popup h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.exit-popup-offer {
  color: var(--text-secondary);
  font-size: .95rem;
  margin-bottom: 26px;
}
.exit-popup-offer strong { color: var(--text); }

.exit-popup form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.exit-popup input[type="text"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 13px 16px;
  font-size: .95rem;
  font-family: var(--font);
}
.exit-popup input::placeholder { color: var(--text-dim); }
.exit-popup input:focus { outline: none; border-color: var(--blue); }
.exit-popup .btn { width: 100%; }

.exit-popup-fineprint {
  color: var(--text-dim);
  font-size: .75rem;
  margin-top: 14px;
}

.exit-popup-success { display: none; }
.exit-popup.is-success .exit-popup-form-wrap { display: none; }
.exit-popup.is-success .exit-popup-success {
  display: block;
  padding: 10px 0 4px;
}
.exit-popup-success .exit-popup-icon { color: var(--blue-bright); }
.exit-popup-success p { color: var(--text-secondary); }

@media (max-width: 480px) {
  .exit-popup { padding: 36px 22px 26px; }
}
