/* Exit Popup Styles */
.exit-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.exit-popup-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.exit-popup-container {
    background: #ffffff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    padding: 40px 30px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease-out;
}

.exit-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    transition: color 0.2s;
}

.exit-popup-close:hover {
    color: #333;
}

.exit-popup-content {
    text-align: center;
}

.exit-popup-content h2 {
    font-size: 28px;
    margin: 0 0 15px 0;
    color: #333;
    font-weight: 700;
}

.exit-popup-content p {
    font-size: 16px;
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.exit-popup-code {
    margin: 25px 0;
}

.exit-popup-code input {
    width: 100%;
    max-width: 300px;
    padding: 15px 20px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    border: 2px dashed #4CAF50;
    border-radius: 8px;
    background: #f0f9f0;
    color: #2d7a2d;
    letter-spacing: 2px;
    cursor: pointer;
}

.exit-popup-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    margin-top: 10px;
}

.exit-popup-button:hover {
    background: #45a049;
    transform: translateY(-2px);
}

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

#exit-popup-subtext {
    font-size: 14px;
    color: #999;
    margin-top: 20px !important;
    font-style: italic;
}

.exit-popup-copied {
    display: inline-block;
    margin-left: 10px;
    color: #4CAF50;
    font-weight: 600;
    animation: fadeIn 0.3s;
}

/* Responsive Design */
@media (max-width: 600px) {
    .exit-popup-container {
        padding: 30px 20px;
        width: 95%;
    }
    
    .exit-popup-content h2 {
        font-size: 24px;
    }
    
    .exit-popup-code input {
        font-size: 20px;
        padding: 12px 15px;
    }
    
    .exit-popup-button {
        width: 100%;
        padding: 12px 20px;
    }
}
