*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #050505;
  --surface: #0e0e0e;
  --text: #eaeaea;
  --text-dim: #555;
  --accent: #f5c518;
  --accent-dim: rgba(245, 197, 24, 0.15);
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--mono);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ── Plexus canvas ── */
#plexus {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ── Border frame ── */
body::before {
  content: '';
  position: fixed;
  inset: 12px;
  border: 1px solid rgba(245, 197, 24, 0.15);
  pointer-events: none;
  z-index: 2;
  transition: border-color 0.15s, box-shadow 0.15s;
}

body.border-flash-green::before {
  border-color: #22c55e;
  box-shadow: inset 0 0 30px rgba(34, 197, 94, 0.15), 0 0 30px rgba(34, 197, 94, 0.1);
}

/* ── Vignette overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, var(--bg) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ── Main content (used by login/admin pages) ── */
main {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── Footer ── */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 1rem 1.5rem;
  text-align: center;
}

.footer-mono {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: #333;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

