/* =========================================
   MODAL DE QUALIFICAÇÃO E CHECKOUT (FUNIL)
========================================= */

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
    .modal-content { padding: 40px; }
}

/* Comportamento das Etapas (Steps) */
.step-container { display: none; }
.step-container.active { 
    display: block; 
    animation: slideUpFade 0.4s ease forwards; 
}

@keyframes slideUpFade {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    background: none; border: none;
    font-size: 1.5rem; color: #999;
    cursor: pointer;
    transition: color 0.3s;
}
.close-modal:hover { color: #333; }

.modal-content h3 { margin-bottom: 10px; font-size: 1.4rem; color: #1A1A1A; }
.modal-content p { color: #4A4A4A; margin-bottom: 20px; font-size: 0.95rem; }

/* Formulários */
.form-group { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.form-input { 
    width: 100%; 
    border: 1px solid #E0E0E0; 
    border-radius: 8px; 
    padding: 14px 18px; 
    font-family: 'Poppins', sans-serif; 
    font-size: 0.95rem; 
    transition: border-color 0.3s, box-shadow 0.3s; 
}
.form-input:focus { 
    border-color: #C4FF0F; 
    box-shadow: 0 0 0 3px rgba(196, 255, 15, 0.2); 
    outline: none; 
}

.checkbox-group {
    display: flex; gap: 10px; margin-bottom: 20px;
    background: #F9F9F9; padding: 15px; border-radius: 8px;
    align-items: flex-start;
}
.checkbox-group input { margin-top: 4px; accent-color: #A5D60D; width: 18px; height: 18px; }
.checkbox-group label { font-size: 0.85rem; color: #333; cursor: pointer; }

/* Botões do Modal */
.split-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
@media(min-width: 480px){ .split-buttons { flex-direction: row; } }
.btn-outline { 
    background: transparent; 
    border: 2px solid #1A1A1A; 
    color: #1A1A1A; 
    padding: 15px; 
    border-radius: 8px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s; 
    font-family: 'Poppins', sans-serif;
}
.btn-outline:hover { background: #1A1A1A; color: #C4FF0F; }

/* Resumo e Checkout */
.checkout-summary { background: #F4F4F4; border: 1px solid #EAEAEA; border-radius: 12px; padding: 20px; margin-top: 20px; }
.checkout-summary h4 { margin-bottom: 15px; font-size: 1.1rem; }
.summary-line { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.95rem; color: #4A4A4A; align-items: center; }
.summary-line strong { color: #1A1A1A; font-size: 1.05rem; }
.payment-question { font-weight: 600; margin: 15px 0 10px; color: #1A1A1A; }
.payment-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 15px; }
.payment-methods label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.9rem; background: #FFF; padding: 10px 15px; border-radius: 8px; border: 1px solid #EAEAEA; }
.info-badge { background: rgba(196, 255, 15, 0.2); border: 1px solid #A5D60D; color: #3A4A00; padding: 12px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; text-align: center; margin-bottom: 15px; }

/* =========================================
   ESTILO ESPECÍFICO: RESULTADO DA CONSULTA
========================================= */
.res-dividas-list {
    max-height: 150px;
    overflow-y: auto;
    background: #F9F9F9;
    border: 1px solid #EEE;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
}
.mini-debt {
    display: flex;
    justify-content: space-between;
    padding: 8px 5px;
    border-bottom: 1px solid #EEE;
    font-size: 0.85rem;
}
.mini-debt:last-child { border-bottom: none; }
.mini-debt span { color: #666; font-weight: 500; }
.mini-debt strong { color: #FF4D4D; }

.res-summary {
    background: #FFF;
    border: 2px dashed #EEE;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}
.res-summary hr { border: none; border-top: 1px solid #EEE; margin: 15px 0; }
.text-danger { color: #FF4D4D !important; }
.text-success { color: #2E7D32 !important; }
.pdf-download { text-align: center; margin-top: 15px; }
.pdf-download a { font-size: 0.85rem; color: #666; text-decoration: underline; transition: color 0.3s; }
.pdf-download a:hover { color: #1A1A1A; }

/* =========================================
   DASHBOARD ATIVO (SEU PROCESSO ATIVVA)
========================================= */

.dash-header { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 10px; 
    margin-bottom: 40px; 
    text-align: center; 
}
@media(min-width: 768px){ 
    .dash-header { 
        flex-direction: row; 
        justify-content: space-between; 
        text-align: left; 
    } 
}

.status-badge.success { 
    background: #E8F5E9; 
    color: #2E7D32; 
    padding: 8px 16px; 
    border-radius: 50px; 
    font-weight: 600; 
    font-size: 0.9rem; 
    border: 1px solid #A5D6A7; 
}

/* --- Barra de Progresso --- */
.progress-tracker { 
    display: flex; 
    justify-content: space-between; 
    position: relative; 
    margin-bottom: 50px; 
    max-width: 900px; 
    margin-left: auto; 
    margin-right: auto; 
}
.progress-tracker::before { 
    content: ''; 
    position: absolute; 
    top: 20px; 
    left: 0; 
    width: 100%; 
    height: 3px; 
    background: #E0E0E0; 
    z-index: 1; 
}
.progress-step { 
    position: relative; 
    z-index: 2; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    width: 25%; 
}
.step-icon { 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    background: #FFF; 
    border: 3px solid #E0E0E0; 
    color: #999; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-weight: 700; 
    margin-bottom: 10px; 
    transition: all 0.3s; 
}
.progress-step.active .step-icon { 
    background: var(--accent); 
    border-color: var(--accent); 
    color: var(--text-dark); 
    box-shadow: 0 0 15px rgba(196,255,15,0.4); 
}
.progress-step span { 
    font-size: 0.8rem; 
    color: var(--text-mid); 
    font-weight: 500; 
}
.progress-step.active span { 
    color: var(--text-dark); 
    font-weight: 700; 
}
@media(max-width: 600px){ 
    .progress-step span { font-size: 0.7rem; } 
    .step-icon{ width: 30px; height: 30px; font-size: 0.9rem;} 
    .progress-tracker::before{ top: 15px; } 
}

/* --- Grid de Dados (JSON Info) --- */
.json-data-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 20px; 
    margin-bottom: 30px; 
}
@media(min-width: 768px){ 
    .json-data-grid { grid-template-columns: 1fr 1fr; } 
}

.data-card { 
    background: #FFF; 
    border-radius: 16px; 
    padding: 30px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}
.data-card h3 { 
    border-bottom: 1px solid #EEE; 
    padding-bottom: 15px; 
    margin-bottom: 20px; 
    color: var(--text-dark); 
    font-size: 1.3rem;
}
.user-card p { 
    margin-bottom: 10px; 
    font-size: 0.95rem; 
}
.highlight-card { 
    background: linear-gradient(135deg, #1A1A1A 0%, #333 100%); 
    color: #FFF; 
    border: none; 
}
.highlight-card h3 { 
    border-color: rgba(255,255,255,0.1); 
    color: #FFF; 
}
.big-number { 
    font-size: 2.5rem; 
    font-weight: 700; 
    color: var(--accent); 
    margin-bottom: 5px; 
}
.stat-row { 
    display: flex; 
    justify-content: space-between; 
    margin-top: 20px; 
    font-size: 0.85rem; 
    opacity: 0.8; 
}

/* --- Lista de Pendências (Cards Menores) --- */
.debts-list { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 15px; 
}
@media(min-width: 768px){ 
    .debts-list { grid-template-columns: repeat(2, 1fr); } 
}

.debt-item { 
    background: #FFF; 
    border-left: 5px solid #FF4D4D; 
    border-radius: 8px; 
    padding: 20px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
}
.debt-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
}
.debt-informant { 
    font-weight: 700; 
    color: var(--text-dark); 
    font-size: 0.95rem; 
    line-height: 1.3; 
}
.debt-value { 
    font-weight: 700; 
    color: #FF4D4D; 
    font-size: 1.1rem; 
}
.debt-details { 
    font-size: 0.85rem; 
    color: var(--text-mid); 
    display: flex; 
    justify-content: space-between; 
}
/* =========================================
   SISTEMA DE OVERLAYS (LOADER E SUCESSO)
========================================= */
.system-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.system-overlay.active { opacity: 1; pointer-events: all; }

/* Spinner */
.loader-spinner {
    width: 60px; height: 60px;
    border: 6px solid #F0F0F0;
    border-top: 6px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
#loader-text { color: var(--text-dark); font-size: 1.2rem; font-weight: 600; }

/* Sucesso (Check) */
.success-check {
    width: 100px; height: 100px;
    background: #2E7D32; /* Verde sucesso */
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: white; font-size: 3rem;
    margin-bottom: 20px;
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.system-overlay.active .success-check { transform: scale(1); }
#success-text { color: #2E7D32; font-size: 2rem; font-weight: 700; }

/* =========================================
   MODAL FUNIL PADRÃO
========================================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center;
    z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-content {
    background: #fff; padding: 30px; border-radius: 20px;
    max-width: 500px; width: 90%; position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}
@media (min-width: 768px) { .modal-content { padding: 40px; } }
.step-container { display: none; }
.step-container.active { display: block; animation: slideUpFade 0.4s ease forwards; }
@keyframes slideUpFade { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-modal { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 1.5rem; color: #999; cursor: pointer; }
.modal-content h3 { margin-bottom: 10px; font-size: 1.4rem; color: #1A1A1A; }
.modal-content p { color: #4A4A4A; margin-bottom: 20px; font-size: 0.95rem; }

/* Forms, Checkbox, Botoes ... (Mantidos os anteriores) */
.form-group { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.form-input { width: 100%; border: 1px solid #E0E0E0; border-radius: 8px; padding: 14px 18px; font-size: 0.95rem; }
.checkbox-group { display: flex; gap: 10px; margin-bottom: 20px; background: #F9F9F9; padding: 15px; border-radius: 8px; align-items: flex-start; }
.checkbox-group input { margin-top: 4px; width: 18px; height: 18px; }
.split-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
@media(min-width: 480px){ .split-buttons { flex-direction: row; } }
.btn-outline { background: transparent; border: 2px solid #1A1A1A; padding: 15px; border-radius: 8px; font-weight: 600; cursor: pointer; }

/* =========================================
   MODAL DE CONTRATO (Maior)
========================================= */
#step-contrato { max-width: 700px; } /* Modal mais larga */
.contract-text-area {
    background: #F9F9F9;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 20px;
    height: 250px; /* Área de rolagem */
    overflow-y: auto;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
}
.contract-text-area p { margin-bottom: 15px; }

/* =========================================
   LISTA DE DÍVIDAS SIMPLIFICADA (BAIXA COMPLEXIDADE)
========================================= */
.simple-debts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
}
.elegant-debt-item {
    background: #FFF;
    border: 1px solid #EAEAEA;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}
.debt-icon-bg {
    width: 60px; height: 60px;
    background: #F4F4F4;
    border-radius: 12px;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem; color: #1A1A1A;
    flex-shrink: 0;
}
.debt-info-simple { flex: 1; }
.debt-info-simple h4 { font-size: 1.1rem; color: #1A1A1A; margin-bottom: 5px; }
.debt-info-simple p { font-size: 0.85rem; color: #666; margin: 0; }
.debt-status-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 5px;}

/* Dívida Ativa com Animação Pulsante */
.badge-active {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255, 77, 77, 0.1); color: #D32F2F;
    padding: 4px 10px; border-radius: 50px;
    font-size: 0.75rem; font-weight: 700;
}
.dot-pulse {
    width: 8px; height: 8px; background: #D32F2F; border-radius: 50%;
    animation: pulse-red 1.5s infinite;
}
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(211, 47, 47, 0); }
    100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); }
}
.price-simple { font-size: 1.2rem; font-weight: 700; color: #1A1A1A; }

/* =========================================
   MODAL DE AUTENTICAÇÃO (ÁREA DO CLIENTE)
========================================= */
.auth-container {
    max-width: 420px; /* Mais estreita para parecer tela de login */
    text-align: center;
    padding: 40px 30px;
}

.auth-header {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-logo {
    max-width: 140px;
    margin-bottom: 25px;
}

.auth-header h3 {
    font-size: 1.5rem;
    color: #1A1A1A;
    margin-bottom: 8px;
    font-weight: 700;
}

.auth-header p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
}

/* Foco centralizado no Input de CPF da Auth */
#auth-cpf-input:focus {
    box-shadow: 0 0 0 3px rgba(196, 255, 15, 0.3);
    border-color: #A5D60D;
}
/* =========================================
   AJUSTES GERAIS DO DASHBOARD ATIVO
========================================= */

/* 1. Limita a largura do painel para não esticar na tela toda */
#dashboard-area .container {
    max-width: 900px !important; /* Deixa o layout contido com cara de App */
    margin: 0 auto;
}

/* 2. Empurra o Dashboard para baixo para fugir da Navbar fixa */
#dashboard-area {
    padding-top: 150px !important; /* Dá um respiro excelente da Navbar */
    padding-bottom: 80px !important;
    min-height: 100vh; /* Garante que o fundo cubra a tela toda mesmo se tiver pouco conteúdo */
}

/* 3. Ajustes de responsividade para Mobile no Dashboard */
@media (max-width: 767px) {
    #dashboard-area {
        padding-top: 120px !important; 
    }
    
    /* Garante que o botão de "Sair" fique bem posicionado no celular */
    .dash-header {
        flex-direction: row !important;
        align-items: center !important;
        margin-bottom: 30px !important;
    }
    
    .dash-header h2 {
        font-size: 1.4rem;
    }
    
    .dash-header .status-badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}
/* =========================================
   TRANSFORMANDO O DASHBOARD EM UM CARD (80%)
========================================= */

/* 1. Prepara o fundo do Dashboard para receber o Card centralizado */
#dashboard-area {
    background-color: var(--bg-light) !important;
    padding-top: 140px !important; /* Espaço seguro para a Navbar não esmagar */
    padding-bottom: 80px !important;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* 2. Transforma o container padrão em um Card Gigante Elegante */
#dashboard-area .container {
    background-color: #FFFFFF !important; /* Fundo branco do card */
    width: 92% !important; /* Ocupa 92% no Mobile (mais espaço útil) */
    max-width: 1100px !important; /* Limite máximo de segurança */
    margin: 0 auto !important;
    padding: 30px 20px !important;
    border-radius: 24px !important; /* Bordas bem arredondadas */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08) !important; /* Sombra suave de aplicativo */
}

/* 3. Ajuste para Desktop (80% da tela e mais respiro interno) */
@media (min-width: 992px) {
    #dashboard-area .container {
        width: 80% !important; /* Exatamente os 80% solicitados no Desktop */
        padding: 50px 60px !important;
    }
}

/* 4. Ajustes do Cabeçalho dentro do Card para Mobile */
@media (max-width: 767px) {
    .dash-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 15px;
        margin-bottom: 30px !important;
    }
    #btn-sair {
        width: 100%; /* Botão de sair grande no celular para facilitar o clique */
    }
}

/* =========================================
   DASHBOARD CARD DEFINITIVO (CORREÇÃO DE LARGURA E MOBILE)
========================================= */

/* 1. O Fundo da Tela */
#dashboard-area {
    background-color: var(--bg-light) !important;
    padding: 140px 0 80px 0 !important; /* Sem padding nas laterais, apenas topo e base */
    display: flex;
    justify-content: center; /* Centraliza o card na tela */
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden; /* Impede rolagem horizontal quebrando o layout */
}

/* 2. O Card Principal (Que segura tudo) */
#dashboard-area .container {
    background-color: #FFFFFF !important;
    width: 90% !important; /* 90% no mobile para não colar nas bordas laterais */
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 40px 25px !important; /* Respiro interno seguro */
    border-radius: 24px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08) !important;
    box-sizing: border-box !important; /* CRUCIAL: Impede que o padding aumente a largura total */
}

/* Ajuste para Desktop (Card ocupando 80%) */
@media (min-width: 992px) {
    #dashboard-area .container {
        width: 80% !important; 
        padding: 50px 60px !important; /* Respiro interno maior no computador */
    }
}

/* 3. Correção do Cabeçalho e do Botão de Sair */
.dash-header {
    display: flex !important;
    flex-direction: column !important; /* No mobile: Título em cima, botão embaixo */
    align-items: center !important;
    text-align: center !important;
    gap: 20px !important;
    width: 100% !important;
    margin-bottom: 40px !important;
}

/* Cabeçalho no Desktop: Lado a Lado */
@media (min-width: 768px) {
    .dash-header {
        flex-direction: row !important; 
        justify-content: space-between !important;
        align-items: flex-start !important;
        text-align: left !important;
    }
}

#btn-sair {
    white-space: nowrap; /* Impede que a palavra "Sair" quebre de linha */
}

/* 4. Correção dos Cards: "Seus Dados" e "Resumo Financeiro" */
.json-data-grid {
    display: grid !important;
    grid-template-columns: 1fr !important; /* No Mobile: 1 coluna ocupando 100% da linha */
    gap: 20px !important;
    width: 100% !important;
    margin-bottom: 40px !important;
}

/* Cards no Desktop: Dividem 50% / 50% */
@media (min-width: 768px) {
    .json-data-grid {
        grid-template-columns: 1fr 1fr !important; 
    }
}

.data-card {
    width: 100% !important; /* Garante que o card respeite o limite do Grid */
    box-sizing: border-box !important;
}
#dashboard-area {
    background-color: var(--bg-light) !important;
    padding: 140px 0 80px 0 !important; 
    display: flex;
    justify-content: center; 
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden; 
}

#dashboard-area .container {
    background-color: #FFFFFF !important;
    width: 90% !important; 
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 40px 25px !important; 
    border-radius: 24px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08) !important;
    box-sizing: border-box !important; 
}

@media (min-width: 992px) {
    #dashboard-area .container {
        width: 80% !important; 
        padding: 50px 60px !important; 
    }
}
/* =========================================
   REFINAMENTO MOBILE DO DASHBOARD (UX/UI)
========================================= */

@media (max-width: 767px) {
    
    /* 1. Botão de Sair Sutil e Cabeçalho Lado a Lado */
    .dash-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: left !important;
        margin-bottom: 25px !important;
    }
    
    .dash-header h2 { 
        font-size: 1.1rem !important; 
        margin-bottom: 5px; 
    }
    
    .dash-header .status-badge { 
        font-size: 0.7rem !important; 
        padding: 4px 8px !important; 
    }
    
    /* Botão Sair menor e mais delicado */
    #btn-sair {
        width: auto !important;
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
        border: 1px solid rgba(255, 77, 77, 0.5) !important;
        background: transparent !important;
        border-radius: 6px !important;
    }

    /* 2. Linha do Tempo (Evitar textos sobrepostos) */
    .progress-step span {
        font-size: 0.6rem !important;
        line-height: 1.1 !important;
        word-wrap: break-word;
        max-width: 90%; /* Força a quebra de linha das palavras */
        margin: 0 auto;
    }
    
    .step-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
        margin-bottom: 6px !important;
    }

    /* 3. Cards de Dívida (Reestruturados para não vazar da tela) */
    .elegant-debt-item {
        flex-direction: column !important; /* Empilha os itens verticalmente */
        align-items: flex-start !important;
        padding: 15px !important;
        gap: 10px !important;
    }
    
    /* Esconder o ícone decorativo no mobile salva MUITO espaço */
    .debt-icon-bg {
        display: none !important; 
    }
    
    .debt-info-simple {
        width: 100% !important;
    }
    
    .debt-info-simple h4 { 
        font-size: 1rem !important; 
        word-wrap: break-word; 
    }
    
    /* Coloca a Badge e o Preço organizados lado a lado na parte de baixo do card */
    .debt-status-price {
        width: 100% !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-top: 1px solid #EAEAEA;
        padding-top: 10px;
        margin-top: 5px;
    }
    
    .price-simple { 
        font-size: 1.1rem !important; 
    }
}
/* ===== DASHBOARD REDESIGN ===== */
.dashboard-area {
    min-height: 100vh;
    padding: 100px 0 60px;
    background-color: #f9fafc;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Cabeçalho */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.dash-title h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e6f7e6;
    color: #2e7d32;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-sair {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-color: #ff4d4d;
    color: #ff4d4d;
    background: transparent;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-sair:hover {
    background: #ff4d4d;
    color: white;
}

/* Progress Tracker */
.progress-tracker {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    background: white;
    padding: 24px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.progress-step.active .step-icon {
    background: #c4ff0f;
    color: #1a1a1a;
    border-color: #c4ff0f;
}

.progress-step.completed .step-icon {
    background: #2e7d32;
    color: white;
    border-color: #2e7d32;
}

.step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #888;
    z-index: 1;
    transition: all 0.3s;
}

.progress-step span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
}

.progress-step.active span {
    color: #1a1a1a;
    font-weight: 600;
}

/* Grid de Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.info-card:hover {
    transform: translateY(-4px);
}

.info-card.destaque {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
}

.info-card.destaque .card-header i,
.info-card.destaque .card-header h3 {
    color: #c4ff0f;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.info-card.destaque .card-header {
    border-bottom-color: rgba(255,255,255,0.1);
}

.card-header i {
    font-size: 1.4rem;
    color: #c4ff0f;
    background: rgba(196,255,15,0.1);
    padding: 8px;
    border-radius: 12px;
}

.card-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.info-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.info-line:last-child {
    border-bottom: none;
}

.info-card.destaque .info-line {
    border-bottom-color: rgba(255,255,255,0.1);
}

.info-line span {
    color: #666;
    font-size: 0.95rem;
}

.info-card.destaque .info-line span {
    color: #ccc;
}

.info-line strong {
    font-weight: 600;
    color: #1a1a1a;
}

.info-card.destaque .info-line strong {
    color: white;
}

.big-number {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 10px 0 5px;
    color: #1a1a1a;
}

.info-card.destaque .big-number {
    color: white;
}

.card-label {
    color: #777;
    font-size: 0.9rem;
}

.info-card.destaque .card-label {
    color: #aaa;
}

/* Seção de Dívidas */
.debts-section {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.debts-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.debts-section h3 i {
    color: #c4ff0f;
    background: #1a1a1a;
    padding: 8px;
    border-radius: 12px;
}

.debts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Item de dívida (mantido do estilo anterior, mas ajustado) */
.elegant-debt-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #f9fafc;
    border-radius: 16px;
    transition: background 0.2s;
}

.elegant-debt-item:hover {
    background: #f0f2f5;
}

.debt-icon-bg {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: #1a1a1a;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.02);
}

.debt-info-simple {
    flex: 1;
}

.debt-info-simple h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.debt-info-simple p {
    font-size: 0.8rem;
    color: #777;
}

.debt-status-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.badge-active {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff3e0;
    color: #e65100;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
}

.price-simple {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* Ação Assinar */
.action-assinar {
    text-align: center;
    margin: 30px 0 40px;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.action-assinar p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.1rem;
}

.btn-assinar {
    font-size: 1.2rem;
    padding: 18px 40px;
    box-shadow: 0 10px 25px rgba(196,255,15,0.3);
    animation: pulse-border 2s infinite;
}

/* Overlay de bloqueio */
.blocked-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.blocked-modal {
    background: white;
    padding: 40px;
    border-radius: 24px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 30px 50px rgba(0,0,0,0.2);
}

.blocked-modal i {
    font-size: 3.5rem;
    color: #ff4d4d;
    margin-bottom: 20px;
}

.blocked-modal h3 {
    color: #1a1a1a;
    margin-bottom: 12px;
    font-size: 1.6rem;
}

.blocked-modal p {
    color: #666;
    margin-bottom: 25px;
}

.blocked-price {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 25px;
}

.blocked-price span {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.blocked-price strong {
    font-size: 2rem;
    color: #1a1a1a;
}

/* Ajustes responsivos */
@media (max-width: 600px) {
    .progress-tracker {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .progress-step:not(:last-child)::after {
        display: none;
    }
    
    .elegant-debt-item {
        flex-wrap: wrap;
    }
    
    .debt-status-price {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 12px;
    }
}
/* Grid de duas colunas */
.dashboard-grid.two-cols {
    grid-template-columns: repeat(2, 1fr);
}

.total-devedor {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
}

.total-devedor span {
    font-weight: 500;
    color: #555;
}

.total-devedor strong {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
}
@media (max-width: 900px) {
    .dashboard-grid.two-cols {
        grid-template-columns: 1fr;
    }
}
/* ===== OTIMIZAÇÕES MOBILE ===== */
@media (max-width: 768px) {
    /* 1. Alinhar CPF à esquerda no card de dados */
    .info-card .info-line strong {
        text-align: left;
        word-break: break-word;
    }

    /* Garante que o valor do CPF não fique à direita */
    .info-card .info-line {
        justify-content: flex-start;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .info-card .info-line span {
        min-width: 60px;
    }

    /* 2. Reduzir tamanho da fonte do título "Dívidas Encontradas" */
    .debts-section h3 {
        font-size: 1.2rem !important;
        white-space: normal;
        word-break: break-word;
    }

    .debts-section h3 i {
        font-size: 1rem;
        padding: 6px;
    }

    /* 3. Corrigir quebra de palavras na linha do tempo */
    .progress-tracker {
        flex-wrap: wrap;
        gap: 10px;
        padding: 16px 10px;
    }

    .progress-step {
        flex: 0 0 auto;
        min-width: 65px;
    }

    .progress-step span {
        font-size: 0.7rem;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        max-width: 70px;
        text-align: center;
    }

    .progress-step:not(:last-child)::after {
        display: none; /* Remove a linha de conexão para evitar sobreposição */
    }

    /* Ajuste adicional para o grid de cards */
    .dashboard-grid.two-cols {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Total devedor */
    .total-devedor {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .total-devedor strong {
        font-size: 1.5rem;
    }
}

/* Ajustes extras para telas muito pequenas (ex: iPhone SE) */
@media (max-width: 480px) {
    .progress-step {
        min-width: 55px;
    }
    
    .step-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .debts-section h3 {
        font-size: 1.1rem !important;
    }
}
/* ===== OTIMIZAÇÕES MOBILE ===== */
@media (max-width: 768px) {
    /* 1. Alinhar CPF à esquerda no card de dados */
    .info-card .info-line {
        justify-content: flex-start;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .info-card .info-line span {
        min-width: 60px;
    }

    .info-card .info-line strong {
        text-align: left;
        word-break: break-word;
    }

    /* 2. Reduzir tamanho da fonte do título "Dívidas Encontradas" */
    .debts-section h3 {
        font-size: 1.2rem !important;
        white-space: normal;
        word-break: break-word;
    }

    .debts-section h3 i {
        font-size: 1rem;
        padding: 6px;
    }

    /* 3. Linha do tempo em grid 2x2 */
    .progress-tracker {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 10px;
        padding: 20px 15px;
        background: white;
        border-radius: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    }

    .progress-step {
        flex: none;
        width: auto;
        position: relative;
    }

    /* Remove a linha de conexão entre etapas */
    .progress-step:not(:last-child)::after {
        display: none;
    }

    .progress-step span {
        font-size: 0.8rem;
        white-space: nowrap;
        text-align: center;
    }

    .step-icon {
        width: 44px;
        height: 44px;
        margin: 0 auto 6px;
    }

    /* Ajustes para o grid de cards */
    .dashboard-grid.two-cols {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Total devedor */
    .total-devedor {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .total-devedor strong {
        font-size: 1.5rem;
    }
}

/* Ajustes extras para telas muito pequenas (ex: iPhone SE) */
@media (max-width: 480px) {
    .progress-tracker {
        gap: 16px 8px;
        padding: 16px 10px;
    }

    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .progress-step span {
        font-size: 0.7rem;
    }
    
    .debts-section h3 {
        font-size: 1.1rem !important;
    }
}
.dashboard-wrapper {
    position: relative;
    min-height: 100vh;
}

.blocked-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none; /* será alterado via JS */
    justify-content: center;
    align-items: center;
}