/* ==================== MELHORIAS PROFISSIONAIS PARA CARTEIRA.HTML ==================== */

/* Header da Carteira */
.wallet-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}

/* User Card - Mais Moderno */
.user-card {
    background: white !important;
    border-radius: 20px !important;
    padding: 35px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
    margin-bottom: 30px;
    border: none !important;
}

.user-card h2 {
    color: #1e293b !important;
    font-size: 2em !important;
    font-weight: 800 !important;
    margin-bottom: 10px;
}

.user-card p {
    color: #64748b !important;
    font-size: 1.1em;
    font-weight: 500;
}

/* Nivel Card - Design Melhorado */
.nivel-card {
    background: white !important;
    border-radius: 20px !important;
    padding: 35px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
    margin-bottom: 30px;
}

.nivel-card h3 {
    color: #1e293b !important;
    font-size: 1.6em !important;
    font-weight: 800 !important;
    margin-bottom: 20px;
}

.nivel-atual {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 15px;
}

.nivel-icon {
    font-size: 3.5em;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
}

.nivel-info h4 {
    font-size: 1.8em !important;
    font-weight: 800 !important;
    margin-bottom: 8px;
}

.nivel-info p {
    color: #64748b !important;
    font-size: 1.05em;
    font-weight: 600;
}

/* Badges de Nível - Cores Profissionais */
.badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #8b4513) !important;
    color: white !important;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.4);
}

.badge.prata {
    background: linear-gradient(135deg, #c0c0c0, #808080) !important;
    color: white !important;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.5);
}

.badge.ouro {
    background: linear-gradient(135deg, #ffd700, #daa520) !important;
    color: #1e293b !important;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
}

.badge.platina {
    background: linear-gradient(135deg, #e5e4e2, #b0b0b0) !important;
    color: #1e293b !important;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(229, 228, 226, 0.6);
}

.badge.diamante {
    background: linear-gradient(135deg, #b9f2ff, #4facfe) !important;
    color: #1e293b !important;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(185, 242, 255, 0.6);
}

/* Progress Bar - Mais Bonito */
.progress-bar-container {
    background: #e2e8f0 !important;
    border-radius: 15px !important;
    height: 20px !important;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.progress-bar {
    background: linear-gradient(90deg, #3b82f6, #2563eb, #1e40af) !important;
    height: 100%;
    border-radius: 15px;
    transition: width 0.5s ease;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
    animation: progressPulse 2s infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.progress-text {
    color: #1e293b !important;
    font-size: 1.05em !important;
    font-weight: 700 !important;
    text-align: center;
    margin-top: 10px;
}

/* Próximo Nível Section */
.proximo-nivel {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-radius: 15px;
    padding: 25px;
    margin-top: 25px;
    border-left: 5px solid #3b82f6;
}

.proximo-nivel h5 {
    color: #1e40af !important;
    font-size: 1.3em !important;
    font-weight: 800 !important;
    margin-bottom: 15px;
}

.proximo-nivel p {
    color: #1e293b !important;
    font-size: 1.05em;
    font-weight: 600;
}

/* Stats da Carteira */
.wallet-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.wallet-stat-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.wallet-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.stat-icon-wallet {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    margin-bottom: 20px;
}

.stat-icon-wallet.saldo {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.stat-icon-wallet.desconto {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.stat-icon-wallet.gasto {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.wallet-stat-card h4 {
    color: #64748b !important;
    font-size: 0.95em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.wallet-stat-card p {
    color: #1e293b !important;
    font-size: 2em !important;
    font-weight: 800 !important;
}

/* Botão Adicionar Crédito */
.btn-add-credit {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: white !important;
    padding: 18px 35px !important;
    border-radius: 12px !important;
    font-size: 1.15em !important;
    font-weight: 700 !important;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-add-credit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

/* Modal Melhorado */
.modal-content {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3) !important;
}

.modal-header {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: white !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 25px 30px !important;
    border: none !important;
}

.modal-header h5 {
    color: white !important;
    font-size: 1.6em !important;
    font-weight: 800 !important;
}

.modal-body {
    padding: 35px 30px !important;
}

.modal-footer {
    border-top: 2px solid #f1f5f9 !important;
    padding: 20px 30px !important;
}

/* Tabela de Benefícios */
.beneficios-table {
    width: 100%;
    margin-top: 25px;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.beneficios-table th {
    background: #f8fafc;
    color: #1e293b !important;
    font-weight: 800;
    padding: 15px;
    text-align: left;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.beneficios-table td {
    background: white;
    padding: 18px 15px;
    color: #1e293b !important;
    font-weight: 600;
    font-size: 1.05em;
    border: 1px solid #f1f5f9;
}

.beneficios-table tr:hover td {
    background: #f8fafc;
}

/* Responsive */
@media (max-width: 768px) {
    .nivel-atual {
        flex-direction: column;
        text-align: center;
    }
    
    .wallet-stats {
        grid-template-columns: 1fr;
    }
    
    .user-card,
    .nivel-card {
        padding: 25px 20px !important;
    }
    
    .beneficios-table {
        font-size: 0.9em;
    }
    
    .beneficios-table th,
    .beneficios-table td {
        padding: 12px 10px;
    }
}

/* Animações */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wallet-stat-card,
.nivel-card,
.user-card {
    animation: slideIn 0.5s ease;
}

/* Alert na Carteira */
.alert-wallet {
    background: #dbeafe !important;
    border-left: 5px solid #3b82f6;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 25px;
    color: #1e40af !important;
    font-weight: 600;
    font-size: 1.05em;
}

.alert-wallet i {
    margin-right: 10px;
    font-size: 1.3em;
}
