/* ==========================================================================
   SCAMTRAP AI // CYBER COMMAND CENTER STYLES
   ========================================================================== */

:root {
  --bg-primary: #080c14;
  --bg-secondary: #0d1322;
  --bg-card: rgba(16, 24, 39, 0.75);
  --bg-card-hover: rgba(22, 33, 54, 0.85);
  --bg-input: #0a0f1d;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.3);
  --border-active: #38bdf8;

  /* Accent & Status Colors */
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.25);
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  
  --status-green: #10b981;
  --status-green-glow: rgba(16, 185, 129, 0.2);
  --status-amber: #f59e0b;
  --status-amber-glow: rgba(245, 158, 11, 0.2);
  --status-red: #ef4444;
  --status-red-glow: rgba(239, 68, 68, 0.25);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Text Colors */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #38bdf8;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.05);
  --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.15);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(14, 165, 233, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.app-wrapper {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

/* ==========================================================================
   TOP HUD HEADER
   ========================================================================== */

.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: var(--shadow-sm);
  gap: 16px;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.radar-scan {
  position: relative;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.15));
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: 1px solid var(--accent-cyan);
  opacity: 0;
  animation: pulseRadar 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulseRadar {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title .glitch-text {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #ffffff, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-version {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-center {
  display: flex;
  align-items: center;
}

.telemetry-bar {
  display: flex;
  align-items: center;
  background: rgba(10, 15, 29, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px 14px;
  gap: 12px;
}

.telemetry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.telemetry-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.telemetry-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.text-cyan {
  color: var(--accent-cyan) !important;
}

.text-amber {
  color: var(--status-amber) !important;
}

.telemetry-divider {
  width: 1px;
  height: 20px;
  background: var(--border-subtle);
}

/* Status Pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.pill.standby {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-secondary);
  border-color: rgba(148, 163, 184, 0.2);
}
.pill.standby .status-dot {
  background: var(--text-muted);
}

.pill.connected {
  background: rgba(16, 185, 129, 0.12);
  color: var(--status-green);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 12px var(--status-green-glow);
}
.pill.connected .status-dot {
  background: var(--status-green);
  box-shadow: 0 0 8px var(--status-green);
  animation: blink 2s infinite ease-in-out;
}

.pill.recording-active {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 16px var(--status-red-glow);
}
.pill.recording-active .status-dot {
  background: var(--status-red);
  box-shadow: 0 0 10px var(--status-red);
  animation: blinkFast 0.8s infinite;
}

.pill.disconnected {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}
.pill.disconnected .status-dot {
  background: var(--status-red);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes blinkFast {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* ==========================================================================
   WORKSPACE GRID LAYOUT
   ========================================================================== */

.grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 20px;
  flex: 1;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0.5;
}

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

.card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title-group h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.header-icon {
  color: var(--accent-cyan);
}

/* Audio Visualizer Equalizer Bar */
.audio-visualizer-bar {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.audio-visualizer-bar .bar {
  width: 3px;
  height: 4px;
  background: var(--accent-cyan);
  border-radius: 2px;
  transition: height 0.15s ease;
}

.audio-visualizer-bar.active .bar {
  animation: waveBar 1.2s infinite ease-in-out;
}

.audio-visualizer-bar.active .bar:nth-child(1) { animation-delay: 0.1s; height: 14px; }
.audio-visualizer-bar.active .bar:nth-child(2) { animation-delay: 0.3s; height: 10px; }
.audio-visualizer-bar.active .bar:nth-child(3) { animation-delay: 0.5s; height: 16px; }
.audio-visualizer-bar.active .bar:nth-child(4) { animation-delay: 0.2s; height: 12px; }
.audio-visualizer-bar.active .bar:nth-child(5) { animation-delay: 0.4s; height: 18px; }
.audio-visualizer-bar.active .bar:nth-child(6) { animation-delay: 0.6s; height: 8px; }
.audio-visualizer-bar.active .bar:nth-child(7) { animation-delay: 0.15s; height: 13px; }

@keyframes waveBar {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

/* Persona Banner */
.persona-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 10px;
  padding: 10px 14px;
}

.persona-avatar {
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.persona-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.persona-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.persona-name-row strong {
  font-size: 0.88rem;
  color: var(--text-primary);
}

.persona-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
}

.persona-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ==========================================================================
   CONVERSATION FEED
   ========================================================================== */

.feed-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 340px;
}

.feed-subhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feed-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.btn-ghost-sm {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ghost-sm:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.feed-box {
  flex: 1;
  height: 380px;
  max-height: 440px;
  overflow-y: auto;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
.feed-box::-webkit-scrollbar,
.tag-list::-webkit-scrollbar,
.intel-list::-webkit-scrollbar {
  width: 6px;
}

.feed-box::-webkit-scrollbar-track,
.tag-list::-webkit-scrollbar-track,
.intel-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.feed-box::-webkit-scrollbar-thumb,
.tag-list::-webkit-scrollbar-thumb,
.intel-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.feed-box::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.3);
}

.system-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.notice-icon {
  font-weight: 800;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.15);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

/* Message Bubbles */
.msg {
  padding: 12px 16px;
  border-radius: 12px;
  max-width: 85%;
  font-size: 0.88rem;
  line-height: 1.45;
  animation: fadeInMsg 0.25s ease-out;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  word-break: break-word;
}

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

.msg-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.msg-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: auto;
}

.msg.caller {
  align-self: flex-start;
  background: linear-gradient(145deg, #1e2536, #161c2b);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border-bottom-left-radius: 3px;
}

.msg.caller .msg-header {
  color: #f87171;
}

.msg.caller.interim {
  background: rgba(30, 41, 59, 0.4);
  border: 1px dashed rgba(248, 113, 113, 0.35);
  color: #94a3b8;
  font-style: italic;
}

.msg.agent {
  align-self: flex-end;
  background: linear-gradient(145deg, #0c2b20, #091f17);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #ecfdf5;
  border-bottom-right-radius: 3px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.08);
}

.msg.agent .msg-header {
  color: #34d399;
}

.voice-indicator {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  font-size: 0.65rem;
  background: rgba(16, 185, 129, 0.2);
  padding: 1px 6px;
  border-radius: 10px;
  color: #6ee7b7;
}

/* Simulation Chips */
.simulation-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sim-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.sim-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.chip-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.chip-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--border-glow);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Controls */
.controls-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.controls-top {
  display: flex;
}

.btn-primary-mic {
  width: 100%;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: white;
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
  transition: all 0.25s ease;
}

.btn-primary-mic:hover {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
  transform: translateY(-1px);
}

.btn-primary-mic.recording {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
  animation: pulseRecording 1.5s infinite;
}

@keyframes pulseRecording {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.controls-input-group {
  display: flex;
  gap: 10px;
}

.input-container {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

input[type="text"] {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 10px 14px 10px 38px;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s ease;
}

input[type="text"]:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
  background: #0d1527;
}

.btn-send {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-send:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

/* ==========================================================================
   RIGHT PANEL: LIVE THREAT INTEL MATRIX
   ========================================================================== */

.live-pulse-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
  animation: blink 1.2s infinite;
}

/* Phase Tracker Box */
.phase-tracker-box {
  background: rgba(10, 15, 29, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.box-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.box-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.phase-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid var(--border-glow);
}

.phase-badge.phase-hooking { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border-color: rgba(56, 189, 248, 0.3); }
.phase-badge.phase-feigning_confusion { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border-color: rgba(245, 158, 11, 0.3); }
.phase-badge.phase-stalling { background: rgba(139, 92, 246, 0.15); color: #c084fc; border-color: rgba(139, 92, 246, 0.3); }
.phase-badge.phase-extracting { background: rgba(239, 68, 68, 0.15); color: #f87171; border-color: rgba(239, 68, 68, 0.3); }
.phase-badge.phase-wrap_up { background: rgba(16, 185, 129, 0.15); color: #34d399; border-color: rgba(16, 185, 129, 0.3); }

.phase-steps-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.phase-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 2px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.step-name {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
}

.phase-step.active {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.phase-step.active .step-num {
  background: var(--accent-cyan);
  color: #000;
}

.phase-step.active .step-name {
  color: var(--text-primary);
}

.phase-step.completed {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.phase-step.completed .step-num {
  background: var(--status-green);
  color: #000;
}

.phase-step.completed .step-name {
  color: var(--status-green);
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-card {
  background: rgba(10, 15, 29, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.metric-body {
  display: flex;
  align-items: center;
}

/* Urgency Pill */
.urgency-pill {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
}

.urgency-low {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.urgency-medium {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.urgency-high {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.urgency-critical {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 12px var(--status-red-glow);
  animation: pulseUrgent 1s infinite;
}

@keyframes pulseUrgent {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.identity-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  word-break: break-word;
}

/* Intel Accordion / Blocks */
.intel-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.intel-block {
  background: rgba(10, 15, 29, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.block-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.block-icon {
  font-size: 0.9rem;
}

.intel-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 1px 6px;
  border-radius: 10px;
}

/* Tag list for Tactics */
.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
}

.tag-list li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 8px;
  border-radius: 6px;
  animation: popIn 0.2s ease-out;
}

/* Intel List for Accounts & URLs */
.intel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 120px;
  overflow-y: auto;
  min-height: 28px;
}

.intel-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--status-amber);
  padding: 6px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #fbd38d;
  animation: popIn 0.2s ease-out;
}

.intel-item.url-item {
  border-left-color: #a78bfa;
  color: #c4b5fd;
}

.btn-copy-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.btn-copy-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.empty-state {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 4px 0;
  list-style: none;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Dashboard Footer */
.dashboard-footer {
  margin-top: auto;
}

.btn-secondary-full {
  width: 100%;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-secondary-full:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--border-glow);
  color: var(--text-primary);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}

.toast {
  background: #1e293b;
  border: 1px solid var(--border-glow);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideInToast 0.3s ease-out;
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

@media (max-width: 1080px) {
  .grid-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feed-box {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .app-wrapper {
    padding: 12px 12px 24px;
    gap: 14px;
  }

  .hud-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 14px;
    gap: 12px;
  }

  .header-center {
    width: 100%;
  }

  .telemetry-bar {
    width: 100%;
    justify-content: space-around;
  }

  .header-right {
    width: 100%;
  }

  .header-right .pill {
    width: 100%;
    justify-content: center;
  }

  .persona-banner {
    flex-direction: row;
    gap: 10px;
  }

  .persona-avatar {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }

  .phase-steps-bar {
    gap: 4px;
  }

  .phase-step {
    padding: 4px 1px;
  }

  .step-name {
    font-size: 0.58rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .controls-input-group {
    flex-direction: row;
  }
}

@media (max-width: 480px) {
  .brand-title .glitch-text {
    font-size: 1.05rem;
  }

  .feed-box {
    height: 280px;
  }

  .msg {
    max-width: 95%;
  }

  .btn-primary-mic {
    font-size: 0.8rem;
    padding: 10px 14px;
  }
}