/* ============================================================
   MURRPLASTIK VEC 2026 — 3D Exhibition Booth Viewer UI Styles
   UI/UX Pro Max Standard: German Industrial Elegance & Clean HUD
   ============================================================ */

.booth3d-wrapper {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
  margin: 2.5rem 0;
  user-select: none;
}

.booth3d-canvas-wrap {
  position: relative;
  width: 100%;
  height: 560px;
  min-height: 420px;
  cursor: grab;
  touch-action: none;
}

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

/* --- Top Header HUD --- */
.booth3d-top-hud {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 20;
  gap: 10px;
}

.booth3d-brand-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 30px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.booth3d-badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.booth3d-location-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200, 16, 46, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 30px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(200, 16, 46, 0.35);
}

/* --- Floating Camera Quickbar --- */
.booth3d-camera-bar {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px;
  border-radius: 40px;
  z-index: 20;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  max-width: 94%;
  overflow-x: auto;
  scrollbar-width: none;
}

.booth3d-camera-bar::-webkit-scrollbar {
  display: none;
}

.cam-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #94a3b8;
  border: none;
  padding: 7px 13px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cam-chip svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.cam-chip:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.cam-chip.active {
  background: #C8102E;
  color: #fff;
  box-shadow: 0 2px 10px rgba(200, 16, 46, 0.45);
}

/* --- Floating Side Action Buttons --- */
.booth3d-side-actions {
  position: absolute;
  top: 60px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 20;
}

.booth-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.booth-action-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.booth-action-btn:hover {
  color: #fff;
  background: rgba(200, 16, 46, 0.85);
  border-color: rgba(200, 16, 46, 0.5);
  transform: scale(1.08);
}

.booth-action-btn.active {
  background: #C8102E;
  color: #fff;
  box-shadow: 0 0 14px rgba(200, 16, 46, 0.6);
}

/* --- Hotspot Overlay & Pins --- */
.booth3d-hotspots-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
}

.booth-hotspot-pin {
  pointer-events: auto;
  position: absolute;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  background: #C8102E;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(200, 16, 46, 0.8);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.booth-hotspot-pin .pin-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #C8102E;
  animation: pulse-ring 2.2s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

.booth-hotspot-pin:hover {
  transform: scale(1.22);
  background: #e61236;
}

/* --- Hotspot Info Modal Popup --- */
.booth3d-hotspot-modal {
  position: absolute;
  bottom: 80px;
  left: 20px;
  max-width: 340px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 16px 18px;
  color: #fff;
  z-index: 30;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  transform: translateY(15px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.booth3d-hotspot-modal.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.modal-tag {
  display: inline-block;
  background: rgba(200, 16, 46, 0.25);
  color: #ff6b81;
  border: 1px solid rgba(200, 16, 46, 0.4);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 6px;
}

.modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #fff;
}

.modal-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
  margin-bottom: 6px;
}

.modal-desc {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.55;
}

/* --- Loader Overlay --- */
.booth3d-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  z-index: 50;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.booth3d-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.booth3d-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #C8102E;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Mobile Responsive Rules --- */
@media (max-width: 768px) {
  .booth3d-canvas-wrap {
    height: 440px;
  }
  
  .booth3d-top-hud {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  
  .booth3d-side-actions {
    top: 80px;
  }
  
  .booth3d-hotspot-modal {
    left: 12px;
    right: 12px;
    max-width: none;
    bottom: 74px;
  }
  
  .cam-chip {
    padding: 6px 10px;
    font-size: 11px;
  }
}

/* ============================================================
   DUAL FULLSCREEN ENGINE (NATIVE & CSS PSEUDO-FULLSCREEN)
   ============================================================ */

body.booth-fullscreen-locked {
  overflow: hidden !important;
  touch-action: none !important;
}

.booth3d-wrapper:fullscreen,
.booth3d-wrapper:-webkit-full-screen,
.booth3d-wrapper.booth-pseudo-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  width: 100dvw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: 100vw !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  z-index: 9999999 !important;
  background: #0f172a !important;
  box-shadow: none !important;
}

.booth3d-wrapper:fullscreen .booth3d-canvas-wrap,
.booth3d-wrapper:-webkit-full-screen .booth3d-canvas-wrap,
.booth3d-wrapper.booth-pseudo-fullscreen .booth3d-canvas-wrap {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
}

.booth3d-wrapper:fullscreen canvas,
.booth3d-wrapper:-webkit-full-screen canvas,
.booth3d-wrapper.booth-pseudo-fullscreen canvas {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* Exit Fullscreen Floating Pill (Visible only in Fullscreen mode) */
.booth3d-exit-fullscreen-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 35;
  display: none;
  align-items: center;
  gap: 6px;
  background: rgba(200, 16, 46, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.booth3d-exit-fullscreen-pill:hover {
  background: #e61236;
  transform: scale(1.04);
}

.booth3d-wrapper:fullscreen .booth3d-exit-fullscreen-pill,
.booth3d-wrapper:-webkit-full-screen .booth3d-exit-fullscreen-pill,
.booth3d-wrapper.booth-pseudo-fullscreen .booth3d-exit-fullscreen-pill {
  display: inline-flex !important;
}

.booth3d-wrapper:fullscreen .booth3d-side-actions,
.booth3d-wrapper:-webkit-full-screen .booth3d-side-actions,
.booth3d-wrapper.booth-pseudo-fullscreen .booth3d-side-actions {
  top: 68px;
}

/* Landscape Mobile Fullscreen Optimizations */
@media (max-height: 500px) and (orientation: landscape) {
  .booth3d-top-hud {
    top: 8px;
    left: 10px;
    right: 10px;
  }
  .booth3d-brand-pill {
    padding: 4px 10px;
    font-size: 11px;
  }
  .booth3d-location-pill {
    padding: 4px 10px;
    font-size: 10.5px;
  }
  .booth3d-camera-bar {
    bottom: 8px;
    padding: 4px;
  }
  .cam-chip {
    padding: 4px 8px;
    font-size: 10.5px;
  }
  .booth3d-side-actions {
    top: 50px !important;
    right: 10px;
  }
  .booth-action-btn {
    width: 32px;
    height: 32px;
  }
}

/* ============================================================
   SMART IN-APP BROWSER NOTICE & IOS GUIDANCE MODAL
   ============================================================ */

.smart-inapp-notice {
  margin: 0 0 1.5rem 0;
  transition: all 0.3s ease;
}

.smart-inapp-notice.hidden {
  display: none !important;
}

.inapp-notice-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.94) 100%);
  border: 1px solid rgba(200, 16, 46, 0.35);
  border-left: 4px solid #C8102E;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.inapp-notice-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.inapp-notice-icon-box {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  background: rgba(200, 16, 46, 0.15);
  border: 1px solid rgba(200, 16, 46, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6b81;
}

.inapp-notice-content {
  flex: 1;
}

.inapp-notice-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
  margin-bottom: 3px;
}

.inapp-notice-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
}

.inapp-notice-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.inapp-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
}

.inapp-btn-primary {
  background: #C8102E;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.35);
}

.inapp-btn-primary:hover {
  background: #e61236;
  transform: translateY(-1px);
}

.inapp-btn-dismiss {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.inapp-btn-dismiss:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

@media (max-width: 768px) {
  .inapp-notice-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
  }
  .inapp-notice-actions {
    justify-content: flex-end;
  }
}

/* --- iOS In-App Guidance Modal Overlay --- */
.ios-inapp-modal {
  position: fixed;
  inset: 0;
  z-index: 10000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ios-inapp-modal.hidden {
  display: none !important;
}

.ios-inapp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ios-inapp-card {
  position: relative;
  z-index: 2;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  border-radius: 16px;
  max-width: 440px;
  width: 100%;
  padding: 24px;
  color: #f8fafc;
}

.ios-inapp-pointer-arrow {
  position: absolute;
  top: -42px;
  right: 28px;
  animation: bounce-arrow 1.4s infinite ease-in-out;
  filter: drop-shadow(0 0 8px rgba(200, 16, 46, 0.8));
}

@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.ios-inapp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ios-inapp-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #ff6b81;
  background: rgba(200, 16, 46, 0.15);
  border: 1px solid rgba(200, 16, 46, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
}

.ios-inapp-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.ios-inapp-close:hover {
  color: #ffffff;
}

.ios-inapp-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.ios-guide-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
}

.step-num {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: #C8102E;
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-txt {
  font-size: 12.5px;
  line-height: 1.5;
  color: #cbd5e1;
}

.step-txt strong {
  color: #ffffff;
}

.ios-inapp-ack-btn {
  width: 100%;
  background: #C8102E;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 11px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.35);
  transition: all 0.2s ease;
}

.ios-inapp-ack-btn:hover {
  background: #e61236;
}
