/* Modal de Pagamento */
.payment-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;
}

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

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

.payment-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;
}

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

.payment-modal h3 {
    color: #ff4500;
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
}

.payment-value {
    font-size: 42px;
    color: #fff;
    font-weight: bold;
    margin: 15px 0 10px 0;
    text-shadow: 0 0 20px rgba(255, 69, 0, 0.5);
}

.payment-order-id {
    color: #999;
    font-size: 14px;
    margin-bottom: 25px;
    font-family: monospace;
}

/* Abas de Pagamento */
.payment-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    border-bottom: 2px solid rgba(255, 69, 0, 0.3);
}

.payment-tab {
    flex: 1;
    background: rgba(255, 69, 0, 0.1);
    border: 2px solid rgba(255, 69, 0, 0.3);
    border-bottom: none;
    color: #aaa;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 14px;
    border-radius: 10px 10px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.payment-tab:hover {
    background: rgba(255, 69, 0, 0.2);
    color: #fff;
}

.payment-tab.active {
    background: linear-gradient(135deg, #ff4500 0%, #ff6a00 100%);
    border-color: #ff4500;
    color: #fff;
}

.tab-icon {
    font-size: 24px;
}

/* Conteúdo das Abas */
.payment-content {
    display: none;
    padding: 20px 0;
    animation: fadeIn 0.3s ease;
}

.payment-content.active {
    display: block;
}

/* QR Code PIX */
.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;
    text-align: left;
}

/* Formulários */
.card-form, .boleto-info {
    text-align: left;
    max-width: 450px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #aaa;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 69, 0, 0.1);
    border: 2px solid rgba(255, 69, 0, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff4500;
    background: rgba(255, 69, 0, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}

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

.payment-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 69, 0, 0.6);
}

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

/* Boleto */
.boleto-info {
    text-align: center;
}

.boleto-icon {
    font-size: 80px;
    margin: 20px 0;
}

.boleto-info h4 {
    color: #ff4500;
    font-size: 24px;
    margin-bottom: 10px;
}

.boleto-info p {
    color: #aaa;
    margin: 5px 0;
}

.boleto-amount {
    font-size: 32px;
    color: #fff;
    font-weight: bold;
    margin: 15px 0 !important;
}

/* Instruções */
.payment-instructions {
    color: #aaa;
    font-size: 13px;
    margin: 15px 0;
    line-height: 1.6;
    text-align: center;
}

/* Segurança */
.payment-security {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 69, 0, 0.2);
    color: #4caf50;
    font-size: 14px;
    font-weight: bold;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsivo */
@media (max-width: 600px) {
    .payment-modal-content {
        padding: 25px 15px;
        width: 95%;
    }
    
    .payment-value {
        font-size: 32px;
    }
    
    .payment-tabs {
        gap: 5px;
    }
    
    .payment-tab {
        font-size: 12px;
        padding: 12px 5px;
    }
    
    .tab-icon {
        font-size: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
