/* Modal PIX - Versão corrigida com z-index máximo */
.pix-modal {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.95) !important;
    z-index: 999999 !important;
    justify-content: center !important;
    align-items: center !important;
    animation: fadeIn 0.3s ease;
    overflow: auto;
    padding: 20px;
}

.pix-modal.active {
    display: flex !important;
}

.pix-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 3px solid #ff4500;
    border-radius: 20px;
    padding: 30px 25px 40px 25px;
    max-width: 550px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 80px rgba(255, 69, 0, 0.5);
    animation: slideIn 0.4s ease;
    z-index: 1000000 !important;
}

.pix-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 69, 0, 0.3);
    border: 2px solid #ff4500;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
}

.pix-modal-close:hover {
    background: #ff4500;
    transform: rotate(90deg) scale(1.1);
}

.pix-modal h3 {
    color: #ff4500;
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

.pix-value {
    font-size: 48px;
    color: #fff;
    font-weight: bold;
    margin: 15px 0 25px 0;
    text-shadow: 0 0 20px rgba(255, 69, 0, 0.5);
    text-align: center;
}

.pix-order-id {
    color: #999;
    font-size: 14px;
    margin-bottom: 30px;
    font-family: monospace;
    text-align: center;
}

.qrcode-container {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin: 15px auto;
    display: inline-block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.qrcode-container img {
    display: block;
    max-width: 280px;
    width: 100%;
    height: auto;
}

.pix-code {
    background: rgba(255, 69, 0, 0.15);
    border: 2px solid #ff4500;
    border-radius: 12px;
    padding: 18px;
    margin: 15px 0;
    word-break: break-all;
    font-family: monospace;
    font-size: 11px;
    color: #fff;
    max-height: 120px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    text-align: left;
}

.copy-pix-button {
    background: linear-gradient(135deg, #ff4500 0%, #ff6a00 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin: 15px auto;
    display: block;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.4);
    text-transform: uppercase;
}

.copy-pix-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 69, 0, 0.6);
    background: linear-gradient(135deg, #ff6a00 0%, #ff4500 100%);
}

.copy-pix-button:active {
    transform: translateY(-1px);
}

.pix-instructions {
    color: #aaa;
    font-size: 15px;
    margin: 15px 0;
    line-height: 1.6;
    text-align: center;
}

.pix-status {
    color: #ff4500;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Responsivo */
@media (max-width: 600px) {
    .pix-modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .pix-value {
        font-size: 36px;
    }
    
    .qrcode-container img {
        max-width: 220px;
    }
}
