/* === Popup de Desconto Premium (Dark Theme) === */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Fundo mais escuro */
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: fadeInOverlay 0.3s ease;
}

.popup-container {
    background: #1e272e;
    /* Dark Slate Blue */
    width: 95%;
    max-width: 750px;
    /* Mais largo para layout horizontal */
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUpPopup 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Close Button */
.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.2s;
}

.close-popup:hover {
    color: white;
}

/* Grid Layout */
.popup-grid {
    display: flex;
    flex-direction: row;
    /* Lado a lado */
    min-height: 400px;
}

/* Coluna Visual (Esquerda) */
.popup-visual {
    flex: 0 0 40%;
    background: radial-gradient(circle at center, #2c3e50, #13181d);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 30px;
}

.glow-circle {
    position: absolute;
    width: 200px;
    height: 200px;
    background: #f1c40f;
    filter: blur(80px);
    /* Glow effect */
    opacity: 0.2;
    animation: pulseGlow 4s infinite alternate;
}

.unlock-icon {
    font-size: 5rem;
    color: #f1c40f;
    z-index: 2;
    text-shadow: 0 0 20px rgba(241, 196, 15, 0.5);
    margin-bottom: 20px;
}

.visual-tag {
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    color: #f1c40f;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

/* Coluna Conteúdo (Direita) */
.popup-content {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.popup-content h3 {
    font-family: 'Fredoka', sans-serif;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.popup-question {
    color: #b2bec3;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.popup-question strong {
    color: white;
    text-decoration: underline;
    text-decoration-color: #f1c40f;
}

.popup-text {
    font-family: 'Nunito', sans-serif;
    color: #95a5a6;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.exclusive-price-box {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #f1c40f;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.price-old {
    text-decoration: line-through;
    color: #636e72;
    font-size: 1rem;
}

.price-new {
    color: #2ecc71;
    /* Green for success/money */
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Fredoka', sans-serif;
}

.price-new small {
    font-size: 0.9rem;
    color: #bdc3c7;
    font-weight: 400;
}

/* Action Area */
.action-area {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.timer-pill {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    padding: 10px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.btn-upgrade {
    background: #f1c40f;
    color: #2c3e50;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    flex: 1;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 0 #be9b0b;
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #be9b0b;
    color: #2c3e50;
}

.text-muted {
    font-size: 0.8rem;
    color: #636e72;
    text-align: center;
    display: block;
    text-decoration: none;
    transition: 0.2s;
}

.text-muted:hover {
    color: #bdc3c7;
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .popup-grid {
        flex-direction: column;
    }

    .popup-visual {
        padding: 20px;
        min-height: 150px;
        flex: 0 0 auto;
    }

    .unlock-icon {
        font-size: 3rem;
        margin-bottom: 10px;
    }

    .popup-content {
        padding: 30px 20px;
        text-align: center;
    }

    .action-area {
        flex-direction: column;
    }

    .timer-pill {
        width: 100%;
        justify-content: center;
    }

    .btn-upgrade {
        width: 100%;
    }

    .exclusive-price-box {
        flex-direction: column;
        gap: 5px;
        text-align: center;
        border-left: none;
        border-top: 4px solid #f1c40f;
    }
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUpPopup {
    from {
        transform: translateY(50px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes pulseGlow {
    from {
        transform: scale(1);
        opacity: 0.2;
    }

    to {
        transform: scale(1.2);
        opacity: 0.4;
    }
}