/* ==========================================================================
   BOJAN ĆIRIĆ — NEURAL BIO-OS & COMMAND CENTER (HUD INTERFACE)
   Inspired by Reznikov Engineering / Futuristic AI Neural Command HUD
   ========================================================================== */

:root {
  --bg-deep: #020710;
  --bg-navy: #041022;
  --bg-panel: rgba(6, 20, 42, 0.78);
  --bg-panel-solid: #06152d;
  --bg-glass: rgba(8, 28, 58, 0.62);

  --cyan-bright: #00f0ff;
  --cyan-main: #00b8ff;
  --cyan-dim: rgba(0, 184, 255, 0.35);
  --cyan-glow: rgba(0, 240, 255, 0.55);

  --gold-bright: #ffe066;
  --gold-main: #f59e0b;
  --gold-amber: #fbbf24;
  --gold-dim: rgba(251, 191, 36, 0.35);
  --gold-glow: rgba(251, 191, 36, 0.65);

  --emerald: #10b981;
  --text-primary: #e6f4ff;
  --text-secondary: #8ab4f8;
  --text-muted: #527a9a;

  --font-display: 'Chakra Petch', 'Rajdhani', sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Share Tech Mono', 'Consolas', monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 50% 45%, rgba(0, 140, 255, 0.28) 0%, rgba(0, 80, 180, 0.14) 34%, rgba(2, 7, 16, 0.96) 70%),
    linear-gradient(rgba(0, 184, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 184, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  selection-background-color: var(--cyan-main);
  color: var(--text-primary);
}

::selection {
  background: rgba(0, 240, 255, 0.25);
  color: #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #020813;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 184, 255, 0.35);
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.4);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(251, 191, 36, 0.7);
}

/* Subtle Ambient CRT & Vignette Overlay */
.hud-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(1, 4, 10, 0.75) 100%),
    repeating-linear-gradient(
      0deg,
      rgba(0, 240, 255, 0.012) 0px,
      rgba(0, 240, 255, 0.012) 1px,
      transparent 1px,
      transparent 3px
    );
}

/* ==========================================================================
   TOP BAR & NAVIGATION HUD
   ========================================================================== */
.hud-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: linear-gradient(180deg, rgba(2, 9, 22, 0.92) 0%, rgba(2, 9, 22, 0.55) 85%, transparent 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 184, 255, 0.16);
}

.hud-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hud-corner-line {
  width: 140px;
  height: 12px;
  border-top: 2px solid var(--cyan-bright);
  border-right: 2px solid var(--cyan-bright);
  transform: skewX(-35deg);
  box-shadow: 0 -2px 10px var(--cyan-glow);
  opacity: 0.85;
}

.hud-sys-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--cyan-bright);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-sys-id .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulseDot 2s infinite;
}

/* Center Top Status Pill (Exactly like screenshot) */
.hud-status-pill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: 999px;
  background: rgba(15, 25, 15, 0.78);
  border: 1px solid rgba(251, 191, 36, 0.55);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.2), inset 0 0 8px rgba(251, 191, 36, 0.12);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--gold-bright);
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hud-status-pill:hover {
  border-color: var(--gold-bright);
  box-shadow: 0 0 22px rgba(251, 191, 36, 0.45);
  transform: translateX(-50%) scale(1.03);
}

.hud-status-pill .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseDot 1.4s infinite;
}

.hud-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-nav-pill {
  background: rgba(0, 184, 255, 0.08);
  border: 1px solid rgba(0, 184, 255, 0.32);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hud-nav-pill:hover,
.hud-nav-pill.active {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--cyan-bright);
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

.hud-nav-pill.gold {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.5);
  color: var(--gold-bright);
}

.hud-nav-pill.gold:hover,
.hud-nav-pill.gold.active {
  background: rgba(251, 191, 36, 0.26);
  border-color: var(--gold-bright);
  color: #fff;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.45);
}

/* ==========================================================================
   MAIN MONITOR STAGE (100VH NEURAL COMMAND CENTER)
   ========================================================================== */
.neural-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 760px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 310px 1fr 390px;
  padding: 62px 20px 84px 20px;
  gap: 12px;
  z-index: 5;
}

/* ==========================================================================
   LEFT HUD COLUMN: CLOCK, TELEMETRY & CHECKLIST MODULES
   ========================================================================== */
.hud-left-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 20;
  height: 100%;
  overflow: hidden;
  padding-right: 6px;
}

.hud-telemetry-box {
  background: linear-gradient(135deg, rgba(4, 18, 38, 0.72) 0%, rgba(4, 18, 38, 0.25) 100%);
  border-left: 2px solid var(--cyan-bright);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  backdrop-filter: blur(6px);
  margin-bottom: 10px;
}

.hud-clock-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.hud-clock {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.6);
  line-height: 1;
}

.hud-temp {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cyan-bright);
  text-shadow: 0 0 10px var(--cyan-glow);
}

.hud-date-loc {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

.hud-greeting {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 184, 255, 0.18);
}

.hud-greeting-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  text-transform: uppercase;
}

.hud-brief-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--cyan-bright);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 6px;
}

.hud-brief-text {
  font-size: 0.72rem;
  line-height: 1.42;
  color: rgba(230, 244, 255, 0.85);
  margin-top: 3px;
}

/* Left Checklist Modules (Matching the 12 rows on the left of the reference image) */
.hud-checklist {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  justify-content: center;
  overflow-y: auto;
  padding-right: 4px;
}

.hud-check-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  background: linear-gradient(90deg, rgba(0, 184, 255, 0.09) 0%, rgba(0, 184, 255, 0.02) 90%, transparent 100%);
  border: 1px solid rgba(0, 184, 255, 0.18);
  border-left: 2px solid var(--cyan-main);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.hud-check-item:hover,
.hud-check-item.active {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.2) 0%, rgba(0, 240, 255, 0.08) 100%);
  border-color: var(--gold-amber);
  border-left: 3px solid var(--gold-bright);
  transform: translateX(4px);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.22);
}

.hud-check-box {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  border: 1px solid var(--cyan-bright);
  background: rgba(0, 240, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  color: var(--cyan-bright);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(0, 240, 255, 0.3);
}

.hud-check-item.active .hud-check-box {
  border-color: var(--gold-bright);
  background: rgba(251, 191, 36, 0.25);
  color: var(--gold-bright);
  box-shadow: 0 0 8px var(--gold-glow);
}

.hud-check-info {
  flex: 1;
  min-width: 0;
}

.hud-check-name {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-check-sub {
  font-size: 0.62rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-check-bar {
  height: 2px;
  background: rgba(0, 184, 255, 0.18);
  margin-top: 3px;
  border-radius: 2px;
  overflow: hidden;
}

.hud-check-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan-bright), var(--gold-amber));
  border-radius: 2px;
}

.hud-check-node-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 6px var(--cyan-bright);
  flex-shrink: 0;
}

.hud-check-item.active .hud-check-node-dot {
  background: var(--gold-bright);
  box-shadow: 0 0 8px var(--gold-bright);
}

/* ==========================================================================
   CENTER COLUMN: NEURAL CONSTELLATION & GOLDEN PARTICLE CORE
   ========================================================================== */
.hud-center-col {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* SVG Connections Layer (Bezier Curves + Orthogonal PCB Traces) */
.neural-svg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.trace-bg-wave {
  fill: none;
  stroke: rgba(0, 184, 255, 0.08);
  stroke-width: 1;
}

.neural-link {
  fill: none;
  stroke: rgba(0, 210, 255, 0.34);
  stroke-width: 1.4;
  transition: stroke 0.3s ease, stroke-width 0.3s ease, opacity 0.3s ease;
}

.neural-link.gold-link {
  stroke: rgba(251, 191, 36, 0.38);
}

.neural-link.active {
  stroke: var(--gold-bright);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.8));
}

.neural-link-pulse {
  fill: none;
  stroke: var(--cyan-bright);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 10 140;
  animation: flowPulse 4.5s linear infinite;
  opacity: 0.75;
}

.neural-link-pulse.gold-pulse {
  stroke: var(--gold-bright);
  animation-duration: 3.6s;
}

@keyframes flowPulse {
  from { stroke-dashoffset: 150; }
  to { stroke-dashoffset: 0; }
}

/* Central Golden-Ringed Neural Particle Orb */
.central-core-wrapper {
  position: absolute;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
  cursor: pointer;
}

/* Ambient Blue Glow Behind Core */
.core-aura {
  position: absolute;
  inset: -75px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 195, 255, 0.38) 0%, rgba(0, 110, 255, 0.16) 45%, transparent 72%);
  pointer-events: none;
  animation: coreBreathe 4s ease-in-out infinite;
}

/* Golden Glowing Outer Ring (Signature feature from screenshot) */
.core-gold-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3.5px solid rgba(251, 191, 36, 0.92);
  box-shadow:
    0 0 25px rgba(251, 191, 36, 0.75),
    0 0 55px rgba(245, 158, 11, 0.38),
    inset 0 0 25px rgba(251, 191, 36, 0.55);
  pointer-events: none;
  transition: all 0.35s ease;
}

.central-core-wrapper:hover .core-gold-ring,
.central-core-wrapper.active .core-gold-ring {
  transform: scale(1.04);
  box-shadow:
    0 0 35px rgba(255, 224, 102, 0.95),
    0 0 75px rgba(245, 158, 11, 0.6),
    inset 0 0 32px rgba(255, 224, 102, 0.75);
}

.core-inner-ring {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1.5px dashed rgba(251, 191, 36, 0.55);
  animation: spinSlow 28s linear infinite;
  pointer-events: none;
}

.core-cyan-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-top-color: var(--cyan-bright);
  border-bottom-color: var(--cyan-bright);
  animation: spinReverse 18s linear infinite;
  pointer-events: none;
}

#coreParticleCanvas {
  width: 224px;
  height: 224px;
  border-radius: 50%;
  z-index: 2;
}

/* Center Core Overlay Label & Portrait Preview on Hover */
.core-center-overlay {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 4;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.core-avatar-ring {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(0, 240, 255, 0.75);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.6);
  margin-bottom: 6px;
  background: radial-gradient(circle, #06234b, #020b18);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.central-core-wrapper:hover .core-avatar-ring {
  transform: scale(1.1);
  border-color: var(--gold-bright);
  box-shadow: 0 0 22px var(--gold-glow);
}

.core-avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.core-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.95), 0 2px 4px #000;
  text-transform: uppercase;
}

.core-subtitle {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  text-shadow: 0 1px 4px #000;
  background: rgba(2, 10, 24, 0.72);
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  margin-top: 2px;
}

/* ==========================================================================
   ORBITAL NODES & SUB-NODES (MIND-MAP CONSTELLATION)
   ========================================================================== */
.neural-nodes-layer {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
}

.neural-node {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), filter 0.25s ease;
}

.neural-node:hover,
.neural-node.active {
  transform: translate(-50%, -50%) scale(1.14);
  z-index: 25;
}

/* Node Ring + Inner Dot (Matches the exact circular ring nodes in screenshot) */
.node-circle {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--cyan-bright);
  background: rgba(2, 14, 32, 0.85);
  box-shadow: 0 0 12px var(--cyan-glow), inset 0 0 8px rgba(0, 240, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.node-circle::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 8px var(--cyan-bright);
  transition: all 0.25s ease;
}

/* Gold Node Variant */
.neural-node.gold .node-circle {
  border-color: var(--gold-amber);
  box-shadow: 0 0 14px var(--gold-glow), inset 0 0 8px rgba(251, 191, 36, 0.45);
}

.neural-node.gold .node-circle::after {
  background: var(--gold-bright);
  box-shadow: 0 0 8px var(--gold-bright);
}

/* Outer Satellite / Sub-Node Variant */
.neural-node.satellite .node-circle {
  width: 14px;
  height: 14px;
  border-width: 1.5px;
}

.neural-node.satellite .node-circle::after {
  width: 5px;
  height: 5px;
}

/* Active / Hover State on Node Circle */
.neural-node:hover .node-circle,
.neural-node.active .node-circle {
  border-color: #fff;
  box-shadow: 0 0 22px var(--gold-bright), 0 0 40px var(--cyan-bright);
}

.neural-node.active .node-circle::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed var(--gold-bright);
  animation: spinSlow 6s linear infinite;
}

/* Node Text Labels */
.node-label-wrap {
  display: flex;
  flex-direction: column;
  background: rgba(3, 12, 28, 0.76);
  backdrop-filter: blur(4px);
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(0, 184, 255, 0.24);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.neural-node.gold .node-label-wrap {
  border-color: rgba(251, 191, 36, 0.32);
}

.neural-node:hover .node-label-wrap,
.neural-node.active .node-label-wrap {
  background: rgba(6, 24, 52, 0.95);
  border-color: var(--gold-bright);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65), 0 0 12px rgba(251, 191, 36, 0.35);
}

.node-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  line-height: 1.15;
}

.neural-node.satellite .node-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.node-meta {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--cyan-bright);
  letter-spacing: 0.06em;
}

.neural-node.gold .node-meta {
  color: var(--gold-bright);
}

/* Label alignment helpers */
.neural-node.label-left {
  flex-direction: row-reverse;
  text-align: right;
}
.neural-node.label-top {
  flex-direction: column-reverse;
  text-align: center;
}
.neural-node.label-bottom {
  flex-direction: column;
  text-align: center;
}

/* ==========================================================================
   RIGHT HUD COLUMN: HOLOGRAPHIC INSPECTOR PANEL
   ========================================================================== */
.hud-right-col {
  display: flex;
  flex-direction: column;
  z-index: 20;
  height: 100%;
  overflow: hidden;
}

.hud-inspector {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(6, 20, 44, 0.88) 0%, rgba(3, 11, 26, 0.92) 100%);
  border: 1px solid rgba(0, 210, 255, 0.32);
  border-top: 2px solid var(--cyan-bright);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65), inset 0 0 25px rgba(0, 184, 255, 0.08);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.inspector-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(0, 184, 255, 0.2);
  background: linear-gradient(90deg, rgba(0, 184, 255, 0.14) 0%, rgba(251, 191, 36, 0.06) 100%);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.inspector-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.inspector-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.inspector-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

.inspector-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inspector-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.inspector-stat-card {
  background: rgba(0, 184, 255, 0.07);
  border: 1px solid rgba(0, 184, 255, 0.22);
  border-radius: 6px;
  padding: 8px 10px;
}

.inspector-stat-val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.inspector-stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.inspector-section-title {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  border-bottom: 1px solid rgba(0, 184, 255, 0.2);
  padding-bottom: 4px;
  margin-top: 4px;
}

.inspector-card {
  background: rgba(4, 15, 34, 0.78);
  border: 1px solid rgba(0, 184, 255, 0.18);
  border-left: 3px solid var(--cyan-bright);
  border-radius: 6px;
  padding: 10px 12px;
  transition: border-color 0.2s ease;
}

.inspector-card.gold-border {
  border-left-color: var(--gold-amber);
}

.inspector-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.inspector-card-title {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
}

.inspector-card-date {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--gold-bright);
  flex-shrink: 0;
}

.inspector-card-org {
  font-size: 0.72rem;
  color: var(--cyan-bright);
  margin-bottom: 5px;
  font-weight: 500;
}

.inspector-card-desc {
  font-size: 0.74rem;
  line-height: 1.48;
  color: rgba(230, 244, 255, 0.86);
}

.inspector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.hud-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 184, 255, 0.12);
  border: 1px solid rgba(0, 184, 255, 0.3);
  color: var(--cyan-bright);
}

.hud-tag.gold {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.38);
  color: var(--gold-bright);
}

.inspector-thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.inspector-thumb {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(0, 184, 255, 0.3);
  aspect-ratio: 16/10;
  cursor: pointer;
  background: #020814;
}

.inspector-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.inspector-thumb:hover img {
  transform: scale(1.08);
}

.inspector-thumb-cap {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(2, 8, 20, 0.95));
  padding: 14px 6px 4px;
  font-size: 0.6rem;
  color: #fff;
  line-height: 1.2;
}

.inspector-footer {
  padding: 10px 16px;
  border-top: 1px solid rgba(0, 184, 255, 0.2);
  background: rgba(2, 10, 24, 0.9);
  display: flex;
  gap: 8px;
}

.inspector-btn {
  flex: 1;
  background: rgba(0, 184, 255, 0.15);
  border: 1px solid var(--cyan-bright);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
}

.inspector-btn:hover {
  background: var(--cyan-bright);
  color: #020814;
  box-shadow: 0 0 15px var(--cyan-glow);
}

.inspector-btn.gold {
  background: rgba(251, 191, 36, 0.18);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.inspector-btn.gold:hover {
  background: var(--gold-bright);
  color: #020814;
  box-shadow: 0 0 15px var(--gold-glow);
}

/* ==========================================================================
   BOTTOM CENTER AUDIO WAVEFORM & COMMAND DOCK (Exact match to screenshot)
   ========================================================================== */
.hud-bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 82px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(2, 8, 20, 0.95) 0%, rgba(2, 8, 20, 0.65) 75%, transparent 100%);
  pointer-events: none;
}

.waveform-container {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
  margin-bottom: 3px;
  pointer-events: auto;
  cursor: pointer;
}

.wave-bar {
  width: 3px;
  background: var(--gold-bright);
  border-radius: 3px;
  box-shadow: 0 0 8px var(--gold-glow);
  animation: waveBounce 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(odd) {
  animation-duration: 0.9s;
}
.wave-bar:nth-child(3n) {
  animation-duration: 1.4s;
  background: var(--cyan-bright);
  box-shadow: 0 0 8px var(--cyan-glow);
}

@keyframes waveBounce {
  0%, 100% { height: 5px; opacity: 0.55; }
  50% { height: 22px; opacity: 1; }
}

.waveform-label {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 6px;
  text-shadow: 0 0 8px var(--gold-glow);
}

.dock-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.dock-btn {
  background: rgba(8, 24, 52, 0.88);
  border: 1px solid rgba(0, 184, 255, 0.4);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.22s ease;
  text-decoration: none;
}

.dock-btn:hover,
.dock-btn.active {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.35);
  transform: translateY(-1px);
}

.dock-btn.primary-gold {
  background: rgba(251, 191, 36, 0.16);
  border-color: var(--gold-amber);
  color: var(--gold-bright);
}

/* ==========================================================================
   COMPREHENSIVE MASTER DOSSIER (SVEOBUHVATNI PREGLED SVIH INFORMACIJA)
   ========================================================================== */
.dossier-wrapper {
  position: relative;
  z-index: 10;
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 28px 110px;
}

.dossier-header {
  text-align: center;
  margin-bottom: 36px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(6, 22, 48, 0.85) 0%, rgba(3, 12, 28, 0.92) 100%);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-top: 3px solid var(--gold-amber);
  border-radius: 14px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
}

.dossier-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.45);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.dossier-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dossier-title span {
  color: var(--cyan-bright);
  text-shadow: 0 0 18px var(--cyan-glow);
}

.dossier-search-bar {
  max-width: 680px;
  margin: 18px auto 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.dossier-search-input {
  flex: 1;
  min-width: 260px;
  background: rgba(2, 10, 24, 0.9);
  border: 1px solid rgba(0, 184, 255, 0.45);
  border-radius: 8px;
  padding: 10px 16px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.dossier-search-input:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.35);
}

/* Filter Tabs in Master Dossier */
.dossier-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.dossier-tab {
  background: rgba(6, 20, 44, 0.78);
  border: 1px solid rgba(0, 184, 255, 0.3);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dossier-tab:hover,
.dossier-tab.active {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--cyan-bright);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* Profile Hero Card inside Dossier */
.bio-hero-card {
  display: grid;
  grid-template-columns: 220px 1fr 320px;
  gap: 24px;
  padding: 26px;
  background: linear-gradient(135deg, rgba(6, 22, 48, 0.88) 0%, rgba(4, 14, 32, 0.95) 100%);
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: 14px;
  margin-bottom: 28px;
  align-items: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

.bio-portrait-frame {
  position: relative;
  width: 200px;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--gold-amber);
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.35);
  background: radial-gradient(circle at 50% 30%, #0a2e5c, #020814);
  margin: 0 auto;
}

.bio-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.bio-hero-main h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
}

.bio-hero-degree {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold-bright);
  margin: 4px 0 12px;
  letter-spacing: 0.05em;
}

.bio-hero-summary {
  font-size: 0.94rem;
  line-height: 1.65;
  color: rgba(230, 244, 255, 0.9);
  margin-bottom: 14px;
}

.bio-philosophy-quote {
  background: rgba(251, 191, 36, 0.08);
  border-left: 3px solid var(--gold-bright);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 0.86rem;
  color: #ffe89e;
  line-height: 1.5;
}

.bio-contact-panel {
  background: rgba(2, 10, 24, 0.78);
  border: 1px solid rgba(0, 184, 255, 0.25);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bio-contact-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  border-bottom: 1px dashed rgba(0, 184, 255, 0.15);
  padding-bottom: 6px;
}

.bio-contact-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bio-contact-lbl {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.bio-contact-val {
  color: #fff;
  font-weight: 600;
  text-align: right;
}

.bio-contact-val a {
  color: var(--cyan-bright);
  text-decoration: none;
}

/* Bento Grid Sections */
.dossier-section {
  margin-bottom: 36px;
}

.dossier-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 210, 255, 0.28);
}

.dossier-sec-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dossier-sec-title .sec-icon {
  color: var(--gold-bright);
  font-size: 1.2rem;
}

.dossier-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.dossier-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.hud-bento-card {
  background: linear-gradient(160deg, rgba(6, 22, 48, 0.8) 0%, rgba(3, 11, 26, 0.9) 100%);
  border: 1px solid rgba(0, 184, 255, 0.24);
  border-top: 2px solid var(--cyan-main);
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.hud-bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-amber);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 210, 255, 0.16);
}

.hud-bento-card.gold-top {
  border-top-color: var(--gold-amber);
}

.bento-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.bento-period {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold-bright);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 3px 9px;
  border-radius: 4px;
}

.bento-sector {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bento-role {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.bento-org {
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 10px;
}

.bento-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bento-list li {
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(230, 244, 255, 0.88);
  padding-left: 16px;
  position: relative;
}

.bento-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--cyan-bright);
}

/* Tables inside Dossier (Seminars, Publications, Competencies) */
.hud-table-wrap {
  overflow-x: auto;
  background: rgba(4, 14, 32, 0.85);
  border: 1px solid rgba(0, 184, 255, 0.25);
  border-radius: 10px;
}

.hud-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.hud-table th {
  background: rgba(0, 184, 255, 0.14);
  color: var(--cyan-bright);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0, 184, 255, 0.3);
}

.hud-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 184, 255, 0.12);
  color: rgba(230, 244, 255, 0.9);
}

.hud-table tr:hover td {
  background: rgba(0, 240, 255, 0.06);
}

/* Gallery Cards (Portfolio Software + 13 Prilozi Photos) */
.gallery-card {
  background: rgba(5, 18, 40, 0.85);
  border: 1px solid rgba(0, 184, 255, 0.26);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-bright);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), 0 0 16px rgba(251, 191, 36, 0.3);
}

.gallery-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #020814;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-img-wrap img {
  transform: scale(1.07);
}

.gallery-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(2, 10, 24, 0.88);
  border: 1px solid var(--cyan-bright);
  color: var(--cyan-bright);
  text-transform: uppercase;
}

.gallery-badge.gold {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.gallery-info {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.gallery-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Gallery Sub-Filter Pills */
.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  padding: 12px 16px;
  background: rgba(4, 14, 32, 0.85);
  border: 1px solid rgba(0, 184, 255, 0.25);
  border-radius: 10px;
  align-items: center;
}

.gallery-filter-btn {
  background: rgba(0, 184, 255, 0.08);
  border: 1px solid rgba(0, 184, 255, 0.3);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: rgba(251, 191, 36, 0.22);
  border-color: var(--gold-bright);
  color: #fff;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.35);
}

/* Visual Holographic Certificate Card */
.cert-visual-preview {
  position: relative;
  aspect-ratio: 16/10;
  background:
    radial-gradient(circle at 85% 20%, rgba(251, 191, 36, 0.22), transparent 55%),
    linear-gradient(135deg, #061b3a 0%, #030d20 65%, #081e3f 100%);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid rgba(251, 191, 36, 0.3);
  overflow: hidden;
}

.cert-visual-preview::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(251, 191, 36, 0.35);
  border-radius: 6px;
  pointer-events: none;
}

.cert-seal {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.35), rgba(245, 158, 11, 0.08));
  border: 1.5px solid var(--gold-bright);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.cert-issuer-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: rgba(2, 10, 24, 0.8);
  border: 1px solid rgba(251, 191, 36, 0.45);
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
  z-index: 2;
}

.cert-doc-heading {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  z-index: 2;
  padding-right: 48px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.cert-doc-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--cyan-bright);
  z-index: 2;
}

/* Lightbox Modal */
.hud-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(2, 6, 15, 0.92);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hud-lightbox.open {
  display: flex;
}

.hud-lightbox-box {
  max-width: 1020px;
  width: 100%;
  background: #041229;
  border: 1px solid var(--gold-amber);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.3);
  position: relative;
}

.hud-lightbox-stage {
  position: relative;
  background: #01050c;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.hud-lightbox-img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  background: #01050c;
  display: block;
}

.hud-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(4, 18, 41, 0.85);
  border: 1px solid var(--cyan-bright);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.hud-lightbox-nav:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #020814;
  box-shadow: 0 0 16px var(--gold-glow);
}

.hud-lightbox-nav.prev { left: 14px; }
.hud-lightbox-nav.next { right: 14px; }

.hud-lightbox-cap {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(0, 184, 255, 0.25);
  flex-wrap: wrap;
}

.hud-lightbox-close {
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid var(--gold-bright);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-lightbox-close:hover {
  background: var(--gold-bright);
  color: #020814;
}

/* ==========================================================================
   YOUTUBE VIDEO HUB & MEDIA PRESS CLIPPING WALL
   ========================================================================== */
.yt-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

.yt-video-card {
  background: linear-gradient(155deg, rgba(6, 21, 46, 0.92) 0%, rgba(3, 10, 24, 0.96) 100%);
  border: 1px solid rgba(0, 184, 255, 0.28);
  border-top: 2px solid var(--gold-bright);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.yt-video-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-bright);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(251, 191, 36, 0.24);
}

.yt-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020814;
  overflow: hidden;
  cursor: pointer;
}

.yt-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
  filter: brightness(0.88) contrast(1.06);
}

.yt-video-card:hover .yt-thumb-wrap img {
  transform: scale(1.05);
  filter: brightness(1.02) contrast(1.08);
}

.yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.95) 0%, rgba(217, 119, 6, 0.92) 100%);
  border: 2px solid #fff;
  color: #020814;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.8), 0 4px 14px rgba(0, 0, 0, 0.7);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.yt-video-card:hover .yt-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 0 32px rgba(251, 191, 36, 1), 0 0 12px #00f0ff;
}

.yt-channel-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(2, 8, 20, 0.88);
  border: 1px solid rgba(251, 191, 36, 0.65);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.yt-date-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(2, 8, 20, 0.88);
  border: 1px solid rgba(0, 240, 255, 0.45);
  color: var(--cyan-bright);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  padding: 2px 8px;
  border-radius: 4px;
}

.yt-video-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.yt-video-title {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.32;
}

.yt-video-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  flex: 1;
}

.yt-video-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.yt-action-btn {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 184, 255, 0.35);
  background: rgba(0, 184, 255, 0.1);
  color: var(--cyan-bright);
}

.yt-action-btn.primary {
  background: rgba(251, 191, 36, 0.16);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.yt-action-btn:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #020814;
}

/* Press Clipping Cards Grid */
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.press-card {
  background: linear-gradient(160deg, rgba(6, 20, 44, 0.86) 0%, rgba(3, 10, 23, 0.94) 100%);
  border: 1px solid rgba(0, 184, 255, 0.24);
  border-left: 3px solid var(--cyan-bright);
  border-radius: 8px;
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.press-card.gold-press {
  border-left-color: var(--gold-bright);
  border-color: rgba(251, 191, 36, 0.3);
}

.press-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-bright);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), 0 0 16px rgba(0, 184, 255, 0.16);
}

.press-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.press-outlet-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(0, 184, 255, 0.14);
  border: 1px solid rgba(0, 184, 255, 0.4);
  color: var(--cyan-bright);
}

.press-card.gold-press .press-outlet-badge {
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(251, 191, 36, 0.5);
  color: var(--gold-bright);
}

.press-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.press-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.32;
}

.press-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.press-title a:hover {
  color: var(--gold-bright);
}

.press-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.46;
  flex: 1;
}

.press-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 184, 255, 0.14);
  margin-top: 4px;
}

.press-topic-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-secondary);
}

.press-read-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold-bright);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.38);
  transition: all 0.2s ease;
}

.press-read-link:hover {
  background: var(--gold-bright);
  color: #020814;
}

/* HUD YouTube Video Player Modal */
.hud-video-frame-wrap {
  width: min(960px, 92vw);
  aspect-ratio: 16 / 9;
  background: #000;
}

.hud-video-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Animations */
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes coreBreathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* Responsive Adjustments */
@media (max-width: 1260px) {
  .neural-stage {
    grid-template-columns: 260px 1fr 330px;
  }
  .bio-hero-card {
    grid-template-columns: 180px 1fr;
  }
  .bio-contact-panel {
    grid-column: 1 / -1;
  }
  .dossier-grid-4,
  .yt-video-grid,
  .press-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .neural-stage {
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
    padding-top: 66px;
  }
  .hud-center-col {
    height: 620px;
    order: 1;
  }
  .hud-right-col {
    order: 2;
    max-height: 520px;
  }
  .hud-left-col {
    order: 3;
  }
  .hud-status-pill {
    display: none;
  }
  .dossier-grid-2,
  .dossier-grid-3,
  .yt-video-grid,
  .press-grid {
    grid-template-columns: 1fr;
  }
  .bio-hero-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Print Friendly Mode */
@media print {
  .hud-topbar, .neural-stage, .hud-bottom-dock, .hud-vignette, .dossier-search-bar, .dossier-tabs {
    display: none !important;
  }
  body, html {
    background: #fff !important;
    color: #000 !important;
  }
  .dossier-wrapper {
    padding: 0 !important;
  }
  .hud-bento-card, .bio-hero-card, .dossier-header, .hud-table-wrap {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  .bento-role, .dossier-sec-title, .bio-hero-main h2, .hud-table td, .hud-table th, .bento-list li {
    color: #000 !important;
  }
}

