/* payment.css */
#paymentModal {
    display: none; /* JS altera para flex */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* Centralização Mágica */
    align-items: center;
    justify-content: center;
}

#paymentModal.active {
    display: flex !important;
}

.pay-card {
    width: 90%;
    max-width: 420px;
    background: #0b1220;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 40px;
    padding: 35px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 1);
    text-align: center;
    /* Garante que o card não "escape" para a esquerda */
    margin: auto; 
}

.qr-frame {
    background: #ffffff;
    padding: 15px;
    border-radius: 25px;
    display: inline-block;
    margin: 20px 0;
    line-height: 0;
}

.qr-frame img {
    width: 220px;
    height: 220px;
    display: block;
}

.loader-line {
    height: 3px;
    width: 100%;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
}

.loader-fill {
    height: 100%;
    width: 30%;
    background: #3b82f6;
    animation: slide 2s infinite ease-in-out;
}

@keyframes slide {
    from { transform: translateX(-100%); }
    to { transform: translateX(350%); }
}