/* Ezer — base visual sóbria. Acento único: azul Ajuda Click sobre cinza neutro. */

:root {
  --brand: #2196F3;
  --brand-dark: #1976D2;
  --brand-soft: #E9F3FE;
  --ink: #002B6D;          /* títulos, navy Ajuda Click */
  --text: #384860;
  --muted: #6B7A90;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --border: #E4E9F0;
  --success: #10B981;
  --success-soft: #E7F7F1;
  --danger: #E4483C;
  --danger-soft: #FCECEA;
  --warning: #E08600;
  --warning-soft: #FBF0DC;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0, 43, 109, .06), 0 1px 2px rgba(0, 43, 109, .04);
  --nav-h: 62px;
}

body {
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .h1, .h2, .h3 { color: var(--ink); font-weight: 600; }

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

/* ---------- Topo ---------- */
.ezer-topo {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 20;
}
.ezer-topo .marca {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
}
.ezer-topo .marca img { height: 28px; width: auto; display: block; }
.ezer-topo .marca .selo {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1rem;
}
.ezer-topo .sair { color: var(--muted); text-decoration: none; font-size: .9rem; }
.ezer-topo .sair:hover { color: var(--ink); }

/* ---------- Conteúdo ---------- */
.ezer-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.1rem 1rem calc(var(--nav-h) + 1.5rem);
}
.ezer-titulo { font-size: 1.5rem; margin: .2rem 0 1rem; }

/* ---------- Cartões ---------- */
.card-ezer {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  margin-bottom: .75rem;
}

/* ---------- Botões (toque 44px) ---------- */
.btn { border-radius: var(--radius-sm); font-weight: 500; }
.btn-lg-touch, .btn-ezer { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.btn-ezer {
  background: var(--brand); border-color: var(--brand); color: #fff;
  padding: .5rem 1.1rem;
}
.btn-ezer:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

/* ---------- Números grandes (Dinheiro) ---------- */
.numero-grande { font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.numero-rotulo { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- Selos de status ---------- */
.selo-status { font-size: .78rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; display: inline-block; }
.selo-ok { background: var(--success-soft); color: var(--success); }
.selo-atraso { background: var(--danger-soft); color: var(--danger); }
.selo-alerta { background: var(--warning-soft); color: var(--warning); }

/* ---------- Estado vazio (placeholder de telas em construção) ---------- */
.vazio { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.vazio .ic { font-size: 2.2rem; opacity: .5; }

/* ---------- Navegação ---------- */
.ezer-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--card);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 30;
}
.ezer-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
  text-decoration: none;
  font-size: .68rem;
  font-weight: 500;
}
.ezer-nav a svg { width: 22px; height: 22px; }
.ezer-nav a.ativo { color: var(--brand); }

/* ---------- Desktop: nav vira barra no topo ---------- */
@media (min-width: 768px) {
  .ezer-nav {
    position: static;
    height: auto;
    border-top: 0;
    border-bottom: 1px solid var(--border);
    justify-content: center;
    gap: .5rem;
    padding: .35rem 1rem;
  }
  .ezer-nav a {
    flex: 0 0 auto;
    flex-direction: row;
    gap: .4rem;
    padding: .5rem .9rem;
    border-radius: var(--radius-sm);
    font-size: .92rem;
  }
  .ezer-nav a svg { width: 18px; height: 18px; }
  .ezer-nav a.ativo { background: var(--brand-soft); }
  .ezer-main { padding-bottom: 2rem; }
}

/* ---------- Rodapé ---------- */
.ezer-rodape {
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
  padding: 1rem;
  margin-bottom: var(--nav-h);
}
.ezer-rodape a { color: var(--brand); text-decoration: none; font-weight: 600; }
@media (min-width: 768px) { .ezer-rodape { margin-bottom: 0; } }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.login-card { width: 100%; max-width: 360px; }
.login-card .selo {
  width: 52px; height: 52px; border-radius: 14px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.6rem; margin: 0 auto .75rem;
}
