:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #161616;
  --card: #121212;
  --card-forte: #1a1a1a;
  --borda: rgba(255, 255, 255, 0.08);
  --borda-forte: rgba(255, 255, 255, 0.14);
  --texto: #f5f5f4;
  --suave: #a3a3a3;
  --fraco: #737373;
  --acento: #ff6600;      /* laranja B4B */
  --acento-2: #ff8533;
  --acento-fundo: rgba(255, 102, 0, 0.1);
  --laranja: #ffb366;     /* tom claro: valores e badges de admin */
  --verde: #4ade80;
  --vermelho: #f87171;
  --grad: linear-gradient(120deg, #ff5a00, #ff8533);
  --raio: 14px;
  --raio-p: 10px;
  --sombra: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  --fonte-titulo: "IBM Plex Sans", system-ui, sans-serif;
  --fonte-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--texto);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .display { font-family: var(--fonte-titulo); letter-spacing: -0.02em; font-weight: 600; }
.mono { font-family: var(--fonte-mono); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(255, 102, 0, 0.35); }
.grad-texto { color: var(--acento); }

.ic { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center; white-space: nowrap;
  padding: 11px 20px; border-radius: var(--raio-p); border: 1px solid var(--borda-forte);
  background: transparent; cursor: pointer; font-weight: 500; font-size: 14px; letter-spacing: -0.01em;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.24); }
.btn:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
.btn .ic { width: 16px; height: 16px; }
.btn-pri { background: var(--acento); border-color: var(--acento); color: #0a0a0a; font-weight: 600; }
.btn-pri:hover { background: var(--acento-2); border-color: var(--acento-2); }
.btn-peq { padding: 7px 12px; font-size: 13px; }
.btn-perigo { color: var(--vermelho); }
.btn-perigo:hover { border-color: rgba(248, 113, 113, 0.5); background: rgba(248, 113, 113, 0.06); }
.btn-icone { padding: 7px; }

.campo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--suave); font-weight: 500; }
.campo input, .campo select, .campo textarea {
  background: var(--bg); border: 1px solid var(--borda-forte); border-radius: var(--raio-p);
  padding: 10px 12px; font-size: 14px; font-weight: 400; color: var(--texto); outline: none; transition: border-color .2s, box-shadow .2s;
}
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--acento); box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.15); }
.campo select option { background: var(--bg2); }

.toast-area { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 999; }
.toast {
  display: flex; align-items: center; gap: 10px;
  background: #171717; border: 1px solid var(--borda-forte); border-left: 3px solid var(--acento); padding: 11px 16px; border-radius: var(--raio-p);
  box-shadow: var(--sombra); animation: entra .3s cubic-bezier(.2, .8, .2, 1); font-size: 14px; max-width: 360px;
}
.toast.erro { border-left-color: var(--vermelho); }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } }

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