/* Exit-Intent Popup */

.exit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 20px;
}

.exit-overlay.active {
    opacity: 1;
    visibility: visible;
}

.exit-popup {
    background: linear-gradient(135deg, rgba(30, 30, 48, 0.97) 0%, rgba(18, 14, 32, 0.97) 100%);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 16px;
    padding: 28px 24px 24px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transform: scale(0.92) translateY(16px);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.exit-overlay.active .exit-popup {
    transform: scale(1) translateY(0);
}

/* Close */
.exit-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.25);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}

.exit-close:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* Title */
.exit-title {
    font-family: var(--font-family-heading, 'Cinzel', serif);
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: 0.02em;
}

/* Text */
.exit-text {
    font-family: var(--font-family-base, 'Inter', sans-serif);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.55;
    margin: 0 0 20px;
}

/* CTA */
.exit-cta {
    display: block;
    width: 100%;
    padding: 13px 20px;
    font-family: var(--font-family-base, 'Inter', sans-serif);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34D399 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 10px;
}

.exit-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}

.exit-cta:active {
    transform: translateY(0);
}

/* Skip */
.exit-skip {
    display: block;
    margin: 0 auto;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.25);
    font-family: var(--font-family-base, 'Inter', sans-serif);
    font-size: 0.72rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
    text-align: center;
}

.exit-skip:hover {
    color: rgba(255, 255, 255, 0.45);
}

.exit-wheel-hint {
    display: block;
    width: 100%;
    margin: 8px auto 0;
    padding: 10px 16px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-family-base, 'Inter', sans-serif);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.exit-wheel-hint:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.25);
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile */
@media (max-width: 480px) {
    .exit-popup {
        padding: 24px 18px 20px;
        max-width: 320px;
    }
}

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