/* Base: variáveis, reset, tipografia e botões */
:root {
  --bg: #141414;
  --bg-2: #181818;
  --bg-3: #232323;
  --card: #2a2a2a;
  --line: rgba(255, 255, 255, .12);
  --text: #fff;
  --muted: #b3b3b3;
  --dim: #8c8c8c;
  --accent: #e4202c;
  --accent-2: #f5333f;
  --gold: #f2c14e;
  --nav-h: 68px;
  --pad: 4%;
  --radius: 6px;
  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
  --font-display: Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --font-read: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
button:disabled { opacity: .35; cursor: default; }
svg { fill: currentColor; width: 1em; height: 1em; display: block; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.muted { color: var(--muted); }
.pad { padding: .5rem var(--pad); }
.center { display: block; margin: 1.5rem auto; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .62rem 1.5rem; border-radius: 4px; font-size: 1.05rem; font-weight: 700;
  transition: background .15s, transform .1s;
}
.btn svg { font-size: 1.6em; margin-left: -.25rem; }
.btn:active { transform: scale(.98); }
.btn-light { background: #fff; color: #000; }
.btn-light:hover { background: rgba(255, 255, 255, .75); }
.btn-dim { background: rgba(109, 109, 110, .7); color: #fff; }
.btn-dim:hover { background: rgba(109, 109, 110, .45); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: #fff; }
.btn-outline { border: 1px solid var(--dim); color: var(--muted); padding: .7rem 1.8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.btn-outline:hover { color: #fff; border-color: #fff; }
.btn-danger { color: #ff7b7b; }
.btn-danger:hover { background: rgba(255, 90, 90, .12); }

.btn-icon {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem; flex: none;
  border: 2px solid rgba(255, 255, 255, .5); background: rgba(42, 42, 42, .65); color: #fff;
  transition: border-color .15s, background .15s;
}
.btn-icon:hover { border-color: #fff; background: rgba(60, 60, 60, .85); }
.btn-icon.sm { width: 32px; height: 32px; font-size: 1.05rem; border-width: 1.5px; }
.btn-icon.solid { background: #fff; color: #000; border-color: #fff; }
.btn-icon.solid:hover { background: rgba(255, 255, 255, .8); }
.btn-icon.push { margin-left: auto; }

.input, .select {
  width: 100%; background: #333; border: 1px solid transparent; border-radius: 4px; padding: .85rem 1rem; color: #fff;
}
.input:focus, .select:focus { outline: none; border-color: #fff; }
.select option, .ver-select option { background: #222; color: #fff; }

.spinner {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, #202020, #2c2c2c, #202020); background-size: 200% 100%;
  animation: sk 1.3s linear infinite; border-radius: 6px;
}
@keyframes sk { to { background-position: -200% 0; } }

.toast-root, #toast-root { position: fixed; left: 0; right: 0; bottom: 160px; display: flex; flex-direction: column; align-items: center; gap: .5rem; z-index: 400; pointer-events: none; }
.toast {
  background: #fff; color: #111; padding: .65rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(8px); transition: .25s;
}
.toast.show { opacity: 1; transform: none; }

.boot-error { min-height: 100vh; display: grid; place-content: center; gap: 1rem; text-align: center; }
