:root {
  --bg: #0A0E1A;
  --surface: #111827;
  --surface2: #1a2235;
  --border: #1f2d45;
  --accent: #4F8EF7;
  --accent2: #7C5CFC;
  --accent3: #22D3A5;
  --text: #E8EDF5;
  --muted: #6B7A99;
  --danger: #F25C5C;
  --warn: #F5A623;
  --radius: 14px;
  --radius-sm: 8px;
  --sidebar-w: 240px;
  --topbar-h: 60px;
  --bottomnav-h: 64px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%,80%,100% { transform:scale(.7); opacity:.5; }
  40%          { transform:scale(1);  opacity:1;  }
}

.fade-in { animation: fadeIn .3s ease; }

/* ── RESPONSIVE GRIDS ── */
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }

@media (max-width:1100px) {
  .grid-4 { grid-template-columns:repeat(2,1fr); }
  .grid-3 { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:640px) {
  .grid-4,.grid-3,.grid-2 { grid-template-columns:1fr; gap:12px; }
}
