@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Share+Tech+Mono&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-darker: #020205;
  --bg-dark: #050510;
  --bg-card: rgba(8, 10, 24, 0.65);
  --bg-glass: rgba(10, 15, 30, 0.4);
  
  --neon-cyan: #00f0ff;
  --neon-cyan-glow: rgba(0, 240, 255, 0.4);
  --neon-cyan-dim: rgba(0, 240, 255, 0.15);
  
  --neon-blue: #0066ff;
  --neon-blue-glow: rgba(0, 102, 255, 0.4);
  
  --neon-purple: #bd00ff;
  --neon-purple-glow: rgba(189, 0, 255, 0.4);
  
  --neon-green: #00ff66;
  --neon-green-glow: rgba(0, 255, 102, 0.3);
  
  --text-main: #f0f3f8;
  --text-dim: #94a3b8;
  --text-dark: #475569;
  
  --font-hud: 'Orbitron', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --font-body: 'Inter', sans-serif;
  
  --glow-shadow-cyan: 0 0 15px var(--neon-cyan-glow);
  --glow-shadow-blue: 0 0 15px var(--neon-blue-glow);
  --glow-shadow-purple: 0 0 15px var(--neon-purple-glow);
  
  --border-cyan: 1px solid rgba(0, 240, 255, 0.35);
  --border-purple: 1px solid rgba(189, 0, 255, 0.3);
  --border-glass: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   RESET & SYSTEM BASICS
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-cyan-dim) transparent;
}

body {
  background-color: var(--bg-darker);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  overflow: hidden; /* Lock viewport for operating system feel */
  position: relative;
  height: 100vh;
  width: 100vw;
  user-select: none;
}

/* Scrollbar customization for elements */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--neon-cyan-dim);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan-glow);
}

/* Screen overlay elements */
.matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
}

.crt-scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.06),
    rgba(0, 255, 0, 0.02),
    rgba(0, 0, 255, 0.06)
  );
  background-size: 100% 4px, 6px 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.85;
}

.crt-flicker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 240, 255, 0.003);
  z-index: 9998;
  pointer-events: none;
  animation: crtFlicker 0.15s infinite;
}

@keyframes crtFlicker {
  0% { opacity: 0.97; }
  50% { opacity: 1; }
  100% { opacity: 0.98; }
}

/* Ambient glow grid */
.ambient-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(0, 102, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(189, 0, 255, 0.06) 0%, transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.005) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.005) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  z-index: 1;
  pointer-events: none;
}

/* ==========================================================================
   SYSTEM OS INTERFACE HEADER
   ========================================================================== */
.system-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to bottom, rgba(5, 5, 15, 0.95), rgba(5, 5, 15, 0.6));
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  z-index: 100;
  backdrop-filter: blur(10px);
}

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

.system-title-badge {
  font-family: var(--font-hud);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--text-main);
  text-shadow: 0 0 10px var(--neon-cyan-glow);
  display: flex;
  align-items: center;
  gap: 10px;
}

.system-title-badge span {
  color: var(--neon-cyan);
}

.system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--neon-cyan);
  box-shadow: inset 0 0 6px rgba(0, 240, 255, 0.1);
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulseDot 1.5s infinite;
}

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

.system-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.system-stat-value {
  color: var(--neon-cyan);
}

/* ==========================================================================
   OS BOOT BLOCKER (INTUITIVE SIMULATION)
   ========================================================================== */
.boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-darker);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: var(--font-mono);
  color: var(--neon-cyan);
}

.boot-terminal {
  width: 90%;
  max-width: 650px;
  height: 350px;
  background: rgba(2, 2, 5, 0.95);
  border: var(--border-cyan);
  box-shadow: var(--glow-shadow-cyan);
  border-radius: 6px;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.boot-log-line {
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.boot-log-line.success {
  color: var(--neon-green);
}

.boot-log-line.warning {
  color: #f59e0b;
}

.boot-btn {
  font-family: var(--font-hud);
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--neon-cyan-dim), rgba(0, 102, 255, 0.15));
  border: var(--border-cyan);
  color: var(--neon-cyan);
  padding: 12px 28px;
  cursor: pointer;
  border-radius: 4px;
  text-shadow: 0 0 6px var(--neon-cyan-glow);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
}

.boot-btn.visible {
  opacity: 1;
  transform: translateY(0);
}

.boot-btn:hover {
  background: rgba(0, 240, 255, 0.25);
  box-shadow: var(--glow-shadow-cyan);
  transform: scale(1.05);
}

/* ==========================================================================
   OS MAIN WINDOW GRID
   ========================================================================== */
.os-container {
  display: grid;
  grid-template-columns: 380px 1fr;
  width: 100vw;
  height: calc(100vh - 50px);
  margin-top: 50px;
  z-index: 10;
  position: relative;
}

/* ==========================================================================
   LEFT SIDEBAR: CORE CONTROLLER
   ========================================================================== */
.sidebar-core {
  background: rgba(4, 4, 12, 0.85);
  border-right: 1px solid rgba(0, 240, 255, 0.15);
  backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

/* Concentric rotating AI node */
.ai-core-node-box {
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
  position: relative;
}

.ai-node-outer-container {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-node-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--neon-cyan);
  opacity: 0.65;
}

.ai-node-ring.r1 {
  width: 150px;
  height: 150px;
  border-color: var(--neon-cyan-glow);
  animation: rotateCW 20s linear infinite;
}

.ai-node-ring.r2 {
  width: 125px;
  height: 125px;
  border: 1px dotted var(--neon-purple);
  opacity: 0.75;
  animation: rotateCCW 15s linear infinite;
}

.ai-node-ring.r3 {
  width: 100px;
  height: 100px;
  border: 2px dashed var(--neon-blue);
  animation: rotateCW 8s linear infinite;
}

.ai-core-center {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--neon-cyan) 0%, var(--neon-blue) 60%, transparent 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 0 25px var(--neon-cyan-glow),
    0 0 50px rgba(0, 102, 255, 0.2);
  animation: pulseNode 3s ease-in-out infinite;
}

.ai-core-center::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--bg-darker);
  border: 2px solid var(--neon-cyan);
  box-shadow: inset 0 0 8px var(--neon-cyan);
}

@keyframes rotateCW {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes rotateCCW {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes pulseNode {
  0% { transform: scale(0.95); box-shadow: 0 0 20px var(--neon-cyan-glow); }
  50% { transform: scale(1.05); box-shadow: 0 0 35px var(--neon-cyan), 0 0 15px var(--neon-purple); }
  100% { transform: scale(0.95); box-shadow: 0 0 20px var(--neon-cyan-glow); }
}

.ai-core-details {
  text-align: center;
  margin-top: 15px;
}

.ai-core-name {
  font-family: var(--font-hud);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-main);
  text-shadow: 0 0 6px var(--neon-cyan-glow);
}

.ai-core-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--neon-cyan);
  margin-top: 4px;
}

/* Core diagnostic outputs */
.diag-log-box {
  flex-grow: 1;
  padding: 15px 20px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
  background: rgba(2, 2, 5, 0.3);
}

.diag-log-line {
  margin-bottom: 4px;
  word-break: break-all;
}

.diag-log-line.system { color: var(--neon-cyan); }
.diag-log-line.user { color: var(--neon-purple); }
.diag-log-line.success { color: var(--neon-green); }

/* Left Console Terminal Input */
.sidebar-terminal {
  padding: 20px;
  background: rgba(2, 2, 5, 0.8);
}

.sidebar-terminal-title {
  font-family: var(--font-hud);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.cli-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(0, 240, 255, 0.03);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 10px 12px;
  border-radius: 4px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6);
  position: relative;
  transition: all 0.3s ease;
}

.cli-input-wrapper:focus-within {
  border-color: var(--neon-cyan);
  box-shadow: inset 0 0 8px rgba(0, 240, 255, 0.05), var(--glow-shadow-cyan);
}

.cli-prompt {
  font-family: var(--font-mono);
  color: var(--neon-cyan);
  font-size: 14px;
  margin-right: 8px;
  font-weight: bold;
}

.cli-input {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #ffffff;
  width: 100%;
}

.cli-suggestions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cli-suggest-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cli-suggest-chip:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.05);
}

/* ==========================================================================
   RIGHT CONTENT VIEWPORT
   ========================================================================== */
.viewport-display {
  padding: 24px;
  overflow-y: auto;
  position: relative;
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
}

/* OS Dashboard Widget Grid Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(100px, auto);
  gap: 20px;
  z-index: 2;
  position: relative;
}

/* Base style for holographic cards */
.hud-widget {
  background: var(--bg-card);
  border: var(--border-glass);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Corner highlights on widgets */
.hud-widget::before,
.hud-widget::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--neon-cyan);
  border-style: solid;
  pointer-events: none;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.hud-widget::before {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}

.hud-widget::after {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
}

.hud-widget:hover {
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 8px 32px 0 rgba(0, 240, 255, 0.05), inset 0 0 10px rgba(0, 240, 255, 0.05);
}

.hud-widget:hover::before,
.hud-widget:hover::after {
  opacity: 1;
}

/* Widget Header */
.widget-header {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}

.widget-title {
  font-family: var(--font-hud);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title svg {
  color: var(--neon-cyan);
}

.widget-status-indicator {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  background: rgba(0, 240, 255, 0.05);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(0, 240, 255, 0.1);
  text-transform: uppercase;
}

.widget-content {
  padding: 18px;
  flex-grow: 1;
}

/* ==========================================================================
   MODULE 1: IDENTITY CORE
   ========================================================================== */
.identity-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: start;
}

.identity-avatar-box {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
}

.identity-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.1) brightness(0.95) sepia(0.1);
}

.avatar-hud-scanner {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  left: 0;
  top: 0;
  animation: scanAvatar 4s linear infinite;
  pointer-events: none;
}

@keyframes scanAvatar {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.identity-bio-pane {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-main);
  font-family: var(--font-body);
}

.identity-bio-pane p {
  margin-bottom: 12px;
}

.identity-bio-pane p:last-child {
  margin-bottom: 0;
}

.terminal-text-animated {
  white-space: pre-wrap;
  border-right: 2px solid var(--neon-cyan);
  animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--neon-cyan); }
}

/* Traits badge layout */
.identity-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.trait-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(0, 102, 255, 0.07);
  border: 1px solid rgba(0, 102, 255, 0.2);
  color: #a5b4fc;
  padding: 3px 8px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trait-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--neon-cyan);
  box-shadow: 0 0 6px var(--neon-cyan);
}

/* ==========================================================================
   MODULE 2: EXPERIENCE ENGINE
   ========================================================================== */
.experience-logs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-mono);
}

.experience-log-row {
  background: rgba(2, 2, 5, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--neon-cyan);
  padding: 10px 14px;
  border-radius: 0 4px 4px 0;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 15px;
  align-items: center;
  transition: all 0.2s ease;
}

.experience-log-row:hover {
  background: rgba(0, 240, 255, 0.03);
  border-color: rgba(0, 240, 255, 0.15);
  border-left-color: var(--neon-purple);
}

.experience-log-meta {
  display: flex;
  flex-direction: column;
}

.exp-log-time {
  font-size: 13px;
  color: var(--neon-cyan);
  font-weight: bold;
}

.exp-log-firm {
  font-size: 10px;
  color: var(--text-dim);
}

.exp-log-detail {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-main);
}

.exp-log-detail strong {
  color: #ffffff;
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

/* ==========================================================================
   MODULE 3: CAPITOL SECURITIES CORE
   ========================================================================== */
.securities-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.securities-highlight-block {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(189, 0, 255, 0.03));
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 15px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.securities-logo-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hud);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--neon-cyan);
  text-shadow: 0 0 6px var(--neon-cyan-glow);
  box-shadow: 0 0 10px var(--neon-cyan-dim);
}

.securities-details h4 {
  font-family: var(--font-hud);
  font-size: 13px;
  letter-spacing: 1px;
  color: #ffffff;
}

.securities-details p {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 4px;
  line-height: 1.4;
}

.securities-grid-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.security-stat-panel {
  background: rgba(2, 2, 5, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 4px;
}

.security-stat-panel .label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.security-stat-panel .val {
  font-family: var(--font-hud);
  font-size: 16px;
  font-weight: bold;
  color: var(--neon-cyan);
  margin-top: 4px;
}

/* ==========================================================================
   MODULE 4: LEADERSHIP AI ANALYSIS (METRICS)
   ========================================================================== */
.leadership-metrics-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.metric-hud-box {
  background: rgba(2, 2, 5, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  padding: 12px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-hud-box .hud-val {
  font-family: var(--font-hud);
  font-size: 20px;
  font-weight: 900;
  color: var(--neon-cyan);
  text-shadow: 0 0 8px var(--neon-cyan-glow);
  letter-spacing: 0.5px;
}

.metric-hud-box .hud-lbl {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 6px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.hud-graphics-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  height: 140px;
}

.radar-simulation-box {
  border: 1px solid rgba(0, 240, 255, 0.1);
  background: rgba(2, 2, 5, 0.5);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-scanner-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  background: conic-gradient(from 0deg, var(--neon-cyan-glow) 0deg, transparent 90deg, transparent 360deg);
  border-radius: 50%;
  transform-origin: 0 0;
  transform: translate(-50%, -50%) rotate(0deg);
  animation: radarRotate 4s linear infinite;
  pointer-events: none;
}

.radar-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.07);
}

.radar-circle.c1 { width: 120px; height: 120px; }
.radar-circle.c2 { width: 80px; height: 80px; }
.radar-circle.c3 { width: 40px; height: 40px; }

.radar-crosshair-h {
  position: absolute;
  width: 80%;
  height: 1px;
  background-color: rgba(0, 240, 255, 0.08);
}
.radar-crosshair-v {
  position: absolute;
  height: 80%;
  width: 1px;
  background-color: rgba(0, 240, 255, 0.08);
}

@keyframes radarRotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.bar-simulation-box {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 10px;
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 4px;
  background: rgba(2, 2, 5, 0.5);
  height: 100%;
}

.sim-bar-item {
  width: 12%;
  background: linear-gradient(to top, var(--neon-blue), var(--neon-cyan));
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
  animation: heightOscillate 2s ease-in-out infinite alternate;
}

.sim-bar-item:nth-child(2) { animation-delay: 0.3s; animation-duration: 1.4s; }
.sim-bar-item:nth-child(3) { animation-delay: 0.6s; animation-duration: 2.2s; }
.sim-bar-item:nth-child(4) { animation-delay: 0.1s; animation-duration: 1.8s; }
.sim-bar-item:nth-child(5) { animation-delay: 0.8s; animation-duration: 1.5s; }
.sim-bar-item:nth-child(6) { animation-delay: 0.4s; animation-duration: 2.5s; }

@keyframes heightOscillate {
  0% { height: 10%; }
  100% { height: 85%; }
}

/* ==========================================================================
   MODULE 5: SERVICES AI MODULES
   ========================================================================== */
.services-module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.service-module-card {
  background: rgba(2, 2, 5, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 140px;
}

.service-module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.service-module-card:hover::before {
  opacity: 1;
}

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

.service-card-icon {
  font-size: 18px;
}

.service-card-id {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--neon-cyan-glow);
}

.service-module-card h4 {
  font-family: var(--font-hud);
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.service-module-card p {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 10px;
  flex-grow: 1;
}

.service-card-features-hud {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 8px;
}

.service-card-feature-item {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #a5b4fc;
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-card-feature-item svg {
  color: var(--neon-cyan);
}

/* ==========================================================================
   MODULE 6: CONTACT TERMINAL SYSTEM
   ========================================================================== */
.terminal-form-layout {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-family: var(--font-mono);
}

.terminal-form-intro {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.5;
}

.terminal-form-intro span {
  color: var(--neon-cyan);
}

.terminal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.terminal-form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.terminal-form-field label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.terminal-form-input {
  background: rgba(2, 2, 5, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.15);
  padding: 8px 12px;
  border-radius: 3px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  transition: all 0.25s ease;
}

.terminal-form-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
  background: rgba(0, 240, 255, 0.02);
}

.terminal-form-textarea {
  min-height: 70px;
  resize: vertical;
}

.terminal-form-submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}

.confidentiality-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-dim);
}

.confidentiality-badge svg {
  color: var(--neon-green);
}

.terminal-submit-btn {
  font-family: var(--font-hud);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--neon-cyan);
  padding: 8px 20px;
  border-radius: 3px;
  cursor: pointer;
  text-shadow: 0 0 5px var(--neon-cyan-glow);
  transition: all 0.3s ease;
}

.terminal-submit-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-shadow-cyan);
}

/* Success Packet Sequence */
.success-packet-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  font-family: var(--font-mono);
  text-align: center;
  color: var(--neon-green);
}

.packet-icon {
  font-size: 40px;
  margin-bottom: 12px;
  animation: pulseNode 2s infinite;
}

.packet-log {
  margin-top: 15px;
  font-size: 11px;
  color: var(--text-dim);
  text-align: left;
  border: 1px solid rgba(0, 255, 102, 0.2);
  background: rgba(0, 255, 102, 0.02);
  padding: 10px;
  border-radius: 4px;
  width: 100%;
  max-width: 380px;
}

/* ==========================================================================
   OS CORE CONTROLLER LAYOUT RESPONSES
   ========================================================================== */

/* Positioning widgets on viewport grid */
.widget-identity {
  grid-column: span 12;
}

.widget-timeline {
  grid-column: span 7;
}

.widget-securities {
  grid-column: span 5;
}

.widget-metrics {
  grid-column: span 6;
}

.widget-services {
  grid-column: span 12;
}

.widget-contact {
  grid-column: span 6;
}

/* System footer overlay */
.system-footer {
  position: absolute;
  bottom: 0;
  left: 380px;
  right: 0;
  height: 25px;
  background: rgba(2, 2, 5, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
}

/* Screen Glitch Effects (Minimal & Premium) */
.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-darker);
}

.glitch-text::before {
  left: 1px;
  text-shadow: -1px 0 var(--neon-purple);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
  left: -1px;
  text-shadow: -1px 0 var(--neon-cyan);
  clip: rect(85px, 450px, 140px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(15px, 9999px, 66px, 0); }
  10% { clip: rect(85px, 9999px, 5px, 0); }
  20% { clip: rect(34px, 9999px, 105px, 0); }
  30% { clip: rect(8px, 9999px, 54px, 0); }
  40% { clip: rect(73px, 9999px, 20px, 0); }
  50% { clip: rect(110px, 9999px, 90px, 0); }
  60% { clip: rect(2px, 9999px, 140px, 0); }
  70% { clip: rect(88px, 9999px, 66px, 0); }
  80% { clip: rect(12px, 9999px, 42px, 0); }
  90% { clip: rect(95px, 9999px, 120px, 0); }
  100% { clip: rect(5px, 9999px, 75px, 0); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(65px, 9999px, 10px, 0); }
  10% { clip: rect(5px, 9999px, 90px, 0); }
  20% { clip: rect(94px, 9999px, 35px, 0); }
  30% { clip: rect(122px, 9999px, 5px, 0); }
  40% { clip: rect(3px, 9999px, 64px, 0); }
  50% { clip: rect(78px, 9999px, 110px, 0); }
  60% { clip: rect(102px, 9999px, 12px, 0); }
  70% { clip: rect(15px, 9999px, 85px, 0); }
  80% { clip: rect(60px, 9999px, 120px, 0); }
  90% { clip: rect(2px, 9999px, 34px, 0); }
  100% { clip: rect(110px, 9999px, 95px, 0); }
}

/* System Alerts Notification Popup */
.system-notif {
  position: fixed;
  bottom: 40px;
  right: 24px;
  width: 320px;
  background: rgba(5, 5, 15, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: var(--glow-shadow-cyan);
  border-radius: 4px;
  padding: 12px 16px;
  z-index: 1000;
  font-family: var(--font-mono);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transform: translateX(360px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.system-notif.active {
  transform: translateX(0);
}

.system-notif-icon {
  color: var(--neon-cyan);
  font-size: 16px;
  animation: pulseDot 1.2s infinite;
}

.system-notif-body h5 {
  font-family: var(--font-hud);
  font-size: 11px;
  text-transform: uppercase;
  color: #ffffff;
}

.system-notif-body p {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
  line-height: 1.4;
}

/* ==========================================================================
   RESPONSIVE LAYOUTS (SIMPLIFIED MOBILE FALLBACK)
   ========================================================================== */
@media (max-width: 1024px) {
  body {
    overflow-y: auto;
    height: auto;
  }
  
  .os-container {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .sidebar-core {
    border-right: none;
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    height: auto;
  }
  
  .viewport-display {
    height: auto;
    overflow-y: visible;
  }
  
  .system-footer {
    display: none;
  }
  
  .widget-timeline, 
  .widget-securities,
  .widget-metrics,
  .widget-contact {
    grid-column: span 12;
  }
  
  .hud-graphics-container {
    height: 150px;
  }
}

@media (max-width: 640px) {
  .identity-layout {
    grid-template-columns: 1fr;
  }
  
  .identity-avatar-box {
    max-width: 160px;
    margin: 0 auto;
  }
  
  .leadership-metrics-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-module-grid {
    grid-template-columns: 1fr;
  }
  
  .terminal-form-row {
    grid-template-columns: 1fr;
  }
}
