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

:root {
  --bg-primary: #06080d;
  --bg-secondary: #0c1017;
  --bg-tertiary: #111520;
  --bg-hover: #161c28;
  --bg-card: linear-gradient(135deg, rgba(15, 20, 35, 0.9), rgba(10, 14, 25, 0.95));
  --border: rgba(99, 102, 241, 0.12);
  --border-light: rgba(99, 102, 241, 0.25);
  --border-glow: rgba(99, 102, 241, 0.4);
  --text-primary: #e8ecf4;
  --text-secondary: #8b95a8;
  --text-muted: #565e6f;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-dim: rgba(99, 102, 241, 0.1);
  --accent-glow: rgba(99, 102, 241, 0.3);
  --gradient-accent: linear-gradient(135deg, #6366f1, #a855f7);
  --gradient-blue: linear-gradient(135deg, #3b82f6, #6366f1);
  --gradient-purple: linear-gradient(135deg, #8b5cf6, #d946ef);
  --green: #34d399;
  --yellow: #fbbf24;
  --orange: #fb923c;
  --red: #f87171;
  --purple: #a78bfa;
  --blue: #60a5fa;
  --gold: #f59e0b;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;
}

/* Dot grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(99, 102, 241, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.app { display: flex; height: 100vh; position: relative; z-index: 1; }

/* Sidebar */
.sidebar {
  width: 250px;
  min-width: 250px;
  background: linear-gradient(180deg, #0a0e18 0%, #080c14 100%);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  position: relative;
}

.sidebar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.2), transparent);
  pointer-events: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 24px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
}

.logo-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 2px;
}

.nav-items { display: flex; flex-direction: column; gap: 2px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  transform: translateX(2px);
}

.nav-item.active {
  background: var(--accent-dim);
  color: var(--accent-hover);
  box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.05);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--gradient-accent);
  border-radius: 0 3px 3px 0;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 20px 12px 6px;
  letter-spacing: 0.1em;
}

.status-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.status-filter:hover { background: var(--bg-hover); color: var(--text-primary); }
.status-filter.active { color: var(--accent-hover); background: var(--accent-dim); }
.status-count {
  background: var(--bg-tertiary);
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 12px 8px;
  border-top: 1px solid var(--border);
}

.system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--green); }
  50% { opacity: 0.5; box-shadow: 0 0 4px var(--green); }
}

/* Content */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.page-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-subtitle { color: var(--text-muted); font-size: 13px; margin-top: 4px; font-weight: 400; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--accent-hover); }
.breadcrumb .sep { opacity: 0.4; }

/* Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

.stat-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.05);
}

.stat-card.clickable { cursor: pointer; }

.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-value { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.stat-value.accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tables */
.table-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

table { width: 100%; border-collapse: collapse; }
thead { background: rgba(17, 21, 32, 0.8); }
th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}
th:hover { color: var(--text-secondary); }

td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.06);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tbody tr {
  cursor: pointer;
  transition: all 0.15s ease;
}
tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.01); }
tbody tr:hover {
  background: var(--bg-hover) !important;
  box-shadow: inset 3px 0 0 var(--accent);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.badge-unresearched { background: rgba(86, 94, 111, 0.2); color: var(--text-muted); }
.badge-unresearched::before { background: var(--text-muted); }

.badge-researched { background: rgba(96, 165, 250, 0.15); color: var(--blue); }
.badge-researched::before { background: var(--blue); box-shadow: 0 0 6px var(--blue); }

.badge-enriched { background: rgba(52, 211, 153, 0.15); color: var(--green); }
.badge-enriched::before { background: var(--green); box-shadow: 0 0 6px var(--green); }

.badge-outreach_drafted { background: rgba(251, 191, 36, 0.15); color: var(--yellow); }
.badge-outreach_drafted::before { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }

.badge-contacted { background: rgba(251, 146, 60, 0.15); color: var(--orange); }
.badge-contacted::before { background: var(--orange); box-shadow: 0 0 6px var(--orange); }

.badge-responded { background: rgba(52, 211, 153, 0.2); color: var(--green); }
.badge-responded::before { background: var(--green); box-shadow: 0 0 6px var(--green); }

.badge-customer { background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 146, 60, 0.15)); color: var(--gold); border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-customer::before { background: var(--gold); box-shadow: 0 0 8px var(--gold); }

.badge-rejected { background: rgba(248, 113, 113, 0.15); color: var(--red); }
.badge-rejected::before { background: var(--red); }

.badge-proposed { background: rgba(86, 94, 111, 0.2); color: var(--text-secondary); }
.badge-proposed::before { background: var(--text-secondary); }

.badge-verified { background: rgba(96, 165, 250, 0.15); color: var(--blue); }
.badge-verified::before { background: var(--blue); box-shadow: 0 0 6px var(--blue); }

.badge-scraped { background: rgba(167, 139, 250, 0.15); color: var(--purple); }
.badge-scraped::before { background: var(--purple); box-shadow: 0 0 6px var(--purple); }

.badge-exhausted { background: rgba(248, 113, 113, 0.15); color: var(--red); }
.badge-exhausted::before { background: var(--red); }

/* Large badge for detail page */
.badge-lg {
  padding: 5px 16px;
  font-size: 12px;
}

/* Score Dots */
.score-dots {
  display: flex;
  gap: 3px;
  align-items: center;
}
.score-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  transition: all 0.2s ease;
}
.score-dot.filled { transform: scale(1.1); }
.score-dot.filled.fit { background: var(--green); box-shadow: 0 0 6px rgba(52, 211, 153, 0.5); }
.score-dot.filled.reach { background: var(--yellow); box-shadow: 0 0 6px rgba(251, 191, 36, 0.5); }
.score-dot.filled.signal { background: var(--purple); box-shadow: 0 0 6px rgba(167, 139, 250, 0.5); }

.composite-score {
  font-weight: 700;
  font-size: 14px;
  min-width: 40px;
  display: inline-block;
}

/* Score Bars (detail page) */
.score-bar-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.score-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.score-bar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  width: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.score-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 4px;
  overflow: hidden;
  max-width: 200px;
}
.score-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}
.score-bar-fill.fit { background: linear-gradient(90deg, #22c55e, #34d399); box-shadow: 0 0 10px rgba(52, 211, 153, 0.3); }
.score-bar-fill.reach { background: linear-gradient(90deg, #f59e0b, #fbbf24); box-shadow: 0 0 10px rgba(251, 191, 36, 0.3); }
.score-bar-fill.signal { background: linear-gradient(90deg, #8b5cf6, #a78bfa); box-shadow: 0 0 10px rgba(167, 139, 250, 0.3); }
.score-bar-value {
  font-size: 14px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}
.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-light);
}
.btn-danger { background: rgba(248, 113, 113, 0.12); color: var(--red); border: 1px solid rgba(248, 113, 113, 0.15); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.2); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-icon { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 18px; padding: 4px; transition: all 0.15s; }
.btn-icon:hover { color: var(--text-primary); transform: scale(1.1); }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 9px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: linear-gradient(135deg, #0f1422, #0c1017);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.05);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px 0;
}
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-body { padding: 20px 28px 28px; }

/* Lead Detail Page */
.lead-detail-page {
  max-width: 900px;
  animation: fadeIn 0.3s ease;
}

.lead-detail-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.lead-detail-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
}

.lead-detail-hero h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.lead-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.lead-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease;
}

.lead-section:hover {
  border-color: var(--border-light);
}

.lead-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.detail-field label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.detail-field .value { font-size: 14px; margin-top: 4px; color: var(--text-primary); }
.detail-field .value a { color: var(--accent-hover); text-decoration: none; transition: color 0.15s; }
.detail-field .value a:hover { color: #c4b5fd; }

.section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Source Data */
.source-data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.source-data-item {
  padding: 10px 14px;
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.source-data-item .key {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.source-data-item .val {
  font-size: 13px;
  color: var(--text-primary);
  margin-top: 2px;
  word-break: break-word;
}

/* Score Editor */
.score-editor {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.score-field label { font-size: 11px; color: var(--text-muted); display: block; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.score-buttons { display: flex; gap: 4px; }
.score-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.score-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.score-btn.active { color: white; border-color: transparent; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.score-btn.active.fit { background: var(--green); }
.score-btn.active.reach { background: var(--yellow); color: #000; }
.score-btn.active.signal { background: var(--purple); }

/* History Timeline */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: flex;
  gap: 16px;
  font-size: 13px;
  padding: 12px 0;
  position: relative;
}
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 28px;
  bottom: -4px;
  width: 1px;
  background: var(--border);
}
.timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 5px;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent-glow);
}
.timeline-time { color: var(--text-muted); white-space: nowrap; font-size: 11px; font-weight: 500; }
.timeline-action { font-weight: 600; color: var(--text-primary); }
.timeline-details { color: var(--text-secondary); }

/* Toolbar */
.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.toolbar .form-select, .toolbar .form-input {
  width: auto;
  min-width: 150px;
}

/* Checkbox */
.checkbox-cell { width: 40px; }
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* Activity */
.activity-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  transition: all 0.15s ease;
}
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { padding-left: 8px; }

/* Section panels */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.panel h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Loading */
.loading {
  display: flex;
  justify-content: center;
  padding: 60px;
  color: var(--text-muted);
  font-size: 13px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.empty-state h3 { font-size: 18px; margin-bottom: 8px; color: var(--text-secondary); font-weight: 600; }

/* Transitions */
.fade-in { animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* Bulk bar */
.bulk-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0f1422, #0c1017);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 50;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.1);
  backdrop-filter: blur(10px);
}
.bulk-bar.hidden { display: none; }
.bulk-count { font-weight: 700; font-size: 13px; color: var(--accent-hover); }

/* Play Cards */
.play-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.play-card:hover { border-color: var(--accent); }
.play-card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.play-name { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.play-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.5; }
.play-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.play-tag { font-size: 11px; padding: 3px 10px; border-radius: 20px; background: rgba(59, 130, 246, 0.1); color: var(--accent); border: 1px solid rgba(59, 130, 246, 0.2); }

.play-progress { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.play-progress-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; color: var(--text-secondary); }
.play-progress-count { font-weight: 700; color: var(--accent); }
.play-progress-bar { width: 100%; height: 6px; background: var(--bg-secondary); border-radius: 3px; overflow: hidden; margin-bottom: 14px; }
.play-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #a855f7); border-radius: 3px; transition: width 0.5s ease; }

.play-iteration-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 200px; overflow-y: auto; }
.iteration-chip {
  font-size: 11px; padding: 4px 10px; border-radius: 6px;
  background: var(--bg-secondary); color: var(--text-muted);
  border: 1px solid var(--border); transition: all 0.2s;
}
.iteration-chip.done {
  background: rgba(34, 197, 94, 0.1); color: #22c55e;
  border-color: rgba(34, 197, 94, 0.3);
}

.play-no-iteration {
  margin-top: 16px; padding: 12px 16px; border-radius: 8px;
  background: rgba(245, 158, 11, 0.08); color: #f59e0b;
  font-size: 13px; border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Evidence Gallery */
.evidence-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; margin-bottom: 24px; }
.evidence-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: all 0.2s; }
.evidence-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.evidence-card-img { position: relative; cursor: pointer; overflow: hidden; max-height: 240px; }
.evidence-card-img img { width: 100%; height: auto; display: block; object-fit: cover; transition: max-height 0.3s; max-height: 240px; }
.evidence-card-img img.expanded { max-height: none; }
.evidence-card-caption { padding: 14px 16px; }
.evidence-card-source { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.evidence-card-excerpt { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-top: 4px; }
.evidence-card-link { font-size: 11px; color: var(--accent); text-decoration: none; margin-top: 6px; display: inline-block; }
.evidence-card-link:hover { text-decoration: underline; }

/* Two-column layout */
.dossier-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 900px) { .dossier-two-col { grid-template-columns: 1fr; } }
.dossier-two-col .dossier-section { margin-bottom: 0; }

/* Highlight section */
.highlight-section { background: linear-gradient(135deg, rgba(59,130,246,0.05), rgba(168,85,247,0.05)) !important; border-color: rgba(59,130,246,0.3) !important; }

/* Compact sources list */
.sources-compact { display: flex; flex-direction: column; gap: 6px; }
.source-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 6px; background: var(--bg-secondary); font-size: 13px; }
.source-num { font-weight: 700; color: var(--accent); min-width: 28px; }
.source-name { color: var(--text-primary); font-weight: 500; flex: 1; }
.source-date { color: var(--text-muted); font-size: 11px; }
.source-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.source-link:hover { text-decoration: underline; }

/* Dossier Lead Page */
.dossier-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 32px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 24px; }
.dossier-header h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.dossier-location { color: var(--text-secondary); font-size: 14px; margin-bottom: 10px; }
.dossier-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.dossier-tag { font-size: 11px; padding: 3px 10px; border-radius: 20px; background: rgba(59, 130, 246, 0.1); color: var(--accent); border: 1px solid rgba(59, 130, 246, 0.2); }
.dossier-score-block { text-align: center; min-width: 100px; }
.dossier-total-score { font-size: 48px; font-weight: 900; background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.dossier-score-label { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.dossier-score-breakdown { display: flex; gap: 4px; justify-content: center; }
.score-pill { font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.score-pill.fit { background: rgba(34,197,94,0.15); color: #22c55e; }
.score-pill.reach { background: rgba(245,158,11,0.15); color: #f59e0b; }
.score-pill.signal { background: rgba(168,85,247,0.15); color: #a855f7; }

.dossier-contact-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.contact-chip { padding: 8px 16px; border-radius: 8px; background: var(--bg-card); border: 1px solid var(--border); font-size: 13px; color: var(--text-primary); text-decoration: none; transition: all 0.2s; }
.contact-chip:hover { border-color: var(--accent); background: rgba(59,130,246,0.05); }
.contact-chip.owner { background: rgba(168,85,247,0.1); border-color: rgba(168,85,247,0.3); }

.dossier-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 28px; margin-bottom: 20px; }
.dossier-section-title { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 16px; font-weight: 700; }
.dossier-narrative { font-size: 15px; line-height: 1.8; color: var(--text-secondary); }
.dossier-narrative p { margin-bottom: 12px; }
.dossier-notice { padding: 12px 16px; border-radius: 8px; background: rgba(245,158,11,0.08); color: #f59e0b; font-size: 13px; border: 1px solid rgba(245,158,11,0.2); }

/* Citations */
.citation { color: var(--accent); font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; vertical-align: super; margin: 0 1px; }
.citation:hover { text-decoration: underline; }

/* Evidence List */
.evidence-list { display: flex; flex-direction: column; gap: 16px; }
.evidence-item { display: flex; gap: 12px; padding: 16px; border-radius: 8px; background: var(--bg-secondary); border: 1px solid var(--border); }
.evidence-num { font-weight: 800; color: var(--accent); font-size: 13px; min-width: 30px; }
.evidence-body { flex: 1; }
.evidence-header { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.evidence-confidence { font-size: 12px; font-weight: 600; }
.evidence-source { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.evidence-date { font-size: 11px; color: var(--text-muted); }
.evidence-url { font-size: 12px; color: var(--accent); word-break: break-all; display: block; margin-bottom: 6px; }
.evidence-excerpt { font-size: 13px; color: var(--text-secondary); font-style: italic; line-height: 1.5; border-left: 3px solid var(--accent); padding-left: 12px; margin-top: 8px; }
.evidence-screenshot { margin-top: 10px; }
.evidence-screenshot img { max-width: 100%; border-radius: 6px; border: 1px solid var(--border); }

/* Responsive */
@media (max-width: 768px) {
  .sidebar { width: 60px; min-width: 60px; }
  .sidebar .logo span, .sidebar .nav-item span, .sidebar .nav-section-label, .sidebar .status-filter span, .sidebar .sidebar-footer { display: none; }
  .content { padding: 20px; }
}
