:root {
  --cyan-bright: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.5);
  --text-pure: #ffffff;
  --font-hud: 'Space Grotesk', 'Orbitron', sans-serif;
  --font-logo: 'Orbitron', monospace;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #01040a;
  color: var(--text-pure);
  font-family: var(--font-body);
  user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.fullscreen-body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#jarvisCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hologram-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 35%, rgba(1, 4, 10, 0.85) 85%, #01040a 100%);
  pointer-events: none;
  z-index: 2;
}

.sound-wave-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  transition: all 0.5s ease;
}
.sound-wave-glow.standby {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 65%);
  width: 460px;
  height: 460px;
}
.sound-wave-glow.speaking {
  background: radial-gradient(circle, rgba(0, 240, 255, 0.3) 0%, rgba(2, 132, 199, 0.2) 50%, transparent 75%);
  width: 700px;
  height: 700px;
}
.sound-wave-glow.listening {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, transparent 70%);
  width: 640px;
  height: 640px;
}
.sound-wave-glow.thinking {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
}

.hud-topbar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 34px;
}

.hud-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-core {
  width: 11px;
  height: 11px;
  background: var(--cyan-bright);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--cyan-bright);
  animation: core-heartbeat 2s infinite ease-in-out;
}
.logo-text {
  display: none !important;
}

#fullscreenBtn, #muteToggleBtn {
  display: none !important;
}

.hud-right-minimal {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-btn {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.28);
  color: var(--cyan-bright);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.25s ease;
}
.hud-btn:hover {
  background: rgba(0, 240, 255, 0.24);
  box-shadow: 0 0 14px var(--cyan-bright);
  transform: translateY(-1px);
}

.hud-center-interactive {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
}

.hud-subtitles-dock {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px 36px 32px;
}

.subtitle-card {
  max-width: 860px;
  width: 92%;
  background: rgba(4, 12, 28, 0.76);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 16px;
  padding: 20px 28px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 24px rgba(0, 240, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.subtitle-card.user {
  border-color: rgba(56, 189, 248, 0.75);
  background: rgba(14, 165, 233, 0.18);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 24px rgba(56, 189, 248, 0.18);
}
.subtitle-speaker {
  display: none !important;
}
.subtitle-text {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.15px;
  color: #f8fafc;
}

@keyframes core-heartbeat {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}


/* =========================================================================
   KIBER-HUD SMART XARITA VA NAVIGATSIYA MODALI
   ========================================================================= */
.hud-map-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: min(780px, 92vw);
  height: min(480px, 75vh);
  background: rgba(8, 20, 42, 0.94);
  border: 1px solid rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.25), 0 25px 60px rgba(0, 0, 0, 0.85);
  border-radius: 18px;
  backdrop-filter: blur(25px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-map-modal.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -46%) scale(0.95);
}

.hud-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.hud-map-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-hud);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--cyan-bright);
}

.hud-map-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.hud-map-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-badge {
  font-family: var(--font-hud);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 1px;
}

.hud-badge.distance {
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.35);
}

.hud-badge.duration {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.hud-map-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}
.hud-map-close:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

.hud-map-canvas {
  flex: 1;
  width: 100%;
  background: #0b132b;
}

.hud-map-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.85);
  border-top: 1px solid rgba(0, 240, 255, 0.2);
}

.hud-map-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  font-family: var(--font-hud);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.25s;
}

.hud-map-link.yandex {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}
.hud-map-link.yandex:hover {
  background: rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
  color: #ffffff;
}

.hud-map-link.google {
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #93c5fd;
}
.hud-map-link.google:hover {
  background: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
  color: #ffffff;
}

/* =========================================================================
   KIBER-HUD BIOMETRIK YUZ TANISH VIDJETI (CYBER FACE SCANNER)
   ========================================================================= */

.hud-face-widget {
  position: absolute;
  top: 76px;
  right: 32px;
  width: 250px;
  background: rgba(4, 12, 28, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 240, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-face-widget.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px) scale(0.95);
}

.hud-face-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 240, 255, 0.08);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.hud-face-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-logo);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--cyan-bright);
}

.hud-face-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

#hudFaceStatusText,
.hud-face-scanline {
  display: none !important;
}

.hud-face-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.2s;
}
.hud-face-close:hover {
  color: #ffffff;
}

.hud-face-viewport {
  position: relative;
  width: 100%;
  height: 170px;
  background: #01040a;
  overflow: hidden;
}

#hudFaceVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

#hudFaceOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hud-face-footer {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border-top: 1px solid rgba(0, 240, 255, 0.15);
  background: rgba(0, 0, 0, 0.4);
}

.hud-face-person {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: #38bdf8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.hud-face-person.recognized {
  color: #4ade80;
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

.hud-face-person.unknown {
  color: #fbbf24;
}

.hud-face-learn-btn {
  background: rgba(0, 240, 255, 0.14);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--cyan-bright);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: var(--font-hud);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.hud-face-learn-btn:hover {
  background: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 10px var(--cyan-bright);
}
