/* TruSaaS Tru3D player (mock + live package) */
.w3d-host,
#homeWeb3d {
  position: relative;
  width: 100%;
  min-height: 380px;
  background: #0b1220;
}
.w3d-host .w3d-root,
#homeWeb3d .w3d-root {
  width: 100%;
  min-height: 380px;
}
.w3d-root { font-family: "Archivo", system-ui, sans-serif; color: #e8eef6; }
.w3d-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 320px;
  border-radius: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  cursor: grab;
  background:
    radial-gradient(ellipse at 50% 88%, rgba(21, 199, 192, 0.12), transparent 52%),
    radial-gradient(ellipse at 50% 0%, #1a2a42, transparent 55%),
    linear-gradient(180deg, #121c2e 0%, #0b1220 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.w3d-stage.dragging { cursor: grabbing; }
.w3d-floor {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 6%;
  height: 28%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, rgba(20, 102, 224, 0.2), transparent 70%);
  pointer-events: none;
}
.w3d-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4% 6% 10%;
  display: block;
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.55));
  transition: opacity 0.12s ease;
  pointer-events: none;
}
.w3d-media.fading { opacity: 0.5; }
.w3d-tag {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  animation: w3dPulse 2.2s ease-in-out infinite;
  z-index: 4;
  padding: 0;
}
.w3d-tag.info { background: #3b82f6; }
.w3d-tag.attention { background: #e7b24b; }
.w3d-tag.critical { background: #f0555a; }
.w3d-tag.active {
  transform: translate(-50%, -50%) scale(1.25);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}
@keyframes w3dPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}
.w3d-pop {
  position: absolute;
  z-index: 6;
  min-width: 180px;
  max-width: min(280px, 86%);
  background: rgba(8, 14, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  color: #e8eef6;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: none;
  pointer-events: none;
}
.w3d-pop.on { display: block; animation: w3dPop 0.16s ease-out; }
@keyframes w3dPop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.w3d-pop .sev {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.w3d-pop .sev.critical { color: #f0555a; }
.w3d-pop .sev.attention { color: #e7b24b; }
.w3d-pop .sev.info { color: #3b82f6; }
.w3d-pop b { color: #15c7c0; font-size: 11px; letter-spacing: 0.04em; }
.w3d-pop .label { margin-top: 4px; line-height: 1.4; }
.w3d-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(120deg, #1466e0, #0e9d98);
  padding: 7px 12px;
  border-radius: 100px;
  box-shadow: 0 8px 20px -8px rgba(20, 102, 224, 0.55);
}
.w3d-mockpill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 238, 246, 0.75);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 10px;
  border-radius: 100px;
}
.w3d-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 238, 246, 0.55);
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 10px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 3;
  white-space: nowrap;
}
.w3d-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 16px 4px;
  background: #eef2f7;
}
.w3d-controls button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #d3dce6;
  background: #fff;
  color: #16222e;
  font-size: 18px;
  cursor: pointer;
}
.w3d-controls button:hover {
  border-color: #1466e0;
  color: #1466e0;
}
.w3d-play {
  width: auto !important;
  padding: 0 14px !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.w3d-play.on {
  background: rgba(21, 199, 192, 0.12);
  border-color: #15c7c0;
  color: #0e9d98;
}
.w3d-scrub {
  flex: 1;
  min-width: 120px;
  display: flex;
  align-items: center;
}
.w3d-scrub input[type="range"] {
  width: 100%;
  accent-color: #15c7c0;
  height: 6px;
  cursor: pointer;
}
.w3d-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 16px 4px;
  font-size: 12px;
  color: #5a6b80;
  background: #eef2f7;
}
.w3d-meta strong { color: #16222e; }
.w3d-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 4px 16px 14px;
  font-size: 10px;
  color: #7a8b9e;
  background: #eef2f7;
}
.w3d-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
.w3d-legend i.info { background: #3b82f6; }
.w3d-legend i.attention { background: #e7b24b; }
.w3d-legend i.critical { background: #f0555a; }
.w3d-err {
  padding: 40px 20px;
  text-align: center;
  color: #f0555a;
  background: #0b1220;
}
@media (max-width: 600px) {
  .w3d-stage { min-height: 260px; }
  .w3d-hint { font-size: 9px; }
}
