/* Miracle Detail v10 Elite — Luxury Agency Styling */
:root {
  --gold-glow: rgba(212, 175, 55, 0.35);
  --gold-primary: #d4af37;
  --gold-bright: #f3e5ab;
  --bg-obsidian: #060707;
  --glass-bg: rgba(14, 16, 15, 0.72);
  --glass-border: rgba(212, 175, 55, 0.22);
}

/* Version switcher badge in header */
.v-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}
.v-badge:hover {
  background: rgba(212, 175, 55, 0.24);
  border-color: var(--gold-primary);
  color: #fff;
  box-shadow: 0 0 15px var(--gold-glow);
}
.v-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  display: inline-block;
}

/* Studio HUD Hotspots */
.studio-hud-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 15;
  transition: opacity 0.5s ease;
}
.hud-pin {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hud-pin.is-active {
  opacity: 1;
}
.hud-pulse {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hud-pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--gold-primary);
  animation: hudPing 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.hud-pulse::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-primary);
}
@keyframes hudPing {
  0% { transform: scale(0.6); opacity: 1; }
  70%, 100% { transform: scale(2.2); opacity: 0; }
}

.hud-tag {
  position: absolute;
  left: 36px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 8px 16px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
  pointer-events: none;
}
.hud-tag small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 2px;
}
.hud-tag strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.04em;
}

/* Interactive Before / After Split Slider for Services */
.ba-container {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 18px;
  user-select: none;
  touch-action: pan-y;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-before {
  clip-path: inset(0 calc(100% - var(--split-pos, 50%)) 0 0);
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split-pos, 50%);
  width: 2px;
  background: var(--gold-primary);
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--gold-primary);
  cursor: ew-resize;
  pointer-events: none;
}
.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-obsidian);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.8);
}
.ba-pill {
  position: absolute;
  bottom: 10px;
  padding: 3px 8px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  border-radius: 4px;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  pointer-events: none;
}
.ba-pill-before { left: 10px; }
.ba-pill-after { right: 10px; color: var(--gold-primary); border: 1px solid rgba(212, 175, 55, 0.3); }

/* 3D Model Studio Upgrades: Lighting & Finish Selector */
.studio-pro-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 14px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}
.pro-tool-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pro-tool-label {
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-right: 4px;
}
.pro-tool-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #c9cbc7;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}
.pro-tool-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  color: #fff;
}
.pro-tool-btn.is-active {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #060707;
  font-weight: 600;
  box-shadow: 0 0 12px var(--gold-glow);
}

/* Real-time HUD Tech Specs for 3D model */
.model-specs-hud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.spec-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}
.spec-box:hover {
  border-color: rgba(212, 175, 55, 0.4);
}
.spec-box span {
  display: block;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8f928c;
  margin-bottom: 4px;
}
.spec-box strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #f2f0e9;
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .v-badge { display: none; }
  .hud-tag { left: auto; right: 36px; }
  .studio-pro-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .model-specs-hud { grid-template-columns: 1fr; }
}
