/* Estilos do Modal PIX */
.pix-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.pix-modal.show {
    display: flex;
}

.pix-modal-content {
    background-color: #fff;
    margin: 0;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    z-index: 99999;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pix-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.pix-modal-close:hover,
.pix-modal-close:focus {
    color: #000;
}

.pix-title {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
}

.pix-qr-container {
    text-align: center;
    margin-bottom: 25px;
}

.pix-qr-code {
    max-width: 200px;
    width: 100%;
    height: auto;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}

.pix-key-container {
    margin-bottom: 25px;
}

.pix-key-input {
    width: 93%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: monospace;
    background: #f8f9fa;
    margin-bottom: 10px;
    text-align: center;
}

.pix-copy-btn {
    width: 100%;
    padding: 12px;
    background: #000000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.pix-copy-btn:hover {
    background: #222222;
}

.pix-info {
    background: #f8f9fa;
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.pix-valor {
    font-size: 16px;
    font-weight: 200;
    color: #333;
}

.pix-valor span{
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.pix-validade {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.pix-security {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: #5cbe9e;
    text-align: center;
    margin-top: 10px;
}

.pix-loading {
    text-align: center;
    font-weight: bolder;
    padding: 20px;
    display: none;
}

.pix-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 480px) {
    .pix-modal-content {
        margin: 0;
        padding: 20px;
        width: 95%;
        z-index: 99999;
    }
    
    .pix-title {
        font-size: 20px;
    }
    
    .pix-qr-code {
        max-width: 150px;
    }
}