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

.top-left-group {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.hud-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 14px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
}

.btn-hamburger {
  background: var(--card-bg);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: #fff;
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  transition: all 0.2s;
}
.btn-hamburger:active { transform: scale(0.92); }

.brand-title {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}

.telemetry-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 20px;
  background: rgba(0, 242, 254, 0.15);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
  white-space: nowrap;
}

.telemetry-badge.active-gps {
  background: rgba(0, 255, 136, 0.2);
  color: var(--neon-green);
  border-color: rgba(0, 255, 136, 0.5);
}

/* Telemetry Overlay */
.telemetry-dashboard {
  position: absolute;
  bottom: 70px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 10;
  pointer-events: none;
}

.speed-gauge {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 20px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 95px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
}

.speed-value {
  font-size: 32px;
  font-weight: 900;
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
  line-height: 1;
}

.speed-unit {
  font-size: 10px;
  color: #8b949e;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 4px;
}

.controls-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
  max-width: 210px;
}

.vam-btn {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #0d1117;
  border: none;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.vam-btn:active {
  transform: scale(0.96);
}

.vam-btn.gps-btn.active {
  background: linear-gradient(135deg, #00ff88 0%, #00b09b 100%);
  color: #0d1117;
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.5);
}

.vam-btn.secondary {
  background: var(--card-bg);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.vam-btn.alert-trigger {
  background: rgba(255, 51, 102, 0.2);
  color: #fff;
  border: 1px solid var(--neon-alert-red);
  box-shadow: 0 4px 12px rgba(255, 51, 102, 0.3);
}

/* Floating Recenter Button */
.recenter-btn {
  position: absolute;
  right: 14px;
  bottom: 235px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  z-index: 10;
}

/* Custom Neon Bike Marker */
.neon-bike-marker {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  z-index: 100 !important;
}

.neon-halo {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: pulseGlow 1.8s infinite ease-in-out;
}

.bike-icon-core {
  width: 34px;
  height: 34px;
  background: #0d1117;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.heading-arrow {
  position: absolute;
  top: -8px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  filter: drop-shadow(0 0 4px currentColor);
}

.bike-icon-core svg {
  width: 19px;
  height: 19px;
  fill: #ffffff;
}

/* Name tag pill under rider marker */
.rider-name-tag {
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 17, 23, 0.94);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.3px;
  line-height: 1.2;
  z-index: 10;
  transition: all 0.2s ease;
}

/* Stylized Alert Map Pins */
.alert-pin-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 40 !important;
  transition: transform 0.2s;
}
.alert-pin-marker:active { transform: scale(1.15); }

.alert-pin-bubble {
  padding: 5px 7px;
  border-radius: 12px;
  background: #161b22;
  border: 1.5px solid;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
}

.alert-pin-pointer {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid;
  margin-top: -1px;
}

/* 2-Tap Alert Category Buttons */
.alert-category-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}
.alert-category-btn:hover {
  background: #1f242c;
}
.alert-category-btn:active {
  transform: scale(0.98);
}
.alert-category-btn.btn-danger {
  border-color: rgba(255, 51, 102, 0.4);
}
.alert-category-btn.btn-danger:hover {
  border-color: var(--neon-alert-red);
}
.alert-category-btn.btn-infra {
  border-color: rgba(255, 204, 0, 0.4);
}
.alert-category-btn.btn-infra:hover {
  border-color: var(--neon-alert-yellow);
}
.alert-category-btn.btn-poi {
  border-color: rgba(0, 210, 255, 0.4);
}
.alert-category-btn.btn-poi:hover {
  border-color: var(--neon-alert-blue);
}
