/* =========================================
   1. LAYOUT PRINCIPAL E RESET
   ========================================= */
body, html { 
    margin: 0; 
    padding: 0; 
    background-color: var(--bg-main); 
    font-family: var(--font-body); 
    overflow-x: clip; 
}

.dashboard-container {
    display: flex; 
    width: 100%;
    min-height: 100vh;
}

.main-content {
    margin-left: 260px; 
    width: calc(100% - 260px);
    min-height: 100vh;
    padding: 30px 4% 100px 4%; 
    box-sizing: border-box;
}

/* =========================================
   2. SIDEBAR E NAVEGAÇÃO
   ========================================= */
.sidebar {
    position: fixed; 
    top: 0; left: 0; width: 260px; height: 100vh; 
    background: transparent; 
    border-right: 1px solid rgba(59, 130, 246, 0.15); 
    box-shadow: 2px 0 20px rgba(0,0,0,0.4);
    display: flex; flex-direction: column; 
    padding: 30px 20px; box-sizing: border-box; 
    z-index: 100; overflow-y: auto; 
    -ms-overflow-style: none; scrollbar-width: none; 
}
.sidebar::-webkit-scrollbar { display: none; }

.sidebar .logo { 
    margin-bottom: 40px; font-size: 1.4rem; color: #fff; 
    font-family: var(--font-display); font-weight: 800; 
    display: flex; align-items: center; gap: 8px; 
}

.nav-links { display: flex; flex-direction: column; gap: 8px; }
.nav-item { 
    display: flex; align-items: center; gap: 12px; padding: 12px 15px; 
    border-radius: 12px; color: #a1a1aa; text-decoration: none; 
    font-weight: 600; font-size: 0.9rem; transition: all 0.2s ease; border: 1px solid transparent; 
    white-space: nowrap; /* Impede a quebra de linha no mobile */
}
.nav-item svg, .nav-item i { transition: 0.2s; color: #71717a; width: 20px; text-align: center; }
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.nav-item.active { 
    background: rgba(59, 130, 246, 0.1); color: #fff; 
    border: 1px solid rgba(59, 130, 246, 0.2); box-shadow: inset 3px 0 0 var(--accent); 
}
.nav-item.active svg, .nav-item.active i { color: var(--accent); }

/* Botões do Rodapé da Sidebar */
.btn-perfil { color: #a1a1aa; }
.btn-perfil:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.btn-logout { background: transparent; color: #ef4444; margin-top: auto; border: 1px solid transparent; cursor: pointer; width: 100%; justify-content: flex-start; }
.btn-logout svg, .btn-logout i { color: #ef4444; }
.btn-logout:hover { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.2); }

/* =========================================
   3. HEADER PADRÃO E NOVA CAIXA DE ELO
   ========================================= */
.top-header { 
    display: flex; justify-content: space-between; align-items: center; 
    margin-bottom: 30px; padding-bottom: 15px; 
    border-bottom: 1px solid rgba(255,255,255,0.05); width: 100%; 
}
.header-title h2 { font-family: var(--font-display); font-size: 1.8rem; color: #fff; margin: 0 0 5px 0; font-weight: 700; }
.header-title p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }
.header-actions-right { display: flex; align-items: center; gap: 15px; }

/* 🟢 NOVA CAIXA DE ELO (Elegante e Proporcional) */
.user-elo-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 20, 22, 0.7);
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: default;
}
.user-elo-box:hover {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
}
.user-elo-box i {
    color: #3b82f6;
    font-size: 1rem;
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.5));
}
.user-elo-box span {
    color: #e4e4e7;
    font-family: var(--font-display), sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   4. BENTO BOXES E KPIS
   ========================================= */
.bento-box { 
    background: rgba(20, 20, 22, 0.6); backdrop-filter: blur(15px); 
    border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px; padding: 25px; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); transition: transform 0.2s ease, border-color 0.2s ease; 
    display: flex; flex-direction: column; position: relative; overflow: hidden; 
}
.bento-box:hover { border-color: rgba(255, 255, 255, 0.1); }
.box-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; width: 100%; }
.box-header h3 { font-size: 1.1rem; color: #fff; font-family: var(--font-display); font-weight: 700; margin: 0; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 20px; }
.bento-grid-main { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.clean-number { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important; letter-spacing: -0.5px; }
.kpi-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.kpi-label { font-size: 0.8rem; color: #a1a1aa; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.kpi-value { font-size: 2.2rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.kpi-footer { font-size: 0.8rem; font-weight: 500; }

.highlight-blue::before { content: ''; position: absolute; top:-30%; right:-30%; width: 150%; height: 150%; background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 50%); pointer-events: none; }
.highlight-purple::before { content: ''; position: absolute; top:-30%; right:-30%; width: 150%; height: 150%; background: radial-gradient(circle, rgba(168, 85, 247, 0.05) 0%, transparent 50%); pointer-events: none; }

.chart-filters { display: flex; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; padding: 4px; gap: 4px; }
.filter-btn { background: transparent; border: none; color: #a1a1aa; padding: 6px 14px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.filter-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }
.filter-btn.active { background: rgba(59, 130, 246, 0.15); color: #3b82f6; box-shadow: 0 2px 10px rgba(59, 130, 246, 0.2); border: 1px solid rgba(59, 130, 246, 0.3); }

.action-buttons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; height: 100%; }
.action-btn { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; color: #d4d4d8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: all 0.3s ease; padding: 18px 0;}
.action-btn:hover { background: rgba(59, 130, 246, 0.08); border-color: rgba(59, 130, 246, 0.3); color: #fff; box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2); transform: translateY(-3px); }

.canvas-container { position: relative; width: 100%; height: 260px; }

/* =========================================
   5. BOTÕES E FORMULÁRIOS GERAIS
   ========================================= */
.btn-novo-aporte, .btn-primary-block {
    background: #3b82f6; color: #ffffff; border: none; padding: 14px 24px;
    border-radius: 50px; font-weight: 600; font-size: 0.95rem; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
    font-family: var(--font-body), sans-serif;
}
.btn-primary-block { width: 100%; border-radius: 14px; }
.btn-novo-aporte:hover:not(:disabled), .btn-primary-block:hover:not(:disabled) {
    background: #2563eb; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}
.btn-novo-aporte:disabled, .btn-primary-block:disabled {
    background: rgba(255, 255, 255, 0.05); color: #52525b; box-shadow: none; cursor: not-allowed; border: 1px solid rgba(255, 255, 255, 0.05); transform: none;
}

.form-input {
    width: 100%; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px; color: #ffffff; padding: 12px 15px; font-size: 0.95rem; outline: none;
    transition: all 0.2s ease; box-sizing: border-box;
}
.form-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2); }
.premium-input { background: #09090b !important; height: 48px; border-radius: 12px !important; }
.input-label { display: block; color: #a1a1aa; font-size: 0.8rem; font-weight: 600; margin-bottom: 8px; text-align: left; }

/* =========================================
   6. MODAIS E BANNERS (CÓDIGO LIMPO E UNIFICADO)
   ========================================= */
.modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; 
    background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); 
    z-index: 99999; display: flex; justify-content: center; align-items: center; 
    opacity: 0; pointer-events: none; transition: 0.3s ease; 
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-content.premium-modal { 
    background: #18181b; border-radius: 20px; 
    border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7); 
    padding: 30px; width: 90%; max-width: 450px; 
    position: relative; transform: scale(0.95); transition: transform 0.3s ease; 
}
.modal-overlay.active .modal-content.premium-modal { transform: scale(1); }

.modal-title { color: #fff; font-size: 1.4rem; font-family: var(--font-display); margin-bottom: 25px; font-weight: 700; text-align: center; }
.close-modal { 
    position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.05); border: none; 
    color: #aaa; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; 
    display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.close-modal:hover { background: rgba(239, 68, 68, 0.1); color: #ef4444; transform: scale(1.1); }

.upgrade-banner { transition: all 0.3s ease; }
.upgrade-banner:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2); }
.close-banner { position: absolute; top: 10px; right: 15px; background: transparent; border: none; color: #a1a1aa; font-size: 1.1rem; cursor: pointer; transition: 0.2s; }
.close-banner:hover { color: #ef4444; transform: scale(1.1); }

.pricing-grid-modal { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; }
.pricing-card-modal { background: linear-gradient(160deg, rgba(30,30,30,0.5) 0%, rgba(10,10,10,0.8) 100%); border: 1px solid var(--border-light); padding: 30px; border-radius: 20px; display: flex; flex-direction: column; position: relative; }
.pricing-card-modal.pro { border-color: rgba(59, 130, 246, 0.4); background: linear-gradient(160deg, rgba(20,20,20,0.95) 0%, rgba(10,10,10,0.95) 100%); box-shadow: 0 10px 40px rgba(59, 130, 246, 0.15); }
.pricing-card-modal.pro::after { content: ''; position: absolute; top: 0; right: 0; width: 100%; height: 100%; background: radial-gradient(circle at top right, var(--accent-glow), transparent 60%); opacity: 0.5; pointer-events: none; border-radius: 20px; }

/* =========================================
   7. TABELAS E CARTEIRA (FILTROS)
   ========================================= */
.table-container { width: 100%; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; background: transparent; }
.table-container::-webkit-scrollbar { display: none; }
.custom-table th { border-bottom: none; padding: 5px 10px; color: #a1a1aa; font-weight: 600; font-size: 0.85rem; text-transform: uppercase;}
.custom-table tbody tr { background: rgba(255, 255, 255, 0.02); transition: transform 0.2s ease, background-color 0.2s ease; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); }
.custom-table tbody tr:hover { background: rgba(255, 255, 255, 0.04); transform: translateY(-2px); }

/* DIMINUÍDO O PADDING PARA JUNTAR MAIS OS ITENS DA TABELA */
.custom-table td { border-top: 1px solid rgba(255, 255, 255, 0.02); border-bottom: 1px solid rgba(255, 255, 255, 0.02); padding: 12px 10px; vertical-align: middle;}
.custom-table td:first-child { border-left: 1px solid rgba(255, 255, 255, 0.02); border-top-left-radius: 12px; border-bottom-left-radius: 12px; padding-left: 15px; }
.custom-table td:last-child { border-right: 1px solid rgba(255, 255, 255, 0.02); border-top-right-radius: 12px; border-bottom-right-radius: 12px; padding-right: 15px; }

.wallet-controls { display: flex; justify-content: space-between; align-items: center; padding: 0 25px 20px; gap: 15px; flex-wrap: wrap; }
.wallet-search { position: relative; flex-grow: 1; max-width: 300px; }
.wallet-search i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #666; font-size: 0.9rem; }
.wallet-search input { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); padding: 10px 15px 10px 40px; border-radius: 12px; color: #fff; font-size: 0.85rem; outline: none; transition: 0.2s; }
.wallet-search input:focus { border-color: var(--accent); }

.wallet-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.chip-filter { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); color: #a1a1aa; padding: 8px 18px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-family: 'Space Grotesk', sans-serif; }
.chip-filter:hover { background: rgba(255, 255, 255, 0.1); color: #fff; transform: translateY(-2px); }
.chip-filter.active { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15); }

.btn-action-table { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); color: #a1a1aa; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.btn-action-table.edit:hover { background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.4); color: #3b82f6; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2); }
.btn-action-table.delete:hover { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.4); color: #ef4444; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2); }

/* =========================================
   8. PROGRESSO DE ELO E LEGENDA
   ========================================= */
.progress-bar-bg { width: 100%; height: 6px; background: rgba(255,255,255,0.08); border-radius: 10px; margin: 15px 0 10px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--accent); border-radius: 10px; transition: width 1s ease-out; }
.goal-title { color: #fff; font-weight: 600; font-size: 0.9rem; margin:0;}
.goal-stats { font-size: 0.8rem; color: #a1a1aa; text-align: right; margin:0;}

.btn-info-elo { background: transparent; border: none; color: #666; font-size: 1rem; cursor: pointer; transition: 0.2s; padding: 0; display: flex; align-items: center; }
.btn-info-elo:hover { color: var(--accent); }
.elo-tooltip { position: absolute; top: 35px; right: 0; background: rgba(15, 15, 18, 0.95); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 15px; width: 220px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 50; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; }
.elo-tooltip.active { opacity: 1; visibility: visible; transform: translateY(0); }
.elo-tooltip h4 { color: #fff; font-size: 0.85rem; font-family: var(--font-display); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 5px;}
.elo-tooltip ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.elo-tooltip li { display: flex; justify-content: space-between; font-size: 0.8rem; color: #fff; font-weight: 600; }

.link-view-all { font-size: 0.8rem; color: var(--accent); text-decoration: none; font-weight: 700; display: flex; align-items: center; gap: 6px; transition: all 0.3s ease; background: rgba(59, 130, 246, 0.1); padding: 6px 16px; border-radius: 50px; border: 1px solid rgba(59, 130, 246, 0.3); }
.link-view-all:hover { background: var(--accent); color: #fff; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); transform: translateY(-2px); }
.link-view-all svg { transition: transform 0.3s ease; }
.link-view-all:hover svg { transform: translateX(4px); }

.allocation-legend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; padding: 0 10px; }
.legend-item { display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); padding: 6px 12px; border-radius: 50px; transition: all 0.3s ease; cursor: default; }
.legend-item:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.1); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; box-shadow: 0 0 8px rgba(255,255,255,0.2); }
.legend-ticker { color: #fff; font-weight: 700; font-size: 0.85rem; font-family: var(--font-display), sans-serif; }
.legend-perc { color: #a1a1aa; font-size: 0.75rem; font-weight: 600; }

/* =========================================
   9. TELA: DOAÇÃO E APRENDIZADO
   ========================================= */
.donation-container { padding: 30px; display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 150px); }
.donation-card { max-width: 550px; width: 100%; text-align: center; background: rgba(20, 20, 22, 0.6); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 28px; padding: 45px; backdrop-filter: blur(20px); box-shadow: 0 4px 30px rgba(0,0,0,0.3); transition: border-color 0.3s ease; }
.donation-card:hover { border-color: rgba(239, 68, 68, 0.3); }
.pix-qr-wrapper { background: #fff; width: 220px; height: 220px; margin: 30px auto; padding: 15px; border-radius: 20px; display: flex; align-items: center; justify-content: center; }
.pix-qr-wrapper img { width: 100%; height: auto; border-radius: 10px; }
.pix-code-box { background: rgba(0,0,0,0.4); padding: 12px 15px; border-radius: 14px; display: flex; align-items: center; gap: 12px; margin-top: 25px; border: 1px solid rgba(255, 255, 255, 0.1); }
.pix-input { background: transparent; border: none; color: #e4e4e7; width: 100%; font-size: 0.85rem; outline: none; font-family: 'Space Grotesk', sans-serif; text-overflow: ellipsis; }
.copy-btn { background: #3b82f6; border: none; color: white; padding: 10px 18px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 0.9rem; transition: 0.3s; white-space: nowrap; }
.copy-btn:hover { background: #2563eb; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); }
.heart-icon { color: #ef4444; font-size: 2.5rem; margin-bottom: 20px; filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.4)); }

.learning-container { max-width: 900px; margin: 0 auto; padding-bottom: 50px; }
.progress-tracker { display: flex; justify-content: space-between; align-items: center; background: rgba(20, 20, 22, 0.6); backdrop-filter: blur(15px); padding: 25px 30px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.05); margin-bottom: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.progress-tracker h3 { font-family: var(--font-display); }
.tracker-icon { width: 60px; height: 60px; border-radius: 16px; background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05)); border: 1px solid rgba(59, 130, 246, 0.3); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 1.5rem; box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.1); }

.lesson-card { background: rgba(20, 20, 22, 0.4); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px; margin-bottom: 20px; overflow: hidden; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.lesson-header { padding: 25px 30px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; background: transparent; transition: background 0.3s ease; }
.lesson-header:hover { background: rgba(255, 255, 255, 0.02); }
.lesson-title { font-family: var(--font-display); font-size: 1.15rem; color: #e4e4e7; display: flex; align-items: center; gap: 15px; margin: 0; font-weight: 600; }
.lesson-icon { color: #52525b; font-size: 1rem; transition: transform 0.4s ease, color 0.3s ease; }

.badge-mod { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2); color: #60a5fa; font-size: 0.75rem; padding: 6px 12px; border-radius: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-mod-purple { background: rgba(168, 85, 247, 0.1); border: 1px solid rgba(168, 85, 247, 0.2); color: #c084fc; font-size: 0.75rem; padding: 6px 12px; border-radius: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-mod-green { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); color: #34d399; font-size: 0.75rem; padding: 6px 12px; border-radius: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

.lesson-card.active { border-color: rgba(59, 130, 246, 0.3); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); background: rgba(20, 20, 22, 0.9); }
.lesson-card.active .lesson-icon { transform: rotate(180deg); color: var(--accent); }
.lesson-card.active .lesson-title { color: #fff; }
.lesson-card.active .lesson-header { border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: rgba(59, 130, 246, 0.05); }
.lesson-body { max-height: 0; overflow: hidden; transition: max-height 0.6s ease, padding 0.4s ease; opacity: 0; }
.lesson-card.active .lesson-body { padding: 35px 40px; max-height: 4000px; opacity: 1; }

.lesson-content h4 { color: #fff; margin: 35px 0 15px 0; font-size: 1.25rem; font-family: var(--font-display); display: flex; align-items: center; gap: 10px; }
.lesson-content h4::before { content: ''; display: inline-block; width: 6px; height: 18px; background: var(--accent); border-radius: 4px; }
.lesson-content h4:first-child { margin-top: 0; }
.lesson-content p, .lesson-content ul { color: #a1a1aa; line-height: 1.8; margin-bottom: 20px; font-size: 1.05rem; }
.lesson-content ul { padding-left: 20px; }
.lesson-content li { margin-bottom: 12px; }
.lesson-content li::marker { color: var(--accent); }
.lesson-content strong { color: #e4e4e7; font-weight: 700; }

.highlight-box { background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, rgba(20,20,22,0) 100%); border-left: 4px solid var(--accent); padding: 25px; border-radius: 0 16px 16px 0; margin: 30px 0; }
.highlight-box p { margin-bottom: 10px; color: #cbd5e1; }
.highlight-box p:last-child { margin-bottom: 0; }

/* =========================================
   10. RESPONSIVIDADE E MOBILE UNIFICADOS
   ========================================= */
@media (max-width: 900px) {
    .dashboard-container { flex-direction: column; }
    .sidebar { position: relative; width: 100%; height: auto; min-height: 80px; border-right: none; padding: 15px 5%; flex-direction: row; justify-content: space-between; align-items: center; z-index: 999; background: #0d0d0f; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .sidebar .logo { margin-bottom: 0; font-size: 1.2rem; }
    
    /* MODIFICAÇÃO AQUI: Permite scroll no menu inferior para caber tudo */
    .nav-links { 
        flex-direction: row; position: fixed; bottom: 0; left: 0; width: 100%; 
        background: #0a0a0c; border-top: 1px solid rgba(255,255,255,0.05); 
        padding: 10px; z-index: 1000; 
        overflow-x: auto; /* Permite arrastar para o lado */
        white-space: nowrap; /* Não quebra a linha */
        justify-content: flex-start; /* Alinha à esquerda para o scroll funcionar */
        -ms-overflow-style: none; scrollbar-width: none;
    }
    .nav-links::-webkit-scrollbar { display: none; }
    
    .nav-item { flex-direction: column; gap: 4px; padding: 8px 15px; font-size: 0.65rem; border-radius: 8px; }
    .nav-item.active { box-shadow: inset 0 2px 0 var(--accent); background: transparent; border: none; }
    .btn-logout { display: none; }
    .main-content { margin-left: 0; width: 100%; padding: 20px 4% 100px 4%; }
    .bento-grid-main { grid-template-columns: 1fr; }
    .kpi-value { font-size: 1.8rem; }
    
    .hide-on-mobile { display: none !important; }
    .flex-center-box { padding: 15px !important; }
    .custom-aporte-btn { width: 50px !important; height: 50px !important; padding: 0 !important; border-radius: 12px !important; display: flex !important; justify-content: center !important; align-items: center !important; }
    .custom-aporte-btn svg { width: 24px; height: 24px; margin: 0 !important; }
    .custom-aporte-btn .text-btn { display: none !important; }
}

@media (max-width: 768px) {
    .upgrade-banner { flex-direction: column !important; text-align: center; gap: 20px; }
    .upgrade-banner .btn-primary-block { width: 100% !important; border-radius: 50px; }
    .pricing-grid-modal { grid-template-columns: 1fr; }
    .lesson-header { padding: 20px; }
    .lesson-card.active .lesson-body { padding: 25px 20px; }
    .lesson-title { font-size: 1.05rem; flex-direction: column; align-items: flex-start; gap: 8px;}
    .lesson-content p, .lesson-content ul { font-size: 0.95rem; }
    .progress-tracker { flex-direction: column; text-align: center; gap: 15px; }
}

/* OCULTAR CURSOR CUSTOMIZADO EM TOUCH/MOBILE (Regras Mescladas) */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
    #cursor-dot, #cursor-outline, #btnToggleMouse {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    * { cursor: auto !important; }
    button, a, .nav-item, input, select, .action-btn { cursor: pointer !important; }
}

/* =========================================
   11. PÁGINA DE PERFIL
   ========================================= */
.profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 25px;
    align-items: start;
}

.profile-col-left { display: flex; flex-direction: column; gap: 20px; }
.profile-col-right { display: flex; flex-direction: column; gap: 25px; }

.identity-card {
    text-align: center;
    position: relative;
    padding: 40px 25px;
}
.identity-card::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.avatar-huge {
    width: 110px; height: 110px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent, #3b82f6), #1e3a8a);
    margin: 0 auto 20px; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 3rem; font-weight: 800; font-family: var(--font-display);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    border: 4px solid #18181b; position: relative; z-index: 2;
}

.profile-name { color: #fff; font-size: 1.5rem; font-family: var(--font-display); margin-bottom: 5px; font-weight: 700; }
.profile-email { color: #a1a1aa; font-size: 0.9rem; margin-bottom: 20px; }

.stats-divider { display: flex; justify-content: space-around; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; }
.stat-item h4 { color: #fff; font-size: 1.4rem; font-weight: 700; margin: 0 0 2px 0; }
.stat-item p { color: #71717a; font-size: 0.75rem; text-transform: uppercase; font-weight: 600; margin: 0; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-group { margin-bottom: 20px; position: relative; width: 100%; }
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 16px; color: #71717a; font-size: 0.9rem; }
.form-input.with-icon { padding-left: 45px; }

.btn-danger {
    background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 14px 24px; border-radius: 12px; font-weight: 700; font-size: 0.9rem; cursor: pointer;
    transition: 0.3s; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body);
}
.btn-danger:hover { background: #ef4444; color: #fff; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3); transform: translateY(-2px); }

.danger-zone-box { border-color: rgba(239, 68, 68, 0.2); background: rgba(20, 20, 22, 0.4); }
.danger-zone-box:hover { border-color: rgba(239, 68, 68, 0.4); }

.preferences-toggles { display: flex; flex-direction: column; gap: 15px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 10px 0; }
.toggle-label { color: #e4e4e7; font-size: 0.95rem; font-weight: 500; }
.toggle-row input { display: none; }
.toggle-slider { width: 44px; height: 24px; background: rgba(255,255,255,0.1); border-radius: 50px; position: relative; transition: 0.3s; }
.toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: 0.3s; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.toggle-row input:checked + .toggle-slider { background: var(--accent); }
.toggle-row input:checked + .toggle-slider::before { transform: translateX(20px); }

@media (max-width: 1024px) {
    .profile-grid { grid-template-columns: 1fr; }
    .form-grid-2 { grid-template-columns: 1fr; gap: 0; }
}

/* =========================================
   12. BOTÕES PRO E VIP (WHATSAPP E CSV)
   ========================================= */
.btn-vip-support {
    background: rgba(37, 211, 102, 0.1) !important;
    color: #25d366 !important;
    border: 1px solid rgba(37, 211, 102, 0.3) !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: var(--font-display), sans-serif;
}

.btn-vip-support:hover {
    background: rgba(37, 211, 102, 0.2) !important;
    border-color: rgba(37, 211, 102, 0.6) !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.2);
    transform: translateY(-2px);
    color: #fff !important;
}

.btn-export-csv {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.btn-export-csv:hover {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
    color: #fff !important;
}

/* =========================================
   13. ÁREA DO BLOG (INSIGHTS) E TICKER
   ========================================= */
.blog-layout { 
    display: grid; 
    grid-template-columns: 1fr 320px; 
    gap: 25px; 
    align-items: start; 
}

@media (max-width: 900px) { 
    .blog-layout { grid-template-columns: 1fr; } 
}

/* Ticker Adaptado para Dashboard */
.blog-ticker { 
    margin-bottom: 25px; 
    border-radius: 12px; 
    background: rgba(20, 20, 22, 0.6); 
    backdrop-filter: blur(15px); 
    border: 1px solid rgba(255,255,255,0.05); 
    padding: 12px 0; 
    overflow: hidden; 
    white-space: nowrap; 
    font-size: 0.85rem; 
    font-family: monospace; 
}
.ticker-move { display: inline-block; padding-left: 100%; animation: ticker 30s linear infinite; }
.ticker-move:hover { animation-play-state: paused; }
.ticker-item { margin-right: 40px; color: #a1a1aa; font-family: 'Space Grotesk', monospace; }
.t-up { color: #10b981; } .t-down { color: #ef4444; } .t-neutral { color: #3b82f6; }
@keyframes ticker { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-100%, 0, 0); } }

/* Cards de Artigo Bento Box */
.article-card { padding: 0 !important; margin-bottom: 25px; transition: all 0.4s ease; }
.article-header { padding: 25px; cursor: pointer; transition: 0.3s; }
.article-header:hover { background: rgba(255,255,255,0.02); }
.article-meta { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; font-size: 0.85rem; color: #888; }
.article-title { font-family: var(--font-display); font-size: 1.3rem; color: #fff; margin: 0 0 12px 0; line-height: 1.3; font-weight: 700; }
.article-excerpt { color: #a1a1aa; font-size: 0.95rem; margin: 0; line-height: 1.6; display: flex; justify-content: space-between; align-items: flex-end; gap: 15px;}
.read-more-btn { color: var(--accent, #3b82f6); font-weight: 600; display: flex; align-items: center; gap: 5px; flex-shrink: 0; }

/* Badges do Artigo */
.badge-cat { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2); color: var(--accent, #3b82f6); font-size: 0.75rem; padding: 4px 10px; border-radius: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.badge-cat.purple { background: rgba(168, 85, 247, 0.1); border-color: rgba(168, 85, 247, 0.2); color: #c084fc; }
.badge-cat.green { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); color: #10b981; }

/* Expansão e Corpo do Artigo */
.article-card.active { border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); }
.article-card.active .read-more-btn i { transform: rotate(180deg); }
.article-body { max-height: 0; overflow: hidden; transition: max-height 0.8s ease, padding 0.5s ease; opacity: 0; background: rgba(0,0,0,0.2); }
.article-card.active .article-body { padding: 10px 25px 30px; max-height: 5000px; opacity: 1; border-top: 1px solid rgba(255,255,255,0.05); }

.article-content h4 { color: #fff; margin: 25px 0 10px 0; font-size: 1.15rem; font-family: var(--font-display); }
.article-content p { color: #cbd5e1; line-height: 1.7; margin-bottom: 15px; font-size: 0.95rem; }
.article-content ul { color: #cbd5e1; line-height: 1.7; margin-bottom: 20px; padding-left: 20px; font-size: 0.95rem; }
.article-content li { margin-bottom: 10px; }
.article-content strong { color: #fff; font-weight: 700; }

.cta-box-blog { background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%); border-color: rgba(59, 130, 246, 0.3); padding: 25px; text-align: center; margin: 30px 0; }
.cta-box-blog h4 { margin-top: 0; font-size: 1.3rem; color: #fff; }

/* Sidebar Widgets do Blog */
.blog-sidebar { display: flex; flex-direction: column; gap: 20px; }
.blog-sidebar .bento-box { padding: 20px; margin-bottom: 0; }

.search-box { display: flex; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; overflow: hidden; transition: 0.3s; }
.search-box:focus-within { border-color: var(--accent); }
.search-box input { flex: 1; background: transparent; border: none; padding: 12px 15px; color: #fff; font-family: var(--font-body); outline: none; }
.search-box button { background: transparent; border: none; color: #888; padding: 0 15px; cursor: pointer; transition: 0.3s; }
.search-box button:hover { color: var(--accent); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); color: #a1a1aa; padding: 6px 12px; border-radius: 50px; font-size: 0.8rem; text-decoration: none; transition: 0.3s; }
.tag-item:hover { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border-color: rgba(59, 130, 246, 0.3); }

.popular-list { list-style: none; padding: 0; margin: 0; }
.popular-list li { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed rgba(255,255,255,0.05); }
.popular-list li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.popular-list a { color: #cbd5e1; text-decoration: none; font-size: 0.9rem; line-height: 1.4; display: block; transition: 0.3s; font-weight: 500; }
.popular-list a:hover { color: var(--accent); }
.popular-list .pop-meta { display: block; font-size: 0.75rem; color: #666; margin-top: 4px; }

/* Redes Sociais no Artigo */
.social-share { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; gap: 12px; }
.social-share span { color: #888; font-size: 0.85rem; }
.share-btn { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-size: 1rem; transition: 0.3s; }
.s-wpp { background: #25D366; } .s-wpp:hover { background: #1ebe5d; box-shadow: 0 0 10px rgba(37, 211, 102, 0.5); transform: translateY(-2px); }
.s-in { background: #0077b5; } .s-in:hover { background: #006097; box-shadow: 0 0 10px rgba(0, 119, 181, 0.5); transform: translateY(-2px); }
.s-tw { background: #1DA1F2; } .s-tw:hover { background: #0c8bd9; box-shadow: 0 0 10px rgba(29, 161, 242, 0.5); transform: translateY(-2px); }

/* =========================================
   14. EFEITOS PREMIUM E "WOW FACTOR"
   ========================================= */

/* Luzes Dinâmicas de Fundo */
.ambient-light {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
    animation: floatLight 10s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
.ambient-light.light-blue {
    top: -10%; left: 15%; width: 40vw; height: 40vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
}
.ambient-light.light-purple {
    bottom: -10%; right: 10%; width: 35vw; height: 35vw;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    animation-delay: -5s;
}
@keyframes floatLight { 
    0% { transform: translate(0, 0) scale(1); } 
    100% { transform: translate(30px, 30px) scale(1.1); } 
}

/* Header Dinâmico */
.wave-emoji { display: inline-block; animation: wave 2.5s infinite; transform-origin: 70% 70%; }
@keyframes wave { 0% { transform: rotate( 0.0deg) } 10% { transform: rotate(14.0deg) } 20% { transform: rotate(-8.0deg) } 30% { transform: rotate(14.0deg) } 40% { transform: rotate(-4.0deg) } 50% { transform: rotate(10.0deg) } 60% { transform: rotate( 0.0deg) } 100% { transform: rotate( 0.0deg) } }

.market-status {
    display: flex; align-items: center; gap: 8px;
    background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 6px 14px; border-radius: 50px; font-size: 0.8rem; color: #10b981; font-weight: 600;
}
.pulse-dot {
    width: 8px; height: 8px; background: #10b981; border-radius: 50%;
    box-shadow: 0 0 10px #10b981; animation: pulseDot 2s infinite;
}
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

/* Glows em Caixas e Botões */
.premium-glow { position: relative; }
.premium-glow::before {
    content: ''; position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px;
    background: linear-gradient(45deg, var(--accent), #a855f7);
    z-index: -1; border-radius: inherit; filter: blur(5px); opacity: 0; transition: 0.3s;
}
.premium-glow:hover::before { opacity: 0.6; }

/* Ações Rápidas Aprimoradas */
.action-btn .icon-wrapper {
    width: 45px; height: 45px; border-radius: 12px;
    background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin-bottom: 5px; transition: 0.3s; color: #a1a1aa;
}
.action-btn:hover .icon-wrapper { background: rgba(255,255,255,0.1); color: #fff; transform: scale(1.1); }

/* Destaque Ouro para o botão principal de Aporte */
.action-btn.primary-action {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.3) 100%);
    border-color: rgba(59, 130, 246, 0.4); color: #fff;
}
.action-btn.primary-action .icon-wrapper {
    background: var(--accent); color: #fff; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
.action-btn.primary-action:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3); transform: translateY(-5px);
}

/* =========================================
   15. SIDEBAR RETRÁTIL (COLLAPSE)
   ========================================= */
/* Adicionamos transições suaves na barra e no conteúdo principal */
.sidebar { 
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.4s ease; 
    overflow-x: hidden; 
}
.main-content { 
    transition: margin-left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
}

/* O estado "Fechado" da Sidebar */
.sidebar.collapsed { 
    width: 85px; 
    padding: 30px 10px; 
}

/* Oculta os textos e centraliza os ícones */
.sidebar.collapsed .logo { font-size: 0; justify-content: center; }
.sidebar.collapsed .logo svg { width: 32px; height: 32px; margin: 0; }

.sidebar.collapsed .nav-item { 
    font-size: 0; /* Some com o texto */
    justify-content: center; 
    padding: 15px 0; 
}
.sidebar.collapsed .nav-item svg, 
.sidebar.collapsed .nav-item i { 
    width: 24px; height: 24px; font-size: 1.3rem; margin: 0; 
}

/* Esconde o botão do mouse quando a barra está pequena para não quebrar o layout */
.sidebar.collapsed #btnToggleMouse { display: none; }

/* O estado "Expandido" do conteúdo principal para preencher o vazio */
.main-content.expanded { 
    margin-left: 85px; 
    width: calc(100% - 85px); 
}

/* Efeito Hover no botão hamburguer */
#btnToggleSidebar:hover {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
    color: #3b82f6 !important;
}

@media (max-width: 900px) {
    /* No mobile a barra já muda de lugar, então anulamos a expansão */
    .main-content.expanded { margin-left: 0; width: 100%; }
    #btnToggleSidebar { display: none; } /* Oculta o hamburguer no celular */
}

/* =========================================
   16. AJUSTES DA SIDEBAR MINIMIZADA & CURSOR
   ========================================= */

/* Animação de Brilho na Logo quando minimizado */
.logo-toggle { cursor: pointer; transition: 0.3s; }
.sidebar.collapsed .logo-toggle svg {
    animation: logoGlow 1.5s infinite alternate ease-in-out;
}
@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 2px var(--accent)); transform: scale(1); }
    100% { filter: drop-shadow(0 0 15px var(--accent)); transform: scale(1.2); }
}

/* Ocultar o botão Hamburguer quando a Sidebar está minimizada */
.main-content.expanded .hamburguer-btn {
    display: none !important;
}

/* Estilo do botão de Hamburguer */
.hamburguer-btn {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; width: 45px; height: 45px; border-radius: 12px; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.hamburguer-btn:hover {
    background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.4); color: #3b82f6;
}

/* Estilo do Botão do Cursor (Igual Navbar Index) */
.btn-cursor-style {
    background: rgba(59, 130, 246, 0.1) !important;
    border: 1px solid var(--accent, #3b82f6) !important;
    color: var(--accent, #3b82f6) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: 0.3s !important;
}
.btn-cursor-style:hover {
    background: var(--accent, #3b82f6) !important;
    color: #fff !important;
}

/* Esconder o texto do cursor e do perfil (WhatsApp) quando minimizado */
.sidebar.collapsed #btnToggleMouse span,
.sidebar.collapsed .btn-perfil span {
    display: none;
}
.sidebar.collapsed #btnToggleMouse {
    padding: 15px 0 !important;
    justify-content: center;
}

/* =========================================
   17. RODAPÉ DA SIDEBAR (SEPARADO)
   ========================================= */

/* Bloco Inferior da Sidebar */
.sidebar-bottom {
    margin-top: auto; /* Empurra tudo para baixo */
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05); /* Linha divisória sutil */
}

/* Estilo dedicado ao botão WhatsApp na Sidebar */
.btn-vip-sidebar {
    color: #25d366 !important;
    font-weight: 600 !important;
    background: rgba(37, 211, 102, 0.05);
    border: 1px solid transparent;
    transition: 0.3s ease;
}
.btn-vip-sidebar:hover {
    background: rgba(37, 211, 102, 0.15) !important;
    border-color: rgba(37, 211, 102, 0.3) !important;
    color: #fff !important;
}

/* AJUSTES PARA A BARRA MINIMIZADA 
   Tamanhos maiores para os ícones inferiores e ocultação de textos 
*/
.sidebar.collapsed .sidebar-bottom .nav-item span {
    display: none; /* Some com o texto */
}

.sidebar.collapsed .sidebar-bottom .nav-item {
    padding: 15px 0 !important; /* Transforma o botão num quadrado perfeito */
    justify-content: center !important;
}

/* Aumentando especificamente os ícones (WhatsApp e Cursor) quando minimizado */
.sidebar.collapsed .sidebar-bottom .nav-item i {
    font-size: 1.5rem !important; /* Ícone bem visível */
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Anula regras antigas conflitantes caso existam */
.sidebar.collapsed .btn-perfil span {
    display: none !important;
}

/* =========================================
   18. ÁREA DA CALCULADORA DE PROJEÇÃO
   ========================================= */
.calc-grid { 
    display: grid; 
    grid-template-columns: 320px 1fr; 
    gap: 25px; 
} 

.params-card { 
    background: rgba(20, 20, 22, 0.6); backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.05); border-radius: 20px; 
    padding: 25px; height: fit-content; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
}

.params-card h3 { 
    color: #fff; font-size: 1.1rem; margin: 0 0 20px 0; 
    font-family: var(--font-display); font-weight: 700; 
    display: flex; align-items: center; gap: 10px; 
}
.params-card h3 i { color: var(--accent); }

.info-box { 
    background: rgba(59, 130, 246, 0.08); border: 1px solid rgba(59, 130, 246, 0.2); 
    padding: 12px; border-radius: 10px; color: #93c5fd; font-size: 0.75rem; 
    margin-bottom: 20px; line-height: 1.5; display: flex; gap: 8px; align-items: flex-start;
}

.btn-calc { 
    width: 100%; background: var(--accent); color: #fff; border: none; 
    padding: 12px; border-radius: 10px; font-weight: 700; font-size: 0.9rem; 
    cursor: pointer; transition: 0.3s; display: flex; align-items: center; 
    justify-content: center; gap: 8px; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); height: 44px;
}
.btn-calc:hover { background: #2563eb; transform: translateY(-2px); }

.results-section { display: flex; flex-direction: column; gap: 20px; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; } 

.result-card { 
    background: rgba(20, 20, 22, 0.6); backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 15px; 
    display: flex; flex-direction: column; gap: 6px; transition: 0.3s; overflow: hidden; 
}
.result-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.1); }

.card-icon { 
    width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,0.05); 
    display: flex; align-items: center; justify-content: center; font-size: 0.9rem; 
    color: #a1a1aa; margin-bottom: 2px; 
}

.result-card.highlight { 
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.02) 100%); 
    border-color: rgba(16, 185, 129, 0.3); 
}
.result-card.highlight .card-icon { background: rgba(16, 185, 129, 0.2); color: #10b981; }

.res-label { font-size: 0.65rem; color: #a1a1aa; text-transform: uppercase; font-weight: 700; white-space: nowrap; }
.res-value { font-size: 1.15rem; font-weight: 700; color: #fff; font-family: var(--font-display); white-space: nowrap; }
.res-value.green { color: #10b981; }
.res-value.purple { color: #c084fc; }

.passive-income-card { 
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.2) 100%); 
    border: 1px solid rgba(59, 130, 246, 0.3); border-radius: 16px; padding: 20px 25px; 
    display: flex; justify-content: space-between; align-items: center; 
}
.passive-income-title { color: #93c5fd; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.passive-income-value { font-size: 2rem; font-weight: 800; color: #fff; font-family: var(--font-display); text-shadow: 0 0 20px rgba(59, 130, 246, 0.4); }

.chart-container { background: rgba(20, 20, 22, 0.6); backdrop-filter: blur(15px); border: 1px solid rgba(255,255,255,0.05); border-radius: 20px; padding: 20px; height: 360px; position: relative; }
.chart-loading { position: absolute; inset: 0; background: rgba(18,18,20,0.8); backdrop-filter: blur(5px); display: none; align-items: center; justify-content: center; border-radius: 20px; z-index: 10; flex-direction: column; gap: 15px; }
.chart-loading.active { display: flex; }

@media (max-width: 1024px) { 
    .kpi-row { grid-template-columns: repeat(2, 1fr); } 
    .calc-grid { grid-template-columns: 1fr; } 
    .passive-income-card { flex-direction: column; align-items: flex-start; gap: 15px; } 
}

/* --- AJUSTES EXTRAS PARA O BLOG --- */
.article-card .read-more-btn {
    font-size: 0.9rem;
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    padding: 6px 14px;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.article-card:hover .read-more-btn {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
.lesson-icon {
    transition: transform 0.4s ease;
}

/* --- AJUSTES MOBILE EXTRAS (DOAÇÃO) --- */
@media (max-width: 768px) {
    .donation-container {
        padding: 20px 10px;
    }
    .donation-card {
        padding: 30px 20px;
    }
    .pix-code-box {
        flex-direction: column; /* Empilha o input e o botão no celular */
        gap: 15px;
        padding: 15px;
    }
    .pix-input {
        text-align: center; /* Centraliza o código PIX no celular */
    }
    .copy-btn {
        width: 100%; /* Botão ocupa a largura total */
        padding: 15px;
    }
}