.exit-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.exit-popup.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.exit-popup-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    animation: slideUp 0.4s ease-out;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px 10px;
    border-radius: 50%;
    transition: background 0.3s;
}

.close-popup:hover {
    background: #f0f0f0;
}

.exit-popup h2 {
    font-size: 2.5rem;
    color: #3c2f2a;
    margin-bottom: 10px;
}

.exit-popup h3 {
    font-size: 1.8rem;
    color: #947140;
    margin-bottom: 20px;
}

.exit-popup p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.featured-book {
    margin: 20px 0;
    padding: 20px;
    background: #fff9f2;
    border-radius: 8px;
}

.featured-book img {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
}

.featured-book h4 {
    font-size: 1.4rem;
    color: #3c2f2a;
    margin-bottom: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .exit-popup-content {
        padding: 20px;
    }

    .exit-popup h2 {
        font-size: 2rem;
    }

    .exit-popup h3 {
        font-size: 1.5rem;
    }

    .exit-popup p {
        font-size: 1rem;
    }

    .featured-book img {
        max-width: 150px;
    }
}
