/* Reset & Safe Areas */
html, body {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  overscroll-behavior: none;
}

.safe-top {
  padding-top: max(14px, env(safe-area-inset-top));
}

.safe-bottom {
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}

/* Custom Navigation active state */
.nav-tab.active-tab {
  background: linear-gradient(135deg, rgba(137, 176, 156, 0.25), rgba(226, 184, 179, 0.2));
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Biometric Scan Face Guide Pulse */
@keyframes borderPulse {
  0%, 100% {
    border-color: rgba(137, 176, 156, 0.4);
    box-shadow: 0 0 15px rgba(56, 217, 169, 0.1);
  }
  50% {
    border-color: rgba(226, 184, 179, 0.8);
    box-shadow: 0 0 25px rgba(226, 184, 179, 0.3);
  }
}

#faceOvalGuide {
  animation: borderPulse 4s infinite ease-in-out;
}

/* Hotspot Pins */
.hotspot-pin {
  position: absolute;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  transition: transform 0.2s ease;
}

.hotspot-pin:hover, .hotspot-pin:active {
  transform: scale(1.25);
}

.hotspot-pin .ping {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background-color: rgba(56, 217, 169, 0.5);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hotspot-pin .dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

.hotspot-pin .label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 2px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.15);
}

/* Smooth transitions */
.tab-pane {
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
}