/* Real 3D WebGL Living AI Office — Skillmau / Bigman Bot */
.vo3d-section {
  background: linear-gradient(180deg, #0b1913 0%, #10241b 100%);
  color: #f8fafc;
  padding: 52px 0;
  border-top: 2px solid rgba(74, 222, 128, 0.28);
  border-bottom: 2px solid rgba(74, 222, 128, 0.28);
  overflow: hidden;
  position: relative;
}

.vo3d-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.vo3d-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 20px;
}

.vo3d-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.5);
  color: #86efac;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.vo3d-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.8);
  animation: vo3dPulse 1.6s infinite;
}

@keyframes vo3dPulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.8); }
  70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.vo3d-head h2 {
  font-size: clamp(24px, 3.5vw, 38px);
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 8px;
  font-weight: 900;
}

.vo3d-head h2 span {
  color: #4ade80;
}

.vo3d-head p {
  font-size: 15.5px;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 0;
}

/* Toolbar */
.vo3d-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(15, 36, 27, 0.9);
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 16px;
  padding: 11px 14px;
  margin-bottom: 16px;
}

.vo3d-cmd-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.vo3d-cmd-label {
  font-size: 12px;
  font-weight: 800;
  color: #86efac;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 4px;
}

.vo3d-cmd-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.vo3d-cmd-btn:hover,
.vo3d-cmd-btn.is-active {
  background: #ea580c;
  border-color: #fed7aa;
  color: #ffffff;
  transform: translateY(-1px);
}

.vo3d-mode-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.vo3d-mode-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.32);
  color: #d1fae5;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.vo3d-mode-btn.is-active {
  background: #22c55e;
  color: #052e16;
  border-color: #86efac;
}

/* Main Grid */
.vo3d-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(295px, 0.76fr);
  gap: 16px;
  align-items: stretch;
}

/* 3D Canvas Container */
.vo3d-stage-shell {
  position: relative;
  background: #dfe5ec;
  border: 2px solid rgba(74, 222, 128, 0.45);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  min-height: 540px;
}

.vo3d-stage-shell.is-night {
  background: #0d1628;
  border-color: rgba(96, 165, 250, 0.55);
}

.vo3d-canvas-wrap {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 492px;
  cursor: grab;
  overflow: hidden;
  touch-action: pan-y;
}

.vo3d-canvas-wrap:active {
  cursor: grabbing;
}

.vo3d-canvas-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Overlay HUD layer synced with 3D world positions */
.vo3d-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 4;
}

.vo3d-top-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: #0f1f18;
  border-bottom: 1px solid rgba(74, 222, 128, 0.25);
  z-index: 6;
}

.vo3d-hud-chip {
  color: #d1fae5;
  font-size: 11.5px;
  font-weight: 700;
}

.vo3d-hud-clock {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(253, 224, 71, 0.35);
  padding: 3px 9px;
  border-radius: 999px;
  color: #fde047;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}

/* Zone Header Pills on 3D Floor */
.vo3d-zone-pill {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vo3d-zone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Bot Name Pills projected directly under each 3D character */
.vo3d-bot-pill {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
  border: 1.5px solid rgba(15, 23, 42, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.vo3d-bot-pill:hover {
  transform: translate(-50%, -50%) scale(1.07);
}

.vo3d-bot-pill.is-active {
  background: #0f172a;
  color: #ffffff;
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.35), 0 6px 14px rgba(0, 0, 0, 0.3);
  z-index: 8;
}

.vo3d-bot-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Dark Boss Action Pill above #1 Quản lý */
.vo3d-boss-pill {
  position: absolute;
  transform: translate(-50%, -100%);
  background: #111827;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px 11px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(251, 191, 36, 0.55);
  z-index: 9;
}

.vo3d-boss-pill span {
  color: #fbbf24;
  margin-right: 4px;
}

/* Big Comic Yellow Speech Bubble over active reporting Bot */
.vo3d-speech {
  position: absolute;
  transform: translate(-50%, -100%);
  background: #facc15;
  color: #0f172a;
  border: 2.5px solid #0f172a;
  border-radius: 14px;
  padding: 9px 13px;
  max-width: 265px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.32);
  z-index: 12;
  pointer-events: auto;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.vo3d-speech:hover {
  transform: translate(-50%, -104%);
}

.vo3d-speech::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: #facc15;
  border-right: 2.5px solid #0f172a;
  border-bottom: 2.5px solid #0f172a;
}

.vo3d-speech.is-approved {
  background: #4ade80;
}

.vo3d-speech.is-approved::after {
  background: #4ade80;
}

.vo3d-speech-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 3px;
  color: #0f172a;
}

.vo3d-speech-body {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.38;
  color: #0f172a;
}

/* SVG Connector Line between Reporting Bot & Boss */
.vo3d-link-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.vo3d-stage-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 14px;
  background: #0f1f18;
  border-top: 1px solid rgba(74, 222, 128, 0.25);
  font-size: 12px;
  color: #cbd5e1;
}

/* Right Side Panel */
.vo3d-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vo3d-inspector {
  background: rgba(15, 36, 27, 0.95);
  border: 1.5px solid rgba(74, 222, 128, 0.38);
  border-radius: 18px;
  padding: 15px 16px;
}

.vo3d-insp-kicker {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4ade80;
  margin-bottom: 4px;
}

.vo3d-insp-title {
  font-size: 17.5px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 7px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vo3d-insp-badge {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.vo3d-insp-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: #e2e8f0;
  margin: 0 0 10px;
}

.vo3d-insp-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.vo3d-insp-bullets li {
  font-size: 13px;
  color: #d1fae5;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 6px 9px;
  line-height: 1.4;
}

/* Interactive Boss Approval Card */
.vo3d-approval-card {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.16), rgba(234, 88, 12, 0.25));
  border: 1.5px solid #facc15;
  border-radius: 16px;
  padding: 13px 15px;
}

.vo3d-approval-card.is-done {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(20, 83, 45, 0.35));
  border-color: #4ade80;
}

.vo3d-app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.vo3d-app-head strong {
  font-size: 13px;
  color: #fde047;
}

.vo3d-approval-card.is-done .vo3d-app-head strong {
  color: #86efac;
}

.vo3d-app-text {
  font-size: 13.5px;
  color: #ffffff;
  line-height: 1.42;
  margin: 0 0 10px;
}

.vo3d-app-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #fef08a;
  background: #ea580c;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
}

.vo3d-app-btn:hover {
  background: #c2410c;
}

.vo3d-app-btn:disabled {
  background: #16a34a;
  border-color: #86efac;
  cursor: default;
}

/* Live Feed */
.vo3d-feed-box {
  background: rgba(9, 19, 14, 0.92);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 16px;
  padding: 12px 14px;
  flex: 1;
}

.vo3d-feed-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 800;
  color: #86efac;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.vo3d-feed-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  max-height: 148px;
  overflow: hidden;
}

.vo3d-feed-list li {
  font-size: 12.2px;
  line-height: 1.38;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid #4ade80;
  padding: 6px 8px;
  border-radius: 0 8px 8px 0;
}

.vo3d-feed-list li b {
  color: #fde047;
}

/* Bottom CTA */
.vo3d-bottom-cta {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(74, 222, 128, 0.32);
  border-radius: 16px;
  padding: 15px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.vo3d-bottom-cta strong {
  display: block;
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 3px;
}

.vo3d-bottom-cta span {
  font-size: 13.5px;
  color: #cbd5e1;
}

.vo3d-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ea580c;
  color: #ffffff !important;
  border: 2px solid #fed7aa;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14.5px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.45);
}

.vo3d-cta-btn:hover {
  background: #c2410c;
  transform: translateY(-1px);
}

@media (max-width: 960px) {
  .vo3d-layout {
    grid-template-columns: 1fr;
  }
  .vo3d-stage-shell {
    min-height: 410px;
  }
  .vo3d-canvas-wrap {
    min-height: 365px;
  }
}

@media (max-width: 640px) {
  .vo3d-section {
    padding: 34px 0;
  }
  .vo3d-wrap {
    padding: 0 12px;
  }
  .vo3d-toolbar {
    padding: 10px;
    gap: 8px;
  }
  .vo3d-cmd-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
  }
  .vo3d-cmd-label {
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }
  .vo3d-cmd-btn {
    width: 100%;
    text-align: left;
    font-size: 11.5px;
    padding: 7px 8px;
    line-height: 1.25;
  }
  .vo3d-mode-group {
    width: 100%;
    justify-content: space-between;
  }
  .vo3d-mode-btn {
    flex: 1;
    text-align: center;
    font-size: 11px;
    padding: 6px 6px;
  }
  .vo3d-stage-shell {
    min-height: 0;
  }
  .vo3d-canvas-wrap {
    min-height: 275px;
    height: 275px;
  }
  .vo3d-top-hud {
    padding: 7px 10px;
  }
  .vo3d-hud-chip {
    font-size: 10.5px;
  }
  /* Clean uncluttered 3D mobile view */
  .vo3d-zone-pill,
  .vo3d-boss-pill {
    display: none !important;
  }
  .vo3d-bot-pill {
    font-size: 9.5px;
    padding: 2px 5px;
    gap: 3px;
  }
  .vo3d-bot-pill .vo3d-bot-name {
    display: none;
  }
  .vo3d-bot-pill.is-active {
    font-size: 10.5px;
    padding: 3px 8px;
  }
  .vo3d-bot-pill.is-active .vo3d-bot-name {
    display: inline;
  }
  /* Dock comic yellow speech bubble cleanly at bottom of canvas on mobile so it never hides the 3D bots */
  .vo3d-speech {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    max-width: none !important;
    width: auto;
    margin: 10px 10px 0;
    border-radius: 12px;
    padding: 9px 12px;
    box-shadow: none;
  }
  .vo3d-speech::after {
    display: none;
  }
  .vo3d-speech-head {
    font-size: 11.5px;
  }
  .vo3d-speech-body {
    font-size: 12.5px;
  }
  .vo3d-stage-foot {
    font-size: 11.5px;
    padding: 8px 10px;
  }
  .vo3d-cta-btn {
    width: 100%;
    justify-content: center;
  }
}
