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

:root {
  --bg: #07090e;
  --bg2: #0c0f17;
  --surface: #111520;
  --surface2: #181d2e;
  --surface3: #1e2438;
  --border: #232840;
  --border-light: #2d3450;
  --accent: #5b8ef5;
  --accent2: #7c6af7;
  --accent-dim: rgba(91,142,245,.1);
  --accent-glow: rgba(91,142,245,.2);
  --green: #34d399;
  --green-dim: rgba(52,211,153,.1);
  --red: #f87171;
  --red-dim: rgba(248,113,113,.1);
  --orange: #fb923c;
  --orange-dim: rgba(251,146,60,.1);
  --purple: #c084fc;
  --purple-dim: rgba(192,132,252,.1);
  --yellow: #fbbf24;
  --yellow-dim: rgba(251,191,36,.1);
  --cyan: #22d3ee;
  --cyan-dim: rgba(34,211,238,.1);
  --pink: #f472b6;
  --pink-dim: rgba(244,114,182,.1);
  --text: #e2e8f8;
  --text-2: #8892aa;
  --text-3: #4a5270;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow: 0 8px 32px rgba(0,0,0,.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.6);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(91,142,245,.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 90% 80%, rgba(124,106,247,.05) 0%, transparent 50%);
}

/* ── NAVBAR ─────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 62px;
  background: rgba(11,14,23,.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.2px;
  color: var(--text);
  text-decoration: none;
  transition: opacity .15s;
}
.nav-logo:hover { opacity: .85; }
.nav-logo .shield-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 16px rgba(91,142,245,.3);
  overflow: hidden;
}
.nav-logo .shield-icon img { display: block; }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-user {
  color: var(--text-3);
  font-size: 13px;
  padding: 0 10px;
  border-right: 1px solid var(--border);
  margin-right: 4px;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -.1px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 4px 16px rgba(91,142,245,.25);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(91,142,245,.35); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255,255,255,.04);
  color: var(--text-2);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,.07); border-color: var(--text-3); }

.btn-success {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(52,211,153,.2);
}
.btn-success:hover { background: var(--green); color: #07090e; }

.btn-danger {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(248,113,113,.2);
}
.btn-danger:hover { background: var(--red); color: #fff; }

.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: 12px; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; filter: none !important; }

/* ── HERO ────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 80px 24px 52px;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(91,142,245,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(91,142,245,.2);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: .3px;
}
.hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #e2e8f8 0%, #8892aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: var(--text-2);
  font-size: 16px;
  margin-bottom: 32px;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── STATS BAR ───────────────────────────────────────── */
.stats-bar {
  display: flex;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto 36px;
  padding: 0 24px;
  flex-wrap: wrap;
}
.stat-card {
  flex: 1;
  min-width: 150px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color .2s, transform .2s;
}
.stat-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.stat-icon.blue   { background: var(--accent-dim); }
.stat-icon.green  { background: var(--green-dim); }
.stat-icon.orange { background: var(--orange-dim); }
.stat-icon.purple { background: var(--purple-dim); }
.stat-value { font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -.5px; }
.stat-label { font-size: 12px; color: var(--text-3); margin-top: 4px; font-weight: 500; }

/* ── MAIN LAYOUT ─────────────────────────────────────── */
main { max-width: 1100px; margin: 0 auto; padding: 0 24px 56px; }

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.section-header h2 { font-size: 17px; font-weight: 700; letter-spacing: -.2px; }

/* ── FILTERS ─────────────────────────────────────────── */
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.search-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
}
.search-wrap .search-icon {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 13px;
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 10px 13px 10px 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search-input::placeholder { color: var(--text-3); }
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.filter-select {
  padding: 10px 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: border-color .15s;
}
.filter-select:focus { border-color: var(--accent); }

/* ── TABLE ───────────────────────────────────────────── */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
table { width: 100%; border-collapse: collapse; }
thead { background: var(--surface2); }
th {
  padding: 12px 18px;
  text-align: left;
  color: var(--text-3);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .7px;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}
tr:last-child td { border-bottom: none; }
tbody tr { transition: background .1s; }
tbody tr:hover td { background: rgba(255,255,255,.02); }
td a {
  color: var(--accent);
  text-decoration: none;
  max-width: 260px;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  transition: color .15s;
}
td a:hover { color: #7aaaf8; text-decoration: underline; }
.td-name { font-weight: 600; font-size: 13px; }
.td-id { color: var(--text-3); font-size: 12px; font-family: 'SF Mono', 'Fira Code', monospace; }

.empty-state {
  padding: 64px 24px;
  text-align: center;
  color: var(--text-3);
}
.empty-state .empty-icon { font-size: 36px; margin-bottom: 12px; opacity: .6; }
.empty-state p { font-size: 14px; }

/* ── TAGS ────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  white-space: nowrap;
}
.tag-token-grabber      { background: var(--red-dim);    color: var(--red);    border: 1px solid rgba(248,113,113,.2); }
.tag-phishing           { background: var(--orange-dim); color: var(--orange); border: 1px solid rgba(251,146,60,.2); }
.tag-malware            { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(192,132,252,.2); }
.tag-script-malveillant { background: var(--yellow-dim); color: var(--yellow); border: 1px solid rgba(251,191,36,.2); }
.tag-rat                { background: var(--red-dim);    color: #ff8a8a;       border: 1px solid rgba(248,113,113,.15); }
.tag-ransomware         { background: rgba(239,68,68,.1); color: #fc8181;      border: 1px solid rgba(239,68,68,.2); }
.tag-cryptojacking      { background: var(--yellow-dim); color: #fcd34d;       border: 1px solid rgba(251,191,36,.2); }
.tag-spyware            { background: var(--cyan-dim);   color: var(--cyan);   border: 1px solid rgba(34,211,238,.2); }
.tag-backdoor           { background: var(--purple-dim); color: #d8b4fe;       border: 1px solid rgba(192,132,252,.2); }
.tag-exploit            { background: var(--pink-dim);   color: var(--pink);   border: 1px solid rgba(244,114,182,.2); }
.tag-scam               { background: var(--green-dim);  color: var(--green);  border: 1px solid rgba(52,211,153,.2); }
.tag-autre              { background: var(--surface2);   color: var(--text-2); border: 1px solid var(--border); }

/* ── BADGE ───────────────────────────────────────────── */
.badge {
  background: var(--surface2);
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-pending {
  background: var(--orange-dim);
  color: var(--orange);
  border-color: rgba(251,146,60,.2);
}

/* ── TABS ────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin-bottom: 24px;
  width: fit-content;
}
.tab {
  background: none;
  border: none;
  color: var(--text-3);
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .15s;
  letter-spacing: -.1px;
}
.tab:hover { color: var(--text-2); background: var(--surface2); }
.tab.active {
  background: var(--surface3);
  color: var(--text);
  box-shadow: 0 1px 6px rgba(0,0,0,.4);
}

/* ── MODAL ───────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  padding: 16px;
  animation: fadeIn .15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 30px;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  animation: slideUp .2s cubic-bezier(.16,1,.3,1);
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}
.modal-title h2 { font-size: 18px; font-weight: 700; letter-spacing: -.3px; }
.modal-title p { color: var(--text-3); font-size: 13px; margin-top: 4px; }
.modal-close {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-3);
  width: 32px; height: 32px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .15s;
}
.modal-close:hover { color: var(--text); border-color: var(--border-light); background: var(--surface3); }
.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* ── FORM ────────────────────────────────────────────── */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-3); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.field textarea { resize: vertical; min-height: 80px; }
.field select { cursor: pointer; }
.field-hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }

/* ── AUTH PAGE ───────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(91,142,245,.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 100%, rgba(124,106,247,.05) 0%, transparent 50%);
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}
.auth-logo .shield-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 24px rgba(91,142,245,.3);
  overflow: hidden;
}
.auth-logo .shield-icon img { display: block; }
.auth-logo span { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.auth-card h1 { font-size: 22px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.3px; }
.auth-card .auth-sub { color: var(--text-3); font-size: 14px; margin-bottom: 28px; }
.auth-back { text-align: center; margin-top: 20px; }
.auth-back a { color: var(--text-3); font-size: 13px; text-decoration: none; transition: color .15s; }
.auth-back a:hover { color: var(--text-2); }

/* ── ALERTS ──────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.alert-error   { background: var(--red-dim);   color: var(--red);   border: 1px solid rgba(248,113,113,.2); }
.alert-success { background: var(--green-dim); color: var(--green); border: 1px solid rgba(52,211,153,.2); }
.alert-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }

/* ── SUCCESS STATE ───────────────────────────────────── */
.success-state {
  text-align: center;
  padding: 16px 0 8px;
}
.success-state .success-icon {
  width: 60px; height: 60px;
  background: var(--green-dim);
  border: 1px solid rgba(52,211,153,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 18px;
}
.success-state h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.success-state p { color: var(--text-2); font-size: 14px; }

/* ── ACTIONS CELL ────────────────────────────────────── */
.actions-cell { display: flex; gap: 6px; align-items: center; }

/* ── UTILS ───────────────────────────────────────────── */
.hidden { display: none !important; }
.text-muted { color: var(--text-2); }
.text-sm { font-size: 12px; }
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11,14,23,.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 14px 32px;
  z-index: 40;
}
main { padding-bottom: 80px; }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.footer-brand .shield-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  color: var(--text-3);
  align-items: center;
}
.footer-links a { color: var(--accent); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: #7aaaf8; }
