/* ============================================================
   Trena Gestão — Polish visual (carregado APÓS o <style> inline)
   Refinamentos sutis pra parecer mais SaaS profissional moderno.
   ============================================================ */

/* ─── Tipografia mais refinada ─── */
body {
  font-feature-settings: "ss01", "cv02", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.tb-title, .ph-title, .bc-nome, .kcard-val, .logo-txt, .av-name {
  letter-spacing: -0.015em;
}

/* ─── Sidebar refinado ─── */
.sidebar {
  background: linear-gradient(180deg, #043f35 0%, #052e26 100%);
  border-right: 1px solid rgba(163,175,116,.08);
}
.logo-mark {
  background: linear-gradient(135deg, #e84427 0%, #b8290f 60%, #931f0a 100%);
  box-shadow:
    0 6px 18px rgba(211,49,24,.35),
    0 1px 0 rgba(255,255,255,.15) inset,
    0 -2px 4px rgba(0,0,0,.15) inset;
}
.ni {
  position: relative;
  letter-spacing: -0.005em;
}
.ni:hover .ni-ico {
  transform: scale(1.08);
  transition: transform .18s cubic-bezier(.16,1,.3,1);
}
.ni.on {
  background: linear-gradient(135deg, rgba(211,49,24,.28) 0%, rgba(211,49,24,.08) 100%);
  box-shadow: 0 0 0 1px rgba(211,49,24,.18), 0 6px 16px rgba(211,49,24,.12);
}
.ni-ico { transition: transform .18s cubic-bezier(.16,1,.3,1); }
.ni-bdg {
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.pbo-pill {
  backdrop-filter: blur(8px);
  background: rgba(163,175,116,.08);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset;
}

/* ─── Topbar com glass effect ─── */
.topbar {
  background: rgba(250,248,243,.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(213,201,176,.4);
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset;
}

/* ─── Botões mais polidos ─── */
.btn {
  letter-spacing: -0.005em;
  transition: all .22s cubic-bezier(.16,1,.3,1);
}
.btn-primary {
  background: linear-gradient(135deg, #e84427 0%, #c52e16 60%, #b8290f 100%);
  box-shadow:
    0 6px 16px rgba(211,49,24,.28),
    0 1px 0 rgba(255,255,255,.18) inset;
}
.btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow:
    0 10px 28px rgba(211,49,24,.4),
    0 1px 0 rgba(255,255,255,.18) inset;
  filter: brightness(1.04);
}
.btn-primary:active { transform: translateY(0); filter: brightness(.97); }
.btn-dark {
  background: linear-gradient(135deg, #054a3d 0%, #03332a 100%);
  box-shadow: 0 6px 16px rgba(4,63,53,.25), 0 1px 0 rgba(255,255,255,.06) inset;
}
.btn-ghost {
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: var(--cream); transform: translateY(-1px); }
.abt { transition: all .18s cubic-bezier(.16,1,.3,1); }
.abt:hover { transform: translateY(-1px); }

/* ─── Cards mais sofisticados ─── */
.kcard {
  background: linear-gradient(180deg, #fff 0%, #fefcf6 100%);
  border: 1px solid rgba(213,201,176,.4);
  box-shadow:
    0 1px 0 rgba(255,255,255,.8) inset,
    0 1px 3px rgba(4,63,53,.04),
    0 4px 12px rgba(4,63,53,.04);
  transition: all .25s cubic-bezier(.16,1,.3,1);
}
.kcard:hover {
  box-shadow:
    0 1px 0 rgba(255,255,255,.8) inset,
    0 4px 8px rgba(4,63,53,.05),
    0 12px 32px rgba(4,63,53,.1);
  transform: translateY(-3px);
  border-color: rgba(213,201,176,.7);
}
.kcard-ico {
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset;
}
.kcard-val {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
}
.kcard-bar {
  background: rgba(213,201,176,.25);
  box-shadow: 0 1px 2px rgba(4,63,53,.04) inset;
}
.kcard-fill {
  background-image: linear-gradient(90deg, currentColor 0%, currentColor 100%);
  box-shadow: 0 0 8px currentColor;
}

/* ─── Painéis ─── */
.panel {
  background: linear-gradient(180deg, #fff 0%, #fdfbf5 100%);
  border: 1px solid rgba(213,201,176,.4);
  box-shadow:
    0 1px 0 rgba(255,255,255,.8) inset,
    0 1px 3px rgba(4,63,53,.04),
    0 4px 12px rgba(4,63,53,.04);
}
.ph {
  background: linear-gradient(180deg, #faf8f3 0%, rgba(250,248,243,.4) 100%);
  border-bottom-color: rgba(213,201,176,.35);
}
.ph-title { letter-spacing: -0.015em; }

/* ─── Tabelas ─── */
.tbl-wrap {
  background: linear-gradient(180deg, #fff 0%, #fefcf6 100%);
  border: 1px solid rgba(213,201,176,.4);
  box-shadow:
    0 1px 0 rgba(255,255,255,.8) inset,
    0 1px 3px rgba(4,63,53,.04),
    0 4px 12px rgba(4,63,53,.04);
}
thead th {
  background: linear-gradient(180deg, #faf8f3 0%, #f4ede0 100%);
  border-bottom: 1px solid rgba(213,201,176,.5);
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
tbody tr { transition: background .15s; }
tbody tr:hover { background: linear-gradient(90deg, rgba(250,248,243,1) 0%, rgba(250,248,243,.4) 100%); }
td.mo { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* ─── Badges com pulse no dot ─── */
.bdg { letter-spacing: -0.005em; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset; }
.bdot { animation: pulse-dot 2s ease-in-out infinite; }
.bdg.b-r .bdot { animation-name: pulse-dot-r; }
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  50% { box-shadow: 0 0 0 3px transparent; opacity: .6; }
}
@keyframes pulse-dot-r {
  0%, 100% { box-shadow: 0 0 0 0 rgba(211,49,24,.5); opacity: 1; }
  50% { box-shadow: 0 0 0 4px transparent; opacity: .7; }
}

/* ─── Alert bar refinado ─── */
.alert-bar {
  background: linear-gradient(135deg, #e84427 0%, #b8290f 100%);
  box-shadow:
    0 4px 16px rgba(211,49,24,.25),
    0 1px 0 rgba(255,255,255,.18) inset;
  position: relative;
  overflow: hidden;
}
.alert-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg,
    rgba(255,255,255,.04) 0,
    rgba(255,255,255,.04) 1px,
    transparent 1px,
    transparent 12px);
  pointer-events: none;
}
.alert-bar-btn {
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset;
}

/* ─── Boleto cards (.bc) ─── */
.bc {
  background: linear-gradient(180deg, #fff 0%, #fefcf6 100%);
  border: 1px solid rgba(213,201,176,.4);
  box-shadow:
    0 1px 0 rgba(255,255,255,.8) inset,
    0 1px 3px rgba(4,63,53,.03),
    0 4px 12px rgba(4,63,53,.04);
  transition: all .22s cubic-bezier(.16,1,.3,1);
}
.bc:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.8) inset,
    0 4px 8px rgba(4,63,53,.05),
    0 16px 36px rgba(4,63,53,.1);
}
.bc.urgent {
  border-left: 4px solid var(--red);
  box-shadow:
    0 1px 0 rgba(255,255,255,.8) inset,
    -4px 0 16px rgba(211,49,24,.06),
    0 4px 12px rgba(4,63,53,.04);
}
.bc.warning {
  border-left: 4px solid var(--orange);
  box-shadow:
    0 1px 0 rgba(255,255,255,.8) inset,
    -4px 0 16px rgba(242,117,7,.06),
    0 4px 12px rgba(4,63,53,.04);
}
.bc-ico {
  background: linear-gradient(135deg, rgba(255,255,255,.95) 0%, rgba(254,252,246,.95) 100%) !important;
  border: 1px solid rgba(213,201,176,.45);
  box-shadow: 0 1px 3px rgba(4,63,53,.06), 0 1px 0 rgba(255,255,255,.6) inset;
}
.bc-val { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* ─── Bank cards mais polidos ─── */
.bank-card {
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 12px 32px rgba(4,63,53,.18),
    0 1px 0 rgba(255,255,255,.15) inset;
}
.bank-card:hover {
  transform: translateY(-3px) scale(1.005);
  box-shadow:
    0 18px 44px rgba(4,63,53,.28),
    0 1px 0 rgba(255,255,255,.18) inset;
}
.bkc-bank, .bkc-val {
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.bkc-val { font-variant-numeric: tabular-nums; }
.bkc-logo {
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 4px 8px rgba(0,0,0,.1);
}

/* ─── Inputs ─── */
.inp, input.tlb-inp, input.sbox input {
  transition: all .2s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 1px 2px rgba(4,63,53,.03);
}
.inp:focus {
  background: #fff;
  border-color: var(--green3);
  box-shadow: 0 0 0 4px rgba(60,101,55,.1), 0 1px 2px rgba(4,63,53,.06);
}

/* ─── Modals ─── */
.mo {
  border: 1px solid rgba(213,201,176,.5);
  box-shadow:
    0 32px 80px rgba(4,63,53,.3),
    0 8px 24px rgba(4,63,53,.15),
    0 1px 0 rgba(255,255,255,.6) inset;
}
.mo-ov {
  background: rgba(4,63,53,.45);
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
}
.mo-h {
  background: linear-gradient(180deg, var(--cream3) 0%, rgba(250,248,243,.4) 100%);
}

/* ─── Toast refinado ─── */
.toast {
  background: linear-gradient(135deg, #054a3d 0%, #03332a 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(163,175,116,.25);
  box-shadow: 0 16px 40px rgba(4,63,53,.4), 0 1px 0 rgba(255,255,255,.1) inset;
}

/* ─── Notificações flutuantes ─── */
.ntf {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 32px 64px rgba(4,63,53,.4), 0 1px 0 rgba(255,255,255,.08) inset;
}

/* ─── Login overlay (do integration.js) refinado ─── */
.tlb {
  border: 1px solid rgba(213,201,176,.3);
  box-shadow:
    0 32px 80px rgba(0,0,0,.4),
    0 8px 24px rgba(0,0,0,.15),
    0 1px 0 rgba(255,255,255,.7) inset;
}
.tlb-logo {
  background: linear-gradient(135deg, #e84427 0%, #b8290f 60%, #931f0a 100%) !important;
  box-shadow:
    0 12px 28px rgba(211,49,24,.4),
    0 1px 0 rgba(255,255,255,.18) inset;
}
.tlb-btn {
  background: linear-gradient(135deg, #e84427 0%, #c52e16 60%, #b8290f 100%) !important;
  box-shadow: 0 8px 22px rgba(211,49,24,.35), 0 1px 0 rgba(255,255,255,.18) inset !important;
}
.tlb-btn:hover { transform: translateY(-1.5px); filter: brightness(1.04); }

/* ─── Scrollbar Trena ─── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(213,201,176,.5);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(211,49,24,.6); background-clip: padding-box; border: 2px solid transparent; }

/* ─── Page transitions ─── */
.page.on {
  animation: trena-page-in .35s cubic-bezier(.16,1,.3,1) both;
}
@keyframes trena-page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Loading skeleton (use class .skel onde precisar) ─── */
.skel {
  background: linear-gradient(90deg,
    rgba(213,201,176,.18) 0%,
    rgba(213,201,176,.36) 50%,
    rgba(213,201,176,.18) 100%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
  color: transparent !important;
}
@keyframes skel-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Print styles ─── */
@media print {
  .sidebar, .topbar, .alert-bar, .ntf, .toast { display: none !important; }
  .main { margin-left: 0 !important; }
  .content { padding: 16px !important; }
  .kcard, .panel, .tbl-wrap, .bc { box-shadow: none !important; border-color: #ccc !important; }
}

/* ─── Mobile ─── */
@media(max-width:768px) {
  body { font-size: 13px; }
  .sidebar { transform: translateX(-100%); transition: transform .3s; z-index: 200; }
  .sidebar.open { transform: translateX(0); box-shadow: 0 0 60px rgba(0,0,0,.4); }
  .main { margin-left: 0; }
  .topbar { padding: 0 16px; }
  .content { padding: 16px; }
  .kpi-row { grid-template-columns: 1fr 1fr !important; }
  .grid-2 { grid-template-columns: 1fr !important; }
}

/* ============================================================
   POLISH V2 — Padrões SaaS 2026 (Conta Azul / TakeAt / Stripe)
   ============================================================ */

/* ─── North-star metric card (KPI gigante destacado no topo) ─── */
.northstar {
  background: linear-gradient(135deg, #043f35 0%, #054a3d 60%, #065c4d 100%);
  border-radius: 18px;
  padding: 24px 28px;
  color: var(--cream);
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(4,63,53,.25), 0 1px 0 rgba(255,255,255,.08) inset;
  margin-bottom: 20px;
  animation: fadeUp .4s cubic-bezier(.16,1,.3,1) both;
}
.northstar::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211,49,24,.18), transparent 70%);
  top: -120px; right: -80px;
  pointer-events: none;
}
.northstar::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(163,175,116,.1), transparent 70%);
  bottom: -100px; left: -50px;
  pointer-events: none;
}
.ns-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 24px;
  position: relative;
  z-index: 1;
}
.ns-main { border-right: 1px solid rgba(163,175,116,.18); padding-right: 24px; }
.ns-lbl {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: rgba(163,175,116,.85);
  margin-bottom: 6px;
}
.ns-val {
  font-family: 'Syne',sans-serif;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.ns-val.sm { font-size: 22px; }
.ns-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
}
.ns-trend.up { background: rgba(74,222,128,.15); color: #4ade80; }
.ns-trend.dn { background: rgba(255,138,122,.15); color: #ff8a7a; }

/* ─── AI Insight Card ─── */
.ai-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 70%, #0f3460 100%);
  border-radius: 16px;
  padding: 20px 22px;
  color: #e2e8f0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15,52,96,.3), 0 1px 0 rgba(255,255,255,.06) inset;
  margin-bottom: 20px;
  animation: fadeUp .45s cubic-bezier(.16,1,.3,1) both;
}
.ai-card::before {
  content: '🤖';
  position: absolute;
  font-size: 80px;
  right: -10px;
  top: -20px;
  opacity: .06;
  pointer-events: none;
}
.ai-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.ai-badge {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(99,179,237,.3), rgba(99,179,237,.1));
  border: 1px solid rgba(99,179,237,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.ai-title {
  font-family: 'Syne',sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.ai-time {
  margin-left: auto;
  font-size: 10.5px;
  color: rgba(255,255,255,.4);
}
.ai-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ai-insight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  font-size: 12.5px;
  line-height: 1.5;
}
.ai-insight strong { color: #fff; }
.ai-insight .ai-ico { font-size: 16px; flex-shrink: 0; line-height: 1.2; }
.ai-insight.critico { background: rgba(255,138,122,.12); border-left: 3px solid #ff8a7a; }
.ai-insight.atencao { background: rgba(242,117,7,.12); border-left: 3px solid var(--orange); }
.ai-insight.positivo { background: rgba(74,222,128,.1); border-left: 3px solid #4ade80; }
.ai-insight.negativo { background: rgba(255,138,122,.08); border-left: 3px solid #ff8a7a; }

/* ─── Forecast bars (saldo projetado) ─── */
.forecast {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(213,201,176,.4);
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(4,63,53,.04), 0 4px 12px rgba(4,63,53,.04);
  margin-bottom: 20px;
}
.forecast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.forecast-title {
  font-family: 'Syne',sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}
.forecast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.forecast-cell {
  background: linear-gradient(180deg, rgba(239,231,208,.3) 0%, rgba(239,231,208,.1) 100%);
  border-radius: 10px;
  padding: 12px 14px;
}
.forecast-cell.atencao { background: linear-gradient(180deg, rgba(242,117,7,.08), rgba(242,117,7,.02)); border: 1px solid rgba(242,117,7,.18); }
.forecast-cell.critico { background: linear-gradient(180deg, rgba(211,49,24,.08), rgba(211,49,24,.02)); border: 1px solid rgba(211,49,24,.2); }
.forecast-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
  color: var(--sage);
  margin-bottom: 4px;
}
.forecast-val {
  font-family: 'Syne',sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.forecast-cell.critico .forecast-val { color: var(--red); }
.forecast-detail {
  font-size: 11px;
  color: var(--green3);
}

/* ─── Sparklines (mini-charts inline) ─── */
.spark {
  display: inline-block;
  height: 24px;
  vertical-align: middle;
  margin-left: 8px;
}
.spark svg { display: block; }

/* ─── Dark mode toggle (refinamento futuro) ─── */
.dark-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  border: 1px solid rgba(255,255,255,.1);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(4,63,53,.3);
  z-index: 90;
  transition: all .25s cubic-bezier(.16,1,.3,1);
}
.dark-toggle:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 12px 32px rgba(4,63,53,.4); }

/* ─── Trust badges ─── */
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(213,201,176,.3);
  margin-top: 20px;
  flex-wrap: wrap;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--sage);
  font-weight: 600;
}
.trust-badge::before {
  content: '🔒';
  font-size: 13px;
}
.trust-badge.ssl::before { content: '🔒'; }
.trust-badge.pci::before { content: '🛡️'; }
.trust-badge.lgpd::before { content: '🇧🇷'; }
.trust-badge.online::before { content: '🟢'; }

/* ─── Empty states melhorados ─── */
.empty-better {
  text-align: center;
  padding: 60px 20px;
  color: var(--sage);
}
.empty-better .ico {
  font-size: 56px;
  opacity: .35;
  margin-bottom: 14px;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.empty-better h3 {
  font-family: 'Syne',sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--green3);
  margin-bottom: 6px;
}
.empty-better p {
  font-size: 13px;
  margin-bottom: 16px;
  color: var(--sage);
}

/* ─── Skeleton avançado ─── */
.skel-row {
  height: 48px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(213,201,176,.18) 0%, rgba(213,201,176,.36) 50%, rgba(213,201,176,.18) 100%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.4s ease-in-out infinite;
}
.skel-card {
  height: 120px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(213,201,176,.18) 0%, rgba(213,201,176,.36) 50%, rgba(213,201,176,.18) 100%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.4s ease-in-out infinite;
}

/* ─── Refinements visuais finais ─── */
.kcard:hover { animation: none; }
.kcard-val { transition: color .3s; }
.tb-title { font-weight: 800; }
.tb-sub { font-weight: 500; }

/* Hover ripple sutil em buttons primários */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,.3), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.btn-primary:hover::after { opacity: 1; }

/* Sidebar item active com brilho */
.ni.on::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at left, rgba(211,49,24,.2), transparent 60%);
  pointer-events: none;
  border-radius: 10px;
}

