/* ── Leakhounds Dashboard — Unified Design Tokens & Base Styles ── */

:root {
  --bg: #0b1929;
  --surface: #0f2137;
  --surface-2: #132d4a;
  --surface-3: #17395c;
  --border: #1c3f63;
  --border-light: #245080;
  --text: #d8e3ef;
  --text-dim: #7a99b8;
  --text-muted: #4a6a8a;
  --accent: #2dd4bf;
  --accent-glow: rgba(45, 212, 191, 0.15);
  --accent-2: #38bdf8;
  --accent-2-glow: rgba(56, 189, 248, 0.15);

  /* Role colors */
  --tech: #f472b6;
  --tech-bg: rgba(244, 114, 182, 0.06);
  --tech-border: rgba(244, 114, 182, 0.18);
  --tech-glow: rgba(244, 114, 182, 0.12);
  --csr: #38bdf8;
  --csr-bg: rgba(56, 189, 248, 0.06);
  --csr-border: rgba(56, 189, 248, 0.18);
  --csr-glow: rgba(56, 189, 248, 0.12);
  --mgr: #2dd4bf;
  --mgr-bg: rgba(45, 212, 191, 0.06);
  --mgr-border: rgba(45, 212, 191, 0.18);
  --mgr-glow: rgba(45, 212, 191, 0.12);

  /* Status colors */
  --good: #2dd4bf;
  --warn: #fbbf24;
  --bad: #f87171;

  /* Typography */
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(145deg, #07101e 0%, #0d1f36 35%, #112a4a 55%, #091828 80%, #050d18 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
}

/* ── HEADER ── */
.header {
  background: rgba(11, 25, 41, 0.4);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left { display: flex; align-items: center; gap: 24px; }

.logo {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f0f4f8;
}
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 2px; align-items: center; }

.nav-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  color: var(--text-muted);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 6px;
  transition: all 0.25s;
}
.nav-link:hover { color: var(--text-dim); background: rgba(255, 255, 255, 0.03); }
.nav-link.active { color: var(--accent); background: var(--accent-glow); }

.header-right { display: flex; align-items: center; gap: 16px; }

.gear-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1;
  display: flex;
  align-items: center;
}
.gear-link:hover { color: var(--accent); }
.gear-link svg { width: 20px; height: 20px; fill: currentColor; }

.clock {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

/* ── LIVE BADGE ── */
.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--good);
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.3);
  padding: 4px 12px;
  border-radius: 6px;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  animation: pulse 1.6s infinite;
}

/* ── LAST SYNC ── */
.last-sync {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  opacity: 0.7;
  padding-left: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  height: 20px;
  line-height: 1;
}
