/*! Vista © 2026 — Todos os direitos reservados. Proibida a cópia ou redistribuição. */
:root {
    --c-mon: #B25D7E; --c-tue: #614D9E; --c-wed: #2B7BBB;
    --c-thu: #69A74E; --c-fri: #D00000; --c-sat: #F0C03A; --c-sun: #E2883C;
    --bg-body: #f1f5f9; --bg-surface: #ffffff;
    --border-light: #e2e8f0; --text-dark: #0f172a; --text-muted: #64748b;
    --primary: #3b82f6; --danger: #ef4444; --success: #10b981; --purple: #8b5cf6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body { background-color: var(--bg-body); color: var(--text-dark); padding: 0; margin: 0; }

.app-wrapper { width: 100%; min-height: 100vh; display: flex; flex-direction: row; }

.sidebar { width: 260px; background: #0f172a; padding: 32px 20px; display: flex; flex-direction: column; flex-shrink: 0; }
.sidebar-logo { color: white; font-size: 20px; font-weight: 700; margin-bottom: 40px; text-align: left; padding-left: 16px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 12px; }
.sidebar-nav button { background: transparent; border: none; color: #94a3b8; text-align: left; padding: 12px 16px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.2s; display: flex; align-items: center; gap: 12px; }
.sidebar-nav button i { font-size: 16px; width: 20px; text-align: center; }
.sidebar-nav button:hover { background: rgba(255,255,255,0.05); color: white; }
.sidebar-nav button.active { background: var(--primary); color: white; font-weight: 600; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }

.main-content { flex: 1; padding: 32px 40px; display: flex; flex-direction: column; gap: 24px; background: var(--bg-body); overflow-y: auto; height: 100vh; }

.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active-tab { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.main-header { display: flex; justify-content: space-between; align-items: center; background: var(--text-dark); border-radius: 16px; padding: 24px 32px; box-shadow: var(--shadow-md); }
.header-titles { display: flex; align-items: center; gap: 16px; }
.header-titles h1 { color: white; font-size: 28px; font-weight: 700; letter-spacing: 1px; }
.badge-year { background: rgba(255,255,255,0.2); color: white; padding: 4px 12px; border-radius: 20px; font-weight: 600; font-size: 14px; }
.nav-controls { display: flex; gap: 8px; }
.btn-icon { background: rgba(255,255,255,0.1); color: white; border: none; border-radius: 8px; width: 40px; height: 40px; font-size: 16px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.btn-icon:hover { background: rgba(255,255,255,0.2); transform: scale(1.05); }

.dashboard-panel { display: flex; flex-direction: column; align-items: center; background: var(--bg-surface); padding: 24px; border-radius: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.dashboard-panel[hidden] { display: none; }   /* v141: os cards só aparecem na aba Resumo */
.summary-cards { display: flex; gap: 16px; width: 100%; }
.glass-card { flex: 1; display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 12px; background: #fafafa; border: 1px solid var(--border-light); transition: 0.2s; }
.glass-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: bold; }
.income-card .card-icon { background: #d1fae5; color: var(--success); }
.expense-card .card-icon { background: #fee2e2; color: var(--danger); }
.investment-card .card-icon { background: #ede9fe; color: var(--purple); } 
.balance-card .card-icon { background: #e0e7ff; color: var(--primary); }
.card-info { display: flex; flex-direction: column; }
.card-info .label { font-size: 13px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.card-info .value { font-size: 24px; font-weight: 700; color: var(--text-dark); margin-top: 4px; }

.calendar-container { background: transparent; }
.weekdays-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.weekday { color: white; font-weight: 600; text-align: center; padding: 10px 0; font-size: 14px; border-radius: 8px; box-shadow: var(--shadow-sm); }

.bg-mon { background: var(--c-mon); } .bg-tue { background: var(--c-tue); }
.bg-wed { background: var(--c-wed); } .bg-thu { background: var(--c-thu); }
.bg-fri { background: var(--c-fri); } .bg-sat { background: var(--c-sat); }
.bg-sun { background: var(--c-sun); }

.days-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.day-cell { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: 12px; min-height: 150px; display: flex; flex-direction: column; cursor: pointer; transition: all 0.2s ease; box-shadow: var(--shadow-sm); min-width: 0; overflow: hidden; }
.day-cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.day-cell.empty { background: transparent; border: none; box-shadow: none; cursor: default; }
.day-cell.empty:hover { transform: none; }
.day-header { color: white; text-align: center; font-weight: 700; font-size: 15px; padding: 6px 0; }

.day-line { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; font-size: 11.5px; border-bottom: 1px solid #f1f5f9; color: var(--text-dark); gap: 4px; }
.day-line:last-child { border-bottom: none; }
.badge-cat { padding: 2px 4px; border-radius: 4px; color: white; font-size: 10px; font-weight: 600; margin-left: 4px; display: inline-block; white-space: nowrap;}
.text-red { color: var(--danger); font-weight: 600; }
.text-green { color: var(--success); font-weight: 600; }
.text-blue { color: var(--primary); font-weight: 600; } 
.text-purple { color: var(--purple); font-weight: 600; } 
.text-warning { color: #d97706; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; display: flex; align-items: center; }

.settings-panel { background: var(--bg-surface); border-radius: 16px; padding: 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.panel-header h2 { font-size: 18px; font-weight: 600; margin-bottom: 24px; color: var(--text-dark); }
.forms-wrapper { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }

.info-message-card { max-width: 600px; margin: 40px auto; padding: 40px; background: #f8fafc; border: 1px solid var(--border-light); border-radius: 16px; text-align: center; box-shadow: var(--shadow-sm); }
.info-message-card .info-icon { font-size: 40px; margin-bottom: 16px; }
.info-message-card p { font-size: 15px; color: var(--text-dark); line-height: 1.6; font-weight: 500; }

.large-chart-wrapper { width: 100%; display: flex; flex-direction: column; gap: 24px; margin-top: 10px; align-items: flex-start; justify-content: flex-start; }
.chart-divider { width: 100%; height: 1px; background: var(--border-light); }
.chart-pie-section { width: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.charts-pie-row { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 1100px) { .charts-pie-row { grid-template-columns: 1fr; } }

/* Gráfico de Linha: Evolução do Saldo Diário */
.chart-line-section { width: 100%; max-width: 100%; position: relative; display: flex; flex-direction: column; background: transparent; padding: 5px; border-radius: 12px; border: none; margin-bottom: 10px; }
.saldo-chart-canvas { position: relative; width: 100%; height: 360px; }

.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }
.input-premium { width: 100%; padding: 10px 14px; font-size: 14px; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 8px; transition: all 0.2s; outline: none; color: var(--text-dark); }
.input-premium:focus { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }

.premium-form { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; gap: 16px; align-items: flex-end; }
.input-group { display: flex; flex-direction: column; }
.w-100 { width: 100%; margin-top: 10px; }

.btn-premium { padding: 10px 20px; font-size: 14px; font-weight: 600; border-radius: 8px; border: none; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; }
.btn-tall { padding: 24px 20px; width: 250px; white-space: normal; line-height: 1.5; align-self: flex-start; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: #2563eb; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); }
.btn-dark { background: var(--text-dark); color: white; }
.btn-dark:hover { background: #000; }
.btn-outline { background: transparent; border: 1px solid #cbd5e1; color: var(--text-muted); }
.btn-outline:hover { background: #f1f5f9; color: var(--text-dark); }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.btn-danger { background: #fee2e2; color: var(--danger); font-weight: 600;}
.btn-danger:hover { background: #fecaca; }
.btn-warning { background: #fef3c7; color: #d97706; font-weight: 600;}
.btn-warning:hover { background: #fde68a; }

/* ======== CARDS AGRUPADOS POR CLASSIFICAÇÃO (Recorrentes e Categorias) ======== */
.tipo-receita      { --tipo-fundo: #eff6ff; --tipo-borda: #bfdbfe; --tipo-forte: #1d4ed8; --tipo-marcador: #3b82f6; }
.tipo-despesa      { --tipo-fundo: #fef2f2; --tipo-borda: #fecaca; --tipo-forte: #b91c1c; --tipo-marcador: #ef4444; }
.tipo-investimento { --tipo-fundo: #f5f3ff; --tipo-borda: #ddd6fe; --tipo-forte: #6d28d9; --tipo-marcador: #8b5cf6; }
.tipo-amortizacao  { --tipo-fundo: #fff7ed; --tipo-borda: #fed7aa; --tipo-forte: #c2410c; --tipo-marcador: #f97316; }
.grupos-tipo { display: flex; flex-direction: column; gap: 28px; }
.grupo-tipo-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.grupo-tipo-header h3 { font-size: 16px; font-weight: 700; color: var(--text-dark); }
.grupo-tipo-marcador { width: 10px; height: 10px; border-radius: 3px; background: var(--tipo-marcador); }
.grupo-tipo-contador { font-size: 12px; font-weight: 600; color: var(--text-muted); background: #f1f5f9; padding: 2px 8px; border-radius: 10px; }
.cards-tipo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.card-tipo { background: var(--tipo-fundo); border: 1px solid var(--tipo-borda); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; transition: 0.2s; }
.card-tipo:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-tipo-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-tipo-nome { font-size: 15px; font-weight: 700; color: var(--text-dark); line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.card-tipo-valor { font-size: 17px; font-weight: 700; color: var(--tipo-forte); white-space: nowrap; font-variant-numeric: tabular-nums; }
.card-tipo-meta { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.card-tipo-acoes { display: flex; justify-content: flex-end; gap: 6px; margin-top: 4px; }
.btn-card { background: rgba(255,255,255,0.75); border: 1px solid var(--tipo-borda); color: var(--text-dark); font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 6px; cursor: pointer; transition: 0.2s; }
.btn-card:hover { background: #fff; }
.btn-card-perigo { color: #b91c1c; }
.card-tipo-linha { flex-direction: row; align-items: center; justify-content: space-between; }
.card-tipo-linha .card-tipo-acoes { margin-top: 0; flex-shrink: 0; }
.grupo-vazio { font-size: 14px; color: var(--text-muted); padding: 24px; text-align: center; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px; }
.nota-dia-recorrente { font-size: 12px; color: var(--text-muted); margin: -12px 0 12px; line-height: 1.5; }
.nota-vigencia { font-size: 12.5px; color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; padding: 8px 12px; border-radius: 8px; margin-bottom: 12px; line-height: 1.5; }
.actions-group { display: flex; gap: 8px; align-items: center; }

.modal-glass { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(6px); align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal-card { background: var(--bg-surface); width: 100%; max-width: 450px; border-radius: 20px; padding: 32px; position: relative; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); animation: modalFadeIn 0.3s ease-out; }
@keyframes modalFadeIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.close-modal { position: absolute; top: 20px; right: 24px; font-size: 24px; color: var(--text-muted); background: none; border: none; cursor: pointer; transition: 0.2s; }
.close-modal:hover { color: var(--text-dark); transform: scale(1.1); }
.modal-header h3 { font-size: 20px; font-weight: 700; color: var(--text-dark); margin-bottom: 20px; }
.modal-divider { height: 1px; background: var(--border-light); margin: 24px 0; }
.form-subtitle { font-size: 15px; font-weight: 600; color: var(--text-dark); margin-bottom: 16px; }
.modal-list { display: flex; flex-direction: column; gap: 8px; max-height: 250px; overflow-y: auto; padding-right: 8px; }
.modal-list::-webkit-scrollbar { width: 6px; }
.modal-list::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
.modal-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

/* ======== ESTILOS MÓDULO CARTÃO ======== */
.cc-upload-group { display: flex; gap: 12px; align-items: center; }
.cc-layout { display: flex; gap: 24px; margin-top: 20px; align-items: flex-start; }
.cc-lists-container { flex: 1.5; display: flex; gap: 20px; }
.cc-list-box { flex: 1; background: #f8fafc; border: 1px solid var(--border-light); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; height: 500px; }
.cc-list-title { padding: 16px; background: var(--bg-surface); border-bottom: 1px solid var(--border-light); font-size: 14px; font-weight: 600; color: var(--text-dark); text-align: center; }
.cc-scroll-list { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.cc-scroll-list::-webkit-scrollbar { width: 6px; }
.cc-scroll-list::-webkit-scrollbar-track { background: #f1f5f9; }
.cc-scroll-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.cc-chart-container { flex: 1; background: #f8fafc; border: 1px solid var(--border-light); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; justify-content: center; height: 500px; }
.cc-item { background: #fff; border: 1px solid var(--border-light); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-sm); }
.cc-item-top { display: flex; justify-content: space-between; align-items: flex-start; font-size: 13px; }
.cc-item-desc { font-weight: 600; color: var(--text-dark); line-height: 1.3; }
.cc-item-val { font-weight: 700; color: var(--danger); white-space: nowrap; }
.cc-item-actions { display: flex; gap: 8px; margin-top: 4px; }
.cc-select-cat { flex: 1; padding: 6px 8px; font-size: 12px; border-radius: 6px; border: 1px solid #cbd5e1; background: #f8fafc; outline: none; }

.input-transparent-value { background: transparent; border: none; outline: none; font-size: 20px; font-weight: 700; color: var(--text-dark); margin-top: 4px; padding: 0; width: 100%; cursor: text; font-family: 'Inter', sans-serif; transition: 0.2s; }
.input-transparent-value:focus { border-bottom: 1px dashed var(--primary); margin-bottom: -1px; }

/* ======== GUIA RÁPIDO DE USO ======== */
.guia { display: flex; flex-direction: column; gap: 20px; }
.guia-hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%); color: white; border-radius: 16px; padding: 28px 32px; box-shadow: var(--shadow-md); }
.guia-hero-icone { width: 56px; height: 56px; border-radius: 14px; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
.guia-hero-texto { flex: 1; min-width: 260px; }
.guia-hero h2 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.guia-hero p { font-size: 14.5px; color: #cbd5e1; line-height: 1.6; max-width: 640px; }
.guia-legenda { display: flex; gap: 8px; flex-wrap: wrap; }

.guia-secao-titulo { font-size: 18px; font-weight: 700; color: var(--text-dark); display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.guia-secao-titulo i { color: var(--primary); font-size: 16px; }

.guia-selo { font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.guia-selo-essencial { background: #dbeafe; color: #1d4ed8; }
.guia-selo-opcional { background: #f1f5f9; color: #475569; }
.guia-selo-rotina { background: #d1fae5; color: #047857; }

/* Linha do tempo */
.guia-timeline { list-style: none; display: flex; flex-direction: column; gap: 14px; position: relative; padding-left: 0; }
.guia-passo { display: grid; grid-template-columns: 44px 1fr; gap: 16px; position: relative; }
.guia-passo:not(:last-child)::before { content: ''; position: absolute; left: 21px; top: 44px; bottom: -14px; width: 2px; background: var(--border-light); }
.guia-passo-numero { width: 44px; height: 44px; border-radius: 50%; background: var(--passo-cor); color: white; font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px var(--bg-body); position: relative; z-index: 1; }
.guia-passo-card { background: var(--bg-surface); border: 1px solid var(--border-light); border-left: 4px solid var(--passo-cor); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s, transform 0.2s; }
.guia-passo-card:hover { box-shadow: var(--shadow-md); transform: translateX(3px); }
.guia-passo-topo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.guia-passo-topo h4 { font-size: 16px; font-weight: 700; color: var(--text-dark); flex: 1; min-width: 200px; }
.guia-passo-icone { width: 36px; height: 36px; border-radius: 10px; background: var(--passo-fundo); color: var(--passo-cor); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.guia-passo-card p { font-size: 14px; color: #475569; line-height: 1.65; }
.guia-aba { display: inline-block; font-weight: 600; color: var(--text-dark); background: #f1f5f9; border: 1px solid var(--border-light); padding: 0 7px; border-radius: 6px; font-size: 13px; line-height: 1.6; }
.guia-atalhos { display: flex; gap: 8px; flex-wrap: wrap; }
.guia-atalho { background: var(--passo-fundo); color: var(--passo-cor); border: 1px solid transparent; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: 0.2s; }
.guia-atalho:hover { border-color: var(--passo-cor); }
.guia-atalho i { font-size: 11px; }
.guia-atalho-secundario { background: transparent; color: var(--text-muted); border-color: var(--border-light); }
.guia-atalho-secundario:hover { color: var(--text-dark); border-color: #cbd5e1; }

/* Benefícios */
.guia-beneficios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .guia-beneficios { grid-template-columns: 1fr; } }
.guia-beneficio { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: 14px; padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; box-shadow: var(--shadow-sm); transition: 0.2s; position: relative; overflow: hidden; }
.guia-beneficio::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--ben-cor); }
.guia-beneficio:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--ben-cor); }
.guia-beneficio-icone { width: 44px; height: 44px; border-radius: 12px; background: var(--ben-fundo); color: var(--ben-cor); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.guia-beneficio h4 { font-size: 16px; font-weight: 700; color: var(--text-dark); }
.guia-beneficio p { font-size: 13.5px; color: #475569; line-height: 1.65; flex: 1; }
.guia-beneficio-link { font-size: 13px; font-weight: 600; color: var(--ben-cor); display: inline-flex; align-items: center; gap: 6px; }
.guia-beneficio-link i { font-size: 11px; transition: transform 0.2s; }
.guia-beneficio:hover .guia-beneficio-link i { transform: translateX(3px); }
/* ======== AMORTIZAÇÃO / DÍVIDAS ======== */
.text-orange { color: #ea580c; font-weight: 600; }
.amortization-card .card-icon { background: #ffedd5; color: #f97316; }
/* Painel do topo com 5 cards: em telas estreitas, os cards quebram em mais de uma linha */
.dashboard-panel .summary-cards { flex-wrap: wrap; }
.dashboard-panel .glass-card { flex: 1 1 180px; min-width: 0; padding: 16px; gap: 12px; }
.dashboard-panel .card-icon { width: 40px; height: 40px; font-size: 18px; flex-shrink: 0; }
.dashboard-panel .card-info { min-width: 0; }
.dashboard-panel .card-info .label { font-size: 12px; letter-spacing: 0.3px; }
.dashboard-panel .card-info .value { font-size: 21px; }

/* ======== BACKUP DOS DADOS ======== */
.backup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .backup-grid { grid-template-columns: 1fr; } }
.backup-card { background: #f8fafc; border: 1px solid var(--border-light); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.backup-card h4 { font-size: 16px; font-weight: 700; color: var(--text-dark); display: flex; align-items: center; gap: 10px; }
.backup-pasta { font-size: 18px; font-weight: 700; color: var(--text-dark); word-break: break-all; }
.backup-texto { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.backup-status { font-size: 13px; font-weight: 500; line-height: 1.5; padding: 10px 12px; border-radius: 8px; }
.backup-status-ativo { background: #ecfdf5; color: #047857; }
.backup-status-atencao { background: #fffbeb; color: #b45309; }
.backup-status-inativo { background: #f1f5f9; color: var(--text-muted); }
.backup-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.backup-hint { font-size: 12px; color: var(--text-muted); line-height: 1.6; }
.backup-hint code { background: #e2e8f0; padding: 1px 6px; border-radius: 4px; font-size: 11.5px; color: var(--text-dark); }
.sidebar-backup { margin-top: auto; padding: 12px 16px; border-radius: 8px; font-size: 12.5px; color: #94a3b8; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.2s; }
.sidebar-backup:hover { background: rgba(255,255,255,0.05); color: white; }
.sidebar-backup i { font-size: 8px; }
.sidebar-backup-ativo i { color: #10b981; }
.sidebar-backup-atencao i { color: #f59e0b; }
.sidebar-backup-inativo i { color: #64748b; }

/* ======== BOTÃO DE AÇÃO PRINCIPAL (Categorias e Recorrentes) ======== */
.barra-acoes { display: flex; align-items: center; margin-bottom: 28px; }
.btn-acao-principal { gap: 10px; padding: 12px 22px; font-size: 15px; border-radius: 10px; box-shadow: 0 4px 14px rgba(59, 130, 246, 0.30); }
.btn-acao-principal i { font-size: 14px; }

/* ======== GUIA: ÊNFASE NOS PASSOS ESSENCIAIS E DE ROTINA ======== */
.guia-passo-destaque .guia-passo-card { box-shadow: var(--shadow-md); }
.guia-passo-destaque .guia-passo-topo h4 { font-size: 17px; }
.guia-passo-destaque .guia-passo-card p { color: #334155; }
.guia-passo-opcional .guia-passo-numero { width: 36px; height: 36px; margin-left: 4px; margin-top: 4px; font-size: 15px; background: var(--bg-body); color: #94a3b8; border: 2px solid #cbd5e1; }
.guia-passo-opcional .guia-passo-card { background: #f8fafc; border-color: #e2e8f0; border-left: 4px solid #cbd5e1; box-shadow: none; padding: 14px 18px; }
.guia-passo-opcional .guia-passo-card:hover { transform: none; box-shadow: var(--shadow-sm); }
.guia-passo-opcional .guia-passo-topo h4 { font-size: 15px; font-weight: 600; color: #475569; }
.guia-passo-opcional .guia-passo-icone { background: #eef2f7; color: #94a3b8; }
.guia-passo-opcional .guia-passo-card p { font-size: 13.5px; color: #64748b; }
.guia-passo-opcional .guia-aba { font-weight: 500; color: #475569; }
.guia-passo-opcional .guia-atalho { background: transparent; color: #64748b; border-color: #e2e8f0; }
.guia-passo-opcional .guia-atalho:hover { color: var(--passo-cor); border-color: var(--passo-cor); }


/* ======== ASSISTENTE DE BOAS-VINDAS ======== */
.onb-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(8px); }
.onb-card { width: 100%; max-width: 580px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--bg-surface); border-radius: 20px; padding: 32px 36px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35); animation: modalFadeIn 0.3s ease-out; }
.onb-progresso { display: flex; gap: 6px; margin-bottom: 24px; }
.onb-progresso-passo { flex: 1; font-size: 11.5px; font-weight: 600; color: #94a3b8; padding-top: 8px; border-top: 3px solid #e2e8f0; transition: 0.2s; }
.onb-progresso-passo.atual { color: var(--primary); border-top-color: var(--primary); }
.onb-progresso-passo.feito { color: #059669; border-top-color: #10b981; }
.onb-etapa { display: none; flex-direction: column; }
.onb-etapa.ativa { display: flex; animation: fadeIn 0.25s ease; }
.onb-etapa h2 { font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.onb-icone { width: 48px; height: 48px; border-radius: 14px; background: #eff6ff; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.onb-icone-grande { width: 64px; height: 64px; font-size: 28px; border-radius: 18px; background: linear-gradient(135deg, #0f172a, #1e3a8a); color: white; }
.onb-icone-receita { background: #eff6ff; color: #1d4ed8; }
.onb-icone-despesa { background: #fef2f2; color: #b91c1c; }
.onb-icone-sucesso { background: #ecfdf5; color: #059669; }
.onb-texto { font-size: 14.5px; color: #475569; line-height: 1.6; margin-bottom: 20px; }
.onb-texto-pequeno { font-size: 13px; margin-top: 4px; }
.onb-lista { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.onb-lista li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-dark); font-weight: 500; }
.onb-lista i { width: 32px; height: 32px; border-radius: 9px; background: #f1f5f9; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.onb-nota { font-size: 12.5px; color: #047857; background: #ecfdf5; padding: 8px 12px; border-radius: 8px; margin-bottom: 24px; }
.onb-nota i { margin-right: 6px; }
.onb-campo-moeda { display: flex; align-items: center; border: 1px solid #cbd5e1; border-radius: 10px; background: #f8fafc; transition: 0.2s; }
.onb-campo-moeda:focus-within { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.onb-campo-moeda span { padding: 0 4px 0 14px; font-weight: 600; color: var(--text-muted); }
.onb-campo-moeda input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; padding: 12px 14px 12px 6px; font-size: 24px; font-weight: 700; color: var(--text-dark); font-variant-numeric: tabular-nums; }
.onb-campo-moeda-p input { font-size: 15px; font-weight: 600; padding: 10px 14px 10px 4px; }
.onb-campo-moeda-p span { font-size: 14px; }
.onb-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.onb-campo-largo { grid-column: 1 / -1; }
.onb-dica { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.onb-erro { font-size: 13px; color: #b91c1c; font-weight: 500; min-height: 20px; margin-top: 10px; }
.onb-acoes { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.onb-acoes-coluna { flex-direction: column; align-items: stretch; }
.onb-acoes-secundarias { display: flex; justify-content: center; align-items: center; gap: 8px; color: #cbd5e1; flex-wrap: wrap; }
.onb-btn-principal { gap: 8px; padding: 12px 22px; font-size: 15px; border-radius: 10px; }
.onb-acoes:not(.onb-acoes-coluna) .onb-btn-principal { margin-left: auto; }
.onb-link { background: none; border: none; color: var(--text-muted); font-size: 13.5px; font-weight: 500; cursor: pointer; padding: 6px 4px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #cbd5e1; }
.onb-link:hover { color: var(--text-dark); text-decoration-color: currentColor; }
.onb-destaque { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #f8fafc; border: 1px solid var(--border-light); border-radius: 14px; padding: 20px; margin: 8px 0 16px; }
.onb-destaque-rotulo { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.onb-destaque-valor { font-size: 32px; font-weight: 700; color: #1d4ed8; font-variant-numeric: tabular-nums; }
.onb-destaque-valor.negativo { color: #b91c1c; }
.onb-resumo { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.onb-resumo li { font-size: 13.5px; color: #334155; display: flex; gap: 10px; align-items: baseline; }
.onb-resumo i { color: #059669; width: 16px; text-align: center; }
@media (max-width: 600px) { .onb-card { padding: 24px 20px; } .onb-grade { grid-template-columns: 1fr; } }

/* =====================================================================
   ADAPTAÇÃO PARA CELULAR E TELAS PEQUENAS
   ===================================================================== */
.btn-menu { display: none; background: rgba(255,255,255,0.1); color: white; border: none; border-radius: 8px; width: 40px; height: 40px; font-size: 18px; cursor: pointer; align-items: center; justify-content: center; flex-shrink: 0; }
.menu-overlay { display: none; }

/* Tablets e telas médias: menu vira gaveta */
@media (max-width: 900px) {
    .btn-menu { display: inline-flex; }
    .sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 1500; width: 280px; max-width: 85vw; overflow-y: auto; transform: translateX(-100%); transition: transform 0.25s ease; box-shadow: 0 0 40px rgba(0,0,0,0.3); }
    body.menu-aberto .sidebar { transform: translateX(0); }
    .menu-overlay { display: block; position: fixed; inset: 0; z-index: 1400; background: rgba(15, 23, 42, 0.5); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
    body.menu-aberto .menu-overlay { opacity: 1; pointer-events: auto; }
    body.menu-aberto { overflow: hidden; }
    .main-content { padding: 20px; height: auto; min-height: 100vh; overflow: visible; }
    .app-wrapper { display: block; }
    .main-header { gap: 12px; }
    .cc-layout { flex-direction: column; }
    .cc-chart-container { width: 100%; }
}

/* Celulares */
@media (max-width: 700px) {
    .main-content { padding: 12px; gap: 14px; }
    .main-header { padding: 14px 16px; border-radius: 14px; }
    .header-titles { gap: 10px; flex: 1; min-width: 0; }
    .header-titles h1 { font-size: 20px; letter-spacing: 0.5px; }
    .badge-year { font-size: 12px; padding: 3px 10px; }
    .btn-icon { width: 36px; height: 36px; }

    /* Resumo do mês: 2 colunas */
    .dashboard-panel { padding: 12px; border-radius: 14px; }
    .dashboard-panel .summary-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .dashboard-panel .glass-card { padding: 10px; gap: 8px; }
    .dashboard-panel .glass-card:last-child { grid-column: 1 / -1; }
    .dashboard-panel .card-icon { width: 32px; height: 32px; font-size: 14px; border-radius: 9px; }
    .dashboard-panel .card-info .label { font-size: 10.5px; }
    .dashboard-panel .card-info .value { font-size: 16px; }
    .glass-card:hover { transform: none; }

    /* Painéis e formulários */
    .settings-panel { padding: 16px; border-radius: 14px; }
    .summary-cards { flex-direction: column; gap: 10px; }
    .form-row { flex-direction: column; align-items: stretch; gap: 12px; }
    .form-row .input-group { flex: 1 1 auto !important; }
    .panel-header[style*="display: flex"] { flex-direction: column; align-items: stretch !important; gap: 12px; }
    .cc-upload-group { flex-wrap: wrap; }
    .cc-lists-container { flex-direction: column; }
    .cc-list-box { height: 360px; }
    .cc-chart-container { height: 380px; padding: 12px; }
    .barra-acoes .btn-acao-principal { width: 100%; justify-content: center; }
    .cards-tipo-grid { grid-template-columns: 1fr; }
    .forms-wrapper[style*="padding: 20px"] { padding: 14px !important; }

    /* Janelas (modais) */
    .modal-glass { padding: 10px; align-items: flex-end; }
    .modal-card { padding: 22px 18px; border-radius: 18px; max-height: calc(100vh - 20px); overflow-y: auto; }
    .modal-card .form-actions { flex-direction: column; }

    /* Calendário: lista por dia */
    .weekdays-grid { display: none; }
    .days-grid { grid-template-columns: 1fr; gap: 8px; }
    .day-cell.empty { display: none; }
    .day-cell { display: grid; grid-template-columns: 58px minmax(0, 1fr); min-height: 0; border-radius: 10px; }
    .day-cell:hover { transform: none; }
    .day-cell > .day-header { grid-row: 1 / span 40; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 20px; padding: 8px 0; line-height: 1.1; }
    .day-header.bg-mon::after { content: 'seg'; } .day-header.bg-tue::after { content: 'ter'; } .day-header.bg-wed::after { content: 'qua'; }
    .day-header.bg-thu::after { content: 'qui'; } .day-header.bg-fri::after { content: 'sex'; } .day-header.bg-sat::after { content: 'sáb'; }
    .day-header.bg-sun::after { content: 'dom'; }
    .day-header::after { font-size: 11px; font-weight: 600; opacity: 0.9; text-transform: uppercase; margin-top: 2px; }
    .day-saldo { padding: 8px 12px !important; }
    .day-saldo > div { text-align: left !important; font-size: 15px !important; }
    .day-line { padding: 6px 12px; font-size: 13px; }

    /* Gráficos */
    .saldo-chart-canvas { height: 300px; }
    .charts-pie-row { gap: 20px; }
    .chart-pie-section > .rosca-painel { height: 340px !important; }

    /* Guia, backup e assistente */
    .guia-hero { padding: 20px; }
    .guia-hero h2 { font-size: 20px; }
    .guia-passo { grid-template-columns: 34px 1fr; gap: 10px; }
    .guia-passo-numero { width: 34px; height: 34px; font-size: 14px; }
    .guia-passo:not(:last-child)::before { left: 16px; top: 34px; }
    .guia-passo-opcional .guia-passo-numero { width: 30px; height: 30px; margin: 2px 0 0 2px; }
    .guia-passo-card { padding: 14px; }
    .guia-passo-topo h4 { min-width: 0; }
    .backup-card { padding: 16px; }
}

/* ======== FATURA DO CARTÃO NO CALENDÁRIO ======== */
.cc-calendario { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 18px 20px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 12px; }
.cc-calendario-ativo { background: #ecfdf5; border: 1px solid #a7f3d0; }
.cc-cal-topo h4 { font-size: 15px; font-weight: 700; color: var(--text-dark); display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cc-cal-topo h4 i { color: var(--primary); }
.cc-calendario-ativo .cc-cal-topo h4 i { color: #059669; }
.cc-cal-topo p { font-size: 13px; color: #475569; line-height: 1.6; }
.cc-cal-campos { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.cc-cal-campos .input-group { min-width: 180px; }
.cc-cal-fechada { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--text-dark); cursor: pointer; }
.cc-cal-fechada input { width: 16px; height: 16px; accent-color: #059669; }
.day-line-auto { font-style: italic; }

/* ======== ALERTA DE SALDO NEGATIVO ======== */
.alerta-saldo { width: 100%; box-sizing: border-box; align-items: center; gap: 14px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px; padding: 14px 18px; flex-wrap: wrap; }
.alerta-saldo-icone { color: #dc2626; font-size: 20px; }
.alerta-saldo-texto { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; }
.alerta-saldo-texto strong { font-size: 14.5px; color: #991b1b; }
.alerta-saldo-texto span { font-size: 13px; color: #7f1d1d; }
.alerta-saldo-btn { background: #ffffff; color: #b91c1c; border: 1px solid #fecaca; }
.alerta-saldo-btn:hover { background: #fee2e2; }

/* ======== META GERAL E META DO MÊS (CARTÃO) ======== */
.meta-origem { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.4; }
#cc-meta-card.meta-especifica { border-color: #fcd34d; background: #fffbeb; }
#cc-meta-card.meta-especifica .meta-origem { color: #92400e; }
/* v155: aba Cartão compacta — cabe em uma página no desktop; menos altura no celular. Textos sempre cabem. */
#tab-cartao .summary-cards { gap: 10px; }
#tab-cartao .glass-card { padding: 11px 13px; gap: 10px; }
#tab-cartao .card-info { min-width: 0; }
#tab-cartao .card-info .label { font-size: 11px; letter-spacing: 0.2px; line-height: 1.2; }
#tab-cartao .card-info .value { font-size: 18px; margin-top: 2px; }
#tab-cartao .input-transparent-value { font-size: 17px; margin-top: 2px; }
#tab-cartao .meta-origem { font-size: 10.5px; margin-top: 2px; line-height: 1.25; }
/* Card da fatura no calendário mais compacto */
.cc-calendario { padding: 12px 14px; gap: 8px; }
.cc-cal-topo h4 { font-size: 13.5px; margin-bottom: 3px; }
.cc-cal-topo p { font-size: 12px; line-height: 1.4; }
.cc-cal-fechada { font-size: 12.5px; }
@media (max-width: 760px) {
    /* celular: os 4 cards em 2 colunas, bem mais baixos */
    #tab-cartao .summary-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    #tab-cartao .glass-card { padding: 10px 11px; }
    #tab-cartao .card-info .value { font-size: 16px; }
    #tab-cartao .input-transparent-value { font-size: 15px; }
}
.link-acao { background: none; border: none; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link-acao:hover { color: #1d4ed8; }
.meta-pontual { flex-direction: column; gap: 8px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 12px 14px; margin-top: -2px; }
.meta-pontual-linha { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.meta-pontual-linha .input-premium { flex: 1; min-width: 140px; }
.meta-pontual-nota { font-size: 12px; color: #92400e; line-height: 1.5; }

/* v164: pop-up do dia — layout "extrato" (ícone por tipo + descrição + "Categoria · natureza" + valor à direita) */
.dia-linha { padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.dia-linha:last-child { border-bottom: 0; }
.dia-top { display: flex; align-items: center; gap: 12px; }
.dia-ic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; }
.dia-ic.t-rec { background: rgba(59,130,246,.14); color: var(--primary); }
.dia-ic.t-desp { background: rgba(239,68,68,.13); color: var(--danger); }
.dia-ic.t-inv { background: rgba(139,92,246,.14); color: var(--purple); }
.dia-ic.t-div { background: rgba(234,88,12,.14); color: #ea580c; }
.dia-ic.t-obj { background: rgba(13,148,136,.14); color: #0d9488; }
.dia-mid { flex: 1; min-width: 0; }
.dia-desc { font-weight: 700; font-size: 14px; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dia-meta { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.dia-val { font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; font-size: 14.5px; flex: 0 0 auto; }
.dia-obs { font-size: 11.5px; color: var(--text-muted); margin: 4px 0 0 50px; }
.dia-acoes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; margin-top: 8px; }
.dia-ico { padding: 0; width: 32px; height: 32px; display: inline-grid; place-items: center; }

/* v165: aviso de dia anterior bloqueado (pop-up do dia) */
.dia-bloqueado { display: flex; gap: 10px; align-items: flex-start; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.5; margin: 8px 0 2px; }
.dia-bloqueado[hidden] { display: none; }   /* v166: só aparece em dia anterior bloqueado (o hidden precisa vencer o display: flex) */
.dia-bloqueado i { margin-top: 2px; }
/* v165: checkbox "Permitir editar dias anteriores" em Configurações */
.config-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 10px 12px; border: 1px solid var(--border-light); border-radius: 10px; margin-bottom: 8px; }
.config-check input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--primary); }
.config-check-txt { display: flex; flex-direction: column; gap: 2px; }
.config-check-txt small { color: var(--text-muted); font-size: 12px; line-height: 1.45; }

/* ======== AVISO COM "DESFAZER" ======== */
.aviso-desfazer { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 3000; display: flex; align-items: center; gap: 14px; background: #0f172a; color: #f8fafc; padding: 12px 12px 12px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35); font-size: 14px; max-width: calc(100vw - 32px); transition: opacity 0.2s, transform 0.2s; }
.aviso-desfazer.visivel { opacity: 1; transform: translate(-50%, 0); }
.aviso-desfazer[hidden] { display: none; }
.aviso-desfazer-btn { background: transparent; border: 1px solid rgba(255, 255, 255, 0.35); color: #93c5fd; font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.aviso-desfazer-btn:hover { background: rgba(255, 255, 255, 0.1); color: #ffffff; }
.aviso-desfazer-fechar { background: none; border: none; color: #94a3b8; font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 6px; }
.aviso-desfazer-fechar:hover { color: #ffffff; }
@media (max-width: 700px) { .aviso-desfazer { left: 12px; right: 12px; bottom: 12px; transform: translateY(20px); max-width: none; } .aviso-desfazer.visivel { transform: translateY(0); } }

/* ======== PERGUNTE À CORUJA ======== */
.main-content { padding-bottom: 96px; }   /* espaço para o balão não cobrir o fim da página */
.coruja-balao { position: fixed; right: 24px; bottom: 24px; z-index: 900; display: flex; align-items: center; gap: 10px; background: #1e3a8a; color: #ffffff; border: none; border-radius: 999px; padding: 6px 18px 6px 6px; cursor: pointer; box-shadow: 0 10px 25px rgba(30, 58, 138, 0.35); font-size: 14px; font-weight: 600; transition: transform 0.15s, box-shadow 0.15s; }
.coruja-balao:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(30, 58, 138, 0.45); }
.coruja-balao:focus-visible, .coruja-chip:focus-visible, .coruja-acao:focus-visible, .coruja-fechar:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.coruja-balao-icone { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); display: flex; align-items: center; justify-content: center; }
.coruja-balao-icone svg { width: 34px; height: 34px; }
body.coruja-aberta .coruja-balao { display: none; }

/* v147: botão de microfone (lançar por voz) — fica onde ficava o balão da coruja */
.mic-voz { position: fixed; right: 24px; bottom: 24px; z-index: 900; display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, #0d9488, #0f766e); color: #ffffff; border: none; border-radius: 999px; padding: 6px 18px 6px 6px; cursor: pointer; box-shadow: 0 10px 25px rgba(13, 148, 136, 0.4); font-size: 14px; font-weight: 600; transition: transform 0.15s, box-shadow 0.15s; }
.mic-voz:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(13, 148, 136, 0.5); }
.mic-voz:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.mic-voz-icone { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.mic-voz.ouvindo { background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); animation: micPulso 1.3s ease-out infinite; }
@keyframes micPulso { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); } 70% { box-shadow: 0 0 0 18px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
body.coruja-aberta .mic-voz { display: none; }
.hospedagem-netlify .mic-voz { bottom: calc(24px + var(--reserva-selo)); }
@media (max-width: 900px) { .mic-voz { left: 16px; right: auto; bottom: 16px; padding: 6px; } .mic-voz-rotulo { display: none; } .hospedagem-netlify .mic-voz { bottom: calc(16px + var(--reserva-selo)); } }

/* v147: confirmação do lançamento por voz */
.voz-frase { font-size: 13px; color: var(--text-muted); font-style: italic; margin: 0 0 12px; }
.voz-resumo { display: flex; flex-direction: column; gap: 2px; background: #f8fafc; border: 1px solid var(--border-light); border-radius: 12px; padding: 6px 14px; }
.voz-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eef2f7; }
.voz-linha:last-child { border-bottom: none; }
.voz-rotulo { font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.02em; }
.voz-valor { font-size: 16px; font-weight: 700; color: var(--text-dark); display: inline-flex; align-items: center; gap: 8px; }
.voz-valor.voz-receita { color: #1d4ed8; } .voz-valor.voz-despesa { color: #b91c1c; }
.voz-cat-cor { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.voz-erro { font-size: 14px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 12px 14px; line-height: 1.5; }

.coruja-painel { position: fixed; right: 24px; bottom: 24px; z-index: 950; width: 380px; height: 560px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: var(--bg-surface); border-radius: 18px; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3); overflow: hidden; animation: corujaEntrar 0.2s ease; }
.coruja-painel[hidden] { display: none; }
@keyframes corujaEntrar { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.coruja-topo { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: #1e3a8a; color: #ffffff; }
.coruja-topo-icone { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.coruja-topo-icone svg { width: 30px; height: 30px; }
.coruja-topo-texto { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.coruja-topo-texto strong { font-size: 15px; }
.coruja-topo-texto span { font-size: 12px; color: #c7d2fe; }
.coruja-fechar { background: none; border: none; color: #c7d2fe; font-size: 26px; line-height: 1; cursor: pointer; padding: 2px 8px; border-radius: 8px; }
.coruja-fechar:hover { color: #ffffff; background: rgba(255, 255, 255, 0.1); }

.coruja-mensagens { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f8fafc; }
.coruja-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.coruja-msg-usuario { align-self: flex-end; background: var(--primary); color: #ffffff; border-bottom-right-radius: 4px; }
.coruja-msg-coruja { align-self: flex-start; background: #ffffff; color: var(--text-dark); border: 1px solid var(--border-light); border-bottom-left-radius: 4px; }
.coruja-msg strong { font-weight: 700; }
.coruja-rodape { display: block; margin-top: 8px; font-size: 11px; color: var(--text-muted); }
.coruja-acao { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; background: #1e3a8a; color: #ffffff; border: none; border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.coruja-acao:hover { background: #1e40af; }
.coruja-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.coruja-chip { background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 500; cursor: pointer; text-align: left; line-height: 1.35; }
.coruja-chip:hover { background: #dbeafe; }
.coruja-chip-tema { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.coruja-chip-tema:hover { background: #fef3c7; }
.coruja-digitando { display: flex; gap: 4px; padding: 14px; }
.coruja-digitando span { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: corujaPontos 1s infinite; }
.coruja-digitando span:nth-child(2) { animation-delay: 0.15s; }
.coruja-digitando span:nth-child(3) { animation-delay: 0.3s; }
@keyframes corujaPontos { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

.coruja-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border-light); background: var(--bg-surface); }
.coruja-form input { flex: 1; min-width: 0; border: 1px solid var(--border-light); border-radius: 10px; padding: 10px 12px; font-size: 16px; outline: none; }
.coruja-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.coruja-enviar { width: 44px; flex-shrink: 0; border: none; border-radius: 10px; background: #1e3a8a; color: #ffffff; cursor: pointer; font-size: 15px; }
.coruja-enviar:hover { background: #1e40af; }

@media (max-width: 700px) {
    .coruja-balao { right: 16px; bottom: 16px; padding: 6px; }
    .coruja-balao-rotulo { display: none; }
    .coruja-painel { left: 0; right: 0; bottom: 0; width: 100%; height: 85vh; max-height: 85vh; border-radius: 18px 18px 0 0; }
}

/* ======== GUIA RÁPIDO (v64): progresso, resultado, rotina, extras e dicas ======== */
.guia-progresso { display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
.guia-progresso-rotulo { font-size: 13px; font-weight: 600; color: #e0e7ff; }
.guia-progresso-barra { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.guia-progresso-barra > div { height: 100%; width: 0; background: #34d399; border-radius: 999px; transition: width 0.4s ease; }
.guia-hero-btn { align-self: flex-start; margin-top: 4px; background: rgba(255, 255, 255, 0.12); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.guia-hero-btn:hover { background: rgba(255, 255, 255, 0.2); }

/* passo concluído */
.guia-passo-numero i, .guia-feito { display: none; }
.guia-concluido .guia-passo-numero { background: #059669; }
.guia-concluido .guia-passo-numero span { display: none; }
.guia-concluido .guia-passo-numero i { display: inline; }
.guia-concluido .guia-feito { display: inline-flex; }
.guia-feito { align-items: center; gap: 5px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: #047857; background: #d1fae5; padding: 3px 10px; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.guia-concluido .guia-passo-card { border-left-color: #059669; }

.guia-dicas-passo { list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #475569; }
.guia-dicas-passo li { position: relative; padding-left: 18px; line-height: 1.5; }
.guia-dicas-passo li::before { content: ''; position: absolute; left: 4px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--passo-cor); }

.guia-resultado { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 14px; padding: 18px 20px; }
.guia-resultado-icone { color: #059669; font-size: 24px; margin-top: 2px; }
.guia-resultado > div { flex: 1; min-width: 240px; }
.guia-resultado strong { font-size: 15px; color: #065f46; }
.guia-resultado ul { margin: 8px 0 0 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: #065f46; line-height: 1.55; }
.guia-resultado-btn { --passo-cor: #047857; --passo-fundo: #d1fae5; align-self: center; }

.guia-rotina { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.guia-rotina-item { display: flex; gap: 14px; background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.guia-rotina-item.guia-concluido { border-color: #a7f3d0; }
.guia-rotina-texto { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.guia-rotina-texto h4 { font-size: 15px; font-weight: 700; color: var(--text-dark); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.guia-rotina-texto p { font-size: 13.5px; color: #475569; line-height: 1.6; }

.guia-secao-titulo .guia-selo { margin-left: 4px; }
.guia-extras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.guia-extra { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; box-shadow: var(--shadow-sm); transition: 0.2s; position: relative; overflow: hidden; }
.guia-extra::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--ben-cor); }
.guia-extra:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--ben-cor); }
.guia-extra .guia-beneficio-icone { width: 38px; height: 38px; font-size: 17px; border-radius: 10px; }
.guia-extra h4 { font-size: 15px; font-weight: 700; color: var(--text-dark); }
.guia-extra p { font-size: 13px; color: #475569; line-height: 1.6; flex: 1; }
.guia-extra:hover .guia-beneficio-link i { transform: translateX(3px); }

.guia-dicas { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
.guia-dica { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 14px 16px; }
.guia-dica p { flex: 1; min-width: 160px; font-size: 13px; color: #475569; line-height: 1.55; }
.guia-dica p strong { color: var(--text-dark); }
.guia-dica-icone { width: 36px; height: 36px; border-radius: 50%; background: #e2e8f0; color: #475569; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.guia-dica-icone-coruja { background: #1e3a8a; }
.guia-dica-icone-coruja svg { width: 26px; height: 26px; }
.guia-dica-coruja { background: #eef2ff; border: 1px solid #c7d2fe; }

@media (max-width: 1200px) { .guia-extras { grid-template-columns: repeat(2, minmax(0, 1fr)); } .guia-dicas { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .guia-rotina { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
    .guia-extras { grid-template-columns: 1fr; }
    .guia-progresso { min-width: 0; width: 100%; }
    .guia-resultado-btn { align-self: flex-start; }
}

/* ======== MENU LATERAL (v65): grupos e indicadores ======== */
.sidebar { max-height: 100vh; overflow-y: auto; }
.sidebar-logo { margin-bottom: 28px; }
.sidebar-nav { gap: 4px; }
.sidebar-nav button { padding: 10px 16px; }
.sidebar-grupo { margin: 18px 0 6px; padding-left: 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: #64748b; }
.sidebar-separador { height: 1px; background: rgba(255, 255, 255, 0.08); margin: 18px 8px 10px; }
/* v145: linha antes de "Ajuste de Saldo", com um respiro do nome do app */
.sidebar-separador-topo { margin-top: 26px; }
.menu-indicador { margin-left: auto; flex-shrink: 0; }
.menu-indicador[hidden] { display: none; }
.menu-indicador-ponto { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25); }
.menu-indicador-numero { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #f59e0b; color: #0f172a; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.menu-indicador-progresso { padding: 2px 8px; border-radius: 999px; background: rgba(52, 211, 153, 0.15); color: #6ee7b7; font-size: 11px; font-weight: 700; }
.sidebar-nav button.active .menu-indicador-progresso { background: rgba(255, 255, 255, 0.2); color: #ffffff; }
.sidebar-nav button.active .menu-indicador-ponto { background: #ffffff; box-shadow: none; }

/* Menu lateral (v66): cada item em uma única linha */
.sidebar { width: 272px; padding-left: 16px; padding-right: 16px; }
.sidebar-nav button { white-space: nowrap; padding-left: 14px; padding-right: 14px; }

/* ======== ÍCONES DAS CATEGORIAS (v70) ======== */
.icone-cat { margin-right: 8px; font-size: 1.05em; }
.icone-dia { margin-right: 4px; }
.icone-campo { display: flex; align-items: center; gap: 12px; }
.icone-entrada { width: 64px !important; flex: none; text-align: center; font-size: 22px; padding: 6px !important; }
.icone-ajuda { font-size: 12.5px; color: var(--text-muted); }
.grade-icones { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 4px; margin-top: 8px; max-height: 128px; overflow-y: auto; padding: 4px; border: 1px solid var(--border-light); border-radius: 10px; background: #f8fafc; }
.icone-opcao { height: 36px; border: 1px solid transparent; border-radius: 8px; background: transparent; font-size: 19px; cursor: pointer; line-height: 1; }
.icone-opcao:hover { background: #e2e8f0; }
.icone-opcao.selecionado { background: #dbeafe; border-color: var(--primary); }

/* Abas de temas dos ícones (v71) */
.abas-icones { display: flex; gap: 6px; overflow-x: auto; margin-top: 10px; padding-bottom: 4px; scrollbar-width: thin; }
.icone-aba { flex: none; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border-light); background: #ffffff; color: #475569; border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.icone-aba:hover { border-color: #cbd5e1; color: var(--text-dark); }
.icone-aba.ativa { background: #dbeafe; border-color: var(--primary); color: #1d4ed8; font-weight: 600; }
.abas-icones + .grade-icones { margin-top: 6px; height: 128px; }
.icone-ajuda { line-height: 1.4; }
/* v71: todas as abas visíveis (quebram em linhas) e grade alinhada no topo */
.abas-icones { flex-wrap: wrap; overflow-x: visible; padding-bottom: 0; }
.icone-aba { padding: 4px 10px; font-size: 12px; }
.grade-icones { align-content: start; grid-auto-rows: 36px; }
@media (max-width: 700px) { .icone-aba { font-size: 11.5px; padding: 4px 8px; } }

/* ======== MARCA VISTA (v72) ======== */
.sidebar-logo { display: flex; align-items: center; gap: 10px; font-size: 22px; letter-spacing: -0.4px; }
.sidebar-logo-icone { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #1e40af, #1e3a8a); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.sidebar-logo-icone svg { width: 28px; height: 28px; }

.onb-icone-marca { background: linear-gradient(135deg, #1e40af, #1e3a8a); }
.onb-icone-marca svg { width: 72%; height: 72%; }

/* ======== PAINEL (v73): roscas maiores e breakdown das saídas ======== */
@media (min-width: 701px) and (max-width: 1100px) { .chart-pie-section > .rosca-painel { height: 520px !important; } }
.breakdown { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.breakdown-topo h3 { font-size: 17px; font-weight: 700; color: var(--text-dark); }
.breakdown-sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.breakdown-lista { display: flex; flex-direction: column; gap: 8px; }
.breakdown-linha { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 14px; align-items: center; }
.breakdown-trilho { position: relative; height: 34px; border-radius: 8px; background: #f1f5f9; overflow: hidden; }
.breakdown-barra { position: absolute; top: 0; left: 0; bottom: 0; border-radius: 8px; transition: width 0.4s ease; }
.breakdown-rotulo { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); font-size: 13.5px; font-weight: 600; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15); pointer-events: none; }
.breakdown-valor { display: flex; align-items: baseline; justify-content: flex-end; gap: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.breakdown-valor strong { font-size: 14px; color: var(--text-dark); }
.breakdown-valor span { font-size: 13px; font-weight: 600; color: var(--text-muted); min-width: 48px; text-align: right; }
.breakdown-vazio { color: var(--text-muted); font-size: 14px; }
@media (max-width: 700px) {
    .breakdown-linha { grid-template-columns: minmax(0, 1fr) 96px; gap: 8px; }   /* largura fixa: todas as barras na mesma escala */
    .breakdown-trilho { height: 30px; }
    .breakdown-rotulo { font-size: 12.5px; left: 10px; }
    .breakdown-valor { flex-direction: column; align-items: flex-end; gap: 0; }
    .breakdown-valor strong { font-size: 12.5px; } .breakdown-valor span { font-size: 11.5px; }
}

/* ======== v74: barras claras, painel personalizável, cabeçalho fixo, versão ======== */
/* Barras do breakdown com as cores claras da aba Categorias; nome sempre à esquerda, em texto escuro */
.breakdown-trilho { background: transparent; }
.breakdown-barra { background: var(--tipo-fundo); border: 1px solid var(--tipo-borda); border-left: 4px solid var(--tipo-marcador); }
.breakdown-rotulo { color: var(--text-dark); text-shadow: none; max-width: calc(100% - 20px); }

/* Painel: blocos reordenáveis; roscas em pares, demais na largura toda */
.painel-barra-acoes { width: 100%; display: flex; justify-content: flex-end; }
.btn-personalizar { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 8px 14px; }
.painel-graficos { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
.painel-bloco { min-width: 0; }
.painel-bloco[hidden] { display: none; }
.painel-bloco-largo, .painel-bloco-sozinho { grid-column: 1 / -1; }
.painel-bloco-sozinho > .chart-pie-section { width: 50%; margin: 0 auto; }
.painel-vazio { color: var(--text-muted); font-size: 14px; }
.painel-vazio[hidden] { display: none; }
@media (max-width: 1100px) {
    .painel-graficos { grid-template-columns: 1fr; }
    .painel-bloco-sozinho > .chart-pie-section { width: 100%; }
}
.modal-painel-card { max-width: 480px; }
/* v152: atalhos no pop-up "Configurações" (Lançamentos Recorrentes, Categorias) */
.config-nav { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 6px; }
.config-nav-btn { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 13px 14px; border: 1.5px solid var(--border-light); border-radius: 13px; background: #fbfcfe; cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--text-dark); transition: border-color 0.15s, background 0.15s; }
.config-nav-btn:hover { border-color: var(--primary); background: #f5f8ff; }
.config-nav-ic { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 15px; color: #fff; background: var(--text-dark); flex-shrink: 0; }
.config-nav-txt { flex: 1; min-width: 0; }
.config-nav-seta { color: #94a3b8; font-size: 13px; }
.config-secao-titulo { font-size: 15px; font-weight: 700; color: var(--text-dark); margin: 18px 0 10px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.painel-config-ajuda { font-size: 13.5px; color: var(--text-muted); margin: -6px 0 14px; line-height: 1.5; }
.lista-config-painel { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.config-painel-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--border-light); border-radius: 10px; padding: 8px 10px 8px 12px; background: #ffffff; }
.config-painel-item.oculto { background: #f8fafc; }
.config-painel-item.oculto label { color: var(--text-muted); }
.config-painel-item label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text-dark); cursor: pointer; flex: 1; min-width: 0; }
.config-painel-item input { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }
.config-painel-setas { display: flex; gap: 4px; flex-shrink: 0; }
.config-painel-setas button { width: 34px; height: 34px; border: 1px solid var(--border-light); border-radius: 8px; background: #ffffff; color: #475569; cursor: pointer; }
.config-painel-setas button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.config-painel-setas button:disabled { opacity: 0.35; cursor: default; }

/* Cabeçalho com o mês sempre visível ao rolar (computador e celular) */
/* v146: cabeçalho + barra do dia fixos juntos ao rolar */
.topo-fixo { position: sticky; top: 0; z-index: 60; flex-shrink: 0; background: var(--bg-body); }
@media (min-width: 901px) { .main-content { padding-top: 16px; } }   /* encosta no topo da área rolável */
/* v149 Item 3: o padding de 16px do topo deixava uma faixa onde o conteúdo rolava por cima do cabeçalho fixo.
   Cobrimos essa faixa com uma barra opaca presa ao cabeçalho (só no desktop, onde existe o respiro de 16px). */
@media (min-width: 901px) {
    .topo-fixo::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; background: var(--bg-body); z-index: 1; }
}

/* v149 Item 2: orientação quando o mês do cartão ainda não tem fatura importada */
.cc-orientacao { display: flex; align-items: center; gap: 8px; margin: 2px 0 12px; padding: 7px 11px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; color: #1e40af; font-size: 12.5px; line-height: 1.35; }
.cc-orientacao i { color: #2563eb; flex-shrink: 0; }

/* ===================== v140: Barra do dia (abaixo do mês, acima dos cards) ===================== */
.barra-dia { position: relative; z-index: 65; flex-shrink: 0; margin-top: 8px; background: #ffffff; border-radius: 18px; box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08); height: 84px; min-height: 84px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.barra-add { position: absolute; left: 50%; top: 0; transform: translate(-50%, -88%); width: 58px; height: 58px; border-radius: 50%; border: 4px solid #ffffff; background: linear-gradient(135deg, #3b74ff, #1d49c4); color: #ffffff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 12px 24px rgba(37, 99, 235, 0.42), 0 0 0 6px rgba(37, 99, 235, 0.08); z-index: 66; transition: transform 0.15s, box-shadow 0.15s; }
.barra-add i { font-size: 22px; }
.barra-add:hover { transform: translate(-50%, -88%) scale(1.06); }
.barra-add:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
/* v142: o saldo abre o Ajuste de Saldo ao ser clicado */
.barra-saldo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; margin-top: 7px; cursor: pointer; padding: 2px 6px; border-radius: 10px; transition: background 0.15s; }
.barra-saldo:hover { background: #f1f5f9; }
.barra-saldo:hover .barra-saldo-val { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.barra-saldo:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.barra-saldo-rot { display: block; font-size: 12px; color: var(--text-muted); font-weight: 600; }
.barra-saldo-val { display: block; font-size: 25px; font-weight: 800; color: var(--text-dark); letter-spacing: -0.01em; line-height: 1.05; }
.barra-saldo-val.negativo { color: #dc2626; }
.barra-btn { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 700; padding: 12px 17px; border-radius: 12px; cursor: pointer; border: none; background: #eef3ff; color: #1d4ed8; position: relative; transition: background 0.15s; }
.barra-btn i { font-size: 18px; }
.barra-btn:hover { background: #e2eaff; }
.barra-btn:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.barra-ind { position: absolute; top: 5px; right: 7px; }
/* v144: grupo esquerdo (Início + Personalizar); Personalizar é só ícone. Calendário foi para a direita. */
.barra-acoes-esq { display: inline-flex; align-items: center; gap: 8px; }
.barra-acoes-dir { display: inline-flex; align-items: center; gap: 8px; }   /* v153: Cartão + Calendário à direita */
.barra-personalizar { padding: 12px; }
@media (max-width: 900px) { .barra-dia { margin-top: 8px; } }
/* v142: celular na horizontal — sem o "+" da barra; fica o "+" flutuante */
@media (orientation: landscape) and (max-height: 500px) {
    .barra-add { display: none; }
    .fab-novo { display: inline-flex; }
}
@media (max-width: 700px) {
    /* v141: no celular o "+" da barra sai; fica só o "+" flutuante na base da tela */
    .barra-dia { height: 70px; min-height: 70px; padding: 0 12px; border-radius: 16px; margin-top: 6px; }
    .barra-add { display: none; }
    .barra-saldo { margin-top: 0; }
    .barra-saldo-val { font-size: 20px; white-space: nowrap; }
    .barra-saldo-rot { font-size: 10.5px; }
    .barra-btn { padding: 9px 12px; font-size: 12.5px; gap: 6px; }
    .barra-btn i { font-size: 16px; }
    .barra-personalizar { padding: 9px; }
    .barra-acoes-esq, .barra-acoes-dir { gap: 6px; }
}
@media (max-width: 430px) { .barra-btn span { display: none; } .barra-btn { padding: 10px; border-radius: 11px; } }

/* Versão do app, discreta, no rodapé do menu */
.sidebar-versao { padding: 4px 16px 0; font-size: 11px; color: #475569; letter-spacing: 0.3px; }

/* ======== RESGATE DE INVESTIMENTOS (v75) ======== */
.btn-resgatar { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; display: inline-flex; align-items: center; gap: 8px; align-self: flex-end; }
.btn-resgatar:hover { background: #ede9fe; border-color: #8b5cf6; }
.card-detalhe { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.card-detalhe[hidden] { display: none; }
.segmentado { display: flex; gap: 8px; flex-wrap: wrap; }
.segmentado label { flex: 1; min-width: 140px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-light); border-radius: 10px; padding: 9px 12px; font-size: 14px; font-weight: 500; cursor: pointer; background: #ffffff; }
.segmentado label:has(input:checked) { border-color: #8b5cf6; background: #f5f3ff; color: #5b21b6; }
.segmentado input { accent-color: #8b5cf6; }
.segmentado small, .check-resgate-total small { color: var(--text-muted); font-weight: 400; }
.grupo-movimento[hidden], #lbl-resgate-total[hidden], .dica-resgate[hidden], .resgate-ajuda[hidden], #resgate-corpo[hidden] { display: none; }
.check-resgate-total { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; cursor: pointer; }
.check-resgate-total input { width: 17px; height: 17px; accent-color: #8b5cf6; }
.dica-resgate { font-size: 12.5px; color: #5b21b6; background: #f5f3ff; border-radius: 8px; padding: 8px 10px; margin-top: 8px; line-height: 1.45; }
.erro-resgate { font-size: 13px; color: var(--danger); margin-top: 6px; min-height: 0; }
.erro-resgate:empty { display: none; }
.badge-resgate { background-color: #7c3aed !important; font-size: 10px; }
.nota-resgate-total { color: var(--text-muted); font-size: 11.5px; }
.modal-resgate-card { max-width: 480px; }
.resgate-ajuda { font-size: 13.5px; color: var(--text-muted); margin: -6px 0 14px; line-height: 1.5; }
.resgate-saldo { font-size: 13px; color: #5b21b6; font-weight: 600; margin: 4px 0 12px; }
.resgate-previa:empty { display: none; }
.resgate-previa { display: flex; flex-direction: column; gap: 4px; background: #f8fafc; border: 1px solid var(--border-light); border-left: 4px solid #8b5cf6; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; color: #334155; margin-top: 8px; }
.resgate-previa strong { color: var(--text-dark); }
.resgate-nota { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ======== v79: rosca da aba Cartão igual à do Painel ======== */
/* Listas e rosca dividem a largura meio a meio (como as roscas em pares do Painel); sem caixa cinza */
.cc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.cc-layout > .cc-chart-container { background: transparent; border: none; border-radius: 0; padding: 0; height: auto; display: flex; flex-direction: column; align-items: center; }
@media (max-width: 1100px) { .cc-layout { grid-template-columns: 1fr; } }
@media (max-width: 1100px) and (min-width: 701px) { .cc-layout .rosca-painel { height: 520px !important; } }
@media (max-width: 700px) { .cc-layout .rosca-painel { height: 340px !important; } }
/* Listas mais estreitas (lado a lado com a rosca): itens não transbordam */
.cc-lists-container { min-width: 0; }
.cc-list-box { min-width: 0; }
.cc-item { min-width: 0; }
.cc-item-top { gap: 2px 10px; flex-wrap: wrap; }   /* descrição longa: o valor desce para a linha de baixo */
.cc-item-desc { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
.cc-item-val { flex-shrink: 0; white-space: nowrap; margin-left: auto; }
.cc-select-cat { min-width: 0; width: 100%; }
@media (min-width: 1101px) { .cc-list-box { height: 560px; } }   /* mesma altura da rosca ao lado */

/* v137 Item 5: no computador, as 4 roscas do Resumo cabem em uma única tela (2×2). O texto central já se ajusta ao diâmetro. */
@media (min-width: 1101px) {
    .chart-pie-section > .rosca-painel { height: 400px !important; }
}
/* v137/v139 Item: no computador, o mês inteiro do calendário cabe em uma única tela, mantendo as proporções (v139: ainda menor) */
@media (min-width: 1101px) {
    .weekdays-grid { gap: 6px; margin-bottom: 6px; }
    .weekday { padding: 5px 0; font-size: 12px; }
    .days-grid { gap: 6px; }
    .day-cell { min-height: 82px; border-radius: 9px; }
    .day-header { font-size: 12px; padding: 3px 0; }
    .day-line { padding: 2px 5px; font-size: 10px; }
    .day-saldo { padding: 4px 8px !important; }
    .day-saldo > div { font-size: 11px !important; }
}

/* ======== v80: cards do mês ocultáveis ======== */
.dashboard-panel .glass-card[hidden] { display: none; }
/* Celular (grade de 2 colunas): o Balanço ocupa a linha inteira só quando sobra sozinho */
@media (max-width: 700px) {
    .dashboard-panel .summary-cards[data-visiveis="4"] .glass-card:last-child { grid-column: auto; }
}

/* v81: botão Compartilhar backup */
.btn-compartilhar[hidden] { display: none; }
.btn-compartilhar { display: inline-flex; align-items: center; gap: 8px; }

/* ======== v82: app instalável ======== */
.sidebar-instalar { margin: 10px 8px 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(59, 130, 246, 0.15); color: #bfdbfe; border: 1px solid rgba(147, 197, 253, 0.35); border-radius: 8px; padding: 9px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.sidebar-instalar:hover { background: rgba(59, 130, 246, 0.28); color: #ffffff; }
.sidebar-instalar[hidden] { display: none; }
.aviso-atualizacao { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 3100; display: flex; align-items: center; gap: 12px; background: #1e3a8a; color: #ffffff; padding: 10px 10px 10px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35); font-size: 14px; max-width: calc(100vw - 24px); }
.aviso-atualizacao[hidden] { display: none; }
.aviso-atualizacao-btn { background: #ffffff; color: #1e3a8a; border: none; border-radius: 8px; padding: 6px 14px; font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.aviso-atualizacao-fechar { background: none; border: none; color: #c7d2fe; font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.modal-instalar-card { max-width: 440px; }
.instalar-passos { margin: 0 0 14px 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; color: #334155; line-height: 1.5; }
.instalar-icone { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; background: #eff6ff; color: #2563eb; font-size: 13px; vertical-align: middle; }
.instalar-nota { font-size: 13px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 12px; margin-bottom: 16px; line-height: 1.5; }
@media (max-width: 700px) { .aviso-atualizacao { top: 10px; font-size: 13px; } }

/* v83: campo Alterar Data (só na edição) */
#grupo-data-diaria[hidden] { display: none; }

/* v84: janela de categoria por cima das outras (janela do dia, recorrente, configuração guiada) */
#modal-categoria { z-index: 2300; background: rgba(15, 23, 42, 0.55); }

/* ======== v86: vários cartões e exclusão permanente ======== */
.cc-cartoes-barra { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; padding: 12px 14px; background: #f8fafc; border: 1px solid var(--border-light); border-radius: 12px; }
.cc-cartoes-barra .form-label { margin: 0; font-weight: 600; }
.cc-cartoes-barra select { width: auto; min-width: 200px; max-width: 100%; flex: 0 1 260px; }
.cc-cartoes-barra .btn-sm { display: inline-flex; align-items: center; gap: 6px; }
.cc-btn-excluir-cartao { color: var(--danger) !important; }
.cc-btn-excluir-cartao:disabled { opacity: 0.4; cursor: not-allowed; }
.cc-rodape { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cc-rodape .btn-danger { margin-left: auto; }
#cc-link-excluidas[hidden] { display: none; }
.modal-excluir-cc-card { max-width: 460px; }
.excluir-cc-desc { font-size: 14px; font-weight: 600; color: var(--text-dark); background: #f8fafc; border: 1px solid var(--border-light); border-radius: 10px; padding: 10px 12px; margin: -4px 0 14px; overflow-wrap: anywhere; }
.opcao-exclusao { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 4px; background: #ffffff; border: 1px solid var(--border-light); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; font-family: inherit; }
.opcao-exclusao strong { font-size: 14.5px; color: var(--text-dark); }
.opcao-exclusao span { font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.opcao-exclusao:hover { border-color: #94a3b8; background: #f8fafc; }
.opcao-exclusao-forte { border-color: #fecaca; }
.opcao-exclusao-forte strong { color: #b91c1c; }
.opcao-exclusao-forte:hover { border-color: var(--danger); background: #fef2f2; }
.excluidas-ajuda { font-size: 13px; color: var(--text-muted); margin: -6px 0 12px; line-height: 1.5; }
.lista-excluidas-cc { list-style: none; display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.excluida-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--border-light); border-radius: 10px; padding: 10px 12px; }
.excluida-item div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.excluida-item strong { font-size: 13.5px; overflow-wrap: anywhere; }
.excluida-item span { font-size: 12px; color: var(--text-muted); }
.excluida-vazio { font-size: 13.5px; color: var(--text-muted); }
@media (max-width: 700px) { .cc-cartoes-barra select { flex: 1 1 100%; } }

/* v87/v88: celular em pé ou deitado — "R$" e o valor na mesma linha nos cards do mês (a fonte se ajusta pelo script, se preciso) */
@media (max-width: 700px), (orientation: landscape) and (max-height: 500px) {
    .dashboard-panel .card-info { flex: 1 1 auto; }
    .dashboard-panel .card-info .value { white-space: nowrap; overflow: hidden; letter-spacing: -0.2px; }
}

/* v89: tablet — valores dos cards numa linha (a classe é ligada pelo script em celulares e tablets) */
.cards-uma-linha .dashboard-panel .card-info { flex: 1 1 auto; min-width: 0; }
.cards-uma-linha .dashboard-panel .card-info .value { white-space: nowrap; overflow: hidden; letter-spacing: -0.2px; }
/* v89: celular e tablet — na aba Cartão de Crédito, a rosca vem antes das listas de despesas */
@media (max-width: 1100px) { .cc-layout > .cc-chart-container { order: -1; } }

/* v90: destaque do dia atual (contorno azul-marinho + "HOJE") e dias que já passaram esmaecidos (só no mês atual) */
.day-cell.dia-hoje { border: 3px solid #0f172a; box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25); }
.day-cell.dia-hoje:hover { border-color: #0f172a; }
.day-cell.dia-hoje .day-header::before { content: 'HOJE · '; font-size: 11px; letter-spacing: 0.6px; }
.day-cell.dia-passado { opacity: 0.4; }
@media (max-width: 700px) {
    .day-cell.dia-hoje .day-header::before { content: 'HOJE'; display: block; font-size: 10px; letter-spacing: 0.6px; margin-bottom: 2px; }
}

/* ======== v91: Objetivos e Metas ======== */
.text-objetivo { color: #0d9488; font-weight: 600; }
.tipo-objetivo { --tipo-fundo: #f0fdfa; --tipo-borda: #99f6e4; --tipo-forte: #0f766e; --tipo-marcador: #14b8a6; }
.objective-card .card-icon { background: #ccfbf1; color: #0d9488; }
.dashboard-panel .glass-card[hidden] { display: none; }
@media (min-width: 701px) { .dashboard-panel .summary-cards[data-visiveis="6"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .dashboard-panel .summary-cards[data-visiveis="6"] .glass-card:last-child { grid-column: auto; } }
.badge-objetivo { background-color: #0d9488 !important; font-size: 10px; }
#modal-aporte-obj { z-index: 2300; }   /* abre por cima da janela do dia */

.objmetas-secao { margin-top: 24px; }
.objmetas-cabecalho { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.objmetas-cabecalho h2 { margin-bottom: 4px; }
.objmetas-cabecalho .btn-premium { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.objmetas-ajuda { font-size: 13.5px; color: var(--text-muted); max-width: 720px; line-height: 1.5; }
.objmetas-nota { font-size: 12.5px; color: var(--text-muted); margin-top: 10px; line-height: 1.45; }

.lista-objetivos { display: flex; flex-direction: column; gap: 14px; }
.objetivo-card { border: 1px solid var(--border-light); border-left: 5px solid #14b8a6; border-radius: 14px; padding: 16px 18px; background: #ffffff; display: flex; flex-direction: column; gap: 12px; }
.objetivo-concluido { border-left-color: #64748b; }
.objetivo-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.objetivo-titulo { min-width: 0; }
.objetivo-titulo h3 { font-size: 17px; color: var(--text-dark); overflow-wrap: anywhere; }
.objetivo-titulo p { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.objetivo-progresso { position: relative; height: 26px; border-radius: 999px; background: #f1f5f9; border: 1px solid var(--border-light); overflow: hidden; }
.objetivo-barra { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #5eead4, #14b8a6); border-radius: 999px; transition: width 0.4s ease; }
.objetivo-progresso span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; color: var(--text-dark); }
.objetivo-numeros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.objetivo-numeros > div { background: #f8fafc; border: 1px solid var(--border-light); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.objetivo-numeros span { font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.objetivo-numeros strong { font-size: 15.5px; color: var(--text-dark); font-variant-numeric: tabular-nums; }
.objetivo-numeros em { font-style: normal; font-weight: 600; font-size: 12.5px; color: var(--text-muted); }
.objetivo-falta { font-size: 12px; color: #b91c1c; font-weight: 600; }
@media (max-width: 1100px) { .objetivo-numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .objetivo-numeros strong { font-size: 14px; } }

.obj-previa { border-radius: 12px; padding: 12px 14px; background: #f0fdfa; border: 1px solid #99f6e4; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--text-dark); }
.obj-previa span { font-size: 12px; color: #0f766e; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.obj-previa strong { font-size: 22px; color: #0f766e; }
.obj-previa small { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }
.obj-previa-vazia { background: #f8fafc; border-color: var(--border-light); color: var(--text-muted); }

/* Metas: mesmas barras do gráfico "Para onde vai a receita"; verde dentro da meta, vermelho acima */
.meta-dentro { --tipo-fundo: #dcfce7; --tipo-borda: #86efac; --tipo-marcador: #16a34a; }
.meta-estourada { --tipo-fundo: #fee2e2; --tipo-borda: #fca5a5; --tipo-marcador: #dc2626; }
.meta-linha { grid-template-columns: minmax(0, 1fr) 230px; }
.meta-valor { flex-direction: column; align-items: flex-end; gap: 1px; }
.meta-valor strong em { font-style: normal; margin-left: 6px; }
.meta-dentro .meta-valor strong em { color: #15803d; }
.meta-estourada .meta-valor strong em { color: #b91c1c; }
.meta-valor span { min-width: 0 !important; font-weight: 500 !important; font-size: 12px !important; }
.meta-clicavel { cursor: pointer; border-radius: 8px; }
.meta-clicavel:hover .breakdown-barra, .meta-clicavel:focus-visible .breakdown-barra { filter: brightness(0.96); }
.meta-clicavel:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.meta-selo { font-size: 10.5px; font-weight: 700; background: #ffffff; border: 1px solid var(--border-light); color: var(--text-muted); border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: 1px; }
.metas-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
@media (max-width: 700px) {   /* celular: valores embaixo da barra, numa linha */
    .meta-linha { grid-template-columns: minmax(0, 1fr); gap: 4px; margin-bottom: 4px; }
    .meta-valor { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 8px; }
    .meta-valor strong { font-size: 13px; }
    .meta-valor span { font-size: 11.5px !important; white-space: normal; text-align: right; }
}

/* ======== v92: encerrar objetivo ======== */
.objetivo-chegou { border-left-color: #f59e0b; }
.objetivo-aviso-data { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.objetivos-encerrados { margin-top: 6px; border-top: 1px solid var(--border-light); padding-top: 12px; }
.objetivos-encerrados summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text-muted); padding: 4px 0; }
.objetivos-encerrados[open] summary { margin-bottom: 10px; }
.objetivos-encerrados .objetivo-card { margin-bottom: 10px; }
.objetivo-encerrado { border-left-color: #94a3b8; background: #f8fafc; }
.objetivo-destinos { font-size: 13px; color: var(--text-dark); line-height: 1.5; }
.encerrar-subtitulo { font-size: 14.5px; margin: 14px 0 8px; color: var(--text-dark); }
.encerrar-destinos { display: flex; flex-direction: column; gap: 10px; }
.destino-linha { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 8px; align-items: start; border: 1px solid var(--border-light); border-radius: 12px; padding: 10px; background: #f8fafc; }
.destino-campos { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.destino-campos select { width: 100%; }
.destino-recalcular { font-size: 13px; }
.destino-valor { display: flex; gap: 6px; align-items: center; }
.destino-valor input { width: 100%; text-align: right; }
.destino-remover { border: none; background: transparent; font-size: 22px; line-height: 1; color: var(--text-muted); cursor: pointer; padding: 0 4px; }
.destino-remover:hover { color: var(--danger); }
.encerrar-dividir { margin-top: 10px; display: inline-flex; gap: 6px; align-items: center; }
.encerrar-status { font-size: 13px; font-weight: 600; margin-top: 10px; padding: 8px 12px; border-radius: 10px; }
.encerrar-status.ok { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.encerrar-status.pendente { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
#modal-encerrar-obj .modal-card { max-height: calc(100vh - 40px); overflow-y: auto; }
@media (max-width: 700px) { .destino-linha { grid-template-columns: minmax(0, 1fr); } }
/* Botões com o atributo hidden ficam escondidos (o display dos botões não pode anulá-lo) */
.btn-premium[hidden] { display: none !important; }

/* ======== v93: despesas repetidas na aba Cartão ======== */
.cc-repetidas { margin-top: 16px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.cc-repetidas[hidden] { display: none; }
.cc-repetidas-texto { display: flex; gap: 10px; align-items: flex-start; color: #92400e; }
.cc-repetidas-texto > i { margin-top: 3px; }
.cc-repetidas-texto div { display: flex; flex-direction: column; gap: 2px; }
.cc-repetidas-texto strong { font-size: 14px; }
.cc-repetidas-texto span { font-size: 13px; }
.cc-repetidas details summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #92400e; }
.cc-repetidas ul { margin: 6px 0 0 18px; font-size: 12.5px; color: var(--text-dark); display: flex; flex-direction: column; gap: 3px; }
.cc-repetidas ul span { color: var(--text-muted); }
.cc-repetidas .btn-sm { align-self: flex-start; }
.cc-repetidas-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
/* v146: lista de repetidas com ação individual (Remover / Manter) */
.cc-rep-lista { list-style: none; margin: 10px 0 2px; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.cc-rep-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 12px; }
.cc-rep-info { min-width: 0; font-size: 13px; color: var(--text-dark); }
.cc-rep-info strong { overflow-wrap: anywhere; }
.cc-rep-info span { font-size: 12px; color: var(--text-muted); }
.cc-rep-acoes { display: flex; gap: 6px; flex-shrink: 0; }
@media (max-width: 560px) { .cc-rep-item { flex-direction: column; align-items: stretch; } .cc-rep-acoes { justify-content: flex-end; } }

/* v95: créditos (estornos, descontos) na fatura do cartão */
.cc-item-credito { color: #059669 !important; }

/* ======== v96: "Já está na fatura" e "Parcelar" ======== */
.cc-btn-icone { flex-shrink: 0; padding-left: 10px !important; padding-right: 10px !important; }
.cc-btn-icone.ativo { color: var(--primary); border-color: #93c5fd; background: #eff6ff; }
.cc-item-parcela { font-size: 11.5px; font-weight: 600; color: #1d4ed8; margin-top: -4px; }
.cc-item-parcela i { margin-right: 3px; }
.juncao-lista { list-style: none; display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; }
.juncao-item { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; background: #fff; border: 1px solid var(--border-light); border-radius: 10px; padding: 9px 12px; cursor: pointer; font-family: inherit; }
.juncao-item:hover { border-color: #94a3b8; background: #f8fafc; }
.juncao-item.selecionado { border-color: var(--primary); background: #eff6ff; box-shadow: 0 0 0 2px #bfdbfe; }
.juncao-item span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.juncao-item strong { font-size: 13px; overflow-wrap: anywhere; }
.juncao-item small { font-size: 11.5px; color: var(--text-muted); }
.juncao-valor { font-weight: 700; font-size: 13px; white-space: nowrap; }
.juncao-valor.diferente { color: #b45309; }
.juncao-vazio { font-size: 13px; color: var(--text-muted); }
.juncao-valores { margin-top: 12px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 12px; font-size: 13px; color: #92400e; }
.juncao-valores-botoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
#juncao-todas[hidden], #juncao-valores[hidden] { display: none; }
.aviso-desfazer.aviso-simples .aviso-desfazer-btn { display: none; }
/* v96: a lista de categorias ocupa a linha inteira; os botões (juntar, parcelar, excluir) ficam na linha de baixo */
.cc-item-actions { flex-wrap: wrap; justify-content: flex-end; }
.cc-item-actions .cc-select-cat { flex: 1 1 100%; }
.cc-item-actions .btn-sm { min-width: 40px; justify-content: center; }
.cc-btn-icone { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px !important; white-space: nowrap; }

@media (max-width: 700px) {
    .nav-controls { gap: 6px; }
    .header-titles h1 { font-size: 18px; }
    .header-titles .badge-year { padding: 3px 8px; }
}
@media (max-width: 380px) {   /* celulares estreitos: cabe "FEVEREIRO 2027" com o botão "?" */
    .header-titles { gap: 6px; }
    .header-titles h1 { font-size: 16px; letter-spacing: 0; }
    .header-titles .badge-year { font-size: 11px; padding: 2px 7px; }
    .nav-controls { gap: 4px; }
}
/* v98: nota para compra já parcelada pelo banco */
.parcelar-nota-banco { font-size: 12.5px; color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 8px 10px; margin: -4px 0 12px; line-height: 1.45; }
.parcelar-nota-banco[hidden] { display: none; }
/* v99: composição da "Variação no Mês" (Investimentos e Dívidas) */
.variacao-detalhe { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-light); width: 100%; }
.variacao-linha { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--text-muted); }
.variacao-linha strong { color: var(--text-dark); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.variacao-subtotal { border-top: 1px dashed var(--border-light); padding-top: 3px; }
.variacao-subtotal span, .variacao-subtotal strong { font-weight: 700; color: var(--text-dark); }
.variacao-ajuste span { font-style: italic; }

/* ======== v101: forma de pagamento das dívidas ======== */
.bloco-plano { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 18px 20px; margin-bottom: 24px; }
.bloco-plano h4 { font-size: 15px; color: var(--text-dark); margin-bottom: 12px; }
.bloco-plano h4 i { color: #ea580c; margin-right: 8px; }
.plano-ajuda { font-size: 12.5px; color: var(--text-muted); margin: 6px 0 12px; line-height: 1.5; }
#div-plano-campos[hidden], #div-plano-grupo-valor[hidden] { display: none !important; }
.plano-valor-linha { display: flex; gap: 8px; }
.plano-valor-linha input { flex: 1; min-width: 0; }
.plano-resumo { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #fdba74; font-size: 13px; color: var(--text-dark); line-height: 1.55; }
.plano-resumo[hidden] { display: none; }
.plano-aviso { color: #b45309; font-size: 12.5px; }
/* v101: botão "Nova dívida" */
.div-cabecalho-acoes { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.btn-nova-divida { background: #f97316 !important; border-color: #f97316 !important; color: #ffffff !important; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 6px 14px rgba(249, 115, 22, 0.3); }
.btn-nova-divida:hover { background: #ea580c !important; }
@media (max-width: 700px) { .div-cabecalho-acoes { width: 100%; } .div-cabecalho-acoes .btn-nova-divida { width: 100%; justify-content: center; } .div-cabecalho-acoes .input-group { min-width: 0 !important; flex: 1 1 100%; } }
#div-plano-tipo { max-width: 420px; }

/* v102: janela "Nova dívida" */
#nd-campos-plano[hidden], #nd-grupo-valor[hidden] { display: none !important; }
#modal-nova-divida .modal-card { max-height: calc(100vh - 40px); overflow-y: auto; }
#modal-nova-divida .obj-previa { background: #fff7ed; border-color: #fed7aa; }
#modal-nova-divida .obj-previa span, #modal-nova-divida .obj-previa strong { color: #c2410c; }
#modal-nova-divida .obj-previa-vazia { background: #f8fafc; border-color: var(--border-light); }
#nd-grupo-taxa[hidden] { display: none !important; }

/* ======== v104: cards do topo como botões ======== */
.card-acao { cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.card-acao:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08); border-color: #cbd5e1; }
.card-acao:active { transform: translateY(0); }
.card-acao:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.cards-pulsar .card-acao { animation: pulsoCard 1.4s ease-in-out 3; }
@keyframes pulsoCard { 0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); } 50% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.35); } }
.dica-cards { margin-top: 10px; background: #0f172a; color: #ffffff; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; display: flex; gap: 10px; align-items: center; cursor: pointer; animation: modalFadeIn 0.3s ease-out; }
.dica-cards i { color: #fbbf24; }
.config-cards-titulo { font-size: 14.5px; margin: 18px 0 4px; color: var(--text-dark); }
.lista-config-cards .config-painel-item label { font-size: 13.5px; }

/* ======== v104: janela de lançamento ======== */
#modal-lancar { z-index: 2200; }   /* abre por cima do tutorial */
#modal-nova-divida { z-index: 2200; }
#modal-editar-diaria { z-index: 2250; }   /* v149 Item 7: pop-up de edição por cima do modal do dia */
#modal-lancar .modal-card { max-height: calc(100vh - 40px); overflow-y: auto; }
.lr-bloco { margin-bottom: 12px; }
.lr-bloco[hidden], #lr-grupo-datafim[hidden], #lr-grupo-vezes[hidden], #lr-abas[hidden], #lr-alvo[hidden] { display: none !important; }
.lr-abas { display: flex; gap: 6px; background: #f1f5f9; border-radius: 12px; padding: 4px; margin: -6px 0 14px; }
.lr-abas button { flex: 1; border: none; background: transparent; padding: 9px 10px; border-radius: 9px; font-weight: 600; font-size: 13.5px; color: var(--text-muted); cursor: pointer; font-family: inherit; }
.lr-abas button.ativa { background: #ffffff; color: var(--text-dark); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }
.lr-linha-rec { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f8fafc; border: 1px solid var(--border-light); border-radius: 12px; padding: 8px 12px; }
.lr-linha-rec .form-label { margin: 0; }
.lr-segmentado { display: inline-flex; background: #e2e8f0; border-radius: 10px; padding: 3px; gap: 3px; }
.lr-segmentado label { position: relative; padding: 6px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.lr-segmentado input { position: absolute; opacity: 0; pointer-events: none; }
.lr-segmentado label:has(input:checked) { background: #ffffff; color: var(--text-dark); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }
#lr-bloco-mov .lr-segmentado { width: 100%; }
#lr-bloco-mov .lr-segmentado label { flex: 1; text-align: center; }
.lr-resumo { font-size: 12.5px; color: #1d4ed8; min-height: 0; line-height: 1.45; }
.lr-resumo:empty { display: none; }

/* ======== v104: tutorial ======== */
.onb-itens { list-style: none; display: flex; flex-direction: column; gap: 6px; margin: 4px 0 16px; }
.onb-itens[hidden] { display: none; }
.onb-itens li { font-size: 13.5px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 8px 12px; color: var(--text-dark); }
.onb-itens li i { color: #059669; margin-right: 6px; }
.onb-icone-investimento { background: #ede9fe !important; color: #7c3aed !important; }
.onb-icone-divida { background: #ffedd5 !important; color: #ea580c !important; }
.onb-progresso-passo { text-align: center; }
.onb-btn-adicionar { display: inline-flex; align-items: center; gap: 6px; }
.demo-cards { position: relative; background: #f1f5f9; border-radius: 14px; padding: 14px; margin: 6px 0 18px; overflow: hidden; }
.demo-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.demo-card { background: #ffffff; border: 1px solid var(--border-light); border-radius: 10px; padding: 10px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--text-muted); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.demo-card i { font-size: 16px; }
.demo-receita i { color: #10b981; } .demo-despesa i { color: #ef4444; } .demo-invest i { color: #8b5cf6; } .demo-divida i { color: #f97316; } .demo-objetivo i { color: #0d9488; } .demo-balanco i { color: #3b82f6; }
.demo-card.tocado { transform: scale(0.94); border-color: var(--primary); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25); }
.demo-dedo { position: absolute; left: 50%; top: 50%; font-size: 26px; color: #0f172a; transition: left 0.5s ease, top 0.5s ease; transform: translate(-30%, -10%); pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25)); }
.demo-janela { position: absolute; right: 12px; bottom: 10px; width: 46%; background: #ffffff; border-radius: 10px; box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2); padding: 10px; display: flex; flex-direction: column; gap: 6px; opacity: 0; transform: translateY(10px); transition: opacity 0.25s, transform 0.25s; pointer-events: none; }
.demo-janela.visivel { opacity: 1; transform: translateY(0); }
.demo-janela strong { font-size: 12px; color: var(--text-dark); }
.demo-janela span { height: 8px; border-radius: 4px; background: #e2e8f0; }
.demo-janela span.curta { width: 55%; }
.demo-janela.demo-receita strong { color: #059669; } .demo-janela.demo-despesa strong { color: #dc2626; } .demo-janela.demo-invest strong { color: #7c3aed; } .demo-janela.demo-divida strong { color: #ea580c; } .demo-janela.demo-objetivo strong { color: #0d9488; } .demo-janela.demo-balanco strong { color: #2563eb; }
@media (max-width: 600px) { .onb-progresso-passo { font-size: 10.5px; } .onb-acoes .onb-btn-adicionar { order: -1; width: 100%; justify-content: center; } }
#lr-bloco-recorrencia .form-row + .form-row, #lr-bloco-novo-inv .input-group + .form-row { margin-top: 12px; }

/* ======== v105: tutorial ======== */
.onb-aviso-inclusao { display: flex; gap: 10px; align-items: flex-start; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.5; margin: 6px 0 14px; text-align: left; }
.onb-aviso-inclusao[hidden], #onb-link-backup[hidden], #onb-sep-backup[hidden], .onb-progresso-passo[hidden] { display: none !important; }
.onb-aviso-inclusao i { color: #059669; margin-top: 3px; }
.onb-nota-calendario { display: flex; gap: 8px; align-items: flex-start; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; border-radius: 10px; padding: 8px 12px; font-size: 12.5px; line-height: 1.45; margin: 0 0 12px; }
.onb-nota-calendario i { color: #2563eb; margin-top: 2px; }
.onb-icone-objetivo { background: #ccfbf1 !important; color: #0d9488 !important; }
#modal-objetivo { z-index: 2200; }   /* abre por cima do tutorial */
#onb-item-saldo[hidden] { display: none !important; }

/* ======== v106: tutorial (cartão) ======== */
.onb-icone-cartao { background: #fef3c7 !important; color: #b45309 !important; }
.onb-lista-cartao { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 4px 0 18px; text-align: left; }
.onb-lista-cartao li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--text-dark); }
.onb-lista-cartao li i { color: #b45309; width: 18px; text-align: center; margin-top: 3px; flex-shrink: 0; }
#onboarding .onb-card { max-height: calc(100vh - 40px); overflow-y: auto; }

/* ======== v106: espaço livre para o selo "Powered by Netlify" (canto inferior direito) ======== */
:root { --reserva-selo: 0px; }
.hospedagem-netlify { --reserva-selo: 76px; }
/* v157: no app instalado (standalone) o selo "Powered by Netlify" não aparece — zera a reserva para a barra inferior
   (e os botões flutuantes) encostarem no fim da tela, sem o espaço vazio. */
@media (display-mode: standalone), (display-mode: minimal-ui), (display-mode: fullscreen) {
    .hospedagem-netlify { --reserva-selo: 0px; }
}
.hospedagem-netlify .modal-glass, .hospedagem-netlify .onb-overlay { padding-bottom: calc(20px + var(--reserva-selo)); }
.hospedagem-netlify .modal-card, .hospedagem-netlify #onboarding .onb-card { max-height: calc(100vh - 40px - var(--reserva-selo)); overflow-y: auto; }
.hospedagem-netlify .coruja-balao { bottom: calc(24px + var(--reserva-selo)); }
.hospedagem-netlify .coruja-painel { bottom: calc(24px + var(--reserva-selo)); max-height: calc(100vh - 48px - var(--reserva-selo)); }
.hospedagem-netlify .aviso-desfazer { bottom: calc(24px + var(--reserva-selo)); }
@media (max-width: 700px) {
    .hospedagem-netlify .modal-glass, .hospedagem-netlify .onb-overlay { padding-bottom: calc(10px + var(--reserva-selo)); }
    .hospedagem-netlify .modal-card, .hospedagem-netlify #onboarding .onb-card { max-height: calc(100vh - 20px - var(--reserva-selo)); }
    .hospedagem-netlify .coruja-balao { bottom: calc(16px + var(--reserva-selo)); }
    .hospedagem-netlify .coruja-painel { bottom: var(--reserva-selo); height: calc(85vh - var(--reserva-selo)); max-height: calc(85vh - var(--reserva-selo)); }
    .hospedagem-netlify .aviso-desfazer { bottom: calc(12px + var(--reserva-selo)); }
}
/* v149 Item 6: no celular (Samsung Internet) o 100vh inclui a barra de endereço, deixando os modais mais altos que a tela
   visível e cortando o topo (ex.: campos de "recorrente"). Usamos a altura REAL da tela (dvh), com rolagem interna.
   !important para vencer os seletores por id (#modal-lancar .modal-card etc.). Só aplica onde o navegador suporta dvh. */
@supports (height: 100dvh) {
    .modal-card, .onb-card { max-height: calc(100dvh - 32px) !important; overflow-y: auto; }
    .hospedagem-netlify .modal-card, .hospedagem-netlify .onb-card { max-height: calc(100dvh - 32px - var(--reserva-selo)) !important; }
    .nl-popup { max-height: calc(100dvh - 12px); overflow-y: auto; }
    @media (max-width: 480px) {
        .modal-card, .onb-card { max-height: calc(100dvh - 16px) !important; }
        .hospedagem-netlify .modal-card, .hospedagem-netlify .onb-card { max-height: calc(100dvh - 16px - var(--reserva-selo)) !important; }
    }
}
/* v106: com 8 etapas, no celular a barra mostra só o nome da etapa atual (as demais ficam como traços) */
@media (max-width: 600px) {
    .onb-progresso { gap: 4px; }
    .onb-progresso-passo { min-width: 0; overflow: hidden; white-space: nowrap; font-size: 0; }
    .onb-progresso-passo.atual { flex: 3; font-size: 11px; }
}

/* ======== v107 ======== */
#tipo-categoria:disabled { opacity: 1; color: var(--text-dark); background: #f1f5f9; cursor: default; }

/* ======== v108: mês do topo (abre o Resumo) e ano (abre a grade de meses) ======== */
.btn-mes-topo { background: none; border: none; padding: 0; margin: 0; font: inherit; color: inherit; letter-spacing: inherit; cursor: pointer; transition: opacity 0.15s; }
.btn-mes-topo:hover { opacity: 0.8; }
.btn-mes-topo:focus-visible { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 4px; border-radius: 4px; }
.btn-ano-topo { border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-family: inherit; }
.btn-ano-topo i { font-size: 0.75em; opacity: 0.8; }
.btn-ano-topo:hover, .btn-ano-topo:focus-visible { background: rgba(255,255,255,0.32); }
.seletor-meses { max-width: 340px; }
.seletor-meses-ano { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 4px 0 16px; }
.seletor-meses-ano h3 { margin: 0; font-size: 22px; min-width: 70px; text-align: center; }
.btn-icon-claro { background: #f1f5f9; border: none; width: 38px; height: 38px; border-radius: 10px; cursor: pointer; color: var(--text-dark); font-size: 15px; }
.btn-icon-claro:hover { background: #e2e8f0; }
.seletor-meses-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.seletor-mes { position: relative; padding: 14px 0; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; font: 600 15px inherit; font-family: inherit; color: var(--text-dark); cursor: pointer; }
.seletor-mes:hover { background: #f1f5f9; }
.seletor-mes.atual { background: var(--primary); border-color: var(--primary); color: #fff; }
.seletor-mes.hoje::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #f59e0b; }
#modal-meses .btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
@media (max-width: 420px) { .btn-ano-topo { gap: 4px; } .btn-ano-topo i { font-size: 0.65em; } }
/* telas estreitas: o topo (mês, ano, "?" e setas) cabe sem encostar nas setas */
@media (max-width: 400px) { .header-titles { gap: 6px; } .btn-ano-topo i { display: none; } .header-titles h1 { font-size: 16px; letter-spacing: 0; } }
@media (max-width: 340px) { .header-titles { gap: 4px; } .header-titles h1 { font-size: 13.5px; } .main-header .btn-icon, .main-header .btn-menu { width: 32px; height: 32px; } .main-header { gap: 8px; padding-left: 10px; padding-right: 10px; } }
.sidebar-copyright { padding: 2px 16px 0; font-size: 10px; color: #334155; letter-spacing: 0.2px; line-height: 1.4; }
/* ======== v111: aviso dos cards no Guia Rápido ======== */
.guia-cards-aviso { display: flex; gap: 12px; align-items: center; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 14px 16px; margin: 4px 0 24px; }
.guia-cards-aviso i { color: #2563eb; font-size: 20px; flex-shrink: 0; }
.guia-cards-aviso p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #334155; }
/* ======== v113: no celular, "Personalizar resumo" vira só um ícone no canto do painel ======== */
@media (max-width: 700px) {
    .large-chart-wrapper { position: relative; }
    .painel-barra-acoes { position: absolute; top: 0; right: 0; width: auto; z-index: 6; }
    .btn-personalizar { padding: 9px 11px; font-size: 15px; box-shadow: var(--shadow-sm); }
    .btn-personalizar-txt { display: none; }
    .alerta-saldo { padding-right: 54px; }   /* folga para o ícone no canto, quando o alerta aparece */
}

/* ======== v114 ======== */
.onb-subtitulo { font-size: 15px; font-weight: 600; color: var(--primary); margin: -2px 0 14px; line-height: 1.4; }
.onb-nota-saldo { color: #1e3a8a; background: #eef2ff; }
.inv-rosca-wrap { width: 100%; max-width: 520px; margin: 0 auto; }

/* ======== v115: alça na borda esquerda (celular/tablet) para revelar o menu ======== */
.alca-menu { display: none; }
@media (max-width: 900px) {
    .alca-menu { display: flex; align-items: center; justify-content: center; position: fixed; left: -14px; top: 50%; transform: translateY(-50%); width: 34px; height: 60px; padding-left: 12px; border: none; border-radius: 0 30px 30px 0; background: rgba(37, 99, 235, 0.14); color: #2563eb; box-shadow: 2px 2px 8px rgba(37, 99, 235, 0.16); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); z-index: 600; cursor: pointer; font-size: 15px; }
    body.menu-aberto .alca-menu { display: none; }   /* some com o menu aberto */
}
@keyframes alca-nudge { 0%, 55%, 100% { transform: translateY(-50%) translateX(0); } 70% { transform: translateY(-50%) translateX(6px); } 85% { transform: translateY(-50%) translateX(0); } }
.alca-menu.alca-pulsar { animation: alca-nudge 2.6s ease-in-out infinite; }
/* ======== v120: botão "Novo investimento" na aba Investimentos (igual ao card) ======== */
.inv-cabecalho-acoes { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.btn-novo-investimento { background: #8b5cf6 !important; border-color: #8b5cf6 !important; color: #ffffff !important; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 6px 14px rgba(139, 92, 246, 0.3); }
.btn-novo-investimento:hover { background: #7c3aed !important; }
@media (max-width: 700px) { .inv-cabecalho-acoes { width: 100%; } .inv-cabecalho-acoes .btn-novo-investimento { width: 100%; justify-content: center; } .inv-cabecalho-acoes .input-group { min-width: 0 !important; flex: 1 1 100%; } }

/* ======== v120: aviso de lançamento em mês diferente do atual ======== */
.aviso-mes { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 8px 10px; margin-top: 8px; line-height: 1.4; }
.aviso-mes[hidden] { display: none; }
.aviso-mes i { color: #d97706; flex-shrink: 0; }

/* ======== v122: campos .input-group ocultos (hidden) devem realmente sumir ======== */
.input-group[hidden] { display: none !important; }
/* ======== v125: bloco de objetivos no Resumo do Mês (igual à aba) ======== */
.objetivos-painel-lista { display: flex; flex-direction: column; gap: 14px; }

/* ======== v126/v127: botão de calendário no topo (com o dia do mês) — em todos os tamanhos ======== */
.btn-cal-topo { display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); border: none; border-radius: 8px; width: 40px; height: 40px; padding: 0; cursor: pointer; flex-shrink: 0; transition: background 0.2s; }
.btn-cal-topo:hover { background: rgba(255,255,255,0.18); }
.btn-cal-topo:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.cal-ico { width: 26px; height: 26px; border-radius: 6px; background: #ffffff; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,0.25); }
.cal-ico::before { content: ''; display: block; height: 7px; background: #ef4444; flex-shrink: 0; }
.cal-ico-dia { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #0f172a; line-height: 1; letter-spacing: -0.5px; }
@media (max-width: 520px) {
    .main-header { gap: 7px; padding-left: 12px; padding-right: 12px; }
    .main-header .btn-menu, .main-header .btn-icon { width: 36px; height: 36px; font-size: 15px; }
    .btn-cal-topo { width: 36px; height: 36px; }
    .btn-cal-topo .cal-ico { width: 24px; height: 24px; }
    .header-titles { gap: 6px; }
    .header-titles h1 { font-size: 16px; letter-spacing: 0; }
    .nav-controls { gap: 5px; }
}
@media (max-width: 380px) {
    .main-header .btn-menu, .main-header .btn-icon { width: 33px; height: 33px; font-size: 14px; }
    .btn-cal-topo { width: 33px; height: 33px; }
    .btn-cal-topo .cal-ico { width: 22px; height: 22px; }
    .cal-ico-dia { font-size: 12px; }
    .header-titles h1 { font-size: 14px; }
    .badge-year { font-size: 11px; padding: 2px 7px; }
    .badge-year i { display: none; }
    .main-header { gap: 5px; padding-left: 9px; padding-right: 9px; }
}
@media (max-width: 335px) {
    .main-header .btn-menu, .main-header .btn-icon { width: 30px; height: 30px; }
    .btn-cal-topo { width: 30px; height: 30px; }
    .btn-cal-topo .cal-ico { width: 20px; height: 20px; }
    .cal-ico-dia { font-size: 11px; }
    .header-titles h1 { font-size: 12.5px; }
    .header-titles { gap: 4px; }
}

/* ======== v127: botão "+" Novo lançamento (menu lateral + flutuante no celular) + submenu ======== */
/* Botão circular no menu lateral (desktop) */
.sidebar-add-wrap { display: flex; justify-content: center; margin: 22px 0; }
.sidebar-logo { margin-bottom: 0; }
.sidebar-add { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #2563eb, #1e40af); color: #ffffff; border: 3px solid rgba(255, 255, 255, 0.22); cursor: pointer; box-shadow: 0 10px 24px rgba(37, 99, 235, 0.55), 0 0 0 6px rgba(37, 99, 235, 0.12); transition: transform 0.15s, box-shadow 0.15s; }
.sidebar-add span { font-size: 38px; font-weight: 300; line-height: 1; margin-top: -4px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.sidebar-add:hover { transform: scale(1.06); box-shadow: 0 14px 30px rgba(37, 99, 235, 0.6), 0 0 0 6px rgba(37, 99, 235, 0.16); }
.sidebar-add:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

/* Botão flutuante (celular): escondido no desktop */
.fab-novo { display: none; position: fixed; right: 20px; bottom: 20px; z-index: 905; width: 60px; height: 60px; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, #2563eb, #1e40af); color: #ffffff; border: 3px solid rgba(255, 255, 255, 0.22); cursor: pointer; box-shadow: 0 10px 24px rgba(37, 99, 235, 0.55), 0 0 0 6px rgba(37, 99, 235, 0.12); }
.fab-novo span { font-size: 38px; font-weight: 300; line-height: 1; margin-top: -4px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.fab-novo:active { transform: scale(0.96); }
.fab-novo:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

/* Submenu "Novo lançamento" */
.nl-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(15, 23, 42, 0.45); display: flex; align-items: center; justify-content: center; padding: 20px; animation: nlFade 0.15s ease; }
.nl-overlay[hidden] { display: none; }
@keyframes nlFade { from { opacity: 0; } to { opacity: 1; } }
.nl-popup { position: relative; width: 100%; max-width: 480px; background: #ffffff; border-radius: 18px; box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35); padding: 22px 20px 20px; animation: nlPop 0.18s ease; }
@keyframes nlPop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.nl-fechar { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 26px; line-height: 1; color: #94a3b8; cursor: pointer; padding: 2px 8px; border-radius: 8px; }
.nl-fechar:hover { color: #0f172a; background: #f1f5f9; }
.nl-popup h3 { font-size: 18px; color: #0f172a; margin: 0 28px 2px 0; }
.nl-sub { font-size: 13px; color: #64748b; margin: 0 0 16px; }
.nl-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nl-op { display: flex; align-items: center; gap: 13px; padding: 14px; border-radius: 14px; border: 2px solid; background: #fff; cursor: pointer; font-weight: 700; font-size: 15px; text-align: left; transition: transform 0.12s, box-shadow 0.12s; }
.nl-op:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12); }
.nl-op:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.nl-ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; color: #ffffff; flex-shrink: 0; }
.nl-txt { display: flex; flex-direction: column; min-width: 0; }
.nl-txt small { font-weight: 500; font-size: 11.5px; color: #64748b; margin-top: 1px; }
.nl-rec { border-color: #bbf7d0; background: #f0fdf4; color: #047857; }
.nl-rec .nl-ic { background: #10b981; }
.nl-desp { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.nl-desp .nl-ic { background: #ef4444; }
.nl-inv { border-color: #ddd6fe; background: #f5f3ff; color: #6d28d9; }
.nl-inv .nl-ic { background: #8b5cf6; }
.nl-div { border-color: #fed7aa; background: #fff7ed; color: #c2410c; }
.nl-div .nl-ic { background: #f97316; }
.nl-obj { border-color: #99f6e4; background: #f0fdfa; color: #0f766e; }
.nl-obj .nl-ic { background: #0d9488; }

/* Celular/tablet (<=900px): mostra o "+" flutuante à direita e manda a coruja para a esquerda */
@media (max-width: 900px) {
    .fab-novo { display: inline-flex; }
    .coruja-balao { left: 16px; right: auto; }
}
@media (min-width: 701px) and (max-width: 900px) {
    .coruja-painel { left: 24px; right: auto; }
}
/* Submenu vira "bottom sheet" no celular */
@media (max-width: 560px) {
    .nl-overlay { align-items: flex-end; padding: 0; }
    .nl-popup { max-width: none; border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); animation: nlSheet 0.2s ease; }
    .nl-grade { grid-template-columns: 1fr; }
    .nl-obj { grid-column: auto; }
}
@keyframes nlSheet { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ======== v129: cards do topo mais compactos (~40% menos altura vertical) ======== */
.dashboard-panel .glass-card { padding: 6px 14px; gap: 11px; }
.dashboard-panel .card-icon { width: 30px; height: 30px; font-size: 14px; border-radius: 9px; }
.dashboard-panel .card-info .label { font-size: 11px; letter-spacing: 0.3px; line-height: 1.2; }
.dashboard-panel .card-info .value { font-size: 16px; margin-top: 0; line-height: 1.2; }
@media (max-width: 700px) {
    .dashboard-panel .glass-card { padding: 4px 10px; gap: 8px; }
    .dashboard-panel .card-icon { width: 25px; height: 25px; font-size: 12px; border-radius: 8px; }
    .dashboard-panel .card-info .label { font-size: 9.5px; }
    .dashboard-panel .card-info .value { font-size: 14px; }
}

/* ======== v130: tutorial guiado (destaques sobre a tela real) ======== */
#tour-root { position: fixed; inset: 0; z-index: 5000; pointer-events: none; }
#tour-root[hidden] { display: none; }
.tour-fundo { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6); }
.tour-fundo[hidden] { display: none; }
.tour-ring { position: fixed; border-radius: 12px; box-shadow: 0 0 0 3px #f59e0b, 0 0 0 9999px rgba(15, 23, 42, 0.6); transition: box-shadow 0.2s; }
.tour-ring[hidden] { display: none; }
/* v137 Item 3: grande destaque pulsante (usado no botão "+" do celular) */
@keyframes tourRingPulse {
    0%   { box-shadow: 0 0 0 4px #f59e0b, 0 0 0 0 rgba(245, 158, 11, 0.55), 0 0 0 9999px rgba(15, 23, 42, 0.62); }
    70%  { box-shadow: 0 0 0 6px #f59e0b, 0 0 0 30px rgba(245, 158, 11, 0), 0 0 0 9999px rgba(15, 23, 42, 0.62); }
    100% { box-shadow: 0 0 0 4px #f59e0b, 0 0 0 0 rgba(245, 158, 11, 0), 0 0 0 9999px rgba(15, 23, 42, 0.62); }
}
.tour-ring.tour-ring-forte { animation: tourRingPulse 1.4s ease-out infinite; transition: none; border-radius: 50%; }
.tour-balao { position: fixed; pointer-events: auto; width: 320px; max-width: calc(100vw - 24px); background: #ffffff; border-radius: 14px; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.45); padding: 18px 16px 16px; }
.tour-x { position: absolute; top: 9px; right: 11px; background: none; border: none; font-size: 24px; line-height: 1; color: #94a3b8; cursor: pointer; padding: 0 4px; border-radius: 6px; }
.tour-x:hover { color: #0f172a; background: #f1f5f9; }
.tour-balao h4 { font-size: 16px; color: #0f172a; margin: 0 22px 6px 0; }
.tour-balao p { font-size: 13.5px; color: #475569; line-height: 1.55; margin: 0; }
.tour-balao p[hidden] { display: none; }
.tour-acoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.tour-sec { background: #f1f5f9; color: #475569; border: none; border-radius: 8px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.tour-sec:hover { background: #e2e8f0; }
.tour-sec[hidden], .tour-pri[hidden] { display: none; }
.tour-pri { background: #2563eb; color: #ffffff; border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 700; cursor: pointer; }
.tour-pri:hover { background: #1d4ed8; }
/* Janela com screenshot (passos de imagem) */
.tour-img { margin: 8px 0 2px; }
.tour-img[hidden] { display: none; }
.tour-img img { width: 100%; display: block; border-radius: 8px; border: 1px solid #e2e8f0; }
.tour-balao-img { width: min(720px, 94vw); max-height: 88vh; display: flex; flex-direction: column; }
.tour-balao-img h4, .tour-balao-img p, .tour-balao-img .tour-acoes { flex-shrink: 0; }
.tour-balao-img .tour-img { flex: 1 1 auto; overflow-y: auto; min-height: 0; }

/* ======== v133: abas Receitas/Despesas (fluxo do mês) e botões de exclusão ======== */
.fluxo-topo { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
/* v138 Item 6: sem cabeçalho (título/mês/total). O botão "+" da aba fica só no celular, no canto superior esquerdo. */
.fluxo-topo-mobile { display: none; }
@media (max-width: 700px) { .fluxo-topo-mobile { display: flex; justify-content: flex-start; margin-bottom: 14px; } }
.fluxo-titulo h2 { margin: 0 0 2px; }
.fluxo-sub { font-size: 13px; color: var(--text-muted); margin: 0; }
.fluxo-add { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #2563eb, #1e40af); color: #ffffff; border: 3px solid rgba(255, 255, 255, 0.22); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(37, 99, 235, 0.5), 0 0 0 5px rgba(37, 99, 235, 0.12); transition: transform 0.15s; }
.fluxo-add span { font-size: 32px; font-weight: 300; line-height: 1; margin-top: -4px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.fluxo-add:hover { transform: scale(1.06); }
.fluxo-add:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.fluxo-rosca-wrap { background: #ffffff; border: 1px solid var(--border-light); border-radius: 16px; padding: 16px; margin-bottom: 20px; }
.fluxo-lista { display: flex; flex-direction: column; gap: 8px; }
.fluxo-grupo { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #64748b; margin: 10px 2px 2px; display: flex; align-items: center; gap: 7px; }
.fluxo-grupo i { font-size: 11px; }
.fluxo-item { display: flex; align-items: center; gap: 12px; background: #ffffff; border: 1px solid var(--border-light); border-radius: 12px; padding: 11px 14px; }
.fluxo-item-ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.fluxo-item-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.fluxo-item-txt strong { font-size: 14px; color: var(--text-dark); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fluxo-item-txt small { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fluxo-item-val { font-size: 15px; font-weight: 700; color: var(--text-dark); flex-shrink: 0; white-space: nowrap; }
.fluxo-vazio { text-align: center; color: var(--text-muted); font-size: 14px; padding: 24px 12px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px; }
.btn-excluir-modulo { background: #fff; color: var(--danger); border: 1px solid #fecaca; }
.btn-excluir-modulo:hover { background: #fef2f2; border-color: #fca5a5; }
.btn-excluir-modulo[hidden] { display: none; }
@media (max-width: 560px) { .fluxo-add { width: 46px; height: 46px; } .fluxo-add span { font-size: 28px; } }

/* v135: cards somente-leitura na aba Despesas (dívidas, objetivos, cartões) */
.card-tipo-auto { opacity: 0.92; }
.card-tipo-auto .card-tipo-nome { font-weight: 600; }
.card-tipo-auto .btn-card { background: #f1f5f9; color: #475569; }

/* v136: janela de boas-vindas do tutorial (analítica, com categorias no padrão do app) */
.tw-sub { font-size: 14px; color: #475569; line-height: 1.55; margin: 2px 0 14px; }
.tw-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tw-cat { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px; border: 1.5px solid; }
.tw-ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; color: #ffffff; flex-shrink: 0; }
.tw-txt { display: flex; flex-direction: column; min-width: 0; }
.tw-txt strong { font-size: 14px; }
.tw-txt small { font-size: 11.5px; color: #64748b; line-height: 1.35; }
.tw-rec { border-color: #bbf7d0; background: #f0fdf4; } .tw-rec .tw-ic { background: #10b981; } .tw-rec strong { color: #047857; }
.tw-desp { border-color: #fecaca; background: #fef2f2; } .tw-desp .tw-ic { background: #ef4444; } .tw-desp strong { color: #b91c1c; }
.tw-inv { border-color: #ddd6fe; background: #f5f3ff; } .tw-inv .tw-ic { background: #8b5cf6; } .tw-inv strong { color: #6d28d9; }
.tw-div { border-color: #fed7aa; background: #fff7ed; } .tw-div .tw-ic { background: #f97316; } .tw-div strong { color: #c2410c; }
.tw-obj { border-color: #99f6e4; background: #f0fdfa; } .tw-obj .tw-ic { background: #0d9488; } .tw-obj strong { color: #0f766e; }
.tw-card { border-color: #c7d2fe; background: #eef2ff; } .tw-card .tw-ic { background: #1e3a8a; } .tw-card strong { color: #1e3a8a; }
@media (max-width: 560px) { .tw-grade { grid-template-columns: 1fr; } }
/* Botão Voltar e espaçador das ações */
.tour-acoes { align-items: center; }
.tour-espaco { flex: 1 1 auto; }
.tour-voltar { color: #64748b; }
.tour-voltar[hidden] { display: none; }

/* ===================== v150: Tour Guiado redesenhado (páginas visuais) ===================== */
/* a altura real da tela (dvh) evita cortar o balão no celular (Samsung Internet conta a barra de endereço no vh) */
@supports (height: 100dvh) { .tour-balao-img { max-height: calc(100dvh - 20px); } }
.tf { display: block; }
/* Boas-vindas: cards de funções */
.tf-feats { display: flex; flex-direction: column; gap: 9px; }
.tf-feat { display: flex; align-items: flex-start; gap: 12px; padding: 11px 12px; border-radius: 13px; border: 1.5px solid #e8edf5; background: #fbfcfe; }
.tf-fic { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 17px; color: #fff; flex-shrink: 0; }
.tf-ftx { display: flex; flex-direction: column; min-width: 0; }
.tf-ftx strong { font-size: 14px; color: #0f172a; line-height: 1.2; }
.tf-ftx small { font-size: 12px; color: #64748b; line-height: 1.4; margin-top: 2px; }
.tf-ic-cal { background: #2563eb; } .tf-ic-voz { background: #0d9488; } .tf-ic-card { background: #1e3a8a; }
.tf-ic-inv { background: #8b5cf6; } .tf-ic-div { background: #f97316; } .tf-ic-obj { background: #0d9488; }
/* Nota com ícone + texto (o <span> mantém o texto num único item do flex) */
.tf-nota { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: 12px; color: #64748b; background: #f1f5f9; border-radius: 10px; padding: 9px 11px; }
.tf-nota i { color: #2563eb; margin-top: 1px; flex-shrink: 0; }
.tf-nota strong { color: #0f172a; }
/* Ícone-herói (saldo / transição) */
.tf-hero-ic { width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 25px; color: #fff; margin: 2px 0 12px; }
.tf-azul { background: linear-gradient(135deg, #3b74ff, #1d49c4); box-shadow: 0 10px 22px rgba(37, 99, 235, 0.3); }
.tf-ctx { font-size: 14px; color: #475569; line-height: 1.55; margin: 0; }
.tf-ctx strong { color: #0f172a; }
/* Mini-visual saldo -> projeção */
.tf-proj { display: flex; align-items: center; gap: 10px; margin: 16px 0 2px; }
.tf-proj .tf-box { flex: 1; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; text-align: center; background: #fbfcfe; }
.tf-proj .tf-box small { display: block; font-size: 11px; color: #64748b; font-weight: 600; }
.tf-proj .tf-box b { font-size: 16px; color: #0f172a; }
/* v171: visuais do novo Tour Guiado (gráficos, legenda, exemplo do objetivo) */
.tf-chart { width: 100%; height: 92px; display: block; margin-top: 10px; }
.tf-leg { display: flex; justify-content: space-between; font-size: 12px; color: #64748b; margin-top: 6px; font-weight: 600; }
.tf-exemplo { background: #f1f5f9; border-radius: 12px; padding: 12px 14px; margin-top: 12px; text-align: left; }
.tf-ex-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.tf-ex-top span { font-weight: 700; color: #0f172a; font-size: 14px; }
.tf-ex-top strong { color: #0d9488; font-size: 18px; }
.tf-ex-txt { margin: 0; font-size: 12.5px; color: #475569; line-height: 1.5; }
.tf-mais-grade { margin-top: 12px; }
/* v173: janela de boas-vindas (opção A — hero em gradiente) */
#tour-titulo:empty { display: none; }   /* no passo de boas-vindas o título fica no hero */
.tw3-hero { background: linear-gradient(135deg, #2563eb, #8b5cf6); border-radius: 16px; padding: 24px 18px; text-align: center; color: #fff; box-shadow: 0 10px 24px rgba(59, 130, 246, 0.35); }
.tw3-logo { width: 62px; height: 62px; border-radius: 17px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); display: grid; place-items: center; margin: 0 auto 16px; }
.tw3-logo svg { width: 40px; height: 40px; display: block; }
.tw3-h { margin: 0; font-size: 23px; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
.tw3-hero .tw3-tag { margin: 11px 0 0; font-size: 14px; color: #ffffff; font-weight: 500; line-height: 1.55; }
.tw3-list { display: flex; flex-direction: column; margin-top: 22px; }
.tw3-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #eef2f7; }
.tw3-row:last-child { border-bottom: 0; }
.tw3-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 16px; color: #fff; flex: 0 0 auto; }
.tw3-tx { display: flex; flex-direction: column; min-width: 0; }
.tw3-nome { font-weight: 700; color: #0f172a; font-size: 14.5px; }
.tw3-tx small { font-size: 12.5px; color: #64748b; margin-top: 2px; line-height: 1.45; }
.tw3-lock { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; color: #64748b; background: #f1f5f9; border-radius: 10px; padding: 12px; margin-top: 22px; }
.tw3-lock i { color: #2563eb; }
.tw3-lock strong { color: #0f172a; }
/* v185: 1ª janela do tour — layout "minimal premium" (opção D) */
.tw3-selo { width: 72px; height: 72px; border-radius: 22px; background: linear-gradient(135deg, #2563eb, #8b5cf6); display: grid; place-items: center; margin: 4px auto 20px; box-shadow: 0 12px 26px rgba(59, 130, 246, 0.38); }
.tw3-selo svg { width: 44px; height: 44px; display: block; }
.tw3-dh { text-align: center; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.18; color: #0f172a; margin: 0 auto 22px; max-width: 300px; }
.tw3-bens { display: flex; flex-direction: column; gap: 14px; }
.tw3-bem { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #334155; line-height: 1.4; }
.tw3-bem strong { color: #0f172a; font-weight: 700; }
.tw3-ck { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; flex: 0 0 auto; background: linear-gradient(135deg, #2563eb, #8b5cf6); }
/* v187: no desktop a 1ª janela é larga (720px); afasta o conteúdo das bordas para não colar na esquerda */
@media (min-width: 680px) { .tw3-d { padding: 4px 36px 10px; } }
/* v176: opção "próximo dia útil" nos formulários de lançamento recorrente */
.rec-diautil { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 13px; color: #475569; line-height: 1.45; margin: 2px 0 16px; }
.rec-diautil input { margin-top: 2px; width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--primary); cursor: pointer; }
.rec-diautil strong { color: #0f172a; }
/* v176: transição suave ao trocar de mês */
@keyframes mesEntraProx { from { opacity: .35; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes mesEntraAnt { from { opacity: .35; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.tab-content.active-tab.mes-anim-prox { animation: mesEntraProx 0.22s ease; }
.tab-content.active-tab.mes-anim-ant { animation: mesEntraAnt 0.22s ease; }
@media (prefers-reduced-motion: reduce) { .tab-content.active-tab.mes-anim-prox, .tab-content.active-tab.mes-anim-ant { animation: none; } }
.tf-proj .tf-box.tf-fim { border-color: #bbf7d0; background: #f0fdf4; } .tf-proj .tf-box.tf-fim b { color: #047857; }
.tf-seta { color: #94a3b8; font-size: 18px; flex-shrink: 0; }
/* Chips de categoria */
.tf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 2px; }
.tf-chip { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 700; border: 1.5px solid; }
.tf-chip i { font-size: 13px; }
.tf-dupla { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0 2px; }
.tf-dupla div { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #475569; }
.tf-dupla i { color: #2563eb; }
/* Cabeçalho colorido das páginas de categoria */
.tf-banner { display: flex; align-items: center; gap: 13px; border-radius: 14px; padding: 13px 14px; margin: 0 0 13px; border: 1.5px solid; }
.tf-bic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; color: #fff; flex-shrink: 0; }
.tf-bsub { font-size: 14.5px; font-weight: 700; }
/* Paleta por categoria (chip + banner) */
.tf-rec { border-color: #bbf7d0; background: #f0fdf4; color: #047857; } .tf-rec .tf-bic { background: #10b981; }
.tf-desp { border-color: #fecaca; background: #fef2f2; color: #b91c1c; } .tf-desp .tf-bic { background: #ef4444; }
.tf-inv { border-color: #ddd6fe; background: #f5f3ff; color: #6d28d9; } .tf-inv .tf-bic { background: #8b5cf6; }
.tf-div { border-color: #fed7aa; background: #fff7ed; color: #c2410c; } .tf-div .tf-bic { background: #f97316; }
.tf-obj { border-color: #99f6e4; background: #f0fdfa; color: #0f766e; } .tf-obj .tf-bic { background: #0d9488; }

/* ===================== v148: Conta / login / sincronização ===================== */
.auth-overlay{position:fixed;inset:0;z-index:6000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(15,23,42,.55);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);overflow-y:auto}
.auth-overlay[hidden]{display:none}
body.auth-aberto{overflow:hidden}
.auth-card{width:100%;max-width:420px;background:#fff;border-radius:20px;box-shadow:0 24px 60px rgba(15,23,42,.3);padding:30px 28px;margin:auto}
.auth-tela[hidden]{display:none}
.auth-logo{display:flex;flex-direction:column;align-items:center;gap:12px;margin-bottom:18px}
.auth-logo-ic{width:56px;height:56px;border-radius:15px;background:linear-gradient(135deg,#1e40af,#1e3a8a);display:flex;align-items:center;justify-content:center}
.auth-logo-ic svg{width:40px;height:40px}
.auth-logo b{font-size:22px;color:#0f172a}
.auth-h{font-size:21px;text-align:center;margin-bottom:4px;color:#0f172a}
.auth-sub{font-size:13.5px;color:#64748b;text-align:center;margin-bottom:20px;line-height:1.45}
.auth-lb{display:block;font-size:13px;font-weight:600;color:#475569;margin:13px 0 6px}
.auth-inp{width:100%;padding:12px 14px;font-size:15px;background:#f8fafc;border:1px solid #cbd5e1;border-radius:10px;color:#0f172a;outline:none}
.auth-inp:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.15)}
.auth-hint{font-size:12.5px;color:#64748b;margin-top:7px;line-height:1.4}
.auth-erro{font-size:13px;color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:9px;padding:9px 12px;margin-top:12px}
.auth-erro[hidden]{display:none}
.auth-btn{width:100%;padding:14px;border:none;border-radius:12px;font-size:15px;font-weight:700;cursor:pointer;margin-top:14px;display:flex;align-items:center;justify-content:center;gap:9px}
.auth-btn:disabled{opacity:.55;cursor:default}
.auth-btn-pri{background:#2563eb;color:#fff;box-shadow:0 8px 18px rgba(37,99,235,.3)}
.auth-btn-dark{background:#16243d;color:#fff}
.auth-btn-out{background:#fff;color:#334155;border:1.5px solid #cbd5e1}
.auth-btn-google{background:#fff;color:#334155;border:1.5px solid #cbd5e1;margin-top:10px}
.auth-g{width:22px;height:22px;border-radius:50%;background:conic-gradient(#ea4335 0 25%,#fbbc05 0 50%,#34a853 0 75%,#4285f4 0);color:#fff;font-weight:800;font-size:13px;display:flex;align-items:center;justify-content:center}
.auth-links{display:flex;justify-content:space-between;margin-top:16px;font-size:13.5px}
.auth-links-c{justify-content:center}
.auth-links a{color:#2563eb;font-weight:600;cursor:pointer;text-decoration:none}
.auth-ou{display:flex;align-items:center;gap:12px;color:#94a3b8;font-size:12.5px;margin:18px 0 4px}
.auth-ou::before,.auth-ou::after{content:'';height:1px;background:#e2e8f0;flex:1}
.auth-chavebox{background:#0f172a;color:#e2e8f0;border-radius:12px;padding:16px;font-family:'Courier New',monospace;font-size:18px;letter-spacing:1px;text-align:center;word-break:break-all;line-height:1.6;margin:8px 0 6px}
.auth-aviso{display:flex;gap:10px;background:#fffbeb;border:1px solid #fde68a;border-radius:12px;padding:12px 14px;font-size:13px;color:#92400e;line-height:1.45;margin:10px 0 2px}
.auth-check{display:flex;align-items:flex-start;gap:9px;margin:16px 0 2px;font-size:13.5px;color:#334155;line-height:1.4;cursor:pointer}
.auth-check input{margin-top:2px;width:18px;height:18px;accent-color:#2563eb;flex-shrink:0}
/* Status da conta (aba Conta e backup) */
.conta-status{display:flex;align-items:center;gap:13px;background:#f8fafc;border:1px solid var(--border-light);border-left:5px solid var(--st,#10b981);border-radius:12px;padding:14px 16px}
.conta-status-off{border-left-color:#94a3b8}
.conta-status-ic{width:42px;height:42px;border-radius:11px;background:#eef2f7;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0}
.conta-status-txt{font-weight:700;font-size:15px;color:var(--text-dark)}
.conta-status-sub{font-size:13px;color:var(--text-muted)}
.conta-aviso{display:flex;gap:10px;background:#fffbeb;border:1px solid #fde68a;border-radius:12px;padding:12px 14px;font-size:13px;color:#92400e;line-height:1.45;margin-top:10px}
.conta-aviso a{color:#b45309;font-weight:700;cursor:pointer}
.conta-sec{font-size:14px;color:#334155;margin:20px 0 8px}
.conta-backup-acoes{display:flex;gap:10px;flex-wrap:wrap}
.conta-backup-acoes>*{flex:1;min-width:180px;justify-content:center}
@media (max-width:560px){.conta-backup-acoes>*{flex:1 1 100%}}

/* ===================== v157: barra inferior fixa no celular ===================== */
.barra-inferior { display: none; }
@media (max-width: 700px) {
    .barra-inferior {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 904;
        height: 56px; background: #ffffff; border-top: 1px solid var(--border-light);
        box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.10);
        align-items: center; justify-content: center; gap: 14px; padding: 0 74px;
    }
    .hospedagem-netlify .barra-inferior { bottom: var(--reserva-selo); }
    .bi-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: none; color: #475569; font-size: 10.5px; font-weight: 600; cursor: pointer; padding: 4px 10px; border-radius: 10px; }
    .bi-btn i { font-size: 20px; color: #334155; }
    .bi-btn:active { background: #eef3ff; color: var(--primary); }
    .bi-btn:active i { color: var(--primary); }
    /* voz (esquerda) e "+" (direita) nos cantos, sobrepondo ~1/3 acima da barra */
    .mic-voz { left: 12px !important; right: auto !important; bottom: 16px !important; z-index: 906; }
    .fab-novo { right: 12px !important; left: auto !important; bottom: 16px !important; z-index: 906; }
    .hospedagem-netlify .mic-voz { bottom: calc(16px + var(--reserva-selo)) !important; }
    .hospedagem-netlify .fab-novo { bottom: calc(16px + var(--reserva-selo)) !important; }
    /* espaço para o conteúdo não ficar sob a barra */
    .main-content { padding-bottom: 86px; }
    .hospedagem-netlify .main-content { padding-bottom: calc(86px + var(--reserva-selo)); }
}

/* v157 Item 6.2: engrenagem + menu de opções da fatura no calendário */
.cc-calendario { position: relative; }
.cc-cal-engrenagem { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border-light); background: #ffffff; color: #475569; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 15px; z-index: 5; }
.cc-cal-engrenagem:hover { border-color: var(--primary); color: var(--primary); }
.cc-cal-menu { position: absolute; top: 46px; right: 8px; z-index: 20; background: #ffffff; border: 1px solid var(--border-light); border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18); padding: 6px; display: flex; flex-direction: column; min-width: 230px; }
.cc-cal-menu[hidden] { display: none; }
.cc-cal-menu button { display: flex; align-items: center; gap: 10px; text-align: left; background: none; border: none; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; color: var(--text-dark); cursor: pointer; }
.cc-cal-menu button:hover { background: #f1f5f9; }
.cc-cal-menu button i { width: 16px; text-align: center; color: var(--text-muted); }
.cc-cal-menu .cc-cal-menu-perigo, .cc-cal-menu .cc-cal-menu-perigo i { color: var(--danger); }

/* v186: Lembretes de vencimento */
.notif-ajuda { font-size: 12.5px; color: #64748b; line-height: 1.45; margin: 6px 0 10px; }
.notif-master { margin-top: 4px; }
.notif-prazo-global { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: #334155; margin: 14px 0 4px; }
.notif-prazo-global input { width: 58px; text-align: center; padding: 7px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; font-weight: 700; color: #0f172a; }
#notif-corpo.notif-desligado { opacity: 0.45; pointer-events: none; }
.notif-lista { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow: auto; margin-top: 6px; }
.notif-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #eef2f7; border-radius: 12px; background: #fff; }
.notif-item-off { opacity: 0.6; }
.notif-item-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.notif-item-nome { font-weight: 700; font-size: 14px; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-item-sub { font-size: 12px; color: #64748b; margin-top: 1px; }
.notif-item-prazo { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.notif-item-prazo input { width: 46px; text-align: center; padding: 6px 4px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 13px; color: #0f172a; }
.notif-item-prazo small { font-size: 11px; color: #94a3b8; }
.notif-vazio { font-size: 13px; color: #64748b; line-height: 1.5; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 14px; }
/* interruptor (toggle) */
.notif-sw { position: relative; display: inline-flex; flex: 0 0 auto; cursor: pointer; }
.notif-sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.notif-sw-track { width: 42px; height: 24px; border-radius: 999px; background: #cbd5e1; transition: background 0.2s; display: inline-block; position: relative; }
.notif-sw-dot { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform 0.2s; }
.notif-sw input:checked + .notif-sw-track { background: #2563eb; }
.notif-sw input:checked + .notif-sw-track .notif-sw-dot { transform: translateX(18px); }
.notif-sw input:focus-visible + .notif-sw-track { outline: 2px solid #93c5fd; outline-offset: 2px; }
/* aviso ao abrir o app */
.lembretes-lista { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.lembrete-item { border: 1px solid #eef2f7; border-left: 4px solid #2563eb; border-radius: 12px; padding: 13px 14px; background: #fff; box-shadow: 0 2px 8px rgba(15,23,42,0.04); }
.lembrete-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lembrete-nome { font-weight: 700; font-size: 15px; color: #0f172a; }
.lembrete-valor { font-weight: 800; font-size: 15px; color: #0f172a; white-space: nowrap; }
.lembrete-venc { font-size: 13px; color: #475569; margin-top: 4px; }
.lembrete-venc i { color: #2563eb; margin-right: 5px; }
.lembrete-venc strong { color: #0f172a; }
.lembrete-acoes { display: flex; gap: 8px; margin-top: 12px; }
.lembrete-acoes .btn-premium { flex: 1; padding: 9px; font-size: 13.5px; }

/* v188: tela de conferência da fatura (.txt e PDF) */
.conferir-ajuda { font-size: 12.5px; color: #64748b; line-height: 1.45; margin: 4px 0 12px; }
.conferir-cabecalho { display: grid; grid-template-columns: 24px 46px 1fr 104px; gap: 8px; padding: 0 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #94a3b8; border-bottom: 1px solid #e2e8f0; }
.conferir-lista { max-height: 46vh; overflow: auto; margin-top: 4px; }
.conf-linha { display: grid; grid-template-columns: 24px 46px 1fr 104px; gap: 8px; align-items: center; padding: 8px 10px; border-bottom: 1px solid #f1f5f9; }
.conf-linha.conf-off { opacity: .45; }
.conf-linha.conf-credito .conf-val small { color: #059669; }
.conf-inc { display: flex; align-items: center; }
.conf-inc input { width: 17px; height: 17px; }
.conf-data { font-size: 12.5px; color: #475569; font-variant-numeric: tabular-nums; }
.conf-desc { font-size: 12.5px; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conf-val { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: #475569; justify-content: flex-end; }
.conf-val input { width: 78px; text-align: right; padding: 5px 6px; border: 1px solid #cbd5e1; border-radius: 7px; font-size: 12.5px; color: #0f172a; font-variant-numeric: tabular-nums; }
.conf-val small { font-size: 10px; }
.conferir-resumo { font-size: 13px; font-weight: 600; color: #0f172a; text-align: right; margin: 10px 2px 0; }

.conf-badge { font-style: normal; font-size: 10px; font-weight: 700; color: #059669; background: #ecfdf5; border-radius: 5px; padding: 1px 5px; margin-left: 4px; }
.conf-val input { width: 92px; }
