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

/* ═══════════════════════════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════════════════════════ */
:root {
  --bg:           #080c14;
  --bg2:          #0d1220;
  --surface:      rgba(255,255,255,0.03);
  --surface-hover:rgba(255,255,255,0.06);
  --glass:        rgba(13,18,32,0.85);
  --border:       rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.12);

  --text:         #e8edf5;
  --text-muted:   #6b7a99;
  --text-dim:     #3d4966;

  --accent:       #4f8ef7;
  --accent-glow:  rgba(79,142,247,0.35);
  --accent-dim:   rgba(79,142,247,0.15);

  --danger:       #f05252;
  --danger-glow:  rgba(240,82,82,0.3);
  --danger-dim:   rgba(240,82,82,0.12);
  --success:      #34d399;
  --warning:      #fbbf24;

  /* Classification */
  --ts:    #ef4444; --ts-bg: rgba(239,68,68,0.12);   --ts-border: rgba(239,68,68,0.35);
  --s:     #f97316; --s-bg:  rgba(249,115,22,0.12);  --s-border:  rgba(249,115,22,0.35);
  --c:     #3b82f6; --c-bg:  rgba(59,130,246,0.12);  --c-border:  rgba(59,130,246,0.35);
  --u:     #22c55e; --u-bg:  rgba(34,197,94,0.12);   --u-border:  rgba(34,197,94,0.35);

  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.7);
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════════════════
   CLASSIFICATION BANNER
═══════════════════════════════════════════════════════════════ */
.class-banner {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.class-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 20px,
    rgba(0,0,0,0.08) 20px,
    rgba(0,0,0,0.08) 21px
  );
}
.class-banner span { position: relative; z-index: 1; }

.class-banner.TOP-SECRET   { background: linear-gradient(90deg, #b91c1c, #ef4444, #b91c1c); color: #fff; }
.class-banner.SECRET       { background: linear-gradient(90deg, #c2410c, #f97316, #c2410c); color: #fff; }
.class-banner.CONFIDENTIAL { background: linear-gradient(90deg, #1d4ed8, #3b82f6, #1d4ed8); color: #fff; }
.class-banner.UNCLASSIFIED { background: linear-gradient(90deg, #15803d, #22c55e, #15803d); color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════════ */
header {
  background: var(--glass);
  border-bottom: 1px solid var(--border);
  padding: 0 1.75rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  z-index: 10;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-brand-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 16px var(--accent-glow);
}
.header-brand-text { display: flex; flex-direction: column; }
.header-brand-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.header-brand-sub {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  padding: 5px 14px 5px 8px;
}
.user-avatar {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.user-info { display: flex; flex-direction: column; line-height: 1.2; }
.user-name { font-size: 12px; font-weight: 600; color: var(--text); }
.user-clearance { font-size: 10px; font-family: 'JetBrains Mono', monospace; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════════════ */
.layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════════ */
nav {
  width: 230px;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0.75rem;
  gap: 2px;
  flex-shrink: 0;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.5rem 0.75rem 0.25rem;
  margin-top: 0.5rem;
}
.nav-section-label:first-child { margin-top: 0; }

nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
  position: relative;
}
nav a .nav-icon {
  width: 18px; height: 18px;
  opacity: 0.6;
  flex-shrink: 0;
}
nav a:hover {
  background: var(--surface-hover);
  color: var(--text);
}
nav a:hover .nav-icon { opacity: 0.9; }

nav a.active {
  background: var(--accent-dim);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-glow);
}
nav a.active .nav-icon { opacity: 1; }

.nav-spacer { flex: 1; }

.nav-footer {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════
   MAIN
═══════════════════════════════════════════════════════════════ */
main {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  background: var(--bg);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
main::-webkit-scrollbar { width: 6px; }
main::-webkit-scrollbar-track { background: transparent; }
main::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ═══════════════════════════════════════════════════════════════
   PAGE HEADER
═══════════════════════════════════════════════════════════════ */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
}
.page-title { font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.2; }
.page-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

/* ═══════════════════════════════════════════════════════════════
   STATS ROW
═══════════════════════════════════════════════════════════════ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.stat-card.ts::before  { background: var(--ts); }
.stat-card.s::before   { background: var(--s); }
.stat-card.c::before   { background: var(--c); }
.stat-card.u::before   { background: var(--u); }
.stat-card:hover { border-color: var(--border-light); }
.stat-label { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text); margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════════
   PANEL / CARD
═══════════════════════════════════════════════════════════════ */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.panel-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.panel-title-icon {
  width: 20px; height: 20px;
  opacity: 0.7;
}
.panel-body { padding: 1.5rem; }

/* ═══════════════════════════════════════════════════════════════
   SEARCH BAR
═══════════════════════════════════════════════════════════════ */
.search-wrap {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.search-field {
  flex: 1;
  position: relative;
}
.search-field-icon {
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-field input {
  padding-left: 34px !important;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 12px var(--accent-glow);
}
.btn-primary:hover:not(:disabled) {
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger-dim);
  color: var(--danger);
  border-color: rgba(240,82,82,0.2);
}
.btn-danger:hover:not(:disabled) {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 2px 12px var(--danger-glow);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text-muted);
  border-color: var(--border-light);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--surface-hover);
  color: var(--text);
  border-color: rgba(255,255,255,0.18);
}

.btn-sm { padding: 0.38rem 0.85rem; font-size: 12px; border-radius: 7px; }
.btn-icon {
  padding: 0.45rem;
  border-radius: 7px;
}
.btn-icon svg { width: 15px; height: 15px; }

/* ═══════════════════════════════════════════════════════════════
   FORM CONTROLS
═══════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 1.1rem; }

label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

input, select, textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  color: var(--text);
  font-size: 13px;
  font-family: 'Inter', inherit;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(79,142,247,0.05);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7a99' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}
select option { background: #1a2035; }

textarea { min-height: 160px; resize: vertical; line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════
   TABLE
═══════════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead tr {
  background: rgba(255,255,255,0.02);
}
th {
  text-align: left;
  padding: 0.7rem 1.2rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}
tr:last-child td { border-bottom: none; }
tbody tr {
  transition: background 0.1s;
}
tbody tr:hover td { background: rgba(255,255,255,0.025); }

.td-title {
  font-weight: 500;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.td-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   CLASSIFICATION BADGES
═══════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid;
}
.badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-TOP-SECRET   { color: var(--ts); background: var(--ts-bg); border-color: var(--ts-border); }
.badge-TOP-SECRET::before { background: var(--ts); box-shadow: 0 0 4px var(--ts); }

.badge-SECRET       { color: var(--s);  background: var(--s-bg);  border-color: var(--s-border); }
.badge-SECRET::before { background: var(--s); box-shadow: 0 0 4px var(--s); }

.badge-CONFIDENTIAL { color: var(--c);  background: var(--c-bg);  border-color: var(--c-border); }
.badge-CONFIDENTIAL::before { background: var(--c); box-shadow: 0 0 4px var(--c); }

.badge-UNCLASSIFIED { color: var(--u);  background: var(--u-bg);  border-color: var(--u-border); }
.badge-UNCLASSIFIED::before { background: var(--u); box-shadow: 0 0 4px var(--u); }

/* Role badge */
.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.role-badge.admin { background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.3); }
.role-badge.user  { background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); }

/* ═══════════════════════════════════════════════════════════════
   ACTION BUTTONS IN TABLE
═══════════════════════════════════════════════════════════════ */
.row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
tbody tr:hover .row-actions { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   MODAL
═══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: #111827;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  animation: slideUp 0.2s cubic-bezier(0.34,1.56,0.64,1);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.modal.modal-lg { max-width: 720px; }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 16px; font-weight: 600; color: var(--text); }
.modal-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.modal-body { padding: 1.5rem; }
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.01);
}

.btn-close {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
  flex-shrink: 0;
}
.btn-close:hover { background: var(--surface-hover); color: var(--text); }
.btn-close svg { width: 13px; height: 13px; }

/* ═══════════════════════════════════════════════════════════════
   DOC VIEW
═══════════════════════════════════════════════════════════════ */
.doc-view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.doc-view-title { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.3; }
.doc-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.doc-meta-item { display: flex; align-items: center; gap: 4px; }

.doc-content {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 55vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* ═══════════════════════════════════════════════════════════════
   ALERTS
═══════════════════════════════════════════════════════════════ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 1rem;
  animation: fadeIn 0.2s ease;
}
.alert svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }
.alert-error   { background: var(--danger-dim); color: var(--danger); border: 1px solid rgba(240,82,82,0.25); }
.alert-success { background: rgba(52,211,153,0.1); color: var(--success); border: 1px solid rgba(52,211,153,0.25); }

/* ═══════════════════════════════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-icon {
  font-size: 40px;
  margin-bottom: 1rem;
  opacity: 0.3;
}
.empty-title { font-size: 15px; font-weight: 600; color: var(--text-dim); margin-bottom: 0.5rem; }
.empty-sub { font-size: 13px; color: var(--text-dim); }

/* ═══════════════════════════════════════════════════════════════
   AUDIT LOG — action pills
═══════════════════════════════════════════════════════════════ */
.action-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}
.ap-green  { background: rgba(52,211,153,0.12); color: #34d399; }
.ap-red    { background: var(--danger-dim); color: var(--danger); }
.ap-blue   { background: var(--accent-dim); color: var(--accent); }
.ap-purple { background: rgba(139,92,246,0.12); color: #a78bfa; }
.ap-orange { background: rgba(251,191,36,0.12); color: var(--warning); }
.ap-gray   { background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); }

/* ═══════════════════════════════════════════════════════════════
   LOGIN PAGE
═══════════════════════════════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* Left decorative panel */
.login-left {
  flex: 1;
  background: linear-gradient(145deg, #0d1220 0%, #0a1628 50%, #0d1220 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.login-left::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,142,247,0.12) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.login-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
}
.login-brand-big {
  position: relative;
  z-index: 1;
  text-align: center;
}
.login-shield {
  width: 90px; height: 90px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(79,142,247,0.2), rgba(99,102,241,0.2));
  border: 1px solid rgba(79,142,247,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  box-shadow: 0 0 40px rgba(79,142,247,0.2);
}
.login-tagline {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1rem;
}
.login-brand-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.login-dividers {
  position: absolute;
  z-index: 1;
  bottom: 2rem;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.login-stat {
  text-align: center;
}
.login-stat-val { font-size: 22px; font-weight: 700; color: var(--accent); }
.login-stat-lbl { font-size: 10px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }

/* Right form panel */
.login-right {
  width: 440px;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  flex-shrink: 0;
}
.login-right-header { margin-bottom: 2rem; }
.login-right-title { font-size: 22px; font-weight: 700; color: var(--text); }
.login-right-sub { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.login-footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.login-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}
.login-warning svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 1px; color: var(--warning); }

/* ═══════════════════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════════════════ */
.hidden  { display: none !important; }
.flex    { display: flex; }
.items-center { align-items: center; }
.gap-2   { gap: 0.5rem; }
.gap-3   { gap: 0.75rem; }
.flex-1  { flex: 1; }
.mt-1    { margin-top: 0.5rem; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Separator */
.sep { height: 1px; background: var(--border); margin: 0.5rem 0; }

/* Scrollable table container */
.table-scroll { overflow-x: auto; }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

/* Classification divider in form */
.classif-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-radius: 7px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 0.4rem;
}
.classif-option:hover { border-color: var(--border-light); background: var(--surface-hover); }
.classif-option.selected { border-color: var(--accent); background: var(--accent-dim); }

@media (max-width: 900px) {
  .login-left { display: none; }
  .login-right { width: 100%; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  nav { width: 200px; }
}
@media (max-width: 600px) {
  nav { display: none; }
  main { padding: 1rem; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
