/* ESTILOS CORRIGIDOS - SEM CONFLITOS */
.ppp-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999; /* Z-index altíssimo para ficar acima de tudo */
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ppp-popup.active {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
}

.ppp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1;
}

.ppp-container {
    position: relative;
    z-index: 2;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6);
    transform: scale(0.95);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 95%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
}

.ppp-popup.active .ppp-container {
    transform: scale(1);
    animation: popupAppear 0.6s ease-out;
}

@keyframes popupAppear {
    0% { transform: scale(0.9); opacity: 0; }
    70% { transform: scale(1.03); opacity: 1; }
    100% { transform: scale(1); }
}

.ppp-image {
    display: block;
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 16px;
    padding: 20px;
}

.ppp-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 10;
}

.ppp-close svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    stroke-width: 3;
}

.ppp-close:hover {
    background: rgba(255,255,255,0.25);
    transform: rotate(90deg);
}

.ppp-trigger {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
    display: inline-block;
    margin: 10px 0;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

.ppp-trigger:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(106, 17, 203, 0.4);
}

@media (max-width: 768px) {
    .ppp-container {
        max-width: 95%;
    }
    
    .ppp-close {
        width: 36px;
        height: 36px;
    }
    
    .ppp-close svg {
        width: 20px;
        height: 20px;
    }
}