/*
 * ANATOMIX 3D BY ADITYA TRIVEDI
 * Exhibition Presentation Theme - Elite Medical Holographic Workstation
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  --bg-primary: #06090e;
  --bg-secondary: #0b111c;
  --bg-glass: rgba(11, 17, 28, 0.82);
  --bg-card: rgba(17, 26, 43, 0.9);
  --bg-card-hover: rgba(26, 38, 62, 0.95);
  
  --accent-cyan: #00f0ff;
  --accent-cyan-dim: rgba(0, 240, 255, 0.12);
  --accent-cyan-glow: rgba(0, 240, 255, 0.35);
  
  --accent-gold: #ffbe0b;
  --accent-gold-dim: rgba(255, 190, 11, 0.14);
  --accent-gold-glow: rgba(255, 190, 11, 0.4);
  
  --accent-emerald: #00e676;
  --accent-emerald-glow: rgba(0, 230, 118, 0.4);
  --accent-violet: #8338ec;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-cyan: rgba(0, 240, 255, 0.35);
  --border-gold: rgba(255, 190, 11, 0.5);
  
  --header-height: 72px;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  user-select: none;
}

/* --------------------------------------------------------------------------
 * PRESENTATION HEADER (NO WRAPPING & NO CLIPPING)
 * -------------------------------------------------------------------------- */
.app-header {
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-cyan);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(0, 240, 255, 0.2);
  gap: 1rem;
}

/* BRAND LOGO & TITLE ZONE (NEVER WRAPS OR CLIPS) */
.brand-section {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo-container {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(131, 56, 236, 0.18));
  border: 1px solid var(--border-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--accent-cyan-glow), inset 0 0 12px rgba(0, 240, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.brand-logo-container:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.55), inset 0 0 16px rgba(0, 240, 255, 0.3);
}

.brand-logo-svg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 4px var(--accent-cyan));
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.15;
}

.brand-title-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-badge-version {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.brand-author-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.15;
}

.pulse-dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: livePulseAnim 2.2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes livePulseAnim {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.8); }
  65% { transform: scale(1.2); box-shadow: 0 0 0 7px rgba(0, 230, 118, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.brand-author-text {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbd5e1;
  white-space: nowrap;
}

.brand-author-name {
  color: var(--accent-cyan);
  font-weight: 800;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* --------------------------------------------------------------------------
 * CENTER ANATOMICAL MODE DOCK (SEGMENTED SWITCHER)
 * -------------------------------------------------------------------------- */
.center-mode-dock {
  display: flex;
  align-items: center;
  background: rgba(8, 13, 22, 0.85);
  padding: 4px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.4);
  gap: 4px;
  flex-shrink: 0;
}

.mode-dock-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.mode-dock-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.mode-dock-btn.active {
  background: linear-gradient(135deg, var(--accent-gold), #ff9e00);
  color: #06090e;
  font-weight: 800;
  box-shadow: 0 3px 14px var(--accent-gold-glow);
}

/* --------------------------------------------------------------------------
 * RIGHT ACTION CLUSTER BUTTONS
 * -------------------------------------------------------------------------- */
.right-action-cluster {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.exhibition-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.exhibition-btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

/* Special Gold Pill for NEET Suite */
.exhibition-btn.neet-suite-gold {
  background: linear-gradient(135deg, rgba(255, 190, 11, 0.18), rgba(255, 140, 0, 0.15));
  border: 1px solid var(--border-gold);
  color: #ffde59;
  box-shadow: 0 0 16px rgba(255, 190, 11, 0.22);
}

.exhibition-btn.neet-suite-gold:hover {
  background: linear-gradient(135deg, rgba(255, 190, 11, 0.3), rgba(255, 140, 0, 0.25));
  box-shadow: 0 0 22px rgba(255, 190, 11, 0.45);
  transform: translateY(-2px);
}

/* Cyan Glowing State when Gestures Active */
.exhibition-btn.active-cyan {
  background: var(--accent-cyan-dim);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 16px var(--accent-cyan-glow);
}

/* --------------------------------------------------------------------------
 * 3D VIEWPORT CONTAINER
 * -------------------------------------------------------------------------- */
.main-presentation-workspace {
  position: relative;
  width: 100vw;
  height: calc(100vh - var(--header-height));
  background-color: var(--bg-primary);
  overflow: hidden;
}

.atlas-viewport-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: #06090e;
  display: block;
}

/* FLOATING EXHIBITION CONTROLS DOCK (ALWAYS ACCESSIBLE & FULLY FUNCTIONAL IN FULLSCREEN) */
.floating-shortcut-legend {
  position: fixed !important;
  bottom: 1.4rem !important;
  left: 1.4rem !important;
  background: rgba(8, 13, 22, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 240, 255, 0.35);
  padding: 0.35rem 0.65rem;
  border-radius: 40px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: auto !important;
  z-index: 2147483645 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7), 0 0 18px rgba(0, 240, 255, 0.2);
}

.floating-shortcut-legend .legend-title {
  color: var(--accent-gold);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  padding: 0 4px;
}

.dock-pill-btn {
  background: rgba(21, 34, 56, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 5px 12px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.dock-pill-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 240, 255, 0.25);
}

.dock-pill-btn.active-cyan {
  background: rgba(0, 240, 255, 0.22);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.4);
}

.dock-pill-btn span.key {
  background: #0d1524;
  color: var(--accent-cyan);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  border: 1px solid rgba(0, 240, 255, 0.35);
}

/* FLOATING MEDIAPIPE GESTURE HUD (BOTTOM RIGHT) */
.gesture-hud-container {
  position: fixed !important;
  bottom: 1.4rem !important;
  right: 1.4rem !important;
  z-index: 2147483646 !important;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  pointer-events: auto !important;
}

.gesture-status-pill {
  background: rgba(11, 17, 28, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid var(--accent-cyan);
  padding: 0.45rem 0.95rem;
  border-radius: 30px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.gesture-preview-card {
  width: 200px;
  height: 150px;
  background: #000;
  border-radius: 12px;
  border: 1px solid var(--border-cyan);
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 36px rgba(0,0,0,0.9), 0 0 20px rgba(0, 240, 255, 0.15);
}

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

#gestureCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scaleX(-1);
}

/* --------------------------------------------------------------------------
 * NEET EXAM & LEARNING MODAL
 * -------------------------------------------------------------------------- */
.neet-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 9, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.neet-modal-overlay.active {
  display: flex;
}

.neet-modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-gold);
  border-radius: 16px;
  width: 700px;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.95), 0 0 30px rgba(255, 190, 11, 0.2);
}

.neet-modal-header {
  padding: 1.25rem 1.5rem;
  background: rgba(8, 13, 22, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close-btn {
  background: #162238;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: #253759;
  color: #fff;
  border-color: #fff;
}

.neet-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.neet-tabs-nav {
  display: flex;
  gap: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.neet-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.neet-tab-btn.active {
  background: rgba(255, 190, 11, 0.16);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 190, 11, 0.35);
  box-shadow: 0 0 12px rgba(255, 190, 11, 0.2);
}

.neet-question-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.35rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.neet-question-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  color: #ffffff;
}

.neet-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.neet-option-btn {
  background: rgba(11, 17, 28, 0.9);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.neet-option-btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.3);
  transform: translateX(3px);
}

.neet-option-btn.correct {
  background: rgba(0, 230, 118, 0.22);
  border-color: var(--accent-emerald);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(0, 230, 118, 0.25);
}

.neet-option-btn.wrong {
  background: rgba(239, 35, 60, 0.22);
  border-color: var(--accent-crimson);
  color: #ffffff;
}

.neet-explanation-card {
  background: #070d18;
  border-left: 3px solid var(--accent-cyan);
  padding: 0.95rem 1.15rem;
  border-radius: 0 10px 10px 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-secondary);
  display: none;
}

.flashcard-container {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: 14px;
  padding: 1.8rem;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.flashcard-container:hover {
  transform: translateY(-3px);
  border-color: var(--accent-gold);
  box-shadow: 0 14px 40px rgba(0,0,0,0.7), 0 0 20px rgba(255, 190, 11, 0.2);
}

/* --------------------------------------------------------------------------
 * HUMAN REFERENCE ATLAS & SOURCES MODAL
 * -------------------------------------------------------------------------- */
.medical-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 9, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.medical-modal-overlay.active {
  display: flex;
}

.medical-modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-cyan);
  border-radius: 16px;
  width: 680px;
  max-width: 92vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.95), 0 0 25px rgba(0, 240, 255, 0.15);
}

.medical-modal-header {
  padding: 1.25rem 1.5rem;
  background: rgba(8, 13, 22, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.medical-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.atlas-meta-banner {
  display: flex;
  gap: 1.1rem;
  background: #080e1a;
  padding: 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.atlas-icon {
  font-size: 2.4rem;
}

.atlas-text h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.atlas-text p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  line-height: 1.5;
}

.atlas-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.85rem;
}

.atlas-feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
}

.feat-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.atlas-feature-box h5 {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.atlas-feature-box p {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.atlas-link-btn {
  display: inline-block;
  background: #162238;
  color: var(--accent-cyan);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s;
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.atlas-link-btn:hover {
  background: var(--accent-cyan);
  color: #06090e;
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.license-notice-box {
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.95rem 1.15rem;
  border-radius: 10px;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.badge-pill-cyan {
  background: var(--accent-cyan-dim);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.clinical-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.35);
  display: inline-block;
}

.peel-action-btn {
  background: #162238;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-primary);
  font-family: var(--font-display);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.peel-action-btn:hover {
  background: #253759;
}

.peel-action-btn.peel-next {
  background: linear-gradient(135deg, var(--accent-gold), #ff9e00);
  color: #06090e;
  border: none;
  font-weight: 800;
}
/* VIRTUAL HAND CURSOR (Zero-Jitter Smooth Laser Pointer) */
.virtual-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 16px var(--accent-cyan), 0 0 30px rgba(0, 240, 255, 0.6);
  pointer-events: none;
  z-index: 2147483647 !important;
  display: none;
  transition: transform 0.04s linear, background-color 0.15s, box-shadow 0.15s;
}

/* INDEX FINGER RETICLE TARGETING STATE */
.virtual-cursor-dot.moving-reticle {
  background: #00f0ff;
  transform: scale(1.2);
  box-shadow: 0 0 20px #00f0ff, 0 0 35px rgba(0, 240, 255, 0.85);
}

.virtual-cursor-dot.dragging-index {
  background: #00f0ff;
  transform: scale(1.2);
  box-shadow: 0 0 20px #00f0ff, 0 0 35px rgba(0, 240, 255, 0.85);
}

/* PINCH SELECTION STATE */
.virtual-cursor-dot.pinching {
  background: #00e676;
  transform: scale(1.55);
  box-shadow: 0 0 30px #00e676, 0 0 55px rgba(0, 230, 118, 0.9);
}

/* PUNCH REST / RESET STATE */
.virtual-cursor-dot.punch-rest {
  background: #ff3d00;
  transform: scale(1.6);
  box-shadow: 0 0 35px #ff3d00, 0 0 60px rgba(255, 61, 0, 0.9);
}

/* PALM ROTATE & STOP STATE */
.virtual-cursor-dot.palm-rotate {
  background: #d946ef;
  transform: scale(1.4);
  box-shadow: 0 0 28px #d946ef, 0 0 50px rgba(217, 70, 239, 0.8);
}

.cursor-glow-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(0, 240, 255, 0.5);
  border-radius: 50%;
  animation: cursorRingPulse 1.8s infinite ease-out;
}

@keyframes cursorRingPulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* GESTURE COMMAND HUD GUIDE */
.gesture-command-guide {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.74rem;
  color: #cbd5e1;
  background: rgba(10, 15, 24, 0.88);
  backdrop-filter: blur(12px);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  margin-top: 6px;
}
.gesture-command-guide .cmd-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.gesture-command-guide .cmd-item strong {
  color: #fff;
}

/* --------------------------------------------------------------------------
 * FULLSCREEN VIEWPORT & LAYER ELEVATION (Safari & Chrome)
 * -------------------------------------------------------------------------- */
:fullscreen, :-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  background: #06090e !important;
}

:fullscreen .app-layout, :-webkit-full-screen .app-layout {
  height: 100vh !important;
  width: 100vw !important;
}

:fullscreen .main-presentation-workspace, :-webkit-full-screen .main-presentation-workspace {
  width: 100vw !important;
  height: calc(100vh - var(--header-height)) !important;
}

:fullscreen .floating-shortcut-legend,
:-webkit-full-screen .floating-shortcut-legend {
  z-index: 2147483646 !important;
  display: flex !important;
  pointer-events: auto !important;
}

:fullscreen .gesture-hud-container.active-hud,
:-webkit-full-screen .gesture-hud-container.active-hud {
  z-index: 2147483646 !important;
  display: flex !important;
  pointer-events: auto !important;
}

:fullscreen .virtual-cursor-dot.active-cursor,
:-webkit-full-screen .virtual-cursor-dot.active-cursor {
  z-index: 2147483647 !important;
  display: block !important;
  pointer-events: none !important;
}

/* CARDBOARD VR FULLSCREEN STEREOSCOPIC VIEW */
.vr-stereoscopic-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2147483640;
  background: #000;
  display: flex;
  flex-direction: row;
}

.vr-eye-view {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #070a10;
}

.vr-eye-view .atlas-viewport-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.vr-split-divider {
  width: 6px;
  height: 100%;
  background: #1e293b;
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vr-divider-notch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #000;
  border: 3px solid #334155;
  box-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.vr-reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border: 2px solid rgba(0, 240, 255, 0.75);
  border-radius: 50%;
  pointer-events: none;
  z-index: 25;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.vr-reticle-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  background: #ffbe0b;
  border-radius: 50%;
}

/* CARDBOARD VR UNIFIED CONTROL DOCK (CONTROLS BOTH EYES TOGETHER) */
.vr-unified-dock {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 50;
  background: rgba(8, 14, 24, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.45);
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 240, 255, 0.25);
}

.vr-dock-title {
  color: #00f0ff;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.vr-dock-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vr-dock-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.vr-dock-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--accent-cyan);
  color: #fff;
  transform: translateY(-1px);
}

.vr-dock-btn.active {
  background: linear-gradient(135deg, var(--accent-cyan), #0099ff);
  color: #06090e;
  border-color: var(--accent-cyan);
  font-weight: 800;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

/* UNIFIED INTERACTION SURFACE (TRANSPARENT OVERLAY SYNCING BOTH FRAMES) */
.vr-interaction-surface {
  position: absolute;
  inset: 0;
  z-index: 30;
  cursor: grab;
  background: transparent;
}

.vr-interaction-surface:active {
  cursor: grabbing;
}

.vr-eye-tag {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8, 14, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748b;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 26;
}

.vr-hud-exit-btn {
  background: rgba(255, 77, 77, 0.22);
  border: 1px solid #ff4d4d;
  color: #ff4d4d;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}
.vr-hud-exit-btn:hover {
  background: rgba(255, 77, 77, 0.45);
  box-shadow: 0 0 15px rgba(255, 77, 77, 0.5);
}

/* CARDBOARD VR STEREOSCOPIC OVERLAYS */
body.vr-cardboard-active .app-header,
body.vr-cardboard-active .floating-shortcut-legend,
body.vr-cardboard-active .gesture-hud-container {
  display: none !important;
}

#vrOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10000;
  display: none;
}

.vr-split-divider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-50%);
}

.vr-eye-hud {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.vr-eye-hud.left-eye { left: 0; }
.vr-eye-hud.right-eye { left: 50%; }

.vr-reticle {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vr-reticle-ring {
  width: 28px;
  height: 28px;
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  transition: transform 0.1s linear, border-color 0.15s;
}

.vr-card-info {
  margin-top: 3.5rem;
  background: rgba(11, 17, 28, 0.85);
  border: 1px solid var(--accent-cyan);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.8);
  min-height: 40px;
}

.vr-exit-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  pointer-events: auto;
  background: rgba(11, 17, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 0.55rem 1.1rem;
  border-radius: 30px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
}
