:root {
  --bg: #0d0f14;
  --bg2: #13161d;
  --bg3: #1a1d27;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --text: #f0f0f0;
  --text2: #8a8fa0;
  --text3: #5a5f70;
  --blue: #4a90d9;
  --blue-dim: rgba(74,144,217,0.15);
  --pink: #d96ba8;
  --pink-dim: rgba(217,107,168,0.15);
  --green: #52c77e;
  --green-dim: rgba(82,199,126,0.13);
  --amber: #e8a838;
  --amber-dim: rgba(232,168,56,0.13);
  --coral: #e86060;
  --coral-dim: rgba(232,96,96,0.13);
  --purple: #9b72e8;
  --purple-dim: rgba(155,114,232,0.13);
  --accent: #4a90d9;
  --sidebar-w: 220px;
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

.hidden { display: none !important; }

/* ---- LOGIN ---- */
#login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

#login-screen::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(74,144,217,0.12) 0%, transparent 70%);
  top: -100px; left: -100px;
  pointer-events: none;
}

#login-screen::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(217,107,168,0.08) 0%, transparent 70%);
  bottom: -80px; right: -80px;
  pointer-events: none;
}

.login-card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 48px 40px;
  width: 360px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.login-year {
  font-family: 'Syne', sans-serif;
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.login-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.login-sub {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 32px;
}

.login-input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  text-align: center;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s;
}
.login-input:focus { border-color: var(--blue); }

.login-btn {
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 15px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.login-btn:hover { opacity: 0.85; }

.login-error {
  margin-top: 10px;
  font-size: 13px;
  color: var(--coral);
}

/* ---- LAYOUT ---- */
#app {
  display: flex;
  min-height: 100vh;
}

/* ---- SIDEBAR ---- */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 10;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  padding: 0 8px;
  margin-bottom: 32px;
}

.brand-year {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.brand-name {
  font-size: 12px;
  color: var(--text3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text2);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  width: 100%;
}
.nav-item svg {
  width: 18px; height: 18px;
  stroke: currentColor;
  flex-shrink: 0;
}
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { background: var(--blue-dim); color: var(--blue); font-weight: 500; }
.nav-item.active svg { stroke: var(--blue); }

.logout-btn {
  background: none;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text3);
  font-size: 13px;
  font-family: inherit;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 16px;
}
.logout-btn:hover { border-color: var(--coral); color: var(--coral); }

/* ---- CONTENT ---- */
.content {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 32px 36px;
  min-height: 100vh;
}

.tab-section { animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.page-title {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.page-sub { font-size: 14px; color: var(--text2); margin-top: 3px; }

/* ---- KPI CARDS ---- */
.kpi-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  top: -30px; right: -30px;
  opacity: 0.15;
}
.kpi-card:nth-child(1)::before { background: var(--blue); }
.kpi-card:nth-child(2)::before { background: var(--blue); }
.kpi-card:nth-child(3)::before { background: var(--pink); }

.kpi-main { border-color: rgba(74,144,217,0.25); }

.kpi-label {
  font-size: 12px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 8px;
}
.kpi-value {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 8px;
}
.kpi-blue  { color: var(--blue);  }
.kpi-pink  { color: var(--pink);  }
.kpi-green { color: var(--green); }
.kpi-coral { color: var(--coral); }
.kpi-amber { color: var(--amber); }
.kpi-growth { font-size: 13px; }
.growth-pos { color: var(--green); }
.growth-neg { color: var(--coral); }
.growth-neu { color: var(--text3); }

/* ---- SECTION ROW ---- */
.section-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.panel-block-wide {}

.block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.block-title {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- METAS ---- */
.metas-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.filter-pill {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--text2);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.filter-pill:hover { border-color: var(--blue); color: var(--blue); }
.filter-pill.active { background: var(--blue-dim); border-color: var(--blue); color: var(--blue); font-weight: 500; }

.metas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.meta-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  transition: border-color 0.2s;
}
.meta-card:hover { border-color: var(--border2); }

.meta-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.meta-icon-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta-icone {
  font-size: 22px;
  line-height: 1;
}

.meta-nome {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.meta-quem-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-casal { background: var(--blue-dim); color: var(--blue); }
.badge-nicolas { background: var(--blue-dim); color: var(--blue); }
.badge-raquel { background: var(--pink-dim); color: var(--pink); }

.meta-valores {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.meta-atual {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
}
.meta-total-val {
  font-size: 13px;
  color: var(--text3);
}
.meta-pct {
  font-size: 13px;
  font-weight: 600;
}

.meta-bar-track {
  width: 100%;
  height: 6px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}
.meta-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}
.fill-blue { background: var(--blue); }
.fill-green { background: var(--green); }
.fill-amber { background: var(--amber); }
.fill-coral { background: var(--coral); }
.fill-purple { background: var(--purple); }
.fill-pink { background: var(--pink); }

.meta-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.btn-icon-sm {
  background: none;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 12px;
  color: var(--text2);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.btn-icon-sm:hover { border-color: var(--blue); color: var(--blue); }
.btn-icon-sm.danger:hover { border-color: var(--coral); color: var(--coral); }

.meta-concluida {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 18px;
}

/* ---- PROJETOS ---- */
.projetos-list { display: flex; flex-direction: column; gap: 12px; }

.projeto-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.projeto-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.projeto-icon-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.projeto-icone-big { font-size: 28px; line-height: 1; }

.projeto-title-wrap {}
.projeto-nome {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.projeto-desc { font-size: 13px; color: var(--text2); margin-top: 2px; }

.projeto-status-badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.status-planejando { background: var(--amber-dim); color: var(--amber); }
.status-em_andamento { background: var(--blue-dim); color: var(--blue); }
.status-concluido { background: var(--green-dim); color: var(--green); }

.projeto-progress-area { margin-bottom: 12px; }

.projeto-valores-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.projeto-val-guardado {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
}
.projeto-val-meta-txt { font-size: 13px; color: var(--text3); }

.projeto-bar-track {
  width: 100%;
  height: 8px;
  background: var(--bg3);
  border-radius: 4px;
  overflow: hidden;
}
.projeto-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}

.projeto-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.projeto-prazo { font-size: 12px; color: var(--text3); }
.projeto-actions { display: flex; gap: 8px; }

/* ---- PATRIMÔNIO TABLE ---- */
.patrimonio-table-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: auto;
}
.patrimonio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.patrimonio-table thead th {
  text-align: left;
  padding: 14px 20px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text3);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.patrimonio-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.patrimonio-table tbody tr:last-child { border-bottom: none; }
.patrimonio-table tbody tr:hover { background: var(--bg3); }
.patrimonio-table tbody td {
  padding: 14px 20px;
  color: var(--text);
}
.td-mes { font-family: 'Syne', sans-serif; font-weight: 600; }
.td-total { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--blue); }
.td-growth-pos { color: var(--green); font-weight: 600; }
.td-growth-neg { color: var(--coral); font-weight: 600; }
.td-growth-neu { color: var(--text3); }

/* ---- MODAIS ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.2s ease;
}
.modal-card-sm { max-width: 400px; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}
.modal-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s;
}
.modal-close:hover { color: var(--text); }

.modal-body { padding: 20px 24px; }
.modal-footer {
  padding: 0 24px 20px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-grow { flex: 1; }
.field label { font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.field input, .field select, .field textarea {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.field textarea { resize: vertical; min-height: 60px; }
.field-icone { width: 70px !important; text-align: center; font-size: 22px; }

.field-row { display: flex; gap: 12px; }

/* ---- BUTTONS ---- */
.btn-primary {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 14px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.85; }

.btn-secondary {
  background: none;
  color: var(--text2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-secondary:hover { border-color: var(--border2); color: var(--text); }

/* ---- MINI METAS (destaque) ---- */
.mini-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.mini-meta:last-child { border-bottom: none; }
.mini-meta-icon { font-size: 18px; }
.mini-meta-info { flex: 1; min-width: 0; }
.mini-meta-nome { font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-meta-bar-track { width: 100%; height: 4px; background: var(--bg3); border-radius: 2px; margin-top: 5px; overflow: hidden; }
.mini-meta-bar-fill { height: 100%; border-radius: 2px; }
.mini-meta-pct { font-size: 12px; color: var(--text2); white-space: nowrap; }

/* ---- MINI PROJETO ---- */
.mini-projeto {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.mini-projeto:last-child { border-bottom: none; }

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text3);
  font-size: 14px;
}
.empty-state-icon { font-size: 36px; margin-bottom: 12px; }

/* ---- SELECT dark ---- */
select option { background: #1a1d27; }

/* ---- FOTO UPLOAD ---- */
.foto-upload-area {
  border: 1.5px dashed var(--border2);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.foto-upload-area:hover { border-color: var(--blue); background: var(--blue-dim); }
.foto-upload-icon { font-size: 20px; }
.foto-upload-txt { font-size: 13px; color: var(--text2); }

.foto-preview-wrap {
  position: relative;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-height: 180px;
}
.foto-preview-img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}
.foto-remove-btn {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,0.6);
  border: none;
  color: #fff;
  font-size: 14px;
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.foto-remove-btn:hover { background: var(--coral); }

/* ---- META CARD COM FOTO ---- */
.meta-card-foto {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  display: block;
}

/* ---- META CONCLUIDA OVERLAY ---- */
.meta-card-concluida-overlay {
  position: absolute;
  inset: 0;
  background: rgba(82,199,126,0.07);
  border-radius: var(--radius);
  pointer-events: none;
}
.meta-card.concluida-manual {
  border-color: rgba(82,199,126,0.3);
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ---- GASTOS FIXOS ---- */
.gastos-lista { display: flex; flex-direction: column; }

.gasto-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.2s;
}
.gasto-row:last-child { border-bottom: none; }

.gasto-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gasto-nome { font-size: 14px; font-weight: 500; color: var(--text); }

.gasto-valor-txt {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.gasto-fonte-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.gasto-fonte-salario { background: rgba(82,199,126,0.12); color: var(--green); }
.gasto-fonte-vale    { background: rgba(232,168,56,0.13);  color: var(--amber); }

.gasto-actions { display: flex; gap: 6px; flex-shrink: 0; }

.cat-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.cat-cartao      { background: var(--blue-dim);   color: var(--blue);   }
.cat-utilidades  { background: var(--amber-dim);  color: var(--amber);  }
.cat-moradia     { background: var(--purple-dim); color: var(--purple); }
.cat-alimentacao { background: var(--green-dim);  color: var(--green);  }
.cat-transporte  { background: var(--coral-dim);  color: var(--coral);  }
.cat-saude       { background: var(--pink-dim);   color: var(--pink);   }
.cat-outros      { background: var(--bg3);        color: var(--text3);  }

.gastos-footer {
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid var(--border2);
}
.gastos-totais {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
}
.gastos-total-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gastos-total-item.gastos-total-geral {
  margin-left: auto;
}
.gastos-total-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text2);
  font-weight: 500;
}
.gastos-total-val {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.gastos-total-destaque {
  font-size: 20px;
}

/* ---- DASHBOARD FINANCEIRO ---- */
.dash-group { margin-bottom: 24px; }
.dash-group-label {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  margin-bottom: 10px;
}
.dash-group-cards { display: grid; gap: 16px; }
.dash-group-2 { grid-template-columns: 1fr 1fr; }
.dash-group-3 { grid-template-columns: 1fr 1fr 1.2fr; }
.dash-group-4 { grid-template-columns: 1fr 1fr 1fr 1.2fr; }

.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dash-progress-track {
  width: 100%;
  height: 10px;
  background: var(--bg3);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 10px;
}
.dash-progress-fill {
  height: 100%;
  border-radius: 5px;
  background: var(--blue);
  transition: width 0.7s cubic-bezier(0.4,0,0.2,1), background 0.3s;
}
.dash-progress-fill.warning { background: var(--amber); }
.dash-progress-fill.danger  { background: var(--coral); }
.dash-progress-info { font-size: 13px; color: var(--text2); }

.dash-saldo-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 8px;
  letter-spacing: 0.03em;
}
.dash-saldo-pos { background: var(--green-dim); color: var(--green); }
.dash-saldo-neg { background: var(--coral-dim); color: var(--coral); }

.dash-categoria-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.dash-categoria-row:last-child { border-bottom: none; }
.dash-cat-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.dash-cat-items { font-size: 12px; color: var(--text3); }
.dash-cat-bar-wrap { width: 100px; flex-shrink: 0; }
.dash-cat-bar-track { height: 4px; background: var(--bg3); border-radius: 2px; overflow: hidden; }
.dash-cat-bar-fill  { height: 100%; border-radius: 2px; background: var(--blue); }
.dash-cat-pct  { font-size: 12px; color: var(--text3); width: 34px; text-align: right; flex-shrink: 0; }
.dash-cat-valor {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  min-width: 90px;
  text-align: right;
}

/* ---- VALES ---- */
.vales-pessoa-group { margin-bottom: 16px; }
.vales-pessoa-group:last-child { margin-bottom: 0; }

.vales-pessoa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border2);
}
.vales-pessoa-total { font-size: 13px; color: var(--text2); font-weight: 500; }

.vale-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.vale-row:last-child { border-bottom: none; }
.vale-tipo { flex: 1; font-size: 14px; color: var(--text); }
.vale-valor-txt {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}

/* ---- MÊS/ANO SELECTOR BAR ---- */
.mes-ano-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.mes-ano-bar select,
.mes-ano-bar input[type=number] {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.mes-ano-bar select:focus,
.mes-ano-bar input[type=number]:focus { border-color: var(--blue); }
.mes-ano-bar input[type=number] { width: 82px; }
.mes-ano-bar label {
  font-size: 13px;
  color: var(--text2);
}

/* ---- PREVISÃO DE POUPANÇA ---- */
.dash-prev-desc {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 14px;
}
.dash-prev-sub {
  font-size: 11px;
  color: var(--text3);
  margin-top: 6px;
}

/* ---- MODAL APLICAR FIXOS ---- */
.fixos-modal-desc {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 16px;
}

.fixo-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.fixo-check-item:last-child { border-bottom: none; }
.fixo-check-item.fixo-ja-aplicado { opacity: 0.5; }

.fixo-check-label {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  cursor: pointer;
  min-width: 0;
}
.fixo-ja-aplicado .fixo-check-label { cursor: default; }

.fixo-check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  flex-shrink: 0;
  cursor: pointer;
}

.fixo-check-info {
  flex: 1;
  min-width: 0;
}

.fixo-check-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.fixo-ja-aplicado-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--green-dim);
  color: var(--green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .sidebar { width: 60px; padding: 16px 8px; }
  .brand-name, .nav-item span, .brand-year { display: none; }
  .brand-year { display: block; font-size: 14px; }
  .nav-item { justify-content: center; padding: 12px 8px; }
  .content { margin-left: 60px; padding: 20px 16px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .section-row { grid-template-columns: 1fr; }
  .dash-kpi-grid { grid-template-columns: 1fr 1fr; }
  .dash-group-2,
  .dash-group-3,
  .dash-group-4 { grid-template-columns: 1fr 1fr; }
  .gasto-row { flex-wrap: wrap; }
  .gasto-actions { width: 100%; justify-content: flex-end; margin-top: 4px; }
  .dash-cat-bar-wrap { display: none; }
}
