:root {
  --navy: #1B2F5F;
  --ciano: #1BACE4;
  --fundo: #F2F5F9;
  --texto: #2A3A5C;
  --texto-suave: #5A6B8C;
  --borda: #E4E9F0;
  --verde: #1D9E75;
}

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--fundo);
  color: var(--texto);
  font-size: 14px;
}

/* ---------- Layout geral ---------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 210px;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 18px 0;
  position: sticky;
  top: 0;
  height: 100vh;
}

.logo {
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0 20px 20px;
}
.logo span { color: var(--ciano); }

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

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: #B9C4DE;
  text-decoration: none;
  font-size: 13.5px;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.sidebar nav a i { font-size: 18px; }
.sidebar nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.sidebar nav a.ativo {
  background: rgba(27, 172, 228, 0.18);
  border-left-color: var(--ciano);
  color: #fff;
}
.sidebar nav a.desabilitado { opacity: 0.45; cursor: not-allowed; }
.sidebar nav a.desabilitado:hover { background: none; color: #B9C4DE; }

.sidebar nav .grupo-menu {
  padding: 14px 20px 4px;
  color: #6B7BA3;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar nav a.sub { padding-left: 38px; font-size: 13px; }
.sidebar nav a.sub i { font-size: 16px; }

.rodape-sidebar {
  padding: 12px 20px 0;
  font-size: 11px;
  color: #6B7BA3;
}

.conteudo { flex: 1; padding: 22px 28px; min-width: 0; }

/* ---------- Topo ---------- */
.topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.topo h1 { font-size: 19px; font-weight: 600; color: var(--navy); }

.usuario { display: flex; align-items: center; gap: 10px; }
.usuario .nome { font-size: 13px; color: var(--texto-suave); }
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}
.sair { color: var(--texto-suave); font-size: 18px; text-decoration: none; }
.sair:hover { color: #C0392B; }

/* ---------- Cartões KPI ---------- */
.cartoes-kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.kpi { background: #fff; border-radius: 10px; padding: 14px 16px; border: 1px solid var(--borda); }
.kpi-rotulo { font-size: 12px; color: var(--texto-suave); margin-bottom: 4px; }
.kpi-valor { font-size: 24px; font-weight: 600; color: var(--navy); }
.kpi-valor.verde { color: var(--verde); }

/* ---------- Filtros ---------- */
.filtros { display: flex; gap: 8px; margin-bottom: 14px; }
.chip {
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  background: #fff;
  color: var(--texto-suave);
  border: 1px solid var(--borda);
}
.chip.ativo { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Tabela ---------- */
.cartao-tabela { background: #fff; border-radius: 10px; border: 1px solid var(--borda); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--texto-suave);
  padding: 10px 14px;
  border-bottom: 1px solid var(--borda);
  background: #FAFBFD;
}
td { padding: 10px 14px; border-bottom: 1px solid var(--borda); }
tr:last-child td { border-bottom: none; }
td.vazio {
  text-align: center;
  color: var(--texto-suave);
  padding: 44px 14px;
  line-height: 1.7;
}
td.vazio i { font-size: 30px; color: #C7CEDA; }
td.vazio small { font-size: 12px; color: #9AA7C2; }

/* ---------- Mensagens flash ---------- */
.flash {
  background: #FDF3E7;
  color: #8A5A14;
  border: 1px solid #F3DFC0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13px;
}
.flash.erro { background: #FCEBEB; color: #A32D2D; border-color: #F3C9C9; }

/* ---------- Barra de ações (busca + botão) ---------- */
.barra-acoes {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.busca {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: 8px;
  padding: 0 12px;
  max-width: 420px;
}
.busca i { color: var(--texto-suave); font-size: 16px; }
.busca input { border: none; outline: none; padding: 9px 0; font-size: 13.5px; width: 100%; background: transparent; }
.contagem { font-size: 12px; color: var(--texto-suave); margin-left: auto; }

.botao-primario {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ciano);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.botao-primario:hover { background: #1697C9; }
.botao-secundario {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--texto-suave);
  border: 1px solid var(--borda);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13.5px;
  cursor: pointer;
  text-decoration: none;
}
.botao-secundario:hover { border-color: #C7CEDA; color: var(--texto); }

/* ---------- Selos de status ---------- */
.selo {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: capitalize;
}
.selo-verde { background: #EAF6F0; color: #1D9E75; }
.selo-ambar { background: #FDF3E7; color: #B07818; }
.selo-vermelho { background: #FCEBEB; color: #A32D2D; }
.selo-navy { background: #E7EBF5; color: var(--navy); }
.selo-cinza { background: #EEF1F5; color: var(--texto-suave); }
.texto-suave { color: var(--texto-suave); }
.texto-vermelho { color: #A32D2D; font-weight: 600; }

/* ---------- Ações da tabela ---------- */
td.acoes { white-space: nowrap; }
td.acoes a, td.acoes button {
  background: none;
  border: none;
  color: var(--texto-suave);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 5px;
  text-decoration: none;
}
td.acoes a:hover { color: var(--ciano); }
td.acoes button:hover { color: #C0392B; }
td.acoes form { display: inline; }
td.trunca { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aliq-zerada { color: #C0392B; font-weight: 600; }
th.grupo-imp { background: #EDF4FB; color: #185FA5; }
th.grupo-vda { background: #EAF6F0; color: #0F6E56; }
.nota { font-size: 12px; color: var(--texto-suave); margin-top: 10px; }

/* ---------- Selos extras ---------- */
.selo-azul { background: #E6F1FB; color: #185FA5; }
.selo-ciano { background: #E0F4FC; color: #0B6E96; text-transform: none; }
.selo-teal { background: #E1F5EE; color: #085041; text-transform: none; }

/* ---------- Linha do tempo do pedido ---------- */
.linha-tempo {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: 10px;
  padding: 16px 22px;
  margin-bottom: 16px;
}
.passo { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 86px; }
.bolinha {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #EEF1F5;
  color: var(--texto-suave);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}
.rotulo-passo { font-size: 11.5px; color: var(--texto-suave); white-space: nowrap; }
.passo.feito .bolinha { background: var(--verde); color: #fff; }
.passo.feito .rotulo-passo { color: var(--verde); }
.passo.atual .bolinha { background: var(--ciano); color: #fff; box-shadow: 0 0 0 4px rgba(27, 172, 228, 0.2); }
.passo.atual .rotulo-passo { color: var(--navy); font-weight: 600; }
.trilho { flex: 1; height: 2px; background: var(--borda); margin: 0 6px 18px; }
.trilho.feito { background: var(--verde); }

/* ---------- Cartão de ação da etapa ---------- */
.cartao-acao {
  background: #fff;
  border: 1px solid var(--borda);
  border-left: 4px solid var(--ciano);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.cartao-acao h2 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}
.cartao-acao h2 i { color: var(--ciano); font-size: 18px; }

.form-linha { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.form-linha .campo { display: flex; flex-direction: column; min-width: 120px; }
.form-linha .campo label { font-size: 12px; font-weight: 600; color: var(--texto-suave); margin-bottom: 5px; }
.form-linha .campo input {
  padding: 9px 11px;
  border: 1px solid #CBD4E1;
  border-radius: 8px;
  font-size: 13.5px;
  outline: none;
}
.form-linha .campo input:focus { border-color: var(--ciano); box-shadow: 0 0 0 3px rgba(27, 172, 228, 0.18); }
.cartao-form-item {
  background: #fff;
  border: 1px dashed #C7CEDA;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.botao-perigo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  color: #A32D2D;
  border: 1px solid #F3C9C9;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}
.botao-perigo:hover { background: #FCEBEB; }

.seletor {
  padding: 8px 11px;
  border: 1px solid var(--borda);
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  color: var(--texto);
  outline: none;
}
.linha-link { cursor: pointer; }
.linha-link:hover td { background: #F7FAFD; }
.texto-area {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #CBD4E1;
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  resize: vertical;
}
.texto-area:focus { border-color: var(--ciano); box-shadow: 0 0 0 3px rgba(27, 172, 228, 0.18); }
.filtros a.chip { text-decoration: none; }

/* ---------- Demonstrativo ---------- */
.faixa-resultado {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}
.faixa-resultado i { font-size: 22px; }
.faixa-resultado.lucro { background: var(--verde); }
.faixa-resultado.prejuizo { background: #C0392B; }

.positivo { color: var(--verde); font-weight: 600; }
.negativo { color: #C0392B; font-weight: 600; }

.tabela-comparativa td:nth-child(n+2), .tabela-comparativa th:nth-child(n+2) { text-align: right; }
.tabela-comparativa .linha-destaque td {
  font-weight: 700;
  background: #F7FAFD;
  border-top: 2px solid var(--navy);
  font-size: 13.5px;
}
.tabela-comparativa .linha-destaque + .linha-destaque td { border-top: none; }

/* ---------- Documentos fiscais ---------- */
.lista-docs { display: flex; gap: 10px; flex-wrap: wrap; }
.doc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: #EEF1F5;
  color: var(--texto-suave);
}
.doc i { font-size: 15px; }
.doc.ok { background: #EAF6F0; color: var(--verde); }

.cartao-fiscal {
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.cabecalho-fiscal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cabecalho-fiscal h3 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 7px;
}
.cabecalho-fiscal h3 i { color: var(--ciano); font-size: 17px; }
.cabecalho-fiscal h3 small { font-weight: 400; color: var(--texto-suave); }

.grade-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.grade-mini .campo label { font-size: 11.5px; font-weight: 600; color: var(--texto-suave); margin-bottom: 4px; }
.grade-mini .campo input {
  padding: 8px 10px;
  border: 1px solid #CBD4E1;
  border-radius: 7px;
  font-size: 13px;
  outline: none;
  width: 100%;
}
.grade-mini .campo input:focus { border-color: var(--ciano); box-shadow: 0 0 0 3px rgba(27, 172, 228, 0.18); }
.grade-mini .campo.c-larga { grid-column: span 2; }

.rodape-fiscal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px dashed var(--borda);
  padding-top: 12px;
}
.upload-xml {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--texto-suave);
  border: 1px dashed #C7CEDA;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
}
.upload-xml:hover { border-color: var(--ciano); color: var(--ciano); }
.upload-xml input[type="file"] { display: none; }

.grade-fiscal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
}
.grade-fiscal .cartao-fiscal { margin-bottom: 0; }

/* ---------- Formulários ---------- */
.formulario, .formulario-inline { max-width: 980px; }
.secao { margin-bottom: 22px; }
.secao h2 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}
.secao h2 i { color: var(--ciano); font-size: 17px; }
.cabecalho-secao { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cabecalho-secao h2 { margin-bottom: 0; }

.grade { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; margin-bottom: 12px; }
.campo { display: flex; flex-direction: column; }
.campo.c1 { grid-column: span 1; }
.campo.c2 { grid-column: span 2; }
.campo.c3 { grid-column: span 3; }
.campo.c4 { grid-column: span 4; }
.campo.c6 { grid-column: span 6; }
.campo label { font-size: 12px; font-weight: 600; color: var(--texto-suave); margin-bottom: 5px; }
.campo input, .campo select {
  padding: 9px 11px;
  border: 1px solid #CBD4E1;
  border-radius: 8px;
  font-size: 13.5px;
  outline: none;
  background: #fff;
  font-family: inherit;
}
.campo input:focus, .campo select:focus {
  border-color: var(--ciano);
  box-shadow: 0 0 0 3px rgba(27, 172, 228, 0.18);
}
.campo input:disabled { background: #EEF1F5; color: var(--texto-suave); }

.acoes-form {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid var(--borda);
}

@media (max-width: 900px) {
  .grade { grid-template-columns: repeat(2, 1fr); }
  .campo.c1, .campo.c2, .campo.c3, .campo.c4, .campo.c6 { grid-column: span 1; }
}

/* ---------- Tela de login ---------- */
.tela-login {
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cartao-login {
  background: #fff;
  border-radius: 14px;
  padding: 36px 34px;
  width: 100%;
  max-width: 380px;
}
.logo-login {
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.5px;
  text-align: center;
}
.logo-login span { color: var(--ciano); }
.subtitulo-login {
  text-align: center;
  color: var(--texto-suave);
  font-size: 13px;
  margin: 6px 0 24px;
}
.cartao-login label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--texto);
  margin: 14px 0 6px;
}
.cartao-login input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #CBD4E1;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}
.cartao-login input:focus { border-color: var(--ciano); box-shadow: 0 0 0 3px rgba(27, 172, 228, 0.18); }
.cartao-login button {
  width: 100%;
  margin-top: 22px;
  padding: 11px;
  background: var(--ciano);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cartao-login button:hover { background: #1697C9; }

/* ================= Painel moderno — widgets ================= */
:root { --sombra-card: 0 1px 3px rgba(27, 47, 95, .06), 0 1px 2px rgba(27, 47, 95, .05); }

/* Refino visual: profundidade sutil nos cartões existentes */
.kpi, .cartao-tabela { box-shadow: var(--sombra-card); }
.kpi { transition: transform .15s, box-shadow .15s; }
.kpi:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(27, 47, 95, .10); }

.cartao-widget {
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--sombra-card);
  margin-bottom: 16px;
}
.cartao-widget-cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cartao-widget-cab h2 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cartao-widget-cab h2 i { color: var(--ciano); font-size: 19px; }
.atualizado { font-size: 11.5px; color: #9AA7C2; }
.widget-carregando, .widget-vazio { color: var(--texto-suave); font-size: 13px; padding: 10px 2px; }

/* ---------- Esteira (horário · data · câmbio) ---------- */
@keyframes geni-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.geni-ticker {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, var(--navy) 0%, #2C4A86 55%, #1f3a72 100%);
  border-radius: 12px;
  padding: 11px 0;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(27, 47, 95, .18);
}
.geni-ticker::before, .geni-ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 42px; z-index: 2; pointer-events: none;
}
.geni-ticker::before { left: 0; background: linear-gradient(90deg, var(--navy), transparent); }
.geni-ticker::after { right: 0; background: linear-gradient(270deg, #1f3a72, transparent); }
.geni-track { display: flex; width: max-content; animation: geni-scroll 42s linear infinite; }
.geni-ticker:hover .geni-track { animation-play-state: paused; }
.tk-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 26px; white-space: nowrap;
  color: #fff; font-size: 13.5px;
  border-right: 1px solid rgba(255, 255, 255, .10);
}
.tk-item i { font-size: 16px; color: var(--ciano); }
.tk-city { color: #AEC3E6; font-weight: 500; }
.tk-time { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.tk-date { font-weight: 600; text-transform: capitalize; }
.tk-code {
  background: rgba(27, 172, 228, .22); color: #8FE0FB;
  font-weight: 700; font-size: 11px; letter-spacing: .5px;
  padding: 3px 8px; border-radius: 6px;
}
.tk-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.tk-var { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; }
.tk-var i { font-size: 14px; }
.tk-var.up, .tk-var.up i { color: #5BE3A8; }
.tk-var.down, .tk-var.down i { color: #FF9B8E; }
@media (prefers-reduced-motion: reduce) { .geni-track { animation: none; } }

/* ---------- Notícias: destaque rotativo + capas ---------- */
@keyframes geni-fade { 0% { opacity: 0; transform: translateY(6px); } 100% { opacity: 1; transform: translateY(0); } }
.news-hero {
  position: relative; overflow: hidden;
  border-radius: 14px; min-height: 150px; color: #fff;
  box-shadow: 0 6px 18px rgba(27, 47, 95, .16);
  margin-bottom: 12px;
}
.news-hero .hero-slide {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  padding: 18px 20px; opacity: 0; transition: opacity .8s ease;
  text-decoration: none; color: #fff;
}
.news-hero .hero-slide.on { opacity: 1; animation: geni-fade .8s ease; }
.news-hero .hero-bg { position: absolute; inset: 0; z-index: 0; }
.news-hero .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 30, 60, .05), rgba(15, 22, 46, .82)); }
.news-hero .hero-icon { position: absolute; right: 14px; top: 12px; font-size: 60px; color: rgba(255, 255, 255, .20); z-index: 1; }
.news-hero .hero-content { position: relative; z-index: 2; max-width: 80%; }
.news-hero .hero-cat { display: inline-block; background: rgba(255, 255, 255, .20); font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; margin-bottom: 8px; }
.news-hero .hero-title { font-size: 17px; font-weight: 700; line-height: 1.3; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.news-hero .hero-meta { font-size: 11.5px; opacity: .85; margin-top: 5px; }
.hero-dots { text-align: center; margin-bottom: 12px; line-height: 1; }
.hero-dots span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #C7D2E4; margin: 0 3px; transition: .3s; cursor: pointer; }
.hero-dots span.on { background: var(--navy); width: 18px; border-radius: 4px; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.ncard {
  background: #fff; border: 1px solid var(--borda); border-radius: 12px;
  overflow: hidden; text-decoration: none; display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
.ncard:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(27, 47, 95, .13); }
.ncard-cover { height: 78px; position: relative; display: flex; align-items: center; justify-content: center; }
.ncard-cover i { font-size: 34px; color: rgba(255, 255, 255, .92); }
.ncard-cover .ncard-tag { position: absolute; left: 8px; bottom: 8px; background: rgba(255, 255, 255, .92); color: var(--navy); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 2px 7px; border-radius: 5px; }
.ncard-body { padding: 10px 12px 12px; }
.ncard-title { font-size: 12.5px; line-height: 1.35; color: var(--texto); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard:hover .ncard-title { color: var(--navy); }
.ncard-meta { font-size: 10.5px; color: #9AA7C2; margin-top: 6px; }

/* ---------- Botões de aplicativo (tiles) ---------- */
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.app-card {
  position: relative; background: #fff; border: 1px solid var(--borda);
  border-radius: 14px; padding: 18px; text-decoration: none; display: block;
  overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.app-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--navy), var(--ciano));
  transform: scaleY(0); transform-origin: top; transition: transform .25s;
}
.app-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(27, 47, 95, .15); border-color: #CDE9F7; }
.app-card:hover::before { transform: scaleY(1); }
.app-ic {
  width: 50px; height: 50px; border-radius: 13px;
  background: linear-gradient(135deg, var(--navy), var(--ciano));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 13px; box-shadow: 0 5px 14px rgba(27, 172, 228, .32);
  transition: transform .25s;
}
.app-card:hover .app-ic { transform: scale(1.08) rotate(-4deg); }
.app-ic i { font-size: 26px; color: #fff; }
.app-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.app-card p { font-size: 12.5px; color: var(--texto-suave); line-height: 1.5; }
.app-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 13px; font-size: 12.5px; font-weight: 700; color: var(--ciano); }
.app-go i { transition: transform .2s; }
.app-card:hover .app-go i { transform: translateX(5px); }

/* ---------- Seletor de idiomas (i18n) ---------- */
.lang-row { display: inline-flex; gap: 6px; align-items: center; }
.lang-row button { background: #fff; border: 1.5px solid var(--borda); border-radius: 7px; padding: 3px 6px; cursor: pointer; line-height: 0; transition: border-color .15s, transform .15s; }
.lang-row button:hover { border-color: var(--ciano); transform: translateY(-1px); }
.lang-row button.active { border-color: var(--ciano); box-shadow: 0 0 0 2px rgba(27, 172, 228, .2); }
.lang-row svg { width: 22px; height: 15px; border-radius: 2px; display: block; }

/* ================= Manual interativo ================= */
.manual-topo {
  background: linear-gradient(120deg, var(--navy), #2C4A86);
  color: #fff; border-radius: 14px; padding: 22px 24px; margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(27, 47, 95, .18);
}
.manual-topo h2 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.manual-topo p { font-size: 13.5px; color: #C9D6EE; margin-top: 6px; max-width: 720px; line-height: 1.55; }
.manual-atualizado {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
}
.manual-atualizado i { color: #5BE3A8; font-size: 15px; }

.manual-busca {
  display: flex; align-items: center; gap: 8px; background: #fff;
  border: 1px solid var(--borda); border-radius: 10px; padding: 0 12px;
  margin-bottom: 14px; box-shadow: var(--sombra-card);
}
.manual-busca i { color: var(--texto-suave); font-size: 17px; }
.manual-busca input { border: none; outline: none; padding: 11px 0; font-size: 14px; width: 100%; background: transparent; }

.manual-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.manual-nav a {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  background: #fff; border: 1px solid var(--borda); border-radius: 999px;
  padding: 7px 15px; font-size: 13px; font-weight: 600; color: var(--texto-suave);
  transition: all .15s;
}
.manual-nav a:hover { border-color: var(--ciano); color: var(--navy); transform: translateY(-1px); }
.manual-nav a i { color: var(--ciano); font-size: 16px; }

.manual-secao { scroll-margin-top: 16px; margin-bottom: 22px; }
.manual-secao > h3 {
  font-size: 16px; font-weight: 700; color: var(--navy);
  display: flex; align-items: center; gap: 9px; margin-bottom: 12px;
}
.manual-secao > h3 i { color: var(--ciano); font-size: 20px; }
.manual-card {
  background: #fff; border: 1px solid var(--borda); border-radius: 12px;
  padding: 18px 20px; box-shadow: var(--sombra-card); line-height: 1.65; font-size: 14px;
}
.manual-card p { margin-bottom: 8px; }
.manual-card strong { color: var(--navy); }

/* Acordeão (Funcionalidades / FAQ) */
.acordeao-item { border: 1px solid var(--borda); border-radius: 10px; margin-bottom: 10px; overflow: hidden; background: #fff; box-shadow: var(--sombra-card); }
.acordeao-cab {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer; padding: 14px 16px;
  font-size: 14px; font-weight: 600; color: var(--navy); font-family: inherit;
}
.acordeao-cab .ai { color: var(--ciano); font-size: 19px; }
.acordeao-cab .chev { margin-left: auto; color: var(--texto-suave); transition: transform .2s; }
.acordeao-item.aberto .acordeao-cab .chev { transform: rotate(180deg); }
.acordeao-corpo { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.acordeao-item.aberto .acordeao-corpo { max-height: 600px; }
.acordeao-corpo div { padding: 0 16px 15px 45px; font-size: 13.5px; line-height: 1.65; color: var(--texto); }
.acordeao-corpo ul { margin: 4px 0 0 18px; }
.acordeao-corpo li { margin-bottom: 4px; }

/* Rotinas passo a passo */
.rotina { background: #fff; border: 1px solid var(--borda); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--sombra-card); }
.rotina > h4 { font-size: 14.5px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.rotina > h4 i { color: var(--ciano); font-size: 18px; }
.passos { list-style: none; counter-reset: passo; }
.passos li { position: relative; padding: 4px 0 14px 40px; font-size: 13.5px; line-height: 1.55; border-left: 2px solid var(--borda); margin-left: 13px; }
.passos li:last-child { border-left-color: transparent; padding-bottom: 2px; }
.passos li::before {
  counter-increment: passo; content: counter(passo);
  position: absolute; left: -14px; top: 0; width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--navy), var(--ciano)); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700;
}

/* Mapa mental (árvore) */
.mapa { background: #fff; border: 1px solid var(--borda); border-radius: 12px; padding: 18px 22px; box-shadow: var(--sombra-card); }
.mapa ul { list-style: none; margin-left: 16px; border-left: 1.5px dashed #C7D2E4; padding-left: 16px; }
.mapa > ul { border-left: none; margin-left: 0; padding-left: 0; }
.mapa li { position: relative; padding: 5px 0; font-size: 13.5px; line-height: 1.5; }
.mapa li > span.no { display: inline-flex; align-items: center; gap: 7px; }
.mapa li > span.no i { font-size: 16px; color: var(--ciano); }
.mapa > ul > li > span.no { font-weight: 700; color: var(--navy); font-size: 14px; }
.mapa > ul > li > span.no i { color: var(--navy); }
.manual-vazio { text-align: center; color: var(--texto-suave); padding: 30px; font-size: 13.5px; }
