/* ==========================================================================
   TrailScope — Investigation Console Stylesheet
   Classified Cyber-Intelligence Aesthetic
   ========================================================================== */

:root {
  --bg-primary: #050505;
  --bg-panel: rgba(255, 255, 255, 0.02);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(0, 255, 102, 0.2);
  --border-glow-high: rgba(0, 255, 102, 0.55);
  --text-primary: #f5f5f5;
  --text-muted: rgba(255, 255, 255, 0.45);
  --accent: #00ff66;
  --accent-dim: rgba(0, 255, 102, 0.12);
  --accent-glow: rgba(0, 255, 102, 0.4);
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
  
  --risk-high: #00ff66;
  --risk-high-dim: rgba(0, 255, 102, 0.2);
  --risk-medium: rgba(0, 255, 102, 0.6);
  --risk-medium-dim: rgba(0, 255, 102, 0.08);
  --risk-low: rgba(255, 255, 255, 0.25);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  position: relative;
  line-height: 1.5;
  font-size: 14px;
}

/* Background layers */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(0, 255, 102, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 102, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at 50% 50%, black 60%, transparent 100%);
  animation: grid-slow-drift 40s linear infinite;
  pointer-events: none;
}

@keyframes grid-slow-drift {
  from { background-position: 0 0; }
  to { background-position: 50px 50px; }
}

.particles-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.3;
}

.bg-ambient-glow {
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(circle at 10% 20%, rgba(0, 255, 102, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(0, 255, 102, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

.spotlight {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 102, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 102, 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Cinematic Boot-up Loader */
.boot-screen {
  position: fixed;
  inset: 0;
  background: #020202;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  transition: opacity 0.8s var(--transition), visibility 0.8s;
  font-family: var(--font-mono);
}

.boot-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
  display: flex;
  align-items: center;
  gap: 15px;
}

.boot-logo span {
  animation: logo-pulse 1.5s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%, 100% { opacity: 0.6; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.4) drop-shadow(0 0 10px var(--accent)); }
}

.boot-loader-ring {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(0, 255, 102, 0.1);
  border-top: 2px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: relative;
  box-shadow: 0 0 15px var(--accent-dim);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.boot-status-console {
  width: 400px;
  max-width: 90%;
  height: 120px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 255, 102, 0.15);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: inset 0 0 15px rgba(0, 255, 102, 0.05);
}

.boot-log-line {
  display: flex;
  justify-content: space-between;
  border-left: 2px solid transparent;
  padding-left: 6px;
}
.boot-log-line.active {
  border-left-color: var(--accent);
  color: var(--accent);
}
.boot-log-line.success {
  color: var(--accent);
}

/* Page Layout */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  padding: 16px;
  gap: 16px;
  position: relative;
  z-index: 5;
}

/* Header */
.app-header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding-inline: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-mark {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-glow);
}

.system-status {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-left: 1px solid var(--border-subtle);
  padding-left: 20px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Search bar */
.search-wrapper {
  position: relative;
  width: 280px;
}

.search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px 8px 36px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: all 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-dim);
  background: rgba(0, 0, 0, 0.6);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-loader {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 1px solid transparent;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
}

.btn-settings {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-settings:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* Settings Modal */
.settings-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.settings-modal.active {
  opacity: 1;
  visibility: visible;
}
.settings-content {
  background: #0b0e14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  width: 450px;
  max-width: 90%;
  box-shadow: 0 0 40px rgba(0, 255, 102, 0.1);
  transform: translateY(20px);
  transition: transform 0.3s;
}
.settings-modal.active .settings-content {
  transform: translateY(0);
}
.settings-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}
.settings-group {
  margin-bottom: 20px;
}
.settings-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.settings-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  color: #fff;
  font-family: var(--font-mono);
}
.settings-input:focus {
  outline: none;
  border-color: var(--accent);
}
.settings-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.btn-save, .btn-cancel {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  border: 1px solid transparent;
}
.btn-save {
  background: var(--accent);
  color: #000;
  font-weight: 600;
}
.btn-save:hover {
  box-shadow: 0 0 15px var(--accent-glow);
}
.btn-cancel {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-muted);
}
.btn-cancel:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Glass Panel Base */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s var(--transition), box-shadow 0.4s var(--transition);
}

.glass-panel:hover {
  border-color: var(--border-glow);
}

.panel-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-title-line {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* SECTION 1: Intelligence Overview Metrics */
.overview-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card {
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  text-shadow: 0 0 15px var(--accent-dim);
}

.metric-trend {
  font-size: 0.7rem;
  color: var(--accent);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* SECTION 2: Active Fraud Rings */
.rings-section {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  backdrop-filter: blur(20px);
}

.rings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.rings-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.rings-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--border-glow);
}

.rings-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.ring-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  position: relative;
  transition: all 0.4s var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ring-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.ring-card:hover {
  border-color: rgba(0, 255, 102, 0.3);
  transform: translateY(-2px);
  background: rgba(0, 255, 102, 0.02);
}

.ring-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-dim);
  background: rgba(0, 255, 102, 0.03);
}

.ring-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ring-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ring-accounts-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  border: 1px solid var(--border-glow);
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 255, 102, 0.05);
}

.ring-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ring-risk-summary {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--accent);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* SECTION 3: Main Investigation Command Center */
.main-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 280px 1fr 340px;
  grid-template-rows: minmax(0, 1fr);
  gap: 16px;
  min-height: 0; /* Important for flex/grid inner scroll */
  height: 100%;
}

/* LEFT PANEL: Risk Leaderboard */
.leaderboard-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.leaderboard-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sort-select {
  background: transparent;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--font-mono);
}

.sort-select:focus {
  outline: none;
}

.leaderboard-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
}

.leaderboard-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.leaderboard-item:hover {
  background: rgba(0, 255, 102, 0.02);
  border-color: rgba(0, 255, 102, 0.25);
  transform: translateX(2px);
}

.leaderboard-item.selected {
  background: rgba(0, 255, 102, 0.04);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.15);
}

.account-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-id {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8rem;
  color: #fff;
}

.account-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.risk-badge-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.risk-score-display {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
}

.risk-tier-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--font-mono);
}

/* Tier Specific styles */
.tier-high {
  color: var(--risk-high);
  text-shadow: 0 0 10px var(--risk-high-glow);
}
.badge-high {
  background: var(--risk-high-dim);
  border: 1px solid var(--border-glow-high);
  color: var(--accent);
}
.leaderboard-item.high {
  border-left: 3px solid var(--accent);
}

.tier-medium {
  color: var(--risk-medium);
}
.badge-medium {
  background: var(--risk-medium-dim);
  border: 1px solid rgba(0, 255, 102, 0.15);
  color: rgba(0, 255, 102, 0.85);
}
.leaderboard-item.medium {
  border-left: 3px solid rgba(0, 255, 102, 0.5);
}

.tier-low {
  color: var(--text-muted);
}
.badge-low {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}
.leaderboard-item.low {
  border-left: 3px solid transparent;
}

/* CENTER PANEL: Network Graph Visualizer */
.graph-panel {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0;
  overflow: hidden;
  height: 100%;
  min-height: 0;
}

.graph-canvas-container {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  background: radial-gradient(circle at center, rgba(5, 5, 5, 0.2) 0%, rgba(2, 2, 2, 0.9) 100%);
}

.vis-network {
  outline: none;
}

/* Graph control UI overlays */
.graph-controls {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.graph-btn {
  background: rgba(11, 14, 20, 0.85);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.graph-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 10px var(--accent-dim);
}

.graph-legend {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: rgba(11, 14, 20, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-node {
  border-radius: 50%;
  display: inline-block;
}

.legend-node.high {
  width: 12px;
  height: 12px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.legend-node.medium {
  width: 9px;
  height: 9px;
  background: rgba(0, 255, 102, 0.6);
}

.legend-node.low {
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid var(--border-subtle);
}

.legend-edge {
  width: 16px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
  opacity: 0.6;
}

/* RIGHT PANEL: Investigation Dossier */
.dossier-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.dossier-list-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dossier-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 2px;
}

.dossier-header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.dossier-id {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.dossier-score-ring {
  width: 54px;
  height: 54px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dossier-score-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
}

.dossier-score-svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

/* Dossier stats grid */
.dossier-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dossier-stat-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dossier-stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.dossier-stat-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

/* Dossier alert/ground truth banner */
.dossier-banner {
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
}

.banner-ground-truth {
  background: rgba(0, 255, 102, 0.06);
  border: 1px solid var(--border-glow);
  color: var(--accent);
}

.banner-unverified {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* Dossier Intelligence findings list */
.findings-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.findings-title {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.finding-card {
  background: rgba(0, 255, 102, 0.015);
  border: 1px solid rgba(0, 255, 102, 0.12);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: all 0.3s;
}

.finding-card:hover {
  background: rgba(0, 255, 102, 0.03);
  border-color: rgba(0, 255, 102, 0.25);
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.05);
}

.finding-icon {
  color: var(--accent);
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.finding-text {
  font-size: 0.78rem;
  line-height: 1.4;
  color: #fff;
}

.findings-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
}

/* Loading Skeletons */
.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 25%, rgba(0, 255, 102, 0.02) 50%, rgba(255, 255, 255, 0.02) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 12px;
  margin-bottom: 8px;
}
.skeleton-title {
  height: 18px;
  margin-bottom: 12px;
  width: 70%;
}
.skeleton-badge {
  height: 20px;
  width: 50px;
}

/* UI Loading, Empty, and Error States */
.panel-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  gap: 12px;
}

.state-icon {
  font-size: 2rem;
  color: var(--border-glow);
  animation: state-pulse 2s infinite;
}

@keyframes state-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 1; }
}

.state-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.state-desc {
  font-size: 0.75rem;
  max-width: 200px;
  line-height: 1.4;
}

.state-retry {
  background: var(--accent-dim);
  border: 1px solid var(--border-glow);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  cursor: pointer;
  margin-top: 8px;
  font-family: var(--font-mono);
  transition: all 0.3s;
}

.state-retry:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Panel Animations Reveal */
.reveal-up {
  opacity: 0;
  transform: translateY(20px);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.97);
}
.reveal-fade {
  opacity: 0;
}
