/* ==========================================================================
   👑 KING GOOGLE SWAG OS: CYBERPUNK STARK HUD STYLESHEET
   Obsidian Glassmorphism, 3D Holographic Overlays, and Tactical Glow Effects
   ========================================================================== */

:root {
  --bg-primary: #030712;
  --bg-panel: rgba(11, 15, 25, 0.75);
  --bg-card: rgba(17, 24, 39, 0.65);
  --border-cyan: rgba(0, 240, 255, 0.3);
  --border-cyan-bright: #00f0ff;
  --glow-cyan: rgba(0, 240, 255, 0.5);
  --gold: #fbbf24;
  --gold-glow: rgba(251, 191, 36, 0.4);
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.4);
  --amber: #f59e0b;
  --red: #ef4444;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --font-display: 'Orbitron', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body.cyber-os-body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 50% 30%, rgba(0, 240, 255, 0.08) 0%, transparent 70%),
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  color: var(--text-main);
  font-family: var(--font-body);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Hologram Scanline & Vignette */
.hologram-scanline {
  position: fixed;
  top: 0; left: 0; right: 0; height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,0) 50%,
    rgba(0, 240, 255, 0.02) 50%,
    rgba(0, 240, 255, 0.02)
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 99;
}

.vignette-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.85);
  pointer-events: none;
  z-index: 98;
}

/* TOP HUD HEADER */
.hud-header {
  height: 64px;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-cyan);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

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

.pulse-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-cyan-bright);
  box-shadow: 0 0 12px var(--glow-cyan);
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gold-text { color: var(--gold); text-shadow: 0 0 10px var(--gold-glow); }
.cyan-text { color: var(--border-cyan-bright); text-shadow: 0 0 10px var(--glow-cyan); }

.tag-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--border-cyan);
  color: var(--border-cyan-bright);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

.system-telemetry-strip {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.telemetry-item .lbl {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.8px;
}

.telemetry-item .val {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  font-weight: 600;
}

.val-gold { color: var(--gold); text-decoration: none; }
.val-gold:hover { text-decoration: underline; }
.val-cyan { color: var(--border-cyan-bright); }
.val-emerald { color: var(--emerald); }

/* Voice Button */
.voice-btn {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(16, 185, 129, 0.15));
  border: 1px solid var(--border-cyan);
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.voice-btn:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(16, 185, 129, 0.3));
  border-color: var(--border-cyan-bright);
  box-shadow: 0 0 15px var(--glow-cyan);
}

.voice-btn.listening {
  border-color: var(--gold);
  background: rgba(251, 191, 36, 0.2);
  box-shadow: 0 0 20px var(--gold-glow);
  animation: pulseGlow 1s infinite;
}

/* MAIN GRID LAYOUT */
.hud-grid-container {
  flex: 1;
  display: grid;
  grid-template-columns: 360px 1fr 420px;
  gap: 16px;
  padding: 16px;
  height: calc(100vh - 64px);
  overflow: hidden;
}

.hud-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.panel-card {
  background: var(--bg-panel);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transition: border-color 0.25s ease;
}

.panel-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
}

.card-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
  background: rgba(0, 240, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--border-cyan-bright);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Buttons */
.hud-btn-mini {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--border-cyan-bright);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.hud-btn-mini:hover {
  background: rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 8px var(--glow-cyan);
}

.hud-btn-primary {
  background: linear-gradient(135deg, #00f0ff, #3b82f6);
  border: none;
  color: #030712;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 1px;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-btn-primary:hover {
  box-shadow: 0 0 15px var(--glow-cyan);
  transform: translateY(-1px);
}

/* ARCHON DAG PIPELINE */
.dag-card {
  flex: 0 0 auto;
}

.dag-pipeline-container {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dag-node {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.dag-node.active {
  border-color: var(--border-cyan-bright);
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 12px var(--glow-cyan);
}

.dag-node.success {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.1);
}

.node-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.2);
  color: var(--border-cyan-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 700;
}

.node-content {
  display: flex;
  flex-direction: column;
}

.node-name {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-main);
}

.node-status {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-muted);
}

.dag-connector {
  flex: 1;
  height: 2px;
  background: rgba(0, 240, 255, 0.2);
  margin: 0 6px;
}

/* MEMORY EXPLORER */
.memory-card {
  flex: 1;
}

.count-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

.memory-search-bar {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.memory-search-bar input {
  flex: 1;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 6px;
  outline: none;
}

.memory-search-bar input:focus {
  border-color: var(--border-cyan-bright);
  box-shadow: 0 0 8px var(--glow-cyan);
}

.memory-stream-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.memory-item {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--border-cyan-bright);
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  font-size: 0.75rem;
}

.memory-item .mem-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* CENTER 3D JARVIS VIEWPORT */
.center-panel {
  display: flex;
  flex-direction: column;
  position: relative;
}

.hologram-viewport-container {
  flex: 1;
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.05) 0%, rgba(3, 7, 18, 0.95) 85%);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.1);
  overflow: hidden;
}

.three-viewport {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
}

/* Hologram Rings Overlay */
.hud-hologram-rings {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  width: 480px;
  height: 480px;
}

.ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(0, 240, 255, 0.2);
}

.outer-ring {
  width: 440px; height: 440px;
  border: 1px dashed rgba(0, 240, 255, 0.25);
  animation: rotateClockwise 35s linear infinite;
}

.middle-ring {
  width: 320px; height: 320px;
  border: 1px dotted rgba(251, 191, 36, 0.3);
  animation: rotateCounter 20s linear infinite;
}

.inner-ring {
  width: 180px; height: 180px;
  border: 1px solid rgba(0, 240, 255, 0.4);
}

@keyframes rotateClockwise {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotateCounter {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* JARVIS Speech Box */
.jarvis-speech-box {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(3, 7, 18, 0.85);
  border: 1px solid var(--border-cyan);
  border-radius: 12px;
  padding: 16px 20px;
  backdrop-filter: blur(16px);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.2);
}

.jarvis-ai-badge {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.jarvis-speech-box p {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 10px;
}

.waveform-canvas-wrap {
  width: 100%;
  height: 24px;
}

/* Data Floats */
.hologram-data-float {
  position: absolute;
  padding: 8px 12px;
  background: rgba(3, 7, 18, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 6px;
  font-family: var(--font-mono);
}

.float-top-left { top: 20px; left: 20px; }
.float-top-right { top: 20px; right: 20px; }

.hologram-data-float .label {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.hologram-data-float .val {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--border-cyan-bright);
}

/* Command Bar */
.command-bar-container {
  height: 56px;
  background: var(--bg-panel);
  border: 1px solid var(--border-cyan);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.terminal-prefix {
  font-family: var(--font-mono);
  color: var(--border-cyan-bright);
  font-size: 1.1rem;
  font-weight: 800;
}

.command-bar-container input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  outline: none;
}

/* RIGHT PANEL: LIVE AGENTS */
.swarm-card {
  flex: 1;
}

.live-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--border-cyan-bright);
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--border-cyan-bright);
  padding: 2px 8px;
  border-radius: 4px;
}

.agent-cards-grid {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.agent-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.agent-card:hover {
  background: rgba(0, 240, 255, 0.06);
  border-color: var(--border-cyan-bright);
  box-shadow: 0 0 15px var(--glow-cyan);
  transform: translateX(-2px);
}

.agent-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.agent-name {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.agent-status-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.status-idle { background: rgba(156, 163, 175, 0.2); color: #9ca3af; }
.status-thinking { background: rgba(251, 191, 36, 0.2); color: var(--gold); animation: pulseGlow 1.2s infinite; }
.status-executing { background: rgba(0, 240, 255, 0.2); color: var(--border-cyan-bright); animation: pulseGlow 1s infinite; }
.status-paused { background: rgba(239, 68, 68, 0.2); color: var(--red); }

.agent-thought {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 8px;
}

.agent-metrics-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--border-cyan-bright);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 6px;
}

.interrupt-hint {
  font-size: 0.58rem;
  color: var(--gold);
}

/* TERMINAL CARD */
.terminal-card {
  height: 220px;
}

.terminal-feed {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
}

.log-entry {
  display: flex;
  gap: 8px;
}

.log-time { color: var(--text-muted); }
.log-agent { color: var(--gold); font-weight: 600; }
.log-msg { color: var(--text-main); }
.log-warn { color: var(--red); }

/* MODAL */
.hud-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.hud-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  width: 100%; height: 100%;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
}

.modal-content {
  position: relative;
  width: 500px;
  background: #0b0f19;
  border: 1px solid var(--border-cyan);
  border-radius: 14px;
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.3);
  overflow: hidden;
}

.modal-header {
  padding: 14px 20px;
  background: rgba(0, 240, 255, 0.08);
  border-bottom: 1px solid var(--border-cyan);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-thought-box {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.modal-input-group label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--border-cyan-bright);
  display: block;
  margin-bottom: 6px;
}

.modal-input-group textarea {
  width: 100%;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border-cyan);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-mono);
  padding: 10px;
  font-size: 0.8rem;
  outline: none;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.hud-btn-danger {
  background: var(--red);
  color: white;
  border: none;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.hud-btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.2);
  font-family: var(--font-display);
  font-size: 0.75rem;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

/* ==========================================================================
   ⚡ GOD MODE ENHANCEMENTS: DEMO BUTTON, FOOTER PILLS & SMOOTH SCROLLING
   ========================================================================== */

/* Smooth Scrolling & Custom Neon Scrollbars */
* {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(3, 7, 18, 0.7);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.35);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.8);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

.top-action-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-btn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(251, 191, 36, 0.08));
  border: 1px solid #f59e0b;
  color: #fbbf24;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);
}

.demo-btn:hover {
  background: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.6);
  transform: translateY(-2px);
}

.demo-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Footer Shortcuts Bar */
.hud-footer-shortcuts {
  height: 38px;
  background: rgba(3, 7, 18, 0.95);
  border-top: 1px solid rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 24px;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.shortcut-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.shortcut-pill kbd {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 4px;
  padding: 2px 7px;
  color: #00f0ff;
  font-weight: 700;
  font-size: 0.68rem;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

.status-pill-cloud {
  color: #10b981;
  font-weight: 600;
}

.status-pill-cloud .dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  display: inline-block;
  animation: pulseGlow 1.5s infinite;
}

/* Parallax Depth Hover on HUD Cards */
.panel-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.panel-card:hover {
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.12), inset 0 0 16px rgba(0, 240, 255, 0.06);
  transform: translateY(-2px);
}

.memory-item.search-match {
  border-left: 3px solid #fbbf24;
  background: rgba(251, 191, 36, 0.08);
}

/* ==========================================================================
   ♿ WCAG 2.2 AAA ACCESSIBILITY & FOCUS HARNESS
   High-contrast visible focus rings, screen reader utilities, and reduced motion
   ========================================================================== */

/* Skip Link for Keyboard Navigation */
.skip-link {
  position: absolute;
  top: -60px;
  left: 24px;
  background: #00f0ff;
  color: #030712;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  z-index: 1000;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.8);
  transition: top 0.2s ease-in-out;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}

/* Screen Reader Only Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* WCAG 2.2 AAA High-Contrast Visible Focus Rings */
:focus-visible {
  outline: 2px solid #00f0ff !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.7) !important;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid #00f0ff !important;
  outline-offset: 2px !important;
}

/* Tap Target Sizing Minimums for Accessibility */
button,
input[type="text"],
.hud-btn-mini {
  min-height: 38px;
}
.hud-btn {
  min-height: 44px;
}

/* Reduced Motion Mode for Vestibular Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hologram-scanline {
    display: none !important;
  }

  .hud-hologram-rings .ring {
    animation: none !important;
  }

  .pulse-indicator {
    animation: none !important;
  }

  .panel-card:hover {
    transform: none !important;
  }
}

