/* ==========================================================================
   Interactive 3D Barber Chair Studio Simulation (Hero Stage)
   ========================================================================== */
.hero-chair-3d-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
}

/* 1. Top HUD Studio Tag */
.chair-3d-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  z-index: 10;
}
.chair-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}
.chair-live-dot.pulse {
  animation: hq-dot-pulse 2s infinite ease-in-out;
}
.chair-angle-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  background: #0F172A;
  color: #F8FAFC;
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: 4px;
}

/* 2. 3D Viewport with Perspective */
.chair-3d-viewport {
  position: relative;
  width: 100%;
  height: 480px;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
}
.hero-chair-3d-stage.is-dragging .chair-3d-viewport {
  cursor: grabbing;
}

/* 3. 3D Rig / Gimbal */
.chair-3d-rig {
  position: relative;
  width: 380px;
  height: 420px;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transition: transform 0.08s ease-out;
  z-index: 5;
}

/* 4. Subject Layer (Client in Chair) */
.chair-subject-layer {
  position: relative;
  width: 360px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}
.chair-subject-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.08));
  transition: transform 0.1s linear;
}

/* Dynamic Sheen Overlay */
.chair-lighting-sheen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  mix-blend-mode: overlay;
  border-radius: 20px;
  z-index: 5;
}

/* 5. Hydraulic Shaft / Cylinder */
.chair-hydraulic-shaft {
  position: absolute;
  bottom: 30px;
  width: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
}
.shaft-piston {
  width: 22px;
  height: 35px;
  background: linear-gradient(90deg, #94a3b8 0%, #ffffff 45%, #64748b 100%);
  border-radius: 4px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
  transition: height 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.shaft-lever {
  position: absolute;
  right: -24px;
  top: 14px;
  width: 28px;
  height: 4px;
  background: #0f172a;
  border-radius: 2px;
  transform-origin: left center;
  transform: rotate(-15deg);
  transition: transform 0.2s ease;
}
.shaft-lever::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  width: 10px;
  height: 10px;
  background: #334155;
  border-radius: 50%;
  border: 1px solid #94a3b8;
}
.shaft-lever.pump-action {
  transform: rotate(22deg);
}

/* 6. Chrome Pedestal Base (Turntable Disc) */
.chair-pedestal-disc {
  position: absolute;
  bottom: -6px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  transform-origin: center center;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}
.disc-outer-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #94a3b8, #f8fafc, #64748b, #ffffff, #94a3b8);
  border: 2px solid #cbd5e1;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.25);
}
.disc-inner-chrome {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #f8fafc 20%, #e2e8f0 70%, #94a3b8 100%);
  border: 1.5px solid #cbd5e1;
}
.disc-radial-ticks {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(15, 23, 42, 0.25);
}
.disc-arrow-marker {
  position: absolute;
  top: 2px;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  background: #2563EB;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* 7. Floor Contact Shadow */
.chair-floor-shadow {
  position: absolute;
  bottom: 22px;
  width: 290px;
  height: 140px;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.1) 45%, transparent 72%);
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.1s linear, opacity 0.1s linear;
}

/* Drag Hint */
.chair-drag-hint {
  position: absolute;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid #E2E8F0;
  padding: 5px 12px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

/* 8. Controls Toolbar */
.chair-controls-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  padding: 6px;
  border-radius: 14px;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.08);
  margin-top: 10px;
  z-index: 10;
}
.chair-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chair-btn:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #0F172A;
  transform: translateY(-1px);
}
.chair-btn.active {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}
.chair-btn svg {
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero-chair-3d-stage {
    margin-top: 40px;
  }
  .chair-3d-viewport {
    height: 400px;
  }
  .chair-3d-rig {
    width: 320px;
    height: 350px;
  }
  .chair-subject-layer {
    width: 300px;
    height: 320px;
  }
  .chair-pedestal-disc {
    width: 220px;
    height: 220px;
  }
  .chair-floor-shadow {
    width: 240px;
    height: 110px;
  }
}
