/* ============================================================
   FinanceHub — Barra de navegação "liquid glass" (compartilhada)
   Fonte única de estilo da barra inferior das 4 telas.
   Autossuficiente: usa cores próprias (não depende das vars de
   cada página), garantindo visual idêntico em todas as abas.
   Visível em mobile (colada na base) e desktop (pill flutuante).
   ============================================================ */

.liquid-nav {
  --ln-accent: #5B8EFF;
  box-sizing: border-box;
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 10000;

  display: flex;
  align-items: stretch;
  gap: 4px;
  margin: 0;
  padding: 7px;
  list-style: none;

  border-radius: 28px;
  background: rgba(20, 22, 30, 0.55);
  -webkit-backdrop-filter: blur(28px) saturate(185%);
  backdrop-filter: blur(28px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 10px 34px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.liquid-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;

  min-width: 62px;
  padding: 8px 15px;
  border-radius: 20px;

  text-decoration: none;
  color: rgba(236, 239, 245, 0.60);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;

  transition: color .22s ease, background .22s ease, box-shadow .22s ease, transform .12s ease;
}

.liquid-nav a svg {
  width: 22px;
  height: 22px;
  display: block;
}

.liquid-nav a:hover {
  color: rgba(236, 239, 245, 0.92);
  background: rgba(255, 255, 255, 0.06);
}

.liquid-nav a:active {
  transform: scale(0.93);
}

/* Item ativo — cápsula de vidro sobre vidro + acento */
.liquid-nav a.active {
  color: var(--ln-accent);
  background: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 2px 10px rgba(0, 0, 0, 0.22);
}

/* ── Mobile: barra colada na base ocupando a largura ───────── */
@media (max-width: 860px) {
  .liquid-nav {
    left: 12px;
    right: 12px;
    transform: none;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    border-radius: 24px;
  }
  .liquid-nav a {
    flex: 1;
    min-width: 0;
    padding: 8px 4px;
    font-size: 0.62rem;
  }
}

/* Telas muito estreitas em paisagem escondem a barra (mais espaço) */
@media (max-width: 860px) and (orientation: landscape) and (max-height: 460px) {
  .liquid-nav { display: none; }
}

/* ── Tema claro ────────────────────────────────────────────── */
body.light-theme .liquid-nav {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 10px 34px rgba(0, 0, 0, 0.14),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
body.light-theme .liquid-nav a { color: rgba(30, 34, 45, 0.55); }
body.light-theme .liquid-nav a:hover {
  color: rgba(30, 34, 45, 0.88);
  background: rgba(0, 0, 0, 0.04);
}
body.light-theme .liquid-nav a.active {
  color: #2f6bff;
  background: rgba(91, 142, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 2px 10px rgba(91, 142, 255, 0.18);
}
