/* ═══════════════════════════════════════════════════
   base.css — CSS variables, reset, typography
═══════════════════════════════════════════════════ */

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

:root {
  /* Backgrounds */
  --bg:  #0a0a0a;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --bg4: #222222;

  /* Borders */
  --border:  #2a2a2a;
  --border2: #333333;

  /* Text */
  --text:  #f0ece3;
  --text2: #aaaaaa;
  --text3: #666666;

  /* Brand */
  --orange:        #f06c00;
  --orange2:       #ff8a2b;
  --orange-dim:    rgba(240, 108, 0, 0.12);
  --orange-border: rgba(240, 108, 0, 0.35);

  /* Semantic */
  --red:   #e03030;
  --green: #2ecc71;
  --gold:  #c9a227;

  /* Radii */
  --radius: 10px;
  --r2:      6px;
}

html, body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
}

button, select, input, textarea {
  font-family: 'DM Sans', sans-serif;
}

/* Scrollbar */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* Page utility */
.page        { display: none; }
.page.active { display: block; }

.page-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 2rem;
  letter-spacing: 1.5px;
  margin-bottom: 0.2rem;
}
.page-sub {
  color: var(--text3);
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg2);
  border: 1px solid var(--orange-border);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--r2);
  font-size: 0.82rem;
  z-index: 9999;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .sidebar { display: none; }
  .grid3   { grid-template-columns: 1fr 1fr; }
}
