/* =============================================
   FINANCEIRO MODULE STYLES
   ============================================= */

/* ---- HEALTH HEADER ---- */
.fin-health-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  gap: 24px;
}
.fin-health-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.fin-health-score-ring {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: conic-gradient(var(--verde) 0%, var(--bg3) 0%);
  transition: background .8s ease;
  position: relative;
  flex-shrink: 0;
}
.fin-health-score-ring::after {
  content: '';
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--card);
  position: absolute;
  top: 10px; left: 10px;
}
.fin-health-score-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 1;
}
.fin-health-score-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px; line-height: 1;
}
.fin-health-score-label {
  font-size: 9px; text-transform: uppercase;
  letter-spacing: 1px; color: var(--muted);
}
.fin-health-title {
  font-size: 16px; font-weight: 600; color: var(--text);
}
.fin-health-status {
  font-size: 12px; color: var(--muted); margin-top: 2px;
}
.fin-health-month-progress {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
}
.fin-health-month-bar {
  width: 120px; height: 6px;
  background: var(--bg3); border-radius: 3px; overflow: hidden;
}
.fin-health-month-fill {
  height: 100%; background: var(--verde);
  border-radius: 3px; transition: width .6s ease;
}
.fin-health-month-progress span {
  font-size: 10px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
.fin-health-right {
  display: flex; gap: 24px;
}
.fin-health-metric {
  text-align: center; min-width: 90px;
}
.fin-health-metric-label {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 1px; color: var(--muted); font-weight: 600;
}
.fin-health-metric-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px; line-height: 1.1;
}
.fin-health-metric-delta {
  font-size: 10px; margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
}
.fin-health-metric-delta.up { color: var(--verde); }
.fin-health-metric-delta.down { color: var(--danger); }
.fin-health-metric-delta.neutral { color: var(--muted); }

/* ---- INSIGHTS STRIP ---- */
.fin-insights-strip {
  display: flex; gap: 10px; overflow-x: auto;
  padding-bottom: 4px; margin-bottom: 16px;
  scrollbar-width: none;
}
.fin-insights-strip::-webkit-scrollbar { display: none; }
.fin-insight-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 220px; max-width: 280px;
  flex-shrink: 0;
  display: flex; gap: 10px; align-items: flex-start;
  transition: border-color .2s;
}
.fin-insight-card:hover { border-color: var(--verde); }
.fin-insight-card.insight-good { border-left: 3px solid var(--verde); }
.fin-insight-card.insight-warn { border-left: 3px solid var(--warn); }
.fin-insight-card.insight-bad { border-left: 3px solid var(--danger); }
.fin-insight-card.insight-info { border-left: 3px solid var(--info); }
.fin-insight-icon { font-size: 18px; flex-shrink: 0; }
.fin-insight-text {
  font-size: 11px; color: var(--text); line-height: 1.4;
}
.fin-insight-text strong { font-weight: 700; }

/* ---- GAUGE CARDS ---- */
.fin-gauge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.fin-gauge-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.fin-gauge-card:hover {
  border-color: var(--verde);
  box-shadow: var(--shadow-md);
}
.fin-gauge-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px; letter-spacing: 1.5px;
  color: var(--muted); margin-bottom: 12px;
}
.fin-gauge-container {
  position: relative;
  width: 110px; height: 110px;
  margin: 0 auto 10px;
}
.fin-gauge-ring {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: conic-gradient(var(--gauge-color, var(--verde)) 0%, var(--bg3) 0%);
  transition: background .6s ease;
  --gauge-color: var(--verde);
}
.fin-gauge-ring::after {
  content: '';
  width: 82px; height: 82px;
  border-radius: 50%;
  background: var(--card);
  position: absolute;
  top: 14px; left: 14px;
}
.fin-gauge-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 1;
}
.fin-gauge-pct {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px; line-height: 1;
}
.fin-gauge-values {
  font-size: 9px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
}
.fin-gauge-sub {
  font-size: 10px; color: var(--muted); margin-top: 4px;
}

/* ---- BREAKDOWN GRID ---- */
.fin-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.fin-breakdown-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s;
  position: relative;
  overflow: hidden;
}
.fin-breakdown-item:hover { border-color: var(--verde); }
.fin-breakdown-item::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; border-radius: 3px 0 0 3px;
}
.fin-breakdown-label {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--muted);
  font-weight: 600; padding-left: 6px;
}
.fin-breakdown-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px; font-weight: 700;
  padding-left: 6px; margin-top: 4px;
}
.fin-breakdown-bar {
  height: 4px; background: var(--bg3);
  border-radius: 2px; margin-top: 8px; overflow: hidden;
}
.fin-breakdown-bar-fill {
  height: 100%; border-radius: 2px;
  transition: width .6s ease;
}
.fin-breakdown-count {
  font-size: 9px; color: var(--muted);
  padding-left: 6px; margin-top: 2px;
}

/* ---- PAYMENT METHOD GRID ---- */
.fin-payment-grid {
  display: flex; gap: 12px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.fin-payment-item {
  flex: 1; min-width: 120px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
  transition: border-color .2s;
}
.fin-payment-item:hover { border-color: var(--verde); }
.fin-payment-icon { font-size: 20px; margin-bottom: 4px; }
.fin-payment-label {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--muted); font-weight: 600;
}
.fin-payment-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px; font-weight: 700; margin-top: 4px;
}
.fin-payment-pct {
  font-size: 10px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
}

/* Sub-tab Navigation */
.fin-subtabs {
  display: flex; gap: 2px;
  background: var(--bg3, #f1f5f9);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 20px;
  width: fit-content;
}
.fin-subtab {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 11px; font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
  border: none; background: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}
.fin-subtab.active {
  background: var(--verde);
  color: #fff;
  box-shadow: 0 2px 8px rgba(34,197,94,.25);
}
.fin-subtab:hover:not(.active) {
  color: var(--text);
  background: rgba(0,0,0,.04);
}
.fin-subtab-content { display: none; }
.fin-subtab-content.active { display: block; }

/* Quick Links */
.fin-quick-links {
  display: flex; gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

/* ---- DESPESAS ---- */

/* Horizontal category bars */
.desp-cat-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg3, #f1f5f9);
}
.desp-cat-row:last-child { border-bottom: none; }
.desp-cat-icon { font-size: 18px; width: 28px; text-align: center; flex-shrink: 0; }
.desp-cat-label {
  font-size: 12px; font-weight: 500; color: var(--text);
  min-width: 160px; flex-shrink: 0;
}
.desp-cat-bar-wrap { flex: 1; min-width: 80px; }
.desp-cat-bar {
  height: 8px; background: var(--bg3, #f1f5f9); border-radius: 4px; overflow: hidden;
}
.desp-cat-bar-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--danger), #f87171);
  transition: width .5s ease;
}
.desp-cat-valor {
  font-size: 12px; font-weight: 600; color: var(--text);
  min-width: 100px; text-align: right; flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}

/* Status tags for despesas */
.tag-pago { background: rgba(34,197,94,.12); color: #16a34a; }
.tag-pendente { background: rgba(234,179,8,.12); color: #d97706; }
.tag-atrasado { background: rgba(239,68,68,.15); color: #dc2626; font-weight: 700; }

/* Action mini-buttons */
.desp-actions { display: flex; gap: 4px; }
.btn-icon {
  width: 28px; height: 28px;
  border-radius: 6px; border: 1px solid var(--bg3, #e2e8f0);
  background: var(--card, #fff);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: all .15s;
}
.btn-icon:hover { border-color: var(--verde); color: var(--verde); }
.btn-icon.danger:hover { border-color: var(--danger); color: var(--danger); }

/* ---- DRE ---- */
.dre-card {
  background: var(--card, #fff);
  border: 1px solid var(--card-border, #e2e8f0);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}
.dre-section {
  padding: 10px 0;
  border-bottom: 1px solid var(--bg3, #f1f5f9);
}
.dre-section:last-child { border-bottom: none; }
.dre-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 12px;
}
.dre-line.dre-header {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px; letter-spacing: 1.5px;
  color: var(--muted);
  padding: 6px 12px;
}
.dre-line.dre-detail {
  font-size: 12px; color: var(--muted);
  padding-left: 28px;
}
.dre-line.dre-deduction {
  font-size: 13px; color: var(--text);
}
.dre-line.dre-subtotal {
  font-size: 14px; font-weight: 600; color: var(--text);
  background: var(--bg2, #f8fafc); border-radius: 6px;
  margin: 4px 0; padding: 8px 12px;
}
.dre-line.dre-subtotal.highlight {
  background: rgba(34,197,94,.06);
  border: 1px solid rgba(34,197,94,.15);
}
.dre-line.dre-total {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px; letter-spacing: 1.5px;
  padding: 14px 12px;
  border-radius: 8px;
  margin-top: 4px;
}
.dre-line.dre-total.positivo {
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.2);
}
.dre-line.dre-total.negativo {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
}
.dre-valor {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}
.dre-valor.green { color: var(--verde); }
.dre-valor.red { color: var(--danger); }

/* ---- METAS ---- */
.meta-gauge-card {
  background: var(--card, #fff);
  border: 1px solid var(--card-border, #e2e8f0);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.meta-gauge-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.meta-gauge-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px; letter-spacing: 1.5px; color: var(--muted);
}
.meta-gauge-edit {
  font-size: 12px; color: var(--verde); cursor: pointer;
  font-weight: 500;
}
.meta-gauge-edit:hover { text-decoration: underline; }
.meta-gauge-container {
  position: relative; width: 180px; height: 180px; margin: 0 auto 16px;
}
.meta-gauge-ring {
  width: 100%; height: 100%; border-radius: 50%;
  background: conic-gradient(var(--verde) 0%, var(--bg3, #f1f5f9) 0%);
  transition: background .6s ease;
}
.meta-gauge-ring::after {
  content: '';
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--card, #fff);
  position: absolute; top: 20px; left: 20px;
}
.meta-gauge-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 1;
}
.meta-gauge-pct {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px; line-height: 1;
}
.meta-gauge-values {
  font-size: 11px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 4px;
}
.meta-gauge-status {
  font-size: 13px; color: var(--text);
  margin-top: 4px;
}

/* Category budget cards grid */
.metas-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
.meta-cat-card {
  background: var(--card, #fff);
  border: 1px solid var(--card-border, #e2e8f0);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color .2s;
}
.meta-cat-card:hover { border-color: var(--verde); }
.meta-cat-card.over-budget { border-color: var(--danger); }
.meta-cat-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.meta-cat-name { font-size: 13px; font-weight: 500; }
.meta-cat-values {
  font-size: 11px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
.meta-cat-bar {
  height: 6px; background: var(--bg3, #f1f5f9); border-radius: 3px; overflow: hidden;
}
.meta-cat-bar-fill {
  height: 100%; border-radius: 3px;
  transition: width .5s ease;
}

/* Resultado card */
.meta-resultado-card {
  background: var(--card, #fff);
  border: 1px solid var(--card-border, #e2e8f0);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.meta-resultado-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.meta-resultado-label { font-size: 13px; color: var(--muted); }
.meta-resultado-valor {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; font-weight: 600;
}

/* ---- COMISSOES ---- */
.com-prof-card {
  background: var(--card, #fff);
  border: 1px solid var(--card-border, #e2e8f0);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s;
}
.com-prof-card:hover { border-color: var(--verde); }
.com-prof-nome {
  font-size: 15px; font-weight: 600; color: var(--text);
  margin-bottom: 2px;
}
.com-prof-mod {
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.com-prof-stats {
  display: flex; gap: 16px; margin-top: 10px;
  flex-wrap: wrap;
}
.com-prof-stat {
  font-size: 12px; color: var(--muted);
}
.com-prof-stat strong {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
}
.com-prof-right { text-align: right; }
.com-prof-valor-amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--purple, #a855f7);
  line-height: 1.1;
}
.com-prof-valor-label {
  font-size: 10px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px;
}
.com-prof-actions {
  display: flex; gap: 6px; margin-top: 8px; justify-content: flex-end;
}

/* DRE mini chart - dual bars */
.chart-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 2px;
}
.chart-bar-duo {
  display: flex; gap: 1px; align-items: flex-end;
  width: 100%; height: 100%;
}
.chart-bar-green {
  flex: 1; background: var(--verde); border-radius: 2px 2px 0 0;
  min-height: 2px; transition: height .4s;
}
.chart-bar-red {
  flex: 1; background: var(--danger); border-radius: 2px 2px 0 0;
  min-height: 2px; transition: height .4s; opacity: .7;
}

/* ---- ESTOQUE ---- */
.grid-2col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

/* Tabela financeiro reutilizada */
.fin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.fin-table th {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--muted);
  text-transform: uppercase;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 2px solid var(--bg3, #f1f5f9);
}
.fin-table td {
  padding: 10px;
  border-bottom: 1px solid var(--bg3, #f1f5f9);
  color: var(--text);
  vertical-align: middle;
}
.fin-table tr:hover td {
  background: rgba(34,197,94,.03);
}
.filter-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ---- CHAT FINANCEIRO WIDGET ---- */
.chat-fin-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--verde);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(34,197,94,.35);
  transition: all .2s;
  z-index: 1000;
}
.chat-fin-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(34,197,94,.45);
}
.chat-fin-fab.active {
  background: var(--danger);
  box-shadow: 0 4px 16px rgba(239,68,68,.35);
}

.chat-fin-widget {
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: 400px;
  height: 520px;
  background: var(--card, #fff);
  border: 1px solid var(--card-border, #e2e8f0);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  z-index: 999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all .25s ease;
}
.chat-fin-widget.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chat-fin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--verde);
  color: #fff;
  font-size: 14px;
}
.chat-fin-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  opacity: 0.8;
  line-height: 1;
}
.chat-fin-close:hover { opacity: 1; }

.chat-fin-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 85%;
}
.chat-msg-user {
  align-self: flex-end;
}
.chat-msg-assistant {
  align-self: flex-start;
}
.chat-msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}
.chat-msg-user .chat-msg-bubble {
  background: var(--verde);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg-assistant .chat-msg-bubble {
  background: var(--bg2, #f8fafc);
  color: var(--text);
  border: 1px solid var(--bg3, #e2e8f0);
  border-bottom-left-radius: 4px;
}
.chat-msg-time {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
  padding: 0 4px;
}
.chat-msg-user .chat-msg-time { text-align: right; }

.chat-fin-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
}
.typing-dots {
  display: flex;
  gap: 3px;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing-bounce 1.4s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

.chat-fin-suggestions {
  display: flex;
  gap: 6px;
  padding: 6px 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--bg3, #f1f5f9);
}
.chat-fin-suggestions button {
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--bg3, #e2e8f0);
  background: var(--card, #fff);
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
  font-family: 'DM Sans', sans-serif;
}
.chat-fin-suggestions button:hover {
  border-color: var(--verde);
  color: var(--verde);
}

.chat-fin-input-area {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--bg3, #f1f5f9);
  background: var(--bg2, #f8fafc);
}
.chat-fin-input {
  flex: 1;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--bg3, #e2e8f0);
  background: var(--card, #fff);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}
.chat-fin-input:focus { border-color: var(--verde); }
.chat-fin-input::placeholder { color: var(--muted); }
.chat-fin-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--verde);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.chat-fin-send:hover { background: #16a34a; }

/* Responsive */
@media (max-width: 1100px) {
  .fin-gauge-grid { grid-template-columns: repeat(2, 1fr); }
  .fin-health-right { gap: 16px; }
}
@media (max-width: 768px) {
  .fin-subtabs { flex-wrap: wrap; width: 100%; }
  .fin-subtab { flex: 1; text-align: center; font-size: 10px; padding: 6px 8px; }
  .dre-card { padding: 16px; }
  .dre-line { padding: 4px 8px; }
  .dre-line.dre-detail { padding-left: 16px; }
  .meta-gauge-container { width: 150px; height: 150px; }
  .meta-gauge-ring::after { width: 115px; height: 115px; top: 17.5px; left: 17.5px; }
  .metas-cat-grid { grid-template-columns: 1fr; }
  .com-prof-card { grid-template-columns: 1fr; }
  .com-prof-right { text-align: left; }
  .grid-2col { grid-template-columns: 1fr; }
  .chat-fin-widget { width: calc(100vw - 32px); right: 16px; bottom: 80px; height: 60vh; }
  .chat-fin-fab { bottom: 16px; right: 16px; }
  .fin-health-header { flex-direction: column; text-align: center; padding: 16px; }
  .fin-health-left { flex-direction: column; }
  .fin-health-right { justify-content: center; }
  .fin-health-month-progress { justify-content: center; }
  .fin-gauge-grid { grid-template-columns: repeat(2, 1fr); }
  .fin-gauge-container { width: 90px; height: 90px; }
  .fin-gauge-ring::after { width: 66px; height: 66px; top: 12px; left: 12px; }
  .fin-gauge-pct { font-size: 20px; }
  .fin-breakdown-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .fin-gauge-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fin-gauge-card { padding: 12px; }
  .fin-breakdown-grid { grid-template-columns: 1fr; }
  .fin-payment-grid { flex-direction: column; }
  .fin-health-right { flex-direction: column; gap: 12px; }
  .fin-health-score-ring { width: 64px; height: 64px; }
  .fin-health-score-ring::after { width: 48px; height: 48px; top: 8px; left: 8px; }
  .fin-health-score-value { font-size: 22px; }
}
