:root {
  --bg: #0c0e12;
  --bg-elevated: #05070d;
  --bg-panel: #05070d;
  --bg-panel-hover: #1d2229;
  --border: #262b35;
  --border-strong: #333a47;

  --text-primary: #c9a24b;
  --text-secondary: #9aa3b2;
  --text-muted: #636b78;

  --accent: #c9a24b;
  --accent-hover: #dbb75f;
  --accent-contrast: #1a1406;

  --danger: #e5484d;
  --danger-bg: rgba(229, 72, 77, 0.12);
  --success: #3fb950;
  --success-bg: rgba(63, 185, 80, 0.12);
  --warning: #e0a53f;
  --warning-bg: rgba(224, 165, 63, 0.12);
  --info: #58a6ff;
  --info-bg: rgba(88, 166, 255, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);

  --font-sans:
    -apple-system, "Segoe UI", Roboto, Inter, system-ui, sans-serif;

  --sidebar-width: 248px;
  --profile-sidebar-width: 260px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

/* Garante que o atributo "hidden" sempre vença, mesmo sobre classes que
   definem "display" diretamente (ex.: .stat-grid, .nav-item) — sem isso,
   a especificidade igual deixa a última regra declarada ganhar. */
[hidden] {
  display: none !important;
}

button,
input,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--accent-contrast);
}

/* Barra de rolagem no tom do layout (em vez da cinza clara padrão do
   navegador, que destoava do fundo escuro) — vale pra qualquer elemento
   com scroll no site (modais, tabelas com `.table-wrap`, etc.), não só
   um lugar específico. Firefox usa `scrollbar-color`; Chrome/Edge (WebKit)
   usam os pseudo-elementos `::-webkit-scrollbar-*` abaixo. */
* {
  scrollbar-color: var(--border-strong) transparent;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--border-strong);
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent);
}

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