/* ==========================================================================
   TÁ NA MÃO. — FOLHA DE ESTILO ÚNICA E BLINDADA (100% LIGHT SOLAR FINTECH)
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;

  --bg-app: #F3F6FA;
  --bg-card: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --border-card: #E6ECF5;
  --shadow-card: 0 8px 26px -4px rgba(15, 23, 42, 0.04);

  --text-main: #0F172A;
  --text-body: #475569;
  --text-muted: #94A3B8;

  --brand-green: #10B981;
  --brand-green-soft: #D1FAE5;
  --brand-green-dark: #065F46;
  --brand-yellow: #FBBF24;
  --brand-pink: #FF2E63;

  --box-50: #2563EB;
  --box-30: #9333EA;
  --box-20: #10B981;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-body);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
strong,
.money-val {
  font-family: var(--font-display);
  color: var(--text-main);
  letter-spacing: -0.025em;
}

/* Modo Privacidade (Olhinho) */
body.hide-values .money-val {
  filter: blur(8px);
  user-select: none;
  transition: filter 0.2s ease;
}

/* ==========================================================================
   ESTRUTURA SHELL: SIDEBAR BRANCA + ÁREA PRINCIPAL
   ========================================================================== */
.tnm-shell {
  display: grid;
  grid-template-columns: 256px 1fr;
  min-height: 100vh;
}

.tnm-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border-card);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
}

.tnm-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 24px;
}

.tnm-brand-text strong {
  font-size: 22px;
  font-weight: 800;
  display: block;
  line-height: 1.05;
}

.tnm-brand-text strong span {
  color: var(--brand-green);
}

.tnm-brand-text small {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  margin-top: 3px;
}

.tnm-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.tnm-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-body);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.tnm-nav-link:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.tnm-nav-link.active {
  background: var(--brand-green-soft);
  color: var(--brand-green-dark);
  font-weight: 700;
}

.tnm-user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
}

.tnm-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFF;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tnm-user-info strong {
  font-size: 13.5px;
  display: block;
}

.tnm-user-info small {
  font-size: 11px;
  color: #059669;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tnm-main {
  padding: 26px 32px 60px;
  max-width: 1220px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ==========================================================================
   LINHA 1: CARD SAUDAÇÃO + 5 BOTÕES (8 COL) | FÔLEGO DA SEMANA (4 COL)
   ========================================================================== */
.tnm-top-grid {
  display: grid;
  grid-template-columns: 7.5fr 4.5fr;
  gap: 20px;
  align-items: stretch;
}

.tnm-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: flex-start !important;
  gap: 16px;
  height: 100%;
}

/* ==========================================================================
   TOPO PRINCIPAL DA HOME (HERO CARD UNIFICADO)
   ========================================================================== */
.tnm-hero-header {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid #F1F5F9;
  width: 100%;
}

.tnm-hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.tnm-hero-title {
  font-size: 24px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.tnm-hero-subtitle {
  font-size: 13px;
  color: #64748B;
  margin: 2px 0 0 0;
  font-weight: 500;
}

.tnm-month-switcher {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  min-width: max-content !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tnm-month-switcher button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-body);
  padding: 0 4px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.tnm-month-switcher button:hover {
  color: var(--brand-green);
}

.tnm-month-switcher span,
.tnm-month-label-text {
  white-space: nowrap !important;
  display: inline !important;
  letter-spacing: -0.01em;
  flex-shrink: 0 !important;
}

.tnm-hero-main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.tnm-hero-balance-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.tnm-balance-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.tnm-privacy-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  transition: color 0.15s ease;
}

.tnm-privacy-btn:hover {
  color: #059669;
}

.tnm-big-balance {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.tnm-balance-sub {
  font-size: 11.5px;
  color: #059669;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tnm-hero-badges-col {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.tnm-hero-metric-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 135px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  white-space: nowrap !important;
}

.tnm-hero-metric-card.income {
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.tnm-hero-metric-card.reserve {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.tnm-metric-header {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap !important;
}

.tnm-metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tnm-metric-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap !important;
}

.tnm-hero-metric-card.income .tnm-metric-label {
  color: #065F46;
}

.tnm-metric-value {
  font-size: 15.5px;
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums;
}

.tnm-hero-metric-card.income .tnm-metric-value {
  color: #047857;
}

/* Botão de Excluir Lançamento no Extrato */
.tnm-btn-delete-row {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  padding: 0;
}
.tnm-btn-delete-row:hover {
  background: #FEE2E2;
  color: #DC2626;
  border-color: #FECACA;
  transform: scale(1.05);
}

/* Botão de Editar Lançamento no Extrato */
.tnm-btn-edit-row {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  padding: 0;
}
.tnm-btn-edit-row:hover {
  background: #E0F2FE;
  color: #0284C7;
  border-color: #BAE6FD;
  transform: scale(1.05);
}

.tnm-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* 5 Botões de Ação Rápida (Estilo Nubank/PicPay — Fundo transparente e Squircle 48x48) */
.tnm-actions-dock {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding-top: 18px;
  margin-top: 16px;
  border-top: 1px solid #F1F5F9;
}

.tnm-action-btn,
.tnm-action-item {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  padding: 6px 2px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.18s ease;
  width: 100%;
}

.tnm-action-btn:hover,
.tnm-action-item:hover {
  transform: translateY(-2px);
  background: transparent;
}

.tnm-action-squircle {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.tnm-action-btn:hover .tnm-action-squircle {
  transform: scale(1.06);
}

.tnm-action-label,
.tnm-action-btn span,
.tnm-action-item span {
  font-size: 11.5px;
  font-weight: 700;
  color: #0F172A;
  text-align: center;
  line-height: 1.2;
}

/* 5 Squircles Coloridos Exclusivos */
.sq-audio {
  background: #D1FAE5;
  color: #059669;
}

.sq-expense {
  background: #FFE4E6;
  color: #E11D48;
}

.sq-income {
  background: #FEF3C7;
  color: #D97706;
}

.sq-bills {
  background: #DBEAFE;
  color: #2563EB;
}

.sq-report {
  background: #F3E8FF;
  color: #7C3AED;
}

/* Card Velocímetro Fôlego da Semana (Moderno, Nítido e Zero Sobreposição) */
.tnm-card-gauge {
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between !important;
}

.tnm-gauge-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.tnm-gauge-top-row h3 {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.tnm-gauge-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 2px 0 6px;
  gap: 2px;
}

.tnm-gauge-svg-wrap {
  width: 180px;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tnm-gauge-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tnm-gauge-text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 4px;
}

.tnm-gauge-title {
  font-size: 11px;
  color: #64748B;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.tnm-gauge-val {
  font-size: 26px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.15;
  margin: 2px 0 1px;
  letter-spacing: -0.02em;
}

.tnm-gauge-sub {
  font-size: 12px;
  color: #94A3B8;
  font-weight: 600;
  line-height: 1;
}

/* ==========================================================================
   LINHA 2: AS 3 CAIXAS DO SEU DINHEIRO (50 • 30 • 20)
   ========================================================================== */
.tnm-section-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: -8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tnm-boxes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.tnm-box-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.tnm-box-banner {
  height: 88px;
  width: 100%;
  overflow: hidden;
  display: flex;
}

.tnm-box-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.tnm-box-body h3 {
  font-size: 17px;
  font-weight: 800;
}

.tnm-box-sub {
  font-size: 13.5px;
  color: var(--text-body);
  font-weight: 500;
}

/* Barra Segmentada em 3 Pílulas */
.tnm-segmented-bar {
  display: grid;
  grid-template-columns: 2fr 1.2fr 0.8fr;
  gap: 6px;
  margin-top: 6px;
}

.tnm-seg-track {
  height: 10px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
}

.tnm-seg-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* ==========================================================================
   LINHA 3: ÚLTIMAS DO SEU ZAP (6 COL) | RADAR DE BOLETOS (6 COL)
   ========================================================================== */
.tnm-bottom-grid {
  display: grid;
  grid-template-columns: 5.5fr 6.5fr;
  gap: 20px;
  align-items: stretch;
}

.tnm-bottom-grid .tnm-card {
  justify-content: flex-start;
  gap: 14px;
}

.tnm-zap-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  width: 100%;
}

.tnm-zap-bubble {
  padding: 12px 16px;
  border-radius: 16px 16px 16px 4px;
  background: #D1FAE5;
  color: #064E3B;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 92%;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.tnm-zap-bubble.alt {
  background: #F1F5F9;
  color: #0F172A;
  border-radius: 16px 16px 4px 16px;
  align-self: flex-end;
  width: 92%;
}

.tnm-boletos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
  width: 100%;
}

.tnm-boleto-mini {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 140px;
}

.tnm-boleto-dashed {
  border: 2px dashed #CBD5E1;
  background: #F8FAFC;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 8px;
  color: #64748B;
  min-height: 140px;
}

.tnm-boleto-dashed:hover {
  border-color: #10B981;
  color: #065F46;
  background: #F0FDF4;
  transform: translateY(-2px);
}

/* Selos e Linhas Matemáticas */
.tnm-pill-status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tnm-pill-status.healthy {
  background: #D1FAE5;
  color: #065F46;
}

.tnm-pill-status.warning {
  background: #FEF3C7;
  color: #B45309;
}

.tnm-gauge-stat-bar {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 8px 14px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #475569;
  margin-top: 10px;
}

.tnm-box-math {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 12px;
}

.badge-pct {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

.badge-pct.b50 {
  background: #DBEAFE;
  color: #1E40AF;
}

.badge-pct.b30 {
  background: #F3E8FF;
  color: #7E22CE;
}

.badge-pct.b20 {
  background: #DCFCE7;
  color: #15803D;
}

/* Controles de Busca e Filtro na Aba Extrato */
.tnm-search-box {
  padding: 7px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 999px;
  font-size: 13px;
  outline: none;
  background: #FFFFFF;
  width: 220px;
  transition: border-color 0.15s;
}

.tnm-search-box:focus {
  border-color: #10B981;
}

.tnm-filter-sum {
  font-size: 12.5px;
  font-weight: 700;
  color: #0F172A;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 6px 14px;
  border-radius: 999px;
}

/* Cards de Bancos com Barra de Progresso Translúcida */
.tnm-bank-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 6px;
}

.tnm-bank-bar-fill {
  height: 100%;
  background: #FFFFFF;
  border-radius: 999px;
}

.tnm-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.tnm-btn-glass {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: background 0.15s;
}

.tnm-btn-glass:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Grid de Especificações do Orçamento (budget_specs) */
.tnm-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.tnm-spec-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

/* Relatório Executivo 4 Indicadores & 2 Colunas */
.tnm-exec-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}

.tnm-exec-stat {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tnm-report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.tnm-btn-paguei {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  width: 100%;
  transition: all 0.15s ease;
}

.tnm-btn-paguei:hover {
  background: #10B981;
  color: #FFFFFF;
}

/* ==========================================================================
   PAINEL DE FLUXO & ORÇAMENTO VISUAL (EXTRATO & CONTAS DO MÊS)
   ========================================================================== */
.tnm-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.tnm-flow-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.tnm-flow-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.tnm-flow-card.income {
  border-left: 5px solid #10B981;
}

.tnm-flow-card.expense {
  border-left: 5px solid #EF4444;
}

.tnm-flow-card.balance {
  border-left: 5px solid #3B82F6;
}

.tnm-flow-card-lbl {
  font-size: 11px;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tnm-flow-card-val {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 6px 0 4px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.tnm-flow-card.income .tnm-flow-card-val {
  color: #059669;
}

.tnm-flow-card.expense .tnm-flow-card-val {
  color: #0F172A;
}

.tnm-flow-card.balance .tnm-flow-card-val {
  color: #2563EB;
}

.tnm-flow-card-sub {
  font-size: 12px;
  color: #64748B;
  line-height: 1.3;
}

.tnm-flow-card-action {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #2563EB;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.tnm-flow-card-action:hover {
  text-decoration: underline;
  color: #1D4ED8;
}

/* Faixa / Balão de Dica Proativa do Mentor no Zap */
.tnm-mentor-strip {
  background: linear-gradient(135deg, #ECFDF5 0%, #F0FDF4 100%);
  border: 1.5px solid #A7F3D0;
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.06);
}

.tnm-mentor-strip-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tnm-mentor-avatar-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #10B981;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

.tnm-account-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  background: #F1F5F9;
  color: #334155;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  white-space: nowrap;
}

/* ==========================================================================
   LISTAS DE EXTRATO, CARTEIRA DE BANCOS REAIS & MODAL
   ========================================================================== */
.tnm-list-row {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.tnm-bank-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.tnm-real-card {
  border-radius: 22px;
  padding: 24px;
  color: #FFFFFF;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.22);
}

.tnm-real-card h3,
.tnm-real-card strong {
  color: #FFFFFF;
}

.tnm-btn-primary {
  background: var(--brand-green);
  color: #FFFFFF;
  border: none;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
}

.tnm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.tnm-modal {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 28px;
  width: 92%;
  max-width: 460px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.tnm-field {
  margin-bottom: 14px;
}

.tnm-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.tnm-field input,
.tnm-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  font-size: 14px;
  font-family: var(--font-sans);
}

/* ==========================================================================
   COMPONENTES MOBILE NATIVOS (HEADER & BOTTOM BAR - OCULTOS NO DESKTOP)
   ========================================================================== */
.tnm-mobile-header {
  display: none;
}

.tnm-mobile-nav {
  display: none;
}

/* ==========================================================================
   FAIXA DE VISUALIZAÇÃO DO ADMINISTRADOR NO APP DO CLIENTE
   ========================================================================== */
.tnm-admin-view-bar {
  background: #0F172A;
  color: #F8FAFC;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid #1E293B;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.tnm-admin-view-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tnm-admin-view-left svg {
  flex-shrink: 0;
}

.desktop-view-text {
  display: inline;
}

.mobile-view-text {
  display: none;
}

.tnm-admin-view-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tnm-admin-view-btn {
  background: #059669;
  color: #FFFFFF !important;
  text-decoration: none;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.tnm-admin-view-btn:hover {
  background: #047857;
  transform: translateY(-1px);
}

.tnm-admin-view-logout {
  color: #94A3B8;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.tnm-admin-view-logout:hover {
  color: #F8FAFC;
}

/* ==========================================================================
   BARRA DE SUPORTE / IMPERSONATE (ADMIN VISUALIZANDO CONTA DO CLIENTE)
   ========================================================================== */
.tnm-impersonate-bar {
  background: #FFFBEB;
  border-bottom: 2px solid #FCD34D;
  color: #92400E;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

.tnm-impersonate-btn {
  background: #D97706;
  color: #FFFFFF !important;
  text-decoration: none;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease;
}

.tnm-impersonate-btn:hover {
  background: #B45309;
}

/* ==========================================================================
   CARD TRACEJADO INTERATIVO (+ ADICIONAR BANCO / CONTA FIXA)
   ========================================================================== */
.tnm-card-dashed {
  background: #F8FAFC !important;
  border: 2px dashed #CBD5E1 !important;
  border-radius: 22px !important;
  min-height: 190px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  cursor: pointer !important;
  color: #64748B !important;
  transition: all 0.2s ease !important;
  padding: 20px !important;
}

.tnm-card-dashed:hover {
  border-color: #10B981 !important;
  background: #ECFDF5 !important;
  color: #065F46 !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   ESTILOS DE LOGIN, SENHA E ATIVAÇÃO (login.php - 100% LIGHT FINTECH)
   ========================================================================== */
.tnm-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F8FAFC;
  padding: 28px 20px;
  position: relative;
  overflow: hidden;
}

/* Ambient Auras */
.tnm-login-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}
.tnm-glow-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.14) 0%, transparent 70%);
  top: -120px;
  left: -100px;
}
.tnm-glow-2 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.10) 0%, transparent 70%);
  bottom: -100px;
  right: -80px;
}

.tnm-login-container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  width: 100%;
  max-width: 1060px;
  min-height: 640px;
  background: #FFFFFF;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 25px 70px -15px rgba(15, 23, 42, 0.10), 0 0 0 1px #E2E8F0;
  position: relative;
  z-index: 10;
}

/* Coluna Visual Esquerda */
.tnm-login-art-panel {
  background: linear-gradient(150deg, #ECFDF5 0%, #F0FDF4 45%, #D1FAE5 100%);
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #A7F3D0;
  position: relative;
}

.tnm-art-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.tnm-art-badge {
  background: #FFFFFF;
  color: #059669;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #A7F3D0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
}

.tnm-art-content {
  margin: 18px 0;
}

.tnm-art-hero-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid #FFFFFF;
  box-shadow: 0 16px 36px -8px rgba(6, 78, 59, 0.18), 0 4px 12px rgba(15, 23, 42, 0.05);
  background: #FFFFFF;
  margin-bottom: 18px;
}

.tnm-art-hero-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.tnm-art-hero-overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
}

.tnm-hero-chip {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tnm-art-text h2 {
  font-size: 21px;
  font-weight: 800;
  color: #064E3B;
  margin: 0 0 6px 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.tnm-art-text p {
  font-size: 13px;
  color: #047857;
  margin: 0;
  line-height: 1.5;
  font-weight: 500;
}

.tnm-art-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.tnm-art-pillar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 14px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pillar-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  width: fit-content;
  text-transform: uppercase;
}
.pillar-tag.b50 { background: #DBEAFE; color: #1E40AF; }
.pillar-tag.b30 { background: #F3E8FF; color: #7E22CE; }
.pillar-tag.b20 { background: #DCFCE7; color: #15803D; }

.tnm-art-pillar strong {
  font-size: 12px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
}

.tnm-art-pillar small {
  font-size: 10.5px;
  color: #64748B;
  line-height: 1.2;
  white-space: nowrap;
}

.tnm-art-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #065F46;
  padding-top: 12px;
  border-top: 1px solid rgba(16, 185, 129, 0.20);
}

.trust-stars {
  color: #F59E0B;
  font-size: 13px;
  letter-spacing: 1px;
}

/* Coluna Formulário Direita */
.tnm-login-form-panel {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Mobile Hero Banner (Visível <= 980px) */
.tnm-mobile-login-hero {
  display: none;
}

.tnm-input-with-action {
  position: relative;
  width: 100%;
}

.tnm-input-with-action input {
  padding-right: 44px !important;
}

.tnm-eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #64748B;
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color 0.15s ease;
}
.tnm-eye-btn:hover {
  color: #059669;
}

/* Demo Box para Acesso Rápido */
.tnm-demo-box {
  margin-top: 22px;
  padding: 14px 16px;
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 16px;
}

.tnm-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.tnm-demo-btn {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  padding: 10px 12px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tnm-demo-btn:hover {
  background: #FFFFFF;
  border-color: #10B981;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.12);
}

.tnm-demo-btn.admin {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
}

.tnm-demo-btn.admin:hover {
  background: #1E293B;
  border-color: #334155;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.20);
}

.tnm-demo-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #0F172A;
}
.tnm-demo-btn.admin .tnm-demo-title {
  color: #FFFFFF;
}

.tnm-demo-sub {
  font-size: 11px;
  color: #64748B;
}
.tnm-demo-btn.admin .tnm-demo-sub {
  color: #94A3B8;
}

/* Responsividade Mobile e Tablet */
@media (max-width: 980px) {
  .tnm-login-wrapper {
    padding: 16px 12px;
  }

  .tnm-login-container {
    grid-template-columns: 1fr;
    max-width: 520px;
    border-radius: 26px;
    min-height: auto;
  }

  .tnm-login-art-panel {
    display: none;
  }

  .tnm-login-form-panel {
    padding: 26px 20px;
  }

  .tnm-mobile-login-hero {
    display: block;
    margin-bottom: 20px;
  }

  .tnm-mobile-logo-wrap {
    margin-bottom: 14px;
    display: flex;
    justify-content: center;
  }

  .tnm-mobile-hero-img-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #FFFFFF;
    box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.10);
    max-height: 170px;
  }

  .tnm-mobile-hero-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .tnm-mobile-hero-chip {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
  }
}

@media (max-width: 480px) {
  .tnm-demo-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ESTILOS DO BACKOFFICE ADMINISTRATIVO (admin.php - CENTRAL DO SAAS)
   ========================================================================== */
.tnm-admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.tnm-admin-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-card);
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 25;
}

.tnm-admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.tnm-admin-stat-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tnm-admin-table-container {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.tnm-admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.tnm-admin-table th {
  background: #F8FAFC;
  padding: 14px 18px;
  font-weight: 700;
  color: #64748B;
  border-bottom: 1px solid #E2E8F0;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.tnm-admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}

.tnm-admin-table tr:hover td {
  background: #FAFAFA;
}

.tnm-admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

.tnm-admin-badge.paid {
  background: #DCFCE7;
  color: #166534;
}

.tnm-admin-badge.trial {
  background: #FEF3C7;
  color: #92400E;
}

.tnm-admin-badge.pending {
  background: #FEE2E2;
  color: #991B1B;
}

.tnm-admin-badge.active {
  background: #E0E7FF;
  color: #3730A3;
}

.tnm-admin-badge.suspended {
  background: #F1F5F9;
  color: #64748B;
}

.tnm-admin-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tnm-admin-btn:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
}

.tnm-admin-btn-zap {
  background: #D1FAE5;
  border-color: #10B981;
  color: #065F46;
  font-weight: 700;
}

.tnm-admin-btn-zap:hover {
  background: #A7F3D0;
}

/* ==========================================================================
   CONFIGURAÇÕES DO USUÁRIO & INTEGRAÇÃO WHATSAPP (MODAL EXPANDIDO)
   ========================================================================== */
.tnm-profile-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #E2E8F0;
  margin-bottom: 20px;
}

.tnm-profile-tab-btn {
  padding: 10px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-weight: 700;
  font-size: 13.5px;
  color: #64748B;
  cursor: pointer;
  margin-bottom: -2px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tnm-profile-tab-btn.active {
  color: #10B981;
  border-bottom-color: #10B981;
}

.tnm-avatar-preview-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  background: #F8FAFC;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
}

.tnm-avatar-preview-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #10B981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
  background: #E6F9F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #065F46;
  flex-shrink: 0;
}

.tnm-avatar-picker-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tnm-avatar-option {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #E2E8F0;
  cursor: pointer;
  transition: all 0.15s ease;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
}

.tnm-avatar-option:hover,
.tnm-avatar-option.selected {
  border-color: #10B981;
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.tnm-whatsapp-card {
  background: #F0FDF4;
  border: 1.5px solid #BBF7D0;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 18px;
}

.tnm-wa-instruction-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
}

.tnm-wa-step-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #15803D;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

/* ==========================================================================
   ILUSTRAÇÕES 2D INTEGRADAS NO LAYOUT SOLAR (BANNERS 50-30-20)
   ========================================================================== */
.tnm-box-art-header {
  width: 100%;
  height: 88px;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.tnm-box-art-50 {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-bottom: 1px solid #BFDBFE;
}

.tnm-box-art-30 {
  background: linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 100%);
  border-bottom: 1px solid #E9D5FF;
}

.tnm-box-art-20 {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border-bottom: 1px solid #A7F3D0;
}

.tnm-box-art-img {
  height: 68px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

.tnm-running-visual {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.tnm-coffee-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  vertical-align: middle;
}

.tnm-doggie-gif {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
}

/* ==========================================================================
   RESPONSIVIDADE MOBILE & TABLET (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  /* Layout fluído: eliminar barra lateral e evitar overflow horizontal */
  .tnm-shell,
  .tnm-admin-shell,
  .admin-shell {
    display: block !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    grid-template-columns: 1fr !important;
  }

  .tnm-sidebar {
    display: none !important;
  }

  .tnm-admin-header {
    display: none !important;
  }

  /* Padding inferior de 96px para a bottom tab bar nunca cobrir conteúdo */
  .tnm-main,
  .admin-main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 16px 96px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* Header Superior Mobile Nativo */
  .tnm-mobile-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 16px;
    background: #FFFFFF;
    border-bottom: 1px solid #E6ECF5;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  }

  /* Barra Fixa Inferior Mobile com 4 Abas */
  .tnm-mobile-nav {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 68px;
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid #E2E8F0 !important;
    z-index: 100 !important;
    padding: 6px 8px;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
  }

  .tnm-mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 2px;
    color: #64748B;
    transition: all 0.15s ease;
    gap: 3px;
    -webkit-tap-highlight-color: transparent;
  }

  .tnm-mobile-nav-btn span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1;
  }

  .tnm-mobile-nav-btn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    transition: all 0.15s ease;
  }

  .tnm-mobile-nav-btn.active {
    color: #059669 !important;
  }

  .tnm-mobile-nav-btn.active svg {
    stroke: #059669 !important;
    transform: scale(1.08);
  }

  .tnm-mobile-nav-btn.active span {
    font-weight: 800;
  }

  /* Grid de Métricas do Admin: 2x2 no mobile */
  .tnm-admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .tnm-admin-stat-card {
    padding: 16px !important;
    border-radius: 16px !important;
  }

  /* Tabelas do Admin com rolagem touch fluida */
  .tnm-admin-table-container,
  .table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .tnm-admin-table {
    min-width: 680px !important;
  }

  .tnm-top-grid,
  .tnm-boxes-grid,
  .tnm-bottom-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Layout harmônico para o hero no tablet/laptop estreito */
  .tnm-hero-main-row {
    flex-wrap: wrap !important;
    gap: 16px !important;
  }

  .tnm-hero-badges-col {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 4px !important;
  }

  .tnm-hero-metric-card {
    min-width: 0 !important;
  }

  .tnm-boletos-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
}

/* ==========================================================================
   AJUSTES FINOS MOBILE NATIVO (<= 640px — CELULARES)
   ========================================================================== */
@media (max-width: 640px) {
  /* Faixa de Administrador compacta em uma linha */
  .tnm-admin-view-bar {
    padding: 8px 12px !important;
  }

  .desktop-view-text,
  .desktop-only-link {
    display: none !important;
  }

  .mobile-view-text {
    display: inline !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
  }

  .tnm-admin-view-btn {
    padding: 5px 11px !important;
    font-size: 11px !important;
  }

  /* Hero da Home organizado de forma limpa e simétrica no celular */
  .tnm-hero-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding: 16px 14px !important;
  }

  .tnm-hero-top-row {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .tnm-hero-title {
    font-size: 19px !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  .tnm-hero-subtitle {
    display: none !important;
  }

  .tnm-month-switcher {
    padding: 4px 10px !important;
    font-size: 11.5px !important;
    gap: 6px !important;
  }

  .tnm-hero-main-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .tnm-hero-balance-col {
    gap: 2px !important;
  }

  .tnm-balance-label {
    font-size: 12px !important;
  }

  .tnm-big-balance {
    font-size: 28px !important;
    line-height: 1.1 !important;
  }

  .tnm-balance-sub {
    font-size: 10.5px !important;
  }

  .tnm-hero-badges-col {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .tnm-hero-metric-card {
    min-width: 0 !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
  }

  .tnm-metric-label {
    font-size: 10px !important;
    white-space: nowrap !important;
  }

  .tnm-metric-value {
    font-size: 13.5px !important;
    white-space: nowrap !important;
    letter-spacing: -0.01em;
  }

  /* 5 Botões de Ação na Home (Squircles 44x44, rótulos 10px) */
  .tnm-actions-dock {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 4px !important;
    padding-top: 14px !important;
    margin-top: 14px !important;
  }

  .tnm-action-btn,
  .tnm-action-item {
    padding: 2px 0 !important;
  }

  .tnm-action-squircle {
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
  }

  .tnm-action-squircle svg {
    width: 22px !important;
    height: 22px !important;
  }

  .tnm-action-label {
    font-size: 10px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }

  /* Boletos no mobile: 1 coluna */
  .tnm-boletos-grid {
    grid-template-columns: 1fr !important;
  }

  /* Grid de fluxo e mentor no mobile */
  .tnm-flow-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .tnm-mentor-strip {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  /* Modais ocupam folha inferior táctil no celular */
  .tnm-modal-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    margin-top: auto !important;
    max-height: 90vh !important;
  }

  .tnm-modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .tnm-login-container {
    grid-template-columns: 1fr !important;
    border-radius: 24px !important;
  }

  .tnm-login-form-panel {
    padding: 32px 20px !important;
  }
}

/* ==========================================================================
   FRENTE 1: DROPZONE & PREVIEW DE EXTRAÇÃO DE DOCUMENTOS (IA MULTIMODAL)
   ========================================================================== */
.tnm-dropzone {
  border: 2px dashed #94A3B8;
  border-radius: 16px;
  background: #F8FAFC;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tnm-dropzone:hover,
.tnm-dropzone.dragover {
  border-color: #10B981;
  background: #ECFDF5;
}

.tnm-dropzone-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.tnm-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 14px;
}

.tnm-preview-table th {
  background: #F1F5F9;
  color: #475569;
  text-align: left;
  padding: 8px 10px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tnm-preview-table td {
  padding: 10px;
  border-bottom: 1px solid #E2E8F0;
  color: #0F172A;
}

.tnm-badge-dup {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FEF3C7;
  color: #92400E;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid #FDE68A;
}

/* ==========================================================================
   FRENTE 4: AÇÕES RÁPIDAS POR SWIPE (TOUCH MOBILE)
   ========================================================================== */
.tnm-swipe-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 8px;
  user-select: none;
}

.tnm-swipe-bg-left,
.tnm-swipe-bg-right {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  padding: 0 20px;
  z-index: 1;
}

.tnm-swipe-bg-left {
  left: 0;
  right: 50%;
  background: #059669;
  justify-content: flex-start;
  gap: 6px;
}

.tnm-swipe-bg-right {
  right: 0;
  left: 50%;
  background: #DC2626;
  justify-content: flex-end;
  gap: 6px;
}

.tnm-swipe-content {
  position: relative;
  background: #FFFFFF;
  z-index: 2;
  transition: transform 0.15s ease-out;
  touch-action: pan-y;
}

/* Banner de Notificações Push */
.tnm-push-banner {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border-radius: 16px;
  padding: 14px 18px;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* ==========================================================================
   FRENTE 2: FOLHA DE ESTILO DE IMPRESSÃO (PDF ELEGANTE WINDOW.PRINT)
   ========================================================================== */
@media print {
  /* Oculta elementos de navegação e controles */
  .tnm-sidebar,
  .tnm-mobile-header,
  .tnm-mobile-nav,
  .tnm-admin-view-bar,
  .tnm-actions-dock,
  .tnm-btn-primary,
  .tnm-btn-glass,
  .tnm-btn-paguei,
  .tnm-card-actions,
  .tnm-month-switcher button,
  .tnm-privacy-btn,
  .tnm-push-banner,
  .tnm-mentor-strip,
  #modal-root,
  .tnm-print-hide {
    display: none !important;
  }

  body, .tnm-app-shell, .tnm-main {
    background: #FFFFFF !important;
    color: #0F172A !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .tnm-card, .tnm-real-card, .tnm-hero-metric-card, .tnm-spec-card {
    box-shadow: none !important;
    border: 1px solid #CBD5E1 !important;
    background: #FFFFFF !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    margin-bottom: 12px !important;
  }

  .money-val {
    color: #0F172A !important;
    font-weight: 800 !important;
  }

  @page {
    margin: 12mm;
    size: A4 portrait;
  }
}

