/* Financeiro Bot — base visual compartilhada */
:root {
  --noite: #08111F;
  --fundo: #0B1628;
  --superficie: #0F1D33;
  --superficie-2: #14253F;
  --linha: #203352;
  --linha-forte: #2D4469;
  --texto: #EDF2F9;
  --texto-2: #B4C1D4;
  --apagado: #8496AF;
  --ouro: #E6B85C;
  --ouro-claro: #F3D18C;
  --ouro-escuro: #B98A2F;
  --menta: #5FD3A6;
  --coral: #F2786B;
  --azul: #6EA8FE;
  --raio-s: 8px;
  --raio: 14px;
  --raio-l: 22px;
  --fonte-titulo: 'Sora', system-ui, sans-serif;
  --fonte: 'Manrope', system-ui, sans-serif;
  --sombra: 0 24px 60px -24px rgba(0, 0, 0, .65);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--fonte);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'tnum' 1;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ouro-claro); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--fonte-titulo); line-height: 1.15; margin: 0; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--ouro); outline-offset: 2px; border-radius: 6px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* marca */
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texto); font-family: var(--fonte-titulo); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.02em; }
.marca svg { width: 34px; height: 34px; flex: none; }
.marca b { color: var(--ouro); font-weight: 600; }

/* botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-ouro { background: var(--ouro); color: #1A1306; }
.btn-ouro:hover { background: var(--ouro-claro); }
.btn-linha { background: transparent; border-color: var(--linha-forte); color: var(--texto); }
.btn-linha:hover { border-color: var(--ouro); }
.btn-fantasma { background: transparent; color: var(--texto-2); padding: 0 12px; }
.btn-fantasma:hover { color: var(--texto); background: var(--superficie-2); }
.btn-perigo { background: transparent; border-color: rgba(242, 120, 107, .45); color: var(--coral); }
.btn-perigo:hover { background: rgba(242, 120, 107, .1); }
.btn-grande { min-height: 54px; padding: 0 28px; font-size: 1.02rem; }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn svg { width: 18px; height: 18px; }

/* formulários */
.campo { display: grid; gap: 6px; }
.campo label { font-size: .88rem; font-weight: 600; color: var(--texto-2); }
.campo .dica { font-size: .8rem; color: var(--apagado); }
.entrada {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px;
  background: var(--noite); border: 1px solid var(--linha-forte); color: var(--texto);
  transition: border-color .15s, box-shadow .15s;
}
.entrada::placeholder { color: #5D6F89; }
.entrada:focus { outline: none; border-color: var(--ouro); box-shadow: 0 0 0 3px rgba(230, 184, 92, .18); }
select.entrada { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238496AF' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.entrada-dinheiro { position: relative; }
.entrada-dinheiro span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--apagado); font-weight: 600; pointer-events: none; }
.entrada-dinheiro .entrada { padding-left: 44px; }

.aviso { padding: 12px 14px; border-radius: 10px; font-size: .92rem; border: 1px solid; }
.aviso-erro { border-color: rgba(242, 120, 107, .4); background: rgba(242, 120, 107, .08); color: #FFC4BC; }
.aviso-ok { border-color: rgba(95, 211, 166, .4); background: rgba(95, 211, 166, .08); color: #BDF3DD; }
.aviso-info { border-color: rgba(230, 184, 92, .35); background: rgba(230, 184, 92, .07); color: var(--ouro-claro); }
[hidden] { display: none !important; }

.positivo { color: var(--menta); }
.negativo { color: var(--coral); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* avisos rápidos */
#avisos { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: #1B2E4D; border: 1px solid var(--linha-forte); box-shadow: var(--sombra); font-weight: 600; font-size: .93rem; animation: entra .25s ease; transition: opacity .3s, transform .3s; }
.toast svg { width: 18px; height: 18px; flex: none; }
.toast-ok svg { color: var(--menta); }
.toast-erro svg { color: var(--coral); }
.toast.saindo { opacity: 0; transform: translateY(8px); }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } }
