/* ═══════════════════════════════════════════════════════
   CLSNetwork — Design System
   Dark navy / electric blue — premium intelligence platform
═══════════════════════════════════════════════════════ */

:root {
  --bg-0: #020810;
  --bg-1: #04091a;
  --bg-2: #060e25;
  --bg-card: #081530;
  --bg-elevated: #0a1c3a;
  --bg-input: #040c1e;

  --blue-900: #0d2352;
  --blue-800: #1a3a7a;
  --blue-700: #1e4fa8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-300: #93c5fd;
  --cyan:     #06b6d4;
  --cyan-dim: #0891b2;

  --border: rgba(37, 99, 235, 0.18);
  --border-bright: rgba(59, 130, 246, 0.4);
  --border-card: rgba(30, 79, 168, 0.25);

  --text-primary: #f0f9ff;
  --text-secondary: #94a3b8;
  --text-muted: #4a6080;
  --text-accent: #60a5fa;

  --success: #10b981;
  --warning: #f59e0b;
  --danger:  #ef4444;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-card);
  --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.25), 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow-strong: 0 0 60px rgba(37, 99, 235, 0.4), 0 8px 40px rgba(0, 0, 0, 0.6);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-400); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-300); }
img { max-width: 100%; }
button { cursor: pointer; border: none; outline: none; font-family: var(--font); }
input, textarea, select { font-family: var(--font); outline: none; border: none; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--blue-800); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-700); }
::selection { background: rgba(37, 99, 235, 0.35); color: var(--text-primary); }

/* ── Animated particle canvas ── */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ── Noise overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  opacity: 0.4;
}

/* ── Layout ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.container-sm { max-width: 880px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.section { padding: 80px 0; }

/* ── Gradient backgrounds ── */
.gradient-radial {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
}
.gradient-glow-bg {
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(6, 182, 212, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
}

/* ══════════ NAVBAR ══════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(2, 8, 16, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand img { width: 32px; height: 32px; object-fit: contain; }
.nav-brand-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 30%, var(--blue-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(37, 99, 235, 0.12);
}
.nav-link svg { width: 15px; height: 15px; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid var(--border-card);
  border-radius: 99px;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-user:hover { background: rgba(37, 99, 235, 0.2); color: var(--text-primary); }
.nav-avatar {
  width: 24px; height: 24px;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger:hover { background: rgba(255,255,255,0.05); }

/* ══════════ BUTTONS ══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}
.btn:hover::after { background: rgba(255,255,255,0.06); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue-400);
  border: 1px solid var(--border-bright);
}
.btn-secondary:hover {
  background: rgba(37, 99, 235, 0.18);
  color: var(--blue-300);
  border-color: rgba(96, 165, 250, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  border-color: var(--border-bright);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.2); }

.btn-sm { padding: 6px 14px; font-size: 0.8125rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }
.btn-xl {
  padding: 16px 36px;
  font-size: 1.0625rem;
  border-radius: var(--radius);
  letter-spacing: 0.015em;
}
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }

/* ══════════ CARDS ══════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover::before { opacity: 1; }
.card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.card-glass {
  background: rgba(8, 21, 48, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
}

/* ══════════ FORMS ══════════ */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.form-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9375rem;
  color: var(--text-primary);
  transition: all var(--transition);
  width: 100%;
}
.form-input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: var(--bg-1);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input.error { border-color: var(--danger); }
.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.form-error {
  font-size: 0.8125rem;
  color: var(--danger);
  display: none;
}
.form-error.visible { display: block; }

/* ══════════ BADGE ══════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge-blue { background: rgba(37, 99, 235, 0.15); color: var(--blue-400); border: 1px solid rgba(37, 99, 235, 0.25); }
.badge-cyan { background: rgba(6, 182, 212, 0.12); color: var(--cyan); border: 1px solid rgba(6, 182, 212, 0.25); }
.badge-green { background: rgba(16, 185, 129, 0.12); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.25); }
.badge-red { background: rgba(239, 68, 68, 0.12); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.25); }
.badge-yellow { background: rgba(245, 158, 11, 0.12); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.25); }
.badge-gray { background: rgba(148, 163, 184, 0.1); color: var(--text-secondary); border: 1px solid rgba(148, 163, 184, 0.2); }

/* ══════════ TABS ══════════ */
.tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
}
.tab-btn {
  flex: 1;
  padding: 9px 16px;
  border-radius: calc(var(--radius) - 4px);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.tab-btn svg { width: 14px; height: 14px; }
.tab-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.tab-btn.active {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-800) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* ══════════ TOAST ══════════ */
#toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--text-primary);
  min-width: 280px;
  max-width: 400px;
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(16px);
}
.toast.fade-out { animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.toast-icon { width: 18px; height: 18px; flex-shrink: 0; }
.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-info { border-left: 3px solid var(--blue-400); }
.toast-warning { border-left: 3px solid var(--warning); }

/* ══════════ MODAL ══════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(2, 8, 16, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}
.modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--bg-2);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 36px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-glow-strong);
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.modal-overlay.visible .modal {
  transform: scale(1) translateY(0);
}
.modal::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 200px;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
  font-size: 1.25rem;
  line-height: 1;
}
.modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}
.modal-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.modal-logo img { width: 48px; height: 48px; object-fit: contain; }
.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.modal-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 28px;
}
.modal-form { display: flex; flex-direction: column; gap: 18px; }
.modal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
}
.modal-divider span {
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.modal-divider::before,
.modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.modal-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.modal-footer a { color: var(--blue-400); font-weight: 600; }

/* ══════════ SPINNER ══════════ */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-top-color: var(--blue-500);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
.spinner-lg { width: 36px; height: 36px; border-width: 3px; }
.spinner-center { margin: 40px auto; }

/* ══════════ HERO ══════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 10%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.1) 0%, transparent 65%);
  pointer-events: none;
  animation: pulse-glow 4s ease-in-out infinite;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-400);
  margin-bottom: 28px;
  letter-spacing: 0.03em;
  animation: fadeInUp 0.6s 0.1s both;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-align: center;
  max-width: 900px;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s 0.2s both;
}
.hero-title-gradient {
  background: linear-gradient(135deg, #fff 0%, var(--blue-300) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 580px;
  text-align: center;
  margin-bottom: 48px;
  line-height: 1.65;
  animation: fadeInUp 0.6s 0.3s both;
}

/* ══════════ SEARCH SECTION ══════════ */
.search-section {
  width: 100%;
  max-width: 780px;
  animation: fadeInUp 0.6s 0.4s both;
}
.search-tabs-row {
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.search-tabs-row::-webkit-scrollbar { display: none; }
.search-tabs {
  display: flex;
  gap: 6px;
  background: rgba(4, 12, 30, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px;
  width: max-content;
  min-width: 100%;
}
.search-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.search-tab svg { width: 14px; height: 14px; }
.search-tab:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.search-tab.active {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  color: #fff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}
.search-bar-wrap {
  background: rgba(8, 21, 48, 0.9);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition);
  backdrop-filter: blur(12px);
}
.search-bar-wrap:focus-within {
  border-color: var(--blue-500);
  box-shadow: var(--shadow-glow-strong), 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 8px 8px 20px;
}
.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-right: 12px;
  transition: color var(--transition);
}
.search-bar-wrap:focus-within .search-icon { color: var(--blue-400); }
#search-input {
  flex: 1;
  background: transparent;
  font-size: 1rem;
  color: var(--text-primary);
  height: 44px;
  padding: 0;
  min-width: 0;
}
#search-input::placeholder { color: var(--text-muted); }
.search-type-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-400);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-right: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
#search-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%);
  color: #fff;
  border-radius: calc(var(--radius-lg) - 8px);
  padding: 11px 24px;
  font-size: 0.9375rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.4);
}
#search-btn:hover {
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-600) 100%);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.55);
}
#search-btn svg { width: 16px; height: 16px; }
.search-hint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 4px;
}
.search-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.search-hint strong { color: var(--text-secondary); }
.search-quick-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.quick-tag {
  padding: 4px 10px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.quick-tag:hover { background: rgba(37, 99, 235, 0.12); color: var(--blue-400); border-color: var(--border-bright); }

/* ══════════ RESULTS ══════════ */
#results-section {
  padding-top: 0;
  min-height: 0;
  transition: all var(--transition-slow);
}
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.results-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.results-count {
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid var(--border-card);
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-400);
}
.results-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.3s ease both;
}
.result-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan));
  opacity: 0;
  transition: opacity var(--transition);
}
.result-card:hover { border-color: var(--border-bright); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.result-card:hover::before { opacity: 1; }
.result-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-400);
  margin-bottom: 12px;
}
.result-type svg { width: 12px; height: 12px; }
.result-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.875rem;
}
.result-key {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 80px;
  flex-shrink: 0;
  padding-top: 1px;
}
.result-val {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  word-break: break-all;
  flex: 1;
}
.result-val.redacted {
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font);
}
.result-val.highlight { color: var(--cyan); }
.result-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.result-source {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.result-date { font-size: 0.75rem; color: var(--text-muted); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.page-btn {
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.page-btn:hover { background: var(--bg-elevated); color: var(--text-primary); border-color: var(--border-bright); }
.page-btn.active { background: var(--blue-700); color: #fff; border-color: transparent; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ══════════ STATS SECTION ══════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-slow);
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.stat-card:hover { border-color: var(--border-bright); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.stat-icon {
  width: 44px; height: 44px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--blue-400);
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #fff 0%, var(--blue-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.875rem; color: var(--text-secondary); font-weight: 500; }
.stat-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }

/* ══════════ FEATURES SECTION ══════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.feature-card:hover { border-color: var(--border-bright); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
}
.feature-icon.blue { background: rgba(37, 99, 235, 0.12); border: 1px solid rgba(37, 99, 235, 0.2); color: var(--blue-400); }
.feature-icon.cyan { background: rgba(6, 182, 212, 0.1); border: 1px solid rgba(6, 182, 212, 0.2); color: var(--cyan); }
.feature-icon.purple { background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.2); color: #a78bfa; }
.feature-icon.green { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); color: var(--success); }
.feature-icon svg { width: 24px; height: 24px; }
.feature-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.feature-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

/* ══════════ SECTION HEADER ══════════ */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-desc { font-size: 1rem; color: var(--text-secondary); line-height: 1.65; }

/* ══════════ DIVIDER ══════════ */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-card), transparent);
  margin: 60px 0;
}

/* ══════════ DASHBOARD ══════════ */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  min-height: 100vh;
  padding-top: 64px;
}
.sidebar {
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  padding: 32px 16px;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-section {
  margin-bottom: 16px;
}
.sidebar-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 12px;
  margin-bottom: 6px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  text-decoration: none;
}
.sidebar-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.sidebar-link:hover { background: rgba(37, 99, 235, 0.08); color: var(--text-primary); }
.sidebar-link.active { background: rgba(37, 99, 235, 0.12); color: var(--blue-400); }
.sidebar-link .badge { margin-left: auto; }
.dashboard-main {
  padding: 32px;
  min-height: calc(100vh - 64px);
}
.page-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.page-subtitle { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 28px; }

/* Dashboard cards grid */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 28px; }
.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dash-card-header { display: flex; align-items: center; justify-content: space-between; }
.dash-card-icon {
  width: 40px; height: 40px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-400);
}
.dash-card-icon svg { width: 20px; height: 20px; }
.dash-card-val { font-size: 1.875rem; font-weight: 800; letter-spacing: -0.04em; }
.dash-card-label { font-size: 0.8125rem; color: var(--text-secondary); }

/* Table */
.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(37, 99, 235, 0.04); }
.table td .mono { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-primary); }
.table-actions { display: flex; gap: 6px; }

/* ══════════ FOOTER ══════════ */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 30%, var(--blue-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.footer-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 260px;
}
.footer-col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 0.875rem; color: var(--text-muted); transition: color var(--transition); }
.footer-link:hover { color: var(--text-secondary); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 0.8125rem; color: var(--text-muted); }

/* ══════════ ADMIN ══════════ */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.search-filter-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}
.search-filter-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.875rem;
  color: var(--text-primary);
  flex: 1;
  min-width: 200px;
  transition: all var(--transition);
}
.search-filter-input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.search-filter-input::placeholder { color: var(--text-muted); }

/* ══════════ EMPTY STATE ══════════ */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}
.empty-state-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.empty-state-icon svg { width: 32px; height: 32px; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: 0.875rem; max-width: 340px; margin: 0 auto; }

/* ══════════ NOTIFICATIONS DOT ══════════ */
.notif-dot {
  width: 8px; height: 8px;
  background: var(--danger);
  border-radius: 50%;
  display: inline-block;
}

/* ══════════ OSINT CARD ══════════ */
.osint-profile {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 28px;
  animation: fadeInUp 0.3s ease both;
}
.osint-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-700), var(--cyan-dim));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.osint-avatar img { width: 100%; height: 100%; object-fit: cover; }
.osint-info { flex: 1; }
.osint-name { font-size: 1.25rem; font-weight: 700; }
.osint-handle { font-size: 0.875rem; color: var(--text-secondary); margin-top: 2px; }
.osint-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.osint-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.osint-field {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.osint-field-key { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 4px; }
.osint-field-val { font-size: 0.875rem; color: var(--text-primary); font-family: var(--font-mono); word-break: break-all; }

/* ══════════ PROGRESS BAR ══════════ */
.progress-bar-wrap {
  height: 4px;
  background: var(--bg-2);
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan));
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* ══════════ ANIMATIONS ══════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(20px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50%       { opacity: 0.8; transform: translateX(-50%) scale(1.05); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.animate-float { animation: float 4s ease-in-out infinite; }
.fade-in { animation: fadeIn 0.5s ease both; }
.fade-in-up { animation: fadeInUp 0.5s ease both; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 400px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius-sm);
}

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-layout { grid-template-columns: 200px 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .sidebar.open {
    display: flex;
    position: fixed;
    top: 64px; left: 0;
    width: 260px;
    height: calc(100vh - 64px);
    z-index: 900;
    border-right: 1px solid var(--border-bright);
    box-shadow: var(--shadow-glow);
  }
  .results-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 100px 16px 60px; }
  .dashboard-main { padding: 16px; }
  .modal { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .search-tabs { flex-wrap: wrap; }
}
