:root {
  --bg:        #0f172a;
  --bg-card:   #1e293b;
  --bg-card2:  #273449;
  --border:    #334155;
  --cyan:      #22d3ee;
  --indigo:    #818cf8;
  --text:      #f1f5f9;
  --text-sub:  #94a3b8;
  --text-muted:#475569;
  --radius:    12px;
  --font:      'Helvetica Neue', 'Hiragino Kaku Gothic ProN', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ── */
.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(15,23,42,.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: .04em;
}
.site-header nav { margin-left: auto; display: flex; gap: 24px; }
.site-header nav a {
  color: var(--text-sub);
  font-size: 14px;
  transition: color .15s;
}
.site-header nav a:hover,
.site-header nav a.active { color: var(--cyan); text-decoration: none; }

/* ── Layout ── */
.page { max-width: 1100px; margin: 0 auto; padding: 40px 32px; }

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

/* ── Section heading ── */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ── Badge ── */
.badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 500;
}
.badge-cyan   { background: rgba(34,211,238,.15); color: var(--cyan); }
.badge-indigo { background: rgba(129,140,248,.15); color: var(--indigo); }
.badge-red    { background: rgba(248,113,113,.15); color: #f87171; }
.badge-yellow { background: rgba(251,191,36,.15);  color: #fbbf24; }
.badge-green  { background: rgba(52,211,153,.15);  color: #34d399; }

/* ── Accent border ── */
.accent-left-cyan   { border-left: 3px solid var(--cyan);   padding-left: 14px; }
.accent-left-indigo { border-left: 3px solid var(--indigo); padding-left: 14px; }

/* ── Button ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity .15s, transform .1s;
}
.btn:hover  { opacity: .85; }
.btn:active { transform: scale(.97); }
.btn-cyan   { background: var(--cyan);   color: #0f172a; }
.btn-ghost  { background: transparent; border: 1px solid var(--border); color: var(--text-sub); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); text-decoration: none; }

/* ── Divider ── */
hr.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── Stat number ── */
.stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.1;
}

/* ── Utility ── */
.flex  { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8   { margin-top: 8px; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.mt-32  { margin-top: 32px; }
.mb-4   { margin-bottom: 4px; }
.mb-8   { margin-bottom: 8px; }
.text-sub   { color: var(--text-sub); }
.text-muted { color: var(--text-muted); }
.text-sm    { font-size: 13px; }
.text-xs    { font-size: 12px; }
.fw-600     { font-weight: 600; }
.truncate   { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

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