@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0b0b0e;
  --surface: #141418;
  --surface2: #1c1c22;
  --surface3: #22222a;
  --border: #23232a;
  --border2: #2c2c34;
  --text: #ececf0;
  --muted: #8c8c96;
  --muted2: #6f6f78;
  --accent: #7dd3a8;
  --accent-bg: rgba(125,211,168,.12);
  --amber: #d6a84e;
  --amber-bg: rgba(214,168,78,.12);
  --red: #e05c5c;
  --red-bg: rgba(224,92,92,.12);
  --radius: 14px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); min-height: 100vh; }
body { color: var(--text); font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 14px; line-height: 1.5; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.page { max-width: 1200px; margin: 0 auto; padding: 32px 20px 80px; }

/* ── Nav ── */
.nav {
  display: flex; align-items: center; gap: 24px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; color: var(--text);
  text-decoration: none;
}
.nav-logo svg { color: var(--accent); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 6px 14px; border-radius: 8px;
  color: var(--muted); font-size: 13px; font-weight: 500;
  text-decoration: none; transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--surface2); color: var(--text); text-decoration: none; }
.nav-link.active { background: var(--accent-bg); color: var(--accent); }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 6px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
}
.badge-green { background: var(--accent-bg); color: var(--accent); border: 1px solid rgba(125,211,168,.25); }
.badge-amber { background: var(--amber-bg); color: var(--amber); border: 1px solid rgba(214,168,78,.25); }
.badge-muted { background: var(--surface3); color: var(--muted); border: 1px solid var(--border2); }
.badge-red   { background: var(--red-bg);   color: var(--red);   border: 1px solid rgba(224,92,92,.25); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 9px; border: none;
  font-family: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: opacity .15s, background .15s;
  text-decoration: none;
}
.btn:hover { opacity: .85; text-decoration: none; }
.btn-primary { background: var(--accent); color: #0b0b0e; }
.btn-ghost { background: transparent; border: 1px solid var(--border2); color: var(--muted); }
.btn-ghost:hover { border-color: var(--border2); color: var(--text); opacity: 1; background: var(--surface2); }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* ── Form controls ── */
input, select {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 9px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  padding: 8px 12px;
  outline: none;
  transition: border-color .15s;
}
input:focus, select:focus { border-color: var(--accent); }
input::placeholder { color: var(--muted2); }

/* ── Section header ── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.section-title { font-size: 16px; font-weight: 600; color: var(--text); }

/* ── Stat number ── */
.stat-value { font-family: var(--mono); font-size: 28px; font-weight: 700; color: var(--text); line-height: 1; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── Empty state ── */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-icon { font-size: 40px; margin-bottom: 12px; opacity: .4; }
.empty-text { font-size: 15px; }

/* ── Modal overlay ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.7); z-index: 1000;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 18px; width: 100%; max-width: 680px;
  max-height: 90vh; overflow-y: auto;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 0;
}
.modal-close {
  background: var(--surface2); border: none; color: var(--muted);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; transition: background .15s;
}
.modal-close:hover { background: var(--surface3); color: var(--text); }
.modal-body { padding: 20px 24px 24px; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
