:root {
  --bg: #0d0d0f;             /* deep dark background */
  --surface: #141416;        /* card/panel background */
  --surface2: #1a1a1e;
  --surface3: #202026;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.14);
  --border-active: rgba(255,255,255,0.22);
  --text: #f0f0f2;
  --text2: #b0b0ba;
  --muted: #6a6a75;

  /* main brand accents from your banner */
  --accent: #FF3B2E;         /* bright pinkish-red */
  --accent-dim: rgba(255,59,46,0.12);
  --accent2: #FF7B1F;        /* vibrant orange */
  --accent2-dim: rgba(255,123,31,0.12);
  --accent3: #0D1B44;        /* deep blue */
  --accent3-dim: rgba(13,27,68,0.12);
  --accent4: #1E3B7A;        /* medium blue */
  --accent4-dim: rgba(30,59,122,0.12);
  --accent5: #FFB933;        /* golden yellow */
  --accent5-dim: rgba(255,185,51,0.12);

  /* optional secondary accents for variety */
  --accent6: #f59e0b;
  --accent6-dim: rgba(245,158,11,0.12);

  --danger: #ef4444;
  --danger-dim: rgba(239,68,68,0.12);

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 10px;
  --radius-lg: 14px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  min-height: 100vh;
  line-height: 1.5;
}

/* ── TOPBAR ─────────────────────────────────────── */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 200;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }

.logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), #ff8c42);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 18px; height: 18px; fill: white; }

.logo-text { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.logo-text span { color: var(--accent); }

.topbar-right { display: flex; align-items: center; gap: 12px; }

.topbar-badge {
  font-size: 11px; font-weight: 600; padding: 4px 10px;
  border-radius: 20px; letter-spacing: 0.04em; text-transform: uppercase;
  font-family: var(--font-display);
  background: var(--accent2-dim); color: var(--accent2);
  border: 1px solid rgba(168,85,247,0.25);
}

.user-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 24px; padding: 5px 14px 5px 6px;
  cursor: pointer; transition: border-color 0.2s;
}
.user-pill:hover { border-color: var(--border-hover); }

.user-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: white; font-family: var(--font-display);
}
.user-name { font-size: 13px; color: var(--text); font-weight: 500; }

/* ── NAVBAR ─────────────────────────────────────── */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 42px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  position: sticky; top: 56px; z-index: 190;
}

.nav-links { display: flex; list-style: none; height: 100%; gap: 2px; }
.nav-links li { height: 100%; display: flex; align-items: center; }

.nav-links a {
  display: flex; align-items: center; gap: 5px;
  height: 100%; padding: 0 14px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  font-family: var(--font-display);
  transition: color 0.15s;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--text2); }
.nav-links a.active { color: var(--accent); border-bottom-color: var(--accent); }

.nav-right { display: flex; gap: 8px; align-items: center; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent4); }
.status-label { font-size: 11px; color: var(--accent4); font-weight: 500; }

/* ── PAGE ─────────────────────────────────────────── */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 8px; padding: 9px 18px;
  font-size: 13px; font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer; transition: all 0.15s;
  text-decoration: none; border: none;
  letter-spacing: 0.02em; white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
.btn-sm { padding: 6px 13px; font-size: 12px; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #ff5522; transform: translateY(-1px); }
.btn-ghost { background: var(--surface2); color: var(--text2); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text); }
.btn-danger { background: var(--danger-dim); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }
.btn-danger:hover { background: rgba(239,68,68,0.2); }
.btn-purple { background: var(--accent2-dim); color: var(--accent2); border: 1px solid rgba(168,85,247,0.2); }
.btn-purple:hover { background: rgba(168,85,247,0.2); }

/* ── PAGE HEADER ─────────────────────────────────── */
.page-header {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 20px;
  margin-bottom: 28px;
}
.page-header-left h1 {
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 800;
  color: var(--text); letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 5px;
}
.page-header-left h1 span { color: var(--accent); }
.page-header-left p { font-size: 13px; color: var(--muted); }
.page-header-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ── CARDS ───────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  color: var(--text); letter-spacing: -0.01em;
}
.card-body { padding: 20px; }

/* ── STAT CARDS ──────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 28px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
  transition: border-color 0.2s;
}
.stat-card:hover { border-color: var(--border-hover); }
.stat-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon svg { width: 18px; height: 18px; }
.si-orange { background: var(--accent-dim); } .si-orange svg { fill: var(--accent); }
.si-purple { background: var(--accent2-dim); } .si-purple svg { fill: var(--accent2); }
.si-cyan { background: var(--accent3-dim); } .si-cyan svg { fill: var(--accent3); }
.si-green { background: var(--accent4-dim); } .si-green svg { fill: var(--accent4); }
.si-amber { background: var(--accent5-dim); } .si-amber svg { fill: var(--accent5); }
.si-pink { background: var(--accent6-dim); } .si-pink svg { fill: var(--accent6); }
.si-red { background: var(--danger-dim); } .si-red svg { fill: var(--danger); }
.stat-label { font-size: 11px; color: var(--muted); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-display); }
.stat-value { font-size: 22px; font-weight: 700; color: var(--text); font-family: var(--font-display); letter-spacing: -0.02em; }
.stat-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* ── TABLE ───────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; padding: 11px 16px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--muted); font-family: var(--font-display);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--border); transition: background 0.12s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--surface2); }
tbody td { padding: 12px 16px; font-size: 13px; color: var(--text2); vertical-align: middle; }
tbody td:first-child { color: var(--text); font-weight: 500; }

/* ── BADGES ──────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 3px 9px;
  border-radius: 20px; letter-spacing: 0.03em;
  font-family: var(--font-display); white-space: nowrap;
}
.badge-green { background: var(--accent4-dim); color: var(--accent4); border: 1px solid rgba(74,222,128,0.2); }
.badge-orange { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(255,107,53,0.2); }
.badge-purple { background: var(--accent2-dim); color: var(--accent2); border: 1px solid rgba(168,85,247,0.2); }
.badge-cyan { background: var(--accent3-dim); color: var(--accent3); border: 1px solid rgba(34,211,238,0.2); }
.badge-amber { background: var(--accent5-dim); color: var(--accent5); border: 1px solid rgba(245,158,11,0.2); }
.badge-pink { background: var(--accent6-dim); color: var(--accent6); border: 1px solid rgba(244,114,182,0.2); }
.badge-gray { background: rgba(106,106,117,0.15); color: var(--muted); border: 1px solid rgba(106,106,117,0.2); }
.badge-red { background: var(--danger-dim); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }

/* ── FORMS ───────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text2); margin-bottom: 6px; font-family: var(--font-display); letter-spacing: 0.03em; }
.form-input, .form-select, .form-textarea {
  width: 100%; height: 40px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 0 14px;
  font-size: 13px; font-family: var(--font-body);
  color: var(--text); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
}
.form-input::placeholder { color: var(--muted); }
.form-select { appearance: none; cursor: pointer; }
.form-textarea { height: auto; padding: 12px 14px; resize: vertical; }

/* ── SEARCH BAR ──────────────────────────────────── */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 0 14px; height: 38px;
  transition: border-color 0.15s;
}
.search-bar:focus-within { border-color: var(--border-hover); }
.search-bar svg { width: 15px; height: 15px; fill: var(--muted); flex-shrink: 0; }
.search-bar input { background: none; border: none; outline: none; font-size: 13px; color: var(--text); width: 100%; font-family: var(--font-body); }
.search-bar input::placeholder { color: var(--muted); }

/* ── TOOLBAR ─────────────────────────────────────── */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.toolbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ── AVATAR ──────────────────────────────────────── */
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
  font-family: var(--font-display);
}
.av-orange { background: var(--accent-dim); color: var(--accent); }
.av-purple { background: var(--accent2-dim); color: var(--accent2); }
.av-cyan { background: var(--accent3-dim); color: var(--accent3); }
.av-green { background: var(--accent4-dim); color: var(--accent4); }
.av-amber { background: var(--accent5-dim); color: var(--accent5); }
.av-pink { background: var(--accent6-dim); color: var(--accent6); }

/* ── EMPTY STATE ─────────────────────────────────── */
.empty-state {
  text-align: center; padding: 60px 20px;
}
.empty-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.empty-icon svg { width: 24px; height: 24px; }
.empty-state h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

/* ── MODAL ────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed;
  inset: 0; background: rgba(0,0,0,0.6);
  z-index: 500; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); width: 480px; max-width: 95vw;
  max-height: 90vh; overflow-y: auto;
}
.modal-head {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-head h2 { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text); }
.modal-close {
  width: 28px; height: 28px; border-radius: 6px;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 18px; transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: var(--surface2); color: var(--text); }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* ── TOGGLE ──────────────────────────────────────── */
.toggle-wrap { display: flex; align-items: center; gap: 10px; }
.toggle { position: relative; width: 38px; height: 22px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; inset: 0;
  background: var(--surface3); border: 1px solid var(--border);
  border-radius: 11px; cursor: pointer; transition: all 0.2s;
}
.toggle-track::after {
  content: ''; position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--muted); top: 2px; left: 2px;
  transition: all 0.2s;
}
.toggle input:checked + .toggle-track { background: var(--accent-dim); border-color: var(--accent); }
.toggle input:checked + .toggle-track::after { background: var(--accent); transform: translateX(16px); }
.toggle-label { font-size: 13px; color: var(--text2); }

/* ── PAGINATION ──────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 6px; padding: 14px 20px; border-top: 1px solid var(--border); justify-content: space-between; }
.page-info { font-size: 12px; color: var(--muted); }
.page-btns { display: flex; gap: 4px; }
.page-btn {
  width: 32px; height: 32px; border-radius: 7px;
  background: none; border: 1px solid var(--border);
  color: var(--text2); cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; font-family: var(--font-body);
}
.page-btn:hover { background: var(--surface2); border-color: var(--border-hover); }
.page-btn.active { background: var(--accent); color: white; border-color: var(--accent); }

/* ── SECTION TITLE ───────────────────────────────── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title { font-family: var(--font-display); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

/* ── GRID UTILS ──────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }

/* ── FLEX UTILS ──────────────────────────────────── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }

/* ── DIVIDER ─────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ── COLOR SWATCH ────────────────────────────────── */
.color-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* ── PILL SELECT ─────────────────────────────────── */
.pill-group { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-btn {
  padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface2);
  color: var(--muted); cursor: pointer; transition: all 0.15s;
  font-family: var(--font-display);
}
.pill-btn:hover { border-color: var(--border-hover); color: var(--text); }
.pill-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* ── SPINNER ─────────────────────────────────────── */
.spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── ALERT ───────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius); border: 1px solid; margin-bottom: 16px; font-size: 13px; display: flex; align-items: flex-start; gap: 10px; }
.alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; fill: currentColor; }
.alert-info { background: var(--accent3-dim); color: var(--accent3); border-color: rgba(34,211,238,0.2); }
.alert-warn { background: var(--accent5-dim); color: var(--accent5); border-color: rgba(245,158,11,0.2); }
.alert-danger { background: var(--danger-dim); color: var(--danger); border-color: rgba(239,68,68,0.2); }
.alert-success { background: var(--accent4-dim); color: var(--accent4); border-color: rgba(74,222,128,0.2); }