/* Diario do Dinheiro - identidade visual (fonte: brand kit / BRAND.md).
   Tokens, tipografia e componentes compartilhados por TODAS as paginas. */
@font-face { font-family: "Inter"; src: url(fonts/inter-latin.woff2) format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(fonts/montserrat-latin.woff2) format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  /* marca */
  --verde: #22C55E;          /* principal: marca, acao, confirmacao, progresso */
  --lima: #A3FF12;           /* destaque */
  --verde-esc: #0E955B;
  --fundo: #0B0B0B;
  --superficie: #1C2320;
  --texto: #F8F8F8;
  /* cores funcionais (uso semantico) */
  --entrada: #3882F6;        /* entradas / vendas */
  --gasto: #F97316;          /* gastos */
  --meta: #A855F7;           /* metas / reserva */
  --lucro: #14B8A6;          /* lucro */
  /* derivadas */
  --superficie-2: #141917;   /* campos e areas internas */
  --superficie-3: #252E2A;   /* hover / elevado */
  --texto-2: #B7C0BB;
  --texto-3: #8B958F;
  --borda: rgba(248, 248, 248, .08);
  --borda-forte: rgba(248, 248, 248, .16);
  --erro: #F87171;           /* estado de erro (fora da paleta: necessario para acessibilidade) */
  --alerta: #FBBF24;         /* estado de atencao */
  --grad-marca: linear-gradient(135deg, #A3FF12 0%, #22C55E 55%, #0E955B 100%);
  --glow: 0 0 0 1px rgba(34, 197, 94, .28), 0 12px 32px -10px rgba(34, 197, 94, .45);
  --sombra: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 18px 40px -24px rgba(0, 0, 0, .8);
  --raio: 20px;
  --raio-md: 14px;
  --raio-sm: 10px;
  --fonte: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fonte-titulo: "Montserrat", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--fonte); background: var(--fundo); color: var(--texto); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--fonte-titulo); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
a { color: var(--verde); text-underline-offset: 3px; }
a:hover { color: var(--lima); }
::selection { background: rgba(163, 255, 18, .3); }
:focus-visible { outline: 2px solid var(--lima); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- logo oficial (sempre por imagem; nunca redesenhar) ---------- */
.marca { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.marca img { display: block; height: 40px; width: auto; }
.marca.grande img { height: 56px; }
.simbolo { display: block; width: 36px; height: 36px; }

/* ---------- icones do sistema ---------- */
.ico { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.ico-bola { width: 48px; height: 48px; border-radius: 50%; background: var(--fundo); border: 1.5px solid var(--verde); color: var(--lima); display: grid; place-items: center; flex: none; }
.ico-bola .ico { width: 26px; height: 26px; }

/* ---------- botoes ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2;
  border-radius: var(--raio-md); border: 1px solid var(--borda-forte); background: rgba(248, 248, 248, .04); color: var(--texto);
  padding: 11px 18px; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .2s, transform .05s; }
.btn:hover { background: rgba(248, 248, 248, .09); border-color: rgba(248, 248, 248, .26); color: var(--texto); }
.btn:active { transform: translateY(1px); }
.btn.primario { background: var(--verde); border-color: transparent; color: #04170B; font-weight: 700; }
.btn.primario:hover { background: #34D871; box-shadow: var(--glow); color: #04170B; }
.btn.destaque { background: var(--lima); border-color: transparent; color: #0B0B0B; font-weight: 700; }
.btn.destaque:hover { background: #B6FF45; box-shadow: 0 0 0 1px rgba(163, 255, 18, .3), 0 12px 32px -10px rgba(163, 255, 18, .45); color: #0B0B0B; }
.btn.perigo { color: var(--erro); border-color: rgba(248, 113, 113, .35); background: transparent; }
.btn.perigo:hover { background: rgba(248, 113, 113, .1); color: var(--erro); }
.btn.grande { padding: 15px 26px; font-size: 16px; border-radius: 16px; }
.btn.icone { width: 42px; height: 42px; padding: 0; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* ---------- campos ---------- */
input, select, textarea { font: inherit; font-size: 16px; width: 100%; padding: 12px 14px; border-radius: var(--raio-md);
  border: 1px solid var(--borda-forte); background: var(--superficie-2); color: var(--texto); transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: var(--texto-3); }
input:hover, select:hover { border-color: rgba(248, 248, 248, .28); }
input:focus, select:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(34, 197, 94, .22); }
input:disabled, select:disabled { opacity: .5; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; flex: none; padding: 0; accent-color: var(--verde); }
input[type=date]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.7); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23B7C0BB' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 38px; }
select option { background: var(--superficie); color: var(--texto); }

/* ---------- selos e textos de apoio ---------- */
.selo { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border-radius: 99px; padding: 3px 9px; background: rgba(248, 248, 248, .08); color: var(--texto-2); white-space: nowrap; }
.selo.ok, .selo.zap { background: rgba(34, 197, 94, .16); color: #6EE7A0; }
.selo.alerta { background: rgba(251, 191, 36, .16); color: var(--alerta); }
.selo.ruim { background: rgba(248, 113, 113, .16); color: var(--erro); }
.selo.marca-selo { background: rgba(163, 255, 18, .12); color: var(--lima); text-transform: none; letter-spacing: 0; font-size: 13px; padding: 6px 12px; }
.mudo { color: var(--texto-2); font-size: 13px; margin: 4px 0 0; }
.erro { color: var(--erro); font-size: 13px; min-height: 1em; margin: 6px 0 0; }
.centro { text-align: center; }

/* ---------- campo de senha com "olhinho" ---------- */
.campo-senha { position: relative; display: block; }
.campo-senha input { padding-right: 50px; }
.campo-senha input::-ms-reveal { display: none; }
.ver-senha { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--texto-3); cursor: pointer; display: grid; place-items: center; }
.ver-senha:hover { color: var(--texto); background: rgba(248, 248, 248, .06); }
.ver-senha[aria-pressed="true"] { color: var(--lima); }
.ver-senha .ico { width: 22px; height: 22px; vertical-align: 0; }