/* ════════════════════════════════════════════════════════════════
   OSINT HUB — Design System
   Palette: Bleu ardoise moyen — ni trop sombre, ni trop clair
   ════════════════════════════════════════════════════════════════ */

:root {
  --bg:           #151e2d;
  --bg-2:         #1c2840;
  --bg-card:      #1f2e45;
  --bg-input:     #243452;
  --bg-hover:     #2a3d60;

  --border:       #2e4168;
  --border-light: #3a5080;

  --accent:       #38bdf8;
  --accent-dim:   rgba(56, 189, 248, 0.12);
  --accent-hover: #7dd3fc;
  --purple:       #a78bfa;
  --purple-dim:   rgba(167, 139, 250, 0.12);
  --green:        #34d399;
  --green-dim:    rgba(52, 211, 153, 0.12);
  --red:          #f87171;
  --red-dim:      rgba(248, 113, 113, 0.12);
  --yellow:       #fbbf24;
  --yellow-dim:   rgba(251, 191, 36, 0.12);

  --text:         #e2e8f0;
  --text-2:       #94a3b8;
  --text-3:       #64748b;

  --radius:       10px;
  --radius-sm:    6px;
  --shadow:       0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-card:  0 2px 12px rgba(0, 0, 0, 0.25);
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* ─── Header ─────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(21, 30, 45, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 28px; height: 28px; color: var(--accent); }
.logo-text {
  font-size: 1.15rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--text);
}
.logo-accent { color: var(--accent); }

.header-nav { display: flex; align-items: center; gap: 12px; }
.nav-badge {
  font-size: 0.7rem; font-family: 'JetBrains Mono', monospace;
  color: var(--text-3); background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 20px;
}
.btn-settings {
  background: none; border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer;
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.btn-settings svg { width: 17px; height: 17px; }
.btn-settings:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* ─── Modal ──────────────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); width: 100%; max-width: 480px;
  box-shadow: var(--shadow); animation: slideUp 0.2s ease;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-size: 1rem; font-weight: 600; }
.modal-close {
  background: none; border: none; color: var(--text-2);
  cursor: pointer; font-size: 1rem; line-height: 1;
  padding: 4px 6px; border-radius: var(--radius-sm);
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }
.modal-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--text-2); }
.input-hint { font-size: 0.75rem; color: var(--text-3); }
.modal-input {
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem; font-size: 0.9rem; font-family: 'JetBrains Mono', monospace;
  outline: none; transition: border-color 0.2s;
}
.modal-input:focus { border-color: var(--accent); }
.modal-info {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.78rem; color: var(--text-3);
  background: var(--bg); border-radius: var(--radius-sm); padding: 0.75rem;
}
.modal-info svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }
.modal-info code { font-family: 'JetBrains Mono', monospace; color: var(--accent); }
.badge-optional {
  font-size: 0.65rem; background: var(--purple-dim); color: var(--purple);
  border: 1px solid var(--purple); border-radius: 20px; padding: 1px 7px;
  margin-left: 6px; vertical-align: middle;
}

/* ─── Main ───────────────────────────────────────────────────────── */
.main { flex: 1; max-width: 1100px; margin: 0 auto; width: 100%; padding: 2.5rem 1.5rem; }

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero { text-align: center; margin-bottom: 2.5rem; }
.hero-title {
  font-size: 2.2rem; font-weight: 700; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 0.6rem;
}
.hero-sub { color: var(--text-2); font-size: 1rem; max-width: 600px; margin: 0 auto; }

/* ─── Smart Unified Search ───────────────────────────────────────── */
.smart-wrap { margin-bottom: 1.5rem; }
.smart-bar {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 0.6rem 0.6rem 0.6rem 1rem;
  transition: border-color 0.2s;
}
.smart-bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56,189,248,0.08); }
.smart-type-icon {
  width: 22px; height: 22px; flex-shrink: 0; color: var(--text-3);
  transition: color 0.2s;
}
.smart-type-icon svg { width: 100%; height: 100%; }
.smart-type-icon.type-email  { color: var(--accent); }
.smart-type-icon.type-phone  { color: var(--green); }
.smart-type-icon.type-user   { color: var(--purple); }
.smart-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 1.05rem; font-family: 'Inter', sans-serif;
  min-width: 0;
}
.smart-input::placeholder { color: var(--text-3); }
.smart-type-badge {
  font-size: 0.72rem; font-weight: 600; padding: 3px 10px;
  border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}
.smart-type-badge.email  { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent); }
.smart-type-badge.phone  { background: var(--green-dim); color: var(--green); border: 1px solid var(--green); }
.smart-type-badge.user   { background: var(--purple-dim); color: var(--purple); border: 1px solid var(--purple); }
.btn-smart {
  background: linear-gradient(135deg, var(--accent), #818cf8);
  color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 0.6rem 1.4rem; font-size: 0.9rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: opacity 0.2s, transform 0.1s;
}
.btn-smart:hover { opacity: 0.9; }
.btn-smart:active { transform: scale(0.97); }
.smart-hint {
  font-size: 0.75rem; color: var(--text-3);
  text-align: center; margin-top: 0.5rem;
}

/* ─── Options group label ─────────────────────────────────────────── */
.options-group-label {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--text-3); width: 100%;
  padding-top: 0.25rem;
}
.search-options { row-gap: 0.6rem; }

/* ─── Tabs ───────────────────────────────────────────────────────── */
.search-container {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card);
}
.tabs {
  display: flex; border-bottom: 1px solid var(--border);
  background: var(--bg-2); overflow-x: auto;
}
.tab {
  display: flex; align-items: center; gap: 7px;
  padding: 0.85rem 1.25rem; font-size: 0.875rem; font-weight: 500;
  color: var(--text-2); background: none; border: none;
  cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent;
  transition: all 0.2s; margin-bottom: -1px;
}
.tab svg { width: 15px; height: 15px; }
.tab:hover { color: var(--text); background: var(--bg-hover); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ─── Panel ──────────────────────────────────────────────────────── */
.panel { display: none; padding: 1.5rem; flex-direction: column; gap: 1rem; }
.panel.active { display: flex; }

/* ─── Search Bar ─────────────────────────────────────────────────── */
.search-bar {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.5rem 0.5rem 0.5rem 1rem;
  transition: border-color 0.2s;
}
.search-bar:focus-within { border-color: var(--accent); }
.search-bar.name-bar { flex-wrap: wrap; }
.search-icon { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; }
.search-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 1rem; font-family: 'Inter', sans-serif;
  min-width: 0;
}
.search-input::placeholder { color: var(--text-3); }
.name-bar .search-input { min-width: 120px; }

.btn-search {
  display: flex; align-items: center; gap: 7px;
  background: var(--accent); color: #0c1929;
  border: none; border-radius: var(--radius-sm);
  padding: 0.55rem 1.1rem; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: background 0.2s, transform 0.1s;
}
.btn-search svg { width: 15px; height: 15px; }
.btn-search:hover { background: var(--accent-hover); }
.btn-search:active { transform: scale(0.97); }

/* ─── Options / Checkboxes ───────────────────────────────────────── */
.search-options { display: flex; flex-wrap: wrap; gap: 1rem; }
.checkbox-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text-2); cursor: pointer;
  user-select: none;
}
.checkbox-label input[type="checkbox"] { display: none; }
.checkbox-custom {
  width: 16px; height: 16px; border: 1.5px solid var(--border-light);
  border-radius: 4px; background: var(--bg-input); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.checkbox-label input:checked + .checkbox-custom {
  background: var(--accent); border-color: var(--accent);
}
.checkbox-label input:checked + .checkbox-custom::after {
  content: ''; display: block; width: 5px; height: 8px;
  border: 2px solid #0c1929; border-top: none; border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}
.checkbox-label:hover .checkbox-custom { border-color: var(--accent); }

/* ─── Platform Filter ────────────────────────────────────────────── */
.platform-filter {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
}
.filter-label { font-size: 0.8rem; color: var(--text-3); margin-right: 4px; }
.filter-chip {
  padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 500;
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer; transition: all 0.15s;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

/* ─── Results ────────────────────────────────────────────────────── */
.results-section { margin-top: 2rem; }
.results-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.results-title-wrap { display: flex; align-items: baseline; gap: 0.75rem; }
.results-title { font-size: 1.15rem; font-weight: 600; }
.results-query {
  font-family: 'JetBrains Mono', monospace; font-size: 0.85rem;
  color: var(--accent); background: var(--accent-dim);
  padding: 2px 10px; border-radius: 20px;
}
.btn-clear {
  background: none; border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer; font-size: 0.8rem;
  padding: 5px 14px; border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.btn-clear:hover { border-color: var(--red); color: var(--red); }

/* ─── Stats Bar ──────────────────────────────────────────────────── */
.stats-bar {
  display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.stat-card {
  flex: 1; min-width: 100px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.stat-num { font-size: 1.8rem; font-weight: 700; font-family: 'JetBrains Mono', monospace; color: var(--accent); }
.stat-label { font-size: 0.72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }

/* ─── Results Grid ───────────────────────────────────────────────── */
.results-grid { display: flex; flex-direction: column; gap: 1rem; }

/* ─── Result Cards ───────────────────────────────────────────────── */
.result-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card); animation: fadeIn 0.3s ease;
}
.result-card.card-breach { border-left: 3px solid var(--red); }
.result-card.card-found { border-left: 3px solid var(--green); }
.result-card.card-info { border-left: 3px solid var(--accent); }
.result-card.card-search { border-left: 3px solid var(--purple); }

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; cursor: pointer;
  transition: background 0.15s;
}
.card-header:hover { background: var(--bg-hover); }
.card-header-left { display: flex; align-items: center; gap: 10px; }
.card-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.card-icon.icon-breach { background: var(--red-dim); }
.card-icon.icon-found { background: var(--green-dim); }
.card-icon.icon-info { background: var(--accent-dim); }
.card-icon.icon-search { background: var(--purple-dim); }

.card-title-wrap { display: flex; flex-direction: column; gap: 2px; }
.card-title { font-size: 0.95rem; font-weight: 600; }
.card-subtitle { font-size: 0.75rem; color: var(--text-3); }

.card-badge {
  font-size: 0.72rem; font-weight: 600; padding: 3px 10px;
  border-radius: 20px; white-space: nowrap;
}
.badge-breach { background: var(--red-dim); color: var(--red); border: 1px solid var(--red); }
.badge-safe { background: var(--green-dim); color: var(--green); border: 1px solid var(--green); }
.badge-found { background: var(--green-dim); color: var(--green); border: 1px solid var(--green); }
.badge-count { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent); }
.badge-info { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent); }

.card-chevron {
  width: 16px; height: 16px; color: var(--text-3);
  transition: transform 0.2s; flex-shrink: 0; margin-left: 8px;
}
.card-header.expanded .card-chevron { transform: rotate(180deg); }

.card-body { padding: 0 1.25rem 1.25rem; display: none; }
.card-body.open { display: block; }

/* ─── Breach Details ─────────────────────────────────────────────── */
.breach-list { display: flex; flex-direction: column; gap: 0.75rem; }
.breach-item {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.9rem;
}
.breach-item-header { display: flex; align-items: center; gap: 10px; margin-bottom: 0.5rem; }
.breach-logo {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--bg-card); object-fit: contain;
}
.breach-name { font-weight: 600; font-size: 0.9rem; }
.breach-date { font-size: 0.75rem; color: var(--text-3); margin-left: auto; }
.breach-data { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.data-chip {
  font-size: 0.7rem; padding: 2px 8px; border-radius: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-2);
}
.data-chip.sensitive { border-color: var(--red); color: var(--red); background: var(--red-dim); }

/* ─── Platform Grid (username results) ──────────────────────────── */
.platform-results-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem; margin-top: 0.25rem;
}
.platform-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.6rem 0.85rem;
  text-decoration: none; color: var(--text);
  transition: all 0.15s;
}
.platform-item:hover { border-color: var(--accent); background: var(--accent-dim); }
.platform-item.not-found { opacity: 0.4; pointer-events: none; }
.platform-item.checking { opacity: 0.6; }
.platform-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.dot-found { background: var(--green); box-shadow: 0 0 6px var(--green); }
.dot-notfound { background: var(--text-3); }
.dot-checking { background: var(--yellow); animation: pulse 1s infinite; }
.dot-error { background: var(--red); }

.platform-name { font-size: 0.82rem; font-weight: 500; flex: 1; }
.platform-ext-icon { width: 12px; height: 12px; color: var(--text-3); }

/* ─── Info Table ─────────────────────────────────────────────────── */
.info-table { width: 100%; border-collapse: collapse; }
.info-table tr:not(:last-child) td { border-bottom: 1px solid var(--border); }
.info-table td { padding: 0.55rem 0; font-size: 0.85rem; }
.info-table td:first-child { color: var(--text-3); width: 40%; }
.info-table td:last-child { color: var(--text); font-family: 'JetBrains Mono', monospace; }

/* ─── Search Links ───────────────────────────────────────────────── */
.search-links { display: flex; flex-direction: column; gap: 0.5rem; }
.search-link {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-2); font-size: 0.85rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.65rem 0.9rem;
  text-decoration: none; transition: all 0.15s;
}
.search-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.search-link svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ─── Progress ───────────────────────────────────────────────────── */
.progress-wrap {
  display: flex; justify-content: center; margin-top: 2rem;
}
.progress-inner {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  min-width: 320px; display: flex; flex-direction: column;
  align-items: center; gap: 1rem;
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
.progress-text {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 0.875rem; color: var(--text-2);
}
.progress-count { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--text-3); }
.progress-bar-wrap {
  width: 100%; height: 4px; background: var(--bg-input);
  border-radius: 2px; overflow: hidden;
}
.progress-bar {
  height: 100%; background: var(--accent); width: 0%;
  transition: width 0.3s; border-radius: 2px;
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--accent); color: #0c1929; border: none;
  border-radius: var(--radius-sm); padding: 0.65rem 1.25rem;
  font-size: 0.9rem; font-weight: 600; cursor: pointer; width: 100%;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-hover); }

/* ─── Empty / Error States ───────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 3rem 1rem; color: var(--text-3);
  font-size: 0.9rem;
}
.error-banner {
  background: var(--red-dim); border: 1px solid var(--red);
  border-radius: var(--radius-sm); padding: 0.75rem 1rem;
  color: var(--red); font-size: 0.85rem;
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.footer {
  text-align: center; padding: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem; color: var(--text-3);
  display: flex; justify-content: center; align-items: center; gap: 0.5rem;
  flex-wrap: wrap;
}
.footer-sep { color: var(--border-light); }

/* ─── Animations ─────────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-title { font-size: 1.6rem; }
  .tabs { gap: 0; }
  .tab { padding: 0.75rem 0.9rem; font-size: 0.8rem; }
  .tab svg { display: none; }
  .panel { padding: 1rem; }
  .search-bar { flex-wrap: wrap; }
  .btn-search { width: 100%; justify-content: center; }
  .stats-bar { gap: 0.5rem; }
  .stat-card { min-width: 80px; }
}

/* ═══════════════════════════════════════════════════════════════
   LIVE SCRAPER — Pulse animations & card styles
   ═══════════════════════════════════════════════════════════════ */

/* ─── Pulse dot ───────────────────────────────────────────────── */
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(2.2); opacity: 0;   }
  100% { transform: scale(2.2); opacity: 0;   }
}
@keyframes pulse-breathe {
  0%, 100% { opacity: 1;   transform: scale(1);   }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

.pulse-dot {
  position: relative;
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
  animation: pulse-breathe 2s ease-in-out infinite;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--purple);
  animation: pulse-ring 2s ease-out infinite;
}
.pulse-dot.pulse-active {
  background: var(--accent);
}
.pulse-dot.pulse-active::after {
  background: var(--accent);
  animation: pulse-ring 0.6s ease-out 1;
}
.pulse-dot.pulse-done {
  background: var(--green);
  animation: none;
}
.pulse-dot.pulse-done::after {
  display: none;
}

/* ─── Live card ───────────────────────────────────────────────── */
.result-card--live {
  border-color: var(--purple) !important;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(167,139,250,0.06) 100%);
}
.card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-status {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
}

/* ─── Live results list ───────────────────────────────────────── */
.live-results {
  max-height: 280px;
  overflow-y: auto;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.live-results:empty::before {
  content: 'En attente de résultats...';
  color: var(--text-3);
  font-size: 0.78rem;
  font-style: italic;
  padding: 6px 0;
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.live-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.78rem;
  border: 1px solid transparent;
  transition: all 0.15s;
  line-height: 1.3;
}
.live-item:hover {
  background: var(--bg-hover);
  border-color: var(--border);
  color: var(--text);
  text-decoration: none;
}
.live-item--new {
  animation: slide-in 0.35s ease forwards;
  background: rgba(167, 139, 250, 0.08);
  border-color: rgba(167, 139, 250, 0.25);
}
.live-item-source {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--purple);
  background: var(--purple-dim);
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-item-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── Live footer ─────────────────────────────────────────────── */
.live-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-3);
}
.btn-refresh {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.72rem;
  transition: all 0.15s;
}
.btn-refresh:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--purple-dim);
}

/* ─── Badge variants ─────────────────────────────────────────── */
.badge-purple {
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid rgba(167,139,250,0.3);
}
.badge-green {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(52,211,153,0.3);
}
.badge-red {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(248,113,113,0.3);
}
