/* ── Reset & Root ────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-padding-top: 68px; scroll-behavior: smooth; }

:root {
  --primary : #000;
  --white   : #fff;
  --accent  : #000;
  --text    : #2a2a2a;
  --muted   : #666;
  --light-bg: #f8f9fb;
  --border  : #e8e8e8;
  --card-bg : rgba(255,255,255,0.7);
  --tr      : 0.3s ease;

  --found   : #22c55e;
  --found-bg: #f0fdf4;
  --found-br: #bbf7d0;
  --blocked : #f59e0b;
  --blocked-bg: #fffbeb;
  --deleted : #8b5cf6;
  --deleted-bg: #f5f3ff;
  --deleted-br: #ddd6fe;
  --err     : #ef4444;
  --err-bg  : #fef2f2;
}

section { opacity: 0; }
section.fade-in { animation: fadeInUp 0.6s ease-out forwards; }

body {
  font-family: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  font-weight: 400;
  letter-spacing: 0.3px;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', 'Inter', sans-serif;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.hero-content h1,
.section-heading {
  font-family: 'Bebas Neue', 'Outfit', sans-serif;
  letter-spacing: 0.06em;
  font-weight: 400;
}

/* Subtle wave background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.08;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><path d="M0,400 Q300,300 600,400 T1200,400 L1200,800 L0,800 Z" fill="%23000" opacity="0.5"/><path d="M0,500 Q300,400 600,500 T1200,500 L1200,800 L0,800 Z" fill="%23000" opacity="0.3"/></svg>');
  background-size: 100% 100%;
  background-position: bottom;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

/* ── Navbar ─────────────────────────────────────────────────────────── */
.navbar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--tr);
}
.navbar.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.08); }

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

a.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem;
  color: var(--primary);
  letter-spacing: 3px;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color var(--tr);
}
.nav-menu a:hover { color: var(--accent); }
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--tr);
}
.nav-menu a:hover::after { width: 100%; }

.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.hamburger span {
  display: block; width: 25px; height: 3px;
  background: var(--primary); border-radius: 2px;
  transition: 0.3s;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.18);
  transition: left 0.5s ease;
}
.btn:hover::before { left: 100%; }

.btn-primary {
  background: linear-gradient(135deg, #000, #333);
  color: var(--white);
}
/* hover: shimmer only, no lift */

.btn-secondary {
  background: rgba(0,0,0,0.85);
  color: var(--white);
}
.btn-secondary:hover { background: #333; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }

.btn-cancel {
  background: none;
  border: 1.5px solid #ddd;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  transition: all var(--tr);
  font-family: inherit;
}
.btn-cancel:hover { border-color: var(--err); color: var(--err); }

/* ── Container ───────────────────────────────────────────────────────── */
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  max-width: 680px;
  margin: 0 auto;
  padding: 5rem 2rem 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative; z-index: 1;
}

/* PROBE wordmark above the search bar */
.probe-wordmark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5.5rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 1.6rem;
  font-weight: 400;
}

.hero .search-box {
  width: 100%;
  max-width: 520px;
}

.hero .search-hint,
.hero .quick-checks,
.hero .search-error {
  width: 100%;
  max-width: 520px;
  text-align: left;
}

/* ── About section (description + checklist, above How It Works) ── */
.about-section {
  border-top: 1px solid var(--border);
  padding: 4rem 2rem;
  background: var(--bg);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-heading {
  font-size: 3.5rem;
  line-height: 1.05;
  margin-bottom: 1.2rem;
  color: var(--primary);
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.about-text .hero-desc {
  margin-bottom: 0;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.hero-content h1 {
  font-size: 4.5rem;
  line-height: 1.05;
  margin-bottom: 1.2rem;
  color: var(--primary);
}

.hero-desc {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Search box */
.mode-toggle {
  display: flex;
  gap: 0;
  border: 2px solid var(--primary);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  margin-bottom: 1rem;
  width: fit-content;
}

.mode-btn {
  padding: 0.5rem 1.4rem;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.mode-btn.active {
  background: var(--primary);
  color: var(--white);
}

.mode-btn:not(.active):hover {
  background: #f3f4f6;
  color: var(--primary);
}

/* Search box */
.search-box {
  display: flex;
  gap: 0;
  border: 2px solid var(--primary);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow var(--tr);
}
.search-box:focus-within { box-shadow: 0 0 0 3px rgba(0,0,0,0.12); }

#usernameInput {
  flex: 1;
  padding: 0.9rem 1.4rem;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-family: inherit;
  color: var(--text);
  background: transparent;
  min-width: 0;
}
#usernameInput::placeholder { color: #bbb; }

#scanBtn {
  border-radius: 0;
  padding: 0.9rem 1.8rem;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

#nameInput {
  flex: 1;
  padding: 0.9rem 1.4rem;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-family: inherit;
  color: var(--text);
  background: transparent;
  min-width: 0;
}
#nameInput::placeholder { color: #bbb; }

#emailInput {
  flex: 1;
  padding: 0.9rem 1.4rem;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-family: inherit;
  color: var(--text);
  background: transparent;
  min-width: 0;
}
#emailInput::placeholder { color: #bbb; }

#nameScanBtn {
  border-radius: 0;
  padding: 0.9rem 1.8rem;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

.name-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.name-filters input {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
}

.name-filters input:focus {
  outline: none;
  border-color: #9ca3af;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
}

.search-hint {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.quick-checks {
  display: none;
  margin-top: 0.8rem;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.quick-checks.active {
  display: flex;
}

.quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #fff;
}

.quick-pill.taken {
  border-color: var(--found-br);
  background: var(--found-bg);
}

.quick-pill.available {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.quick-pill.unknown {
  border-color: #fde68a;
  background: #fffbeb;
}

.qp-name {
  font-weight: 700;
  color: #111827;
}

.qp-state {
  font-weight: 500;
  color: #4b5563;
}

.search-error {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--err);
  font-weight: 500;
}

/* Cloudflare Turnstile widget containers — each mounted lazily the first
   time its form is used (Scan click / contact submit / report submit).
   theme:'light' (set in script.js) keeps the widget itself on a white
   card; these wrappers just center it and match the page background.
   min-height MUST reserve real space (65px = Turnstile's standard widget
   height) — at 0 the container collapses before the widget's iframe has
   loaded, and Turnstile's own visibility/sizing checks then abort and
   endlessly retry loading the challenge iframe (seen as repeated
   net::ERR_ABORTED requests + postMessage origin-mismatch warnings,
   with no iframe ever actually landing in the DOM). */
#turnstileContainer,
#turnstileContainerContact,
#turnstileContainerReport {
  display: flex;
  justify-content: center;
  min-height: 65px;
  background: transparent;
}

/* Hero checklist card (about section) */
.hero-checklist {
  align-self: center;
}

.report-text {
  background: var(--white);
  border: 1.5px solid var(--border);
  padding: 1.8rem 2rem;
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.report-text:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  border-color: #ccc;
  transform: translateY(-3px);
}

.report-text h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 1rem;
}

.report-list { list-style: none; }
.report-list li {
  font-size: 0.85rem;
  color: #666;
  padding: 0.35rem 0 0.35rem 1.4rem;
  position: relative;
  line-height: 1.5;
  border-bottom: 1px solid #f0f0f0;
}
.report-list li:last-child { border-bottom: none; }
.report-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ── Scan Progress ───────────────────────────────────────────────────── */
.scan-progress-section {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
  position: sticky;
  top: 64px;
  z-index: 90;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

/* Download dropdown + cancel grouped on the right */
.progress-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.dl-wrap {
  position: relative;
}

.btn-dl {
  background: none;
  border: 1.5px solid #ddd;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  transition: all var(--tr);
  font-family: inherit;
  white-space: nowrap;
}
.btn-dl:hover { border-color: var(--primary); color: var(--primary); }

.dl-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  z-index: 200;
  min-width: 175px;
  overflow: hidden;
}
.dl-menu.open { display: block; }
.dl-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #333;
  background: none;
  border: none;
  border-bottom: 1px solid #f2f2f2;
  cursor: pointer;
  font-family: inherit;
}
.dl-menu button:last-child { border-bottom: none; }
.dl-menu button:hover { background: #f5f5f5; color: #000; }

.progress-status {
  font-size: 0.92rem;
  color: var(--muted);
}
.progress-status strong { color: var(--primary); }

.progress-bar-container {
  width: 100%;
  height: 3px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.2s ease;
}

.scan-stats {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.stat-item { display: flex; align-items: center; gap: 0.35rem; }
.stat-num { font-weight: 700; color: var(--primary); font-size: 1rem; }
.stat-label { color: var(--muted); }
.stat-sep { color: #ccc; font-size: 1.2rem; }

.dot { font-size: 0.65rem; }
.dot-found   { color: var(--found); }
.dot-blocked { color: var(--blocked); }
.dot-deleted { color: var(--deleted); }
.dot-notfound{ color: #ccc; }
.dot-error   { color: #ef4444; }

/* Clickable stat pills */
button.stat-item.stat-pill {
  background: none;
  border: 1.5px solid #e0e0e0;
  border-radius: 20px;
  padding: 0.2rem 0.7rem;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
button.stat-item.stat-pill:hover {
  border-color: #aaa;
  background: #f7f7f7;
}
button.stat-item.stat-pill.active {
  border-color: var(--primary);
  background: var(--primary);
}
button.stat-item.stat-pill.active .stat-num,
button.stat-item.stat-pill.active .stat-label,
button.stat-item.stat-pill.active .dot { color: #fff !important; }

/* ── Results Section ─────────────────────────────────────────────────── */
.results-section { padding: 2rem 0 4rem; }

/* Filter bar */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}

.filter-categories {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr);
  font-family: inherit;
  color: var(--muted);
}
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.toggle-label input { accent-color: var(--primary); cursor: pointer; }
.toggle-label span { font-weight: 500; }

.investigation-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.case-panel {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
}

.panel-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #374151;
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid #eef2f7;
  background: #f9fafb;
}

.panel-body {
  padding: 0.75rem 0.95rem;
  min-height: 140px;
  max-height: 220px;
  overflow: auto;
  font-size: 0.78rem;
  color: #4b5563;
  line-height: 1.55;
  white-space: pre-wrap;
}

.case-event {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  padding: 0.2rem 0;
}

.case-time {
  font-family: 'Inter', monospace;
  color: #9ca3af;
}

/* Results grid — flat 5-column CSS grid, cards fill gaps dynamically */
.results-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.55rem;
  min-height: 60px;
}

/* Category sections become invisible pass-throughs (contents still rendered) */
.result-category-section {
  display: contents;
}

.result-category-header {
  display: none;
}

.result-category-list {
  display: contents;
}

/* Result cards */
.result-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  animation: slideInUp 0.25s ease-out both;
}

.result-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 14px 0 0 14px;
}

.result-card.found   { border-color: var(--found-br); }
.result-card.found::before   { background: var(--found); }
.result-card.blocked::before { background: var(--blocked); }
.result-card.deleted { border-color: var(--deleted-br); }
.result-card.deleted::before { background: var(--deleted); }
.result-card.error::before,
.result-card.timeout::before { background: var(--err); }
.result-card.unknown::before,
.result-card.not_found::before { background: #e5e7eb; }
.result-card.auth_required::before { background: #fde68a; }
.result-card.auth_required { border-color: #fcd34d; opacity: 0.65; }

.result-card:not(.found):not(.deleted) { opacity: 0.52; }
.result-card:not(.found):not(.deleted):hover { opacity: 1; }

.result-card.found:hover,
.result-card.deleted:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
}
.result-card.found:hover  { border-color: #86efac; }
.result-card.deleted:hover { border-color: #c4b5fd; }

.result-card.hidden { display: none; }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}

.card-top-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.sc-badge {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: 'Inter', monospace;
  background: #f0f0f0;
  color: #888;
  letter-spacing: 0.04em;
}

.status-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}
.status-badge.found    { background: #dcfce7; color: #15803d; }
.status-badge.not_found{ background: #f3f4f6; color: #9ca3af; }
.status-badge.deleted  { background: #ede9fe; color: #6d28d9; }
.status-badge.blocked       { background: #fef3c7; color: #b45309; }
.status-badge.error         { background: #fee2e2; color: #dc2626; }
.status-badge.timeout       { background: #fef3c7; color: #b45309; }
.status-badge.unknown       { background: #f3f4f6; color: #6b7280; }
.status-badge.auth_required { background: #fff3cd; color: #856404; }
.status-badge.link          { background: #e0f2fe; color: #0369a1; }

/* auth_required card */
.result-card.auth_required { opacity: 0.72; }
.auth-req-note { color: #856404; font-size: 0.72rem; font-style: italic; }

/* cv-verifying: pulsing border while client-side verify is in progress */
.result-card.cv-verifying {
  border-color: #818cf8 !important;
  animation: cv-pulse 1s infinite;
}
@keyframes cv-pulse {
  0%, 100% { border-color: #818cf8; }
  50%       { border-color: #c7d2fe; }
}

/* np-pin notepad auth_required badge */
.np-pin-status.auth_required { background: #fff3cd; color: #856404; }

.category-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #f3f4f6;
  color: #6b7280;
}

.site-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.display-name {
  font-size: 0.8rem;
  color: #6b7280;
  font-style: italic;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.reason-codes {
  font-size: 0.68rem;
  color: #6b7280;
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.site-url {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  text-decoration: none;
  word-break: break-all;
  line-height: 1.4;
  transition: color var(--tr);
}
a.site-url:hover { color: var(--primary); text-decoration: underline; }
a.site-url::after { content: ' ↗'; font-size: 0.7rem; opacity: 0.6; }

.site-url-dim {
  color: #d1d5db;
  font-size: 0.72rem;
}

.name-search-url { font-size: 0.78rem; font-weight: 600; }
.name-search-url::after { content: ''; }


.name-records {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  border-radius: 6px;
  padding: 0.22rem 0.55rem;
  display: inline-block;
}
.name-records.found    { background: #dcfce7; color: #15803d; }
.name-records.not-found { background: #f3f4f6; color: #9ca3af; }
.name-records.unknown  { background: #f3f4f6; color: #6b7280; }

.result-card.name-card.link { border-color: #bae6fd; }
.result-card.name-card.link:hover { border-color: #38bdf8; transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.07); }
.result-card.name-card { opacity: 1 !important; }
.result-card.email-card { opacity: 1 !important; }

/* Completion bar */
.pivots-section {
  padding: 2.5rem 0 3rem;
}

.pivot-shell {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* Dork panel — 60 % */
.dork-column {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.65rem 0.85rem;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
  flex: 3;
  min-width: 0;
  box-sizing: border-box;
}

/* Pivot panel — 40 % */
.pivot-combined {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.65rem 0.8rem;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
  flex: 2;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* Three-column pivot grid — flex so cards fill equal height within each column */
.pivot-3grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  height: 100%;
}

.pivot-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0 0.65rem;
  background: transparent;
  min-width: 0;
}
.pivot-box:not(:last-child) { border-right: 1px solid #ebebeb; }
.pivot-box:first-child { padding-left: 0; }
.pivot-box:last-child  { padding-right: 0; }

.pivot-box-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.pivot-box-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}

.pivot-header, .dork-header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.pivot-tabs, .dork-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pivot-tab, .dork-tab {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr);
}

.pivot-tab.active, .dork-tab.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.pivot-tab:disabled, .dork-tab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pivot-status, .dork-status {
  font-size: 0.9rem;
  color: var(--muted);
}

.pivot-results, .dork-results {
  display: grid;
  gap: 0.7rem;
  min-height: 220px;
}

.pivot-group {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.75rem;
  background: rgba(255,255,255,0.8);
}

.pivot-group-title {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.pivot-group-list {
  display: grid;
  gap: 0.6rem;
}

.wmn-source-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  background: var(--white);
  display: flex;
  align-items: center;
  flex: 1;
  min-height: 0;
}

.wmn-source-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  min-width: 0;
}

.wmn-source-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.wmn-source-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: color 0.15s;
}
.wmn-source-link:hover { color: var(--primary); }

.wmn-empty {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.7rem 0;
}

@media (max-width: 720px) {
  .pivot-shell {
    flex-direction: column;
  }
  .pivot-box { padding: 0.5rem 0; }
  .pivot-box:not(:last-child) { border-right: none; border-bottom: 1px solid #ebebeb; }

  /* Dork/search-engine results used to grow to fit all content, which
     stretched the whole page on mobile once the columns stack — cap the
     height and scroll internally instead. */
  .dork-results { max-height: 60vh; overflow-y: auto; }
}

/* ── Manual Check Panel ──────────────────────────────────────────────── */
.manual-check-panel {
  margin-top: 1.5rem;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  overflow: hidden;
}
.manual-check-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  user-select: none;
  flex-wrap: wrap;
}
.manual-check-header:hover { background: #f8f9fb; }
.manual-check-title {
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  white-space: nowrap;
}
.manual-check-icon { font-size: 1rem; }
.manual-check-count {
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 999px;
  padding: 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.7;
}
.manual-check-hint { color: var(--muted); font-size: 0.83rem; flex: 1; }
.manual-chevron {
  color: var(--muted);
  font-size: 0.8rem;
  margin-left: auto;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.manual-chevron.open { transform: rotate(180deg); }
.manual-check-body { display: none; border-top: 1px solid var(--border); }
.manual-check-body.open { display: block; }
.manual-links-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.manual-link-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
  color: var(--primary);
  font-size: 0.875rem;
  transition: background 0.15s, color 0.15s;
}
.manual-link-item:hover { background: #f0fdf4; color: var(--found); }
.manual-link-item:hover .mli-arrow { color: var(--found); }
.mli-name { font-weight: 500; flex: 1; }
.mli-cat { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.mli-arrow { color: var(--muted); font-size: 0.85rem; flex-shrink: 0; transition: color 0.15s; }

.completion-bar {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.completion-summary { font-size: 1rem; font-weight: 600; color: var(--primary); }
.export-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── How It Works ────────────────────────────────────────────────────── */
.how-section {
  background: #f8f9fb;
  padding: 5rem 0;
  margin: 0;
}

.section-heading {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-align: center;
}
.section-heading.sm { font-size: 2.5rem; }

.section-intro {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.9;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.step-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.8rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.07);
  border-color: #ccc;
}

.step-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  color: #e0e0e0;
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}

.step-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.step-card p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.65;
}

.accuracy-note {
  max-width: 760px;
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--muted);
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 1rem 1.4rem;
  line-height: 1.7;
}

/* ── Platforms Section ───────────────────────────────────────────────── */
.platforms-section { padding: 5rem 0; }

/* Ticker wrapper — clips overflow and fades edges */
.platforms-ticker-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  margin-top: 2rem;
}

/* Track — doubled content scrolls left infinitely */
.platforms-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation: platformsTicker 28s linear infinite;
}
.platforms-track:hover { animation-play-state: paused; }

@keyframes platformsTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.platform-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  flex-shrink: 0;
  white-space: nowrap;
  cursor: default;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.platform-chip:hover {
  border-color: var(--primary);
  box-shadow: 0 3px 12px rgba(0,0,0,0.07);
}

.chip-logo {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.chip-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}

.chip-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-cat {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Contact form ────────────────────────────────────────────────────── */
.contact-section {
  padding: 5rem 0 4rem;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.contact-form {
  max-width: 680px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cf-field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.cf-field input,
.cf-field textarea {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fcfcfc;
  color: var(--text);
  transition: border-color 0.15s;
  resize: none;
  outline: none;
}

.cf-field input:focus,
.cf-field textarea:focus {
  border-color: var(--primary);
  background: var(--white);
}

.cf-field textarea {
  resize: vertical;
  min-height: 100px;
}

.cf-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.cf-status {
  font-size: 0.87rem;
  font-weight: 500;
}

.cf-status.success { color: var(--found); }
.cf-status.error   { color: var(--err); }

@media (max-width: 520px) {
  .cf-row { grid-template-columns: 1fr; }
}

/* ── Report button + popover ─────────────────────────────────────────── */
.report-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.28;
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1;
  color: var(--text);
  transition: opacity 0.15s;
}
.report-btn:hover { opacity: 0.65; }

.report-popover {
  display: none;
  position: fixed;
  z-index: 11000;
  width: 260px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  padding: 1rem;
  flex-direction: column;
  gap: 0.65rem;
}
.report-popover.open { display: flex; }

.rp-header {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.rp-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rp-opt {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  cursor: pointer;
}
.rp-opt input { accent-color: var(--primary); cursor: pointer; }

.rp-notes {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font-size: 0.84rem;
  font-family: inherit;
  resize: vertical;
  min-height: 52px;
  outline: none;
  color: var(--text);
}
.rp-notes:focus { border-color: var(--primary); }

.rp-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.rp-cancel {
  background: none;
  border: none;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--muted);
  text-decoration: underline;
  font-family: inherit;
  padding: 0;
}
.rp-cancel:hover { color: var(--text); }

.rp-submit {
  width: 100%;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #000, #333);
  color: #fff;
  font-family: inherit;
  letter-spacing: 0.04em;
  transition: opacity 0.15s;
}
.rp-submit:hover { opacity: 0.85; }
.rp-submit:disabled { opacity: 0.45; cursor: not-allowed; }

.rp-status {
  font-size: 0.82rem;
  font-weight: 500;
  min-height: 1em;
}
.rp-status.success { color: var(--found); }
.rp-status.error   { color: var(--err); }

/* ── Footer ─────────────────────────────────────────────────────────── */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 3px;
  color: var(--white);
  flex-shrink: 0;
}

.footer-note {
  font-size: 0.79rem;
  line-height: 1.6;
}

/* ── Animations ──────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-bar {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

.scanning .progress-bar-fill {
  animation: pulse-bar 1.5s ease-in-out infinite;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    padding: 3rem 1.5rem 2rem;
  }
  .probe-wordmark { font-size: 4rem; }
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-heading { font-size: 2.8rem; }

  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li a { display: block; padding: 0.8rem 1.5rem; font-size: 1rem; }

  .hamburger { display: flex; }
  .hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* Case notes side panel — desktop-only feature. Mobile visitors are
     unlikely to be running a full investigation, and if they are, their
     own notes app covers it just as well. */
  .side-panel { display: none; }
}

@media (max-width: 600px) {
  .probe-wordmark { font-size: 3rem; }
  .about-heading { font-size: 2.2rem; }
  .section-heading { font-size: 2rem; }
  .filter-bar { flex-direction: column; align-items: flex-start; }
  .completion-bar { flex-direction: column; align-items: flex-start; }
  .investigation-panels {
    grid-template-columns: 1fr;
  }
  /* Single column on mobile — at 2-up, .card-top-right (badges + pin +
     report buttons) didn't have room to fit and was being clipped by
     .result-card's overflow:hidden. Full-width cards give it room. */
  .results-grid { grid-template-columns: 1fr; }
  .card-top-right { flex-wrap: wrap; justify-content: flex-end; row-gap: 0.3rem; }
  .name-filters { grid-template-columns: 1fr 1fr; }
  .platforms-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .scan-stats { gap: 0.8rem; }
}

@media (max-width: 400px) {
  .nav-container { padding: 0 1rem; }
  .hero { padding: 2rem 1rem; }
  .about-section { padding: 2rem 1rem; }
  .container { padding: 0 1rem; }
}

/* ── Floating Panels base ────────────────────────────────────────────── */
.float-panel {
  position: fixed;
  width: 300px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  z-index: 9999;
  overflow: hidden;
}

.float-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.8rem;
  background: #000;
  color: #fff;
  cursor: grab;
  user-select: none;
}
.float-panel-header:active { cursor: grabbing; }

.fp-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.fp-controls { display: flex; gap: 4px; }

.fp-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.fp-btn:hover { background: rgba(255,255,255,0.3); }

.float-panel-body {
  padding: 0.8rem;
  max-height: 60vh;
  overflow-y: auto;
}

.float-panel.minimised .float-panel-body { display: none; }
.float-panel.minimised { border-radius: 10px; }
.float-panel.minimised .np-drag-bar { border-radius: 10px; border-bottom: none; }

/* ── FABs ────────────────────────────────────────────────────────────── */
.fab-group {
  position: fixed;
  bottom: 24px;
  right: 24px;
  flex-direction: column;
  gap: 8px;
  z-index: 9998;
}

.fab {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #d8d8d8;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.15s, transform 0.15s, background 0.15s, border-color 0.15s;
  color: #666;
}
.fab:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.13); transform: scale(1.07); border-color: #999; color: #222; }
.fab.active { background: #111; color: #fff; border-color: #111; box-shadow: 0 3px 10px rgba(0,0,0,0.2); }

/* ── Side Notes Panel ────────────────────────────────────────────────── */
.side-panel {
  position: fixed;
  z-index: 9999;
  display: flex;
  align-items: center;
}

/* Edge positioning helpers — base positions set by JS; data-edge drives layout direction */
.side-panel[data-edge="right"]  { flex-direction: row-reverse; }
.side-panel[data-edge="left"]   { flex-direction: row; }
.side-panel[data-edge="top"]    { flex-direction: column; }
.side-panel[data-edge="bottom"] { flex-direction: column-reverse; }

/* Tab handle — always visible */
.sp-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #fff;
  border: 1.5px solid #ddd;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.sp-tab:hover { background: #f0f0f0; border-color: #aaa; }

/* Vertical tab (left/right edges) */
.side-panel[data-edge="right"] .sp-tab,
.side-panel[data-edge="left"]  .sp-tab {
  width: 28px;
  min-height: 80px;
  padding: 14px 4px;
  writing-mode: vertical-lr;
}
.side-panel[data-edge="right"] .sp-tab {
  border-right: none;
  border-radius: 10px 0 0 10px;
  box-shadow: -3px 0 10px rgba(0,0,0,0.07);
}
.side-panel[data-edge="left"] .sp-tab {
  border-left: none;
  border-radius: 0 10px 10px 0;
  box-shadow: 3px 0 10px rgba(0,0,0,0.07);
  transform: rotate(180deg);
}

/* Horizontal tab (top/bottom edges) */
.side-panel[data-edge="top"] .sp-tab,
.side-panel[data-edge="bottom"] .sp-tab {
  flex-direction: row;
  min-width: 80px;
  height: 28px;
  padding: 4px 14px;
  writing-mode: horizontal-tb;
}
.side-panel[data-edge="top"] .sp-tab {
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.07);
}
.side-panel[data-edge="bottom"] .sp-tab {
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.07);
}

.sp-tab-icon { font-size: 0.9rem; line-height: 1; }
.sp-tab-label {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  font-family: inherit;
}

/* Panel body — hidden by default, slides in when open */
.sp-inner {
  background: #fff;
  border: 1.5px solid #e0e0e0;
  box-shadow: 0 6px 28px rgba(0,0,0,0.12);
  width: 300px;
  min-width: 220px;
  max-width: 480px;
  resize: horizontal;
  overflow: hidden;
  display: none;  /* toggled by JS */
}

/* Edge-specific border-radius for sp-inner */
.side-panel[data-edge="right"]  .sp-inner { border-right: none;   border-radius: 14px 0 0 14px; }
.side-panel[data-edge="left"]   .sp-inner { border-left: none;    border-radius: 0 14px 14px 0; }
.side-panel[data-edge="top"]    .sp-inner { border-top: none;     border-radius: 0 0 14px 14px; }
.side-panel[data-edge="bottom"] .sp-inner { border-bottom: none;  border-radius: 14px 14px 0 0; }

.side-panel.sp-open .sp-inner { display: block; }

/* Detached mode — freely floating, draggable */
.side-panel.detached {
  flex-direction: column !important;
}
.side-panel.detached .sp-tab { display: none !important; }
.side-panel.detached .sp-inner {
  display: block !important;
  border-radius: 14px !important;
  border: 1.5px solid #e0e0e0 !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.16) !important;
}
.side-panel.detached .sp-detach-bar { display: flex !important; }

/* Drag bar (top of panel in detached mode) */
.sp-detach-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px 5px 12px;
  background: #f9f9f9;
  border-bottom: 1px solid #f0f0f0;
  cursor: grab;
  user-select: none;
  border-radius: 14px 14px 0 0;
}
.sp-detach-bar:active { cursor: grabbing; }

/* Overrides for sp-inner — match old float-panel-body usage */
.sp-inner .np-body { padding: 0; max-height: none; overflow: visible; }

/* ── Pin button ──────────────────────────────────────────────────────── */
.pin-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.72rem;
  padding: 1px 3px;
  border-radius: 4px;
  opacity: 0.18;
  filter: grayscale(1);
  transition: opacity 0.15s, transform 0.15s, filter 0.15s;
  line-height: 1;
  margin-left: 3px;
}
.pin-btn:hover { opacity: 0.5; transform: scale(1.15); }
.pin-btn.pinned { opacity: 0.85; filter: grayscale(0); }

/* ── Dork panel ──────────────────────────────────────────────────────── */
.dork-tab {
  background: #f7f7f7;
  border: 1.5px solid #ebebeb;
  border-radius: 7px;
  padding: 0.48rem 0.4rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  transition: background 0.13s, border-color 0.13s, color 0.13s;
  font-family: inherit;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.dork-tab:hover { background: #111; border-color: #111; color: #fff; }
.dork-tab:disabled { opacity: 0.4; cursor: default; }
.dork-tab:disabled:hover { background: #f7f7f7; border-color: #ebebeb; color: #888; }

/* ── SERP-style dork results ─────────────────────────────────────────── */
.serp-result {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.serp-result:last-child { border-bottom: none; }

.serp-thumb {
  flex: 0 0 auto;
  width: 100px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f2f2;
  display: none;
}
.serp-thumb.has-image { display: block; }
.serp-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.serp-body { min-width: 0; flex: 1 1 auto; }

.serp-breadcrumb {
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: lowercase;
  margin-bottom: 0.1rem;
}

.serp-title {
  display: block;
  color: #1a0dab;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
  margin-bottom: 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.serp-title:hover { text-decoration: underline; }

.serp-url {
  font-size: 0.8rem;
  color: #006621;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serp-snippet {
  font-size: 0.88rem;
  color: #545454;
  line-height: 1.45;
}

/* ── Case Notepad ────────────────────────────────────────────────────── */
.np-panel { width: 320px; }

.np-drag-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px 5px 12px;
  background: #f9f9f9;
  border-bottom: 1px solid #f0f0f0;
  cursor: grab;
  user-select: none;
  border-radius: 10px 10px 0 0;
}
.np-drag-bar:active { cursor: grabbing; }

.np-drag-icon {
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #d8d8d8;
  line-height: 1;
}

.np-bar-actions { display: flex; gap: 3px; }

.np-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #ccc;
  font-size: 0.82rem;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.np-icon-btn:hover { color: #555; background: #eee; }

.np-panel.minimised .float-panel-body { display: none; }
.np-panel.minimised .np-drag-bar { border-radius: 10px; border-bottom: none; }

.np-body { padding: 0; max-height: none; overflow: visible; }

.np-title-input {
  width: 100%;
  border: none;
  outline: none;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #111;
  padding: 0.6rem 0.9rem 0.2rem;
  background: transparent;
  display: block;
  box-sizing: border-box;
}
.np-title-input::placeholder { color: #e0e0e0; font-weight: 400; }

.np-format-bar {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 0 0.6rem 0.35rem;
  border-bottom: 1px solid #f5f5f5;
}

.np-fmt-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  font-size: 0.78rem;
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s, color 0.1s;
}
.np-fmt-btn:hover { background: #f2f2f2; color: #444; }
.np-fmt-copy { margin-left: auto; font-size: 0.88rem; }

.np-editor {
  min-height: 100px;
  height: 160px;
  overflow-y: auto;
  resize: vertical;
  padding: 0.45rem 0.9rem 0.55rem;
  font-size: 0.8rem;
  color: #333;
  line-height: 1.65;
  outline: none;
}
.np-editor:empty::before {
  content: 'Type notes…';
  color: #ddd;
  pointer-events: none;
  display: block;
}
.np-editor ul { padding-left: 1.2em; margin: 0.2em 0; }
.np-editor li { margin: 0; }

.np-pins-section {
  border-top: 1px solid #f0f0f0;
  padding: 0.5rem 0.9rem 0.6rem;
}

.np-pins-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ccc;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.35rem;
}
.np-pins-label span {
  background: #f2f2f2;
  color: #aaa;
  padding: 0 4px;
  border-radius: 5px;
  margin-left: 3px;
  font-size: 0.58rem;
  display: inline-block;
  line-height: 1.8;
}

.np-pins { max-height: 110px; overflow-y: auto; margin-bottom: 0.35rem; }

.np-empty { font-size: 0.7rem; color: #ccc; font-style: italic; }

.np-pin-item {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
  border-bottom: 1px solid #f8f8f8;
  font-size: 0.77rem;
}
.np-pin-item:last-child { border-bottom: none; }
.np-pin-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.np-pin-row a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.np-pin-row a:hover { text-decoration: underline; }

.np-pin-status {
  font-size: 0.57rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  flex-shrink: 0;
  text-transform: uppercase;
  color: #ccc;
  background: #f5f5f5;
}
.np-pin-status.found   { background: var(--found-bg);   color: var(--found); }
.np-pin-status.deleted { background: var(--deleted-bg); color: var(--deleted); }

.np-unpin {
  background: none; border: none; cursor: pointer;
  font-size: 0.6rem; opacity: 0.5; flex-shrink: 0; padding: 2px; color: #666;
}
.np-unpin:hover { opacity: 1; color: #c00; }

.np-url-row { display: flex; gap: 5px; margin-top: 0.3rem; }

.np-url-input {
  flex: 1;
  border: none;
  border-bottom: 1px solid #ebebeb;
  outline: none;
  font-size: 0.71rem;
  color: #555;
  padding: 0.2rem 0;
  background: transparent;
  min-width: 0;
  transition: border-color 0.15s;
}
.np-url-input:focus { border-bottom-color: #bbb; }
.np-url-input::placeholder { color: #ccc; }

.np-url-btn {
  background: none; border: none; cursor: pointer;
  color: #ccc; font-size: 0.85rem; padding: 0 2px;
  transition: color 0.15s; flex-shrink: 0;
}
.np-url-btn:hover { color: #444; }

/* ── Notepad export buttons ──────────────────────────────────────────── */
.np-fmt-sep {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: #f0f0f0;
  margin: 0 2px;
  align-self: center;
  flex-shrink: 0;
}

.np-export-btn {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #aaa;
  padding: 0 5px;
  height: 20px;
  width: auto;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.np-export-btn:hover { color: #111; border-color: #aaa; background: #f7f7f7; }

/* ── Notepad pin item — capture button ───────────────────────────────── */
.np-capture-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  color: #ccc;
  padding: 1px 3px;
  border-radius: 3px;
  flex-shrink: 0;
  transition: color 0.13s, background 0.13s;
  margin-left: auto;
}
.np-capture-btn:hover { color: #555; background: #f2f2f2; }
.np-capture-btn.loading { color: #aaa; animation: spin 0.9s linear infinite; cursor: default; }
.np-capture-btn.done { color: #22c55e; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Captures section ────────────────────────────────────────────────── */
.np-captures-section {
  border-top: 1px solid #f0f0f0;
  padding: 0.5rem 0.9rem 0.4rem;
}

.np-captures { display: flex; flex-direction: column; gap: 7px; margin-top: 0.35rem; }

.np-capture-card {
  border: 1px solid #eeeeee;
  border-radius: 7px;
  overflow: hidden;
  background: #fafafa;
}

.np-capture-thumb {
  display: block;
  width: 100%;
  height: 90px;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid #eeeeee;
  cursor: zoom-in;
}

.np-capture-info {
  padding: 5px 8px 6px;
}

.np-capture-domain {
  font-size: 0.68rem;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.np-capture-title {
  font-size: 0.65rem;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.np-capture-desc {
  font-size: 0.62rem;
  color: #aaa;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 5px;
  line-height: 1.45;
}

.np-capture-dl-row {
  display: flex;
  gap: 5px;
}

.np-capture-dl {
  font-size: 0.6rem;
  font-weight: 700;
  color: #888;
  background: #f0f0f0;
  border: none;
  border-radius: 4px;
  padding: 2px 7px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.12s, color 0.12s;
}
.np-capture-dl:hover { background: #e0e0e0; color: #222; }

.np-capture-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e8e8;
  color: #999;
  font-size: 1.2rem;
  font-weight: 700;
  width: 72px;
  height: 46px;
  border-radius: 4px;
  flex-shrink: 0;
  cursor: default;
  user-select: none;
}

/* ── Metadata embed inside notes editor ──────────────────────────────── */
.np-meta-embed {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  background: #f7f7f7;
  border: 1px solid #ececec;
  border-radius: 6px;
  padding: 5px 7px 5px 5px;
  margin: 2px 0;
  max-width: 100%;
  box-sizing: border-box;
  cursor: default;
}
.np-meta-thumb {
  width: 72px;
  height: 46px;
  object-fit: cover;
  object-position: top;
  border-radius: 3px;
  flex-shrink: 0;
  cursor: zoom-in;
}
.np-meta-detail {
  font-size: 0.65rem;
  color: #555;
  line-height: 1.5;
  min-width: 0;
  overflow: hidden;
}
.np-meta-detail strong { color: #222; font-size: 0.67rem; }
.np-meta-detail em { color: #777; font-style: normal; }
.np-meta-ts { color: #bbb; font-size: 0.6rem; }

/* .np-unpin — see first definition above */

.float-panel {
  position: fixed;
  width: 300px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 9999;
  overflow: hidden;
}

.float-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.8rem;
  background: #000;
  color: #fff;
  cursor: grab;
  user-select: none;
}
.float-panel-header:active { cursor: grabbing; }

.fp-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.fp-controls { display: flex; gap: 4px; }

.fp-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.fp-btn:hover { background: rgba(255,255,255,0.3); }

.float-panel-body {
  padding: 0.8rem;
  max-height: 60vh;
  overflow-y: auto;
}

.float-panel.minimised .float-panel-body { display: none; }

/* ── FABs ────────────────────────────────────────────────────────────── */
.fab-group {
  position: fixed;
  bottom: 24px;
  right: 24px;
  flex-direction: column;
  gap: 8px;
  z-index: 9998;
}

.fab {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.15s, transform 0.15s, background 0.15s, border-color 0.15s;
}
.fab:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.18); transform: scale(1.08); }
.fab.active { background: #000; color: #fff; border-color: #000; }

/* ── Pin button ──────────────────────────────────────────────────────── */
.pin-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  padding: 1px 3px;
  border-radius: 4px;
  opacity: 0.22;
  transition: opacity 0.15s, transform 0.15s;
  line-height: 1;
  margin-left: 3px;
}
.pin-btn:hover { opacity: 0.65; transform: scale(1.15); }
.pin-btn.pinned { opacity: 1; }

/* ── Dork panel content ──────────────────────────────────────────────── */
.dork-target {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 0.65rem;
  text-align: center;
}
.dork-target strong { color: #000; font-size: 0.9rem; }

.dork-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.dork-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 8px;
  border: 1.5px solid #e8e8e8;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  color: #222;
  background: #fafafa;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
}
.dork-btn:hover { border-color: #000; background: #f0f0f0; color: #000; }

/* ── Case notepad content ────────────────────────────────────────────── */
.np-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.np-pin-count {
  background: #000;
  color: #fff;
  border-radius: 9px;
  padding: 0 5px;
  font-size: 0.62rem;
  line-height: 1.7;
}

.np-pins {
  max-height: 130px;
  overflow-y: auto;
  margin-bottom: 0.4rem;
}

.np-empty {
  font-size: 0.75rem;
  color: #bbb;
  font-style: italic;
}

.np-pin-item {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.8rem;
}
.np-pin-item:last-child { border-bottom: none; }

.np-pin-status {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  flex-shrink: 0;
  text-transform: uppercase;
}
.np-pin-status.found   { background: var(--found-bg);   color: var(--found); }
.np-pin-status.deleted { background: var(--deleted-bg); color: var(--deleted); }
.np-pin-status.unknown { background: #f4f4f4; color: #888; }

/* .np-unpin — see first definition above */

.np-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 0.6rem 0;
}

.np-textarea {
  width: 100%;
  height: 110px;
  border: 1.5px solid #e8e8e8;
  border-radius: 7px;
  padding: 0.45rem 0.6rem;
  font-family: 'Inter', monospace, sans-serif;
  font-size: 0.78rem;
  color: #222;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
  margin-bottom: 0.5rem;
  display: block;
  box-sizing: border-box;
}
.np-textarea:focus { border-color: #000; }

.btn-xs {
  font-size: 0.72rem;
  padding: 0.28rem 0.7rem;
}

/* ── Metadata preview modal ──────────────────────────────────────────── */
#metaPreviewOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

#metaPreviewPanel {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#metaPreviewHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #000;
  color: #fff;
  flex-shrink: 0;
}

#metaPreviewDomain {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#metaPreviewClose {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.7;
  flex-shrink: 0;
  line-height: 1;
  padding: 2px 4px;
}
#metaPreviewClose:hover { opacity: 1; }

#metaPreviewBody {
  overflow-y: auto;
  padding: 12px 14px 16px;
  flex: 1;
}

.meta-preview-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 6px 10px;
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
  align-items: start;
}
.meta-preview-row:last-child { border-bottom: none; }

.meta-preview-key {
  font-size: 0.63rem;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 1px;
  white-space: nowrap;
}

.meta-preview-val {
  font-size: 0.72rem;
  color: #333;
  line-height: 1.5;
  word-break: break-word;
}
.meta-preview-val a {
  color: #0066cc;
  text-decoration: none;
  word-break: break-all;
}
.meta-preview-val a:hover { text-decoration: underline; }

.np-preview-btn { color: #555; }
.np-preview-btn:hover { background: #e8e8e8; color: #000; }

/* ── Inline pin metadata ──────────────────────────────────────────────── */
.np-pin-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.np-pin-meta {
  font-size: 0.62rem;
  color: #666;
  margin: 2px 0 0 0;
  padding-left: 2px;
  line-height: 1.4;
}
.np-pin-meta-title {
  color: #333;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.np-pin-meta-desc { color: #888; }
.np-pin-meta-loading { color: #bbb; font-style: italic; }

/* ── Capture card extras ──────────────────────────────────────────────── */
.np-cap-extras { display: flex; flex-wrap: wrap; gap: 3px; margin: 3px 0; }
.np-cap-field { font-size: 0.6rem; color: #888; }
.np-cap-field b { color: #555; }

/* ── Export dropdown ─────────────────────────────────────────────────── */
.np-export-wrap {
  position: relative;
  display: inline-block;
}
.np-export-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 7px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  z-index: 10000;
  min-width: 145px;
  overflow: hidden;
}
.np-export-menu.open { display: block; }
.np-export-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 13px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #444;
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}
.np-export-menu button:last-child { border-bottom: none; }
.np-export-menu button:hover { background: #f5f5f5; color: #000; }

