/* Modal centralizado */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.is-open {
    opacity: 1;
}

/* Overlay escuro + blur */
.modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
    z-index: 9998;
}

/* Container central do modal */
.modal__container {
    position: relative;
    z-index: 10000;
    background: rgba(18,18,18,0.95);
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    padding: 2rem;
    color: #f2f2f2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transform: scale(0.8);
    opacity: 0;
    animation: zoomIn 0.4s forwards;
}

/* Conteúdo */
.modal__content {
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
}

/* Footer / botão fechar */
.modal__footer {
    margin-top: 1.5rem;
    text-align: center;
}

.modal__btn {
    background: transparent;
    border: 2px solid #f2f2f2;
    border-radius: 50%;
    cursor: pointer;
    padding: 0.4rem;
    transition: all 0.3s ease;
}

.modal__btn:hover {
    transform: scale(1.2) rotate(90deg);
    background: #ff0040;
    border-color: #ff0040;
}

.modal__btn svg path {
    fill: #f2f2f2;
}

/* Animação do container */
@keyframes zoomIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsividade */
@media (max-width: 480px) {
    .modal__container {
        padding: 1.5rem;
        width: 95%;
    }
    .modal__btn svg { width: 26px; height: 26px; }
}