/* Popup de Compra Recente - Estilo Premium com efeito Glassmorphism */
:root {
    --popup-bg: rgba(20, 20, 20, 0.85); /* Fundo escuro semi-transparente */
    --popup-border: rgba(255, 255, 255, 0.1);
    --popup-text: #ffffff;
    --popup-subtext: #a1a1aa;
    --popup-accent: #10b981; /* Verde esmeralda vibrante */
    --popup-accent-gradient: linear-gradient(135deg, #34d399, #059669);
    --popup-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.purchase-popup {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 99999;
    background: var(--popup-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--popup-border);
    box-shadow: var(--popup-shadow);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateY(120%) scale(0.95);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 320px;
    width: auto;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    pointer-events: none; /* Garante que não bloqueie cliques quando invisível */
}

.purchase-popup.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.purchase-popup-icon-wrapper {
    position: relative;
}

.purchase-popup-icon {
    width: 44px;
    height: 44px;
    background: var(--popup-accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.purchase-popup-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Badge indicando "Novo" ou "Verificado" */
.purchase-popup-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #ffffff;
    color: var(--popup-accent);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid #1f1f1f;
}

.purchase-popup-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.purchase-popup-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--popup-text);
    margin: 0;
    line-height: 1.3;
}

.purchase-popup-subtitle {
    font-size: 13px;
    color: var(--popup-subtext);
    margin: 2px 0 0 0;
    line-height: 1.3;
}

.purchase-popup-subtitle strong {
    color: #34d399; /* Destaque leve para o plano */
    font-weight: 600;
}

.purchase-popup-time {
    font-size: 11px;
    color: #71717a;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.purchase-popup-time::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: var(--popup-accent);
    border-radius: 50%;
}

/* Close Button */
.purchase-popup-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    opacity: 0.5;
    cursor: pointer;
    background: transparent;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, opacity 0.2s;
}

.purchase-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .purchase-popup {
        bottom: 20px; /* Um pouco mais alto que a borda inferior */
        left: 20px;
        right: 20px; /* Ocupa a largura disponível mas com margens */
        max-width: none;
        width: auto;
        border-radius: 14px;
        /* Alinhar melhor em telas pequenas */
        justify-content: flex-start; 
    }
    
    .purchase-popup-title {
        font-size: 13px;
    }
    
    .purchase-popup-subtitle {
        font-size: 12px;
    }
}
