/* VibraSpots — City Hotspots */
#vibra-spots-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0a0a12;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Segoe UI', sans-serif;
}
#vibra-spots-panel.vs-active { display: flex; }

/* Header */
.vs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  background: linear-gradient(135deg, #0d1b2a, #1a0a2e);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.vs-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.vs-title span { color: #f59e0b; }
.vs-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* City pulse bar */
.vs-pulse-bar {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(0,0,0,0.3);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.vs-pulse-bar::-webkit-scrollbar { display: none; }
.vs-pulse-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.vs-pulse-chip.active {
  border-color: rgba(255,255,255,0.3);
  transform: scale(1.05);
}
.vs-pulse-chip[data-cat="all"]    { background: rgba(255,255,255,0.1); color: #fff; }
.vs-pulse-chip[data-cat="run"]    { background: rgba(16,185,129,0.15); color: #10b981; }
.vs-pulse-chip[data-cat="art"]    { background: rgba(139,92,246,0.15); color: #8b5cf6; }
.vs-pulse-chip[data-cat="food"]   { background: rgba(245,158,11,0.15); color: #f59e0b; }
.vs-pulse-chip[data-cat="music"]  { background: rgba(236,72,153,0.15); color: #ec4899; }
.vs-pulse-chip[data-cat="sport"]  { background: rgba(59,130,246,0.15); color: #3b82f6; }
.vs-pulse-chip[data-cat="nature"] { background: rgba(34,197,94,0.15);  color: #22c55e; }

/* Scroll container */
.vs-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

/* Mini map canvas */
.vs-map-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  height: 200px;
  background: #0d1b2a;
  border: 1px solid rgba(255,255,255,0.07);
}
#vs-map-canvas { width: 100%; height: 100%; display: block; }
.vs-map-label {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.vs-map-live {
  position: absolute;
  top: 10px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #10b981;
  font-weight: 700;
}
.vs-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  animation: vs-blink 1.2s ease-in-out infinite;
}
@keyframes vs-blink { 0%,100%{opacity:1;} 50%{opacity:0.2;} }

/* Spot cards */
.vs-section-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 10px;
}
.vs-spots-grid { display: flex; flex-direction: column; gap: 10px; }

.vs-spot-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.vs-spot-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  border-radius: 14px 14px 0 0;
}
.vs-spot-card[data-cat="run"]::before    { background: linear-gradient(90deg,#10b981,#06d6a0); }
.vs-spot-card[data-cat="art"]::before    { background: linear-gradient(90deg,#8b5cf6,#c084fc); }
.vs-spot-card[data-cat="food"]::before   { background: linear-gradient(90deg,#f59e0b,#fbbf24); }
.vs-spot-card[data-cat="music"]::before  { background: linear-gradient(90deg,#ec4899,#f472b6); }
.vs-spot-card[data-cat="sport"]::before  { background: linear-gradient(90deg,#3b82f6,#60a5fa); }
.vs-spot-card[data-cat="nature"]::before { background: linear-gradient(90deg,#22c55e,#86efac); }

.vs-spot-card:active { transform: scale(0.98); }

.vs-spot-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}
.vs-spot-info {}
.vs-spot-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}
.vs-spot-location {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 4px;
}
.vs-spot-energy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.vs-energy-num {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}
.vs-energy-label {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Energy color classes */
.vs-energy-hot  { color: #f59e0b; }
.vs-energy-high { color: #10b981; }
.vs-energy-med  { color: #3b82f6; }
.vs-energy-low  { color: rgba(255,255,255,0.3); }

/* Spot stats row */
.vs-spot-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}
.vs-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.vs-stat-icon { font-size: 13px; }

/* Energy bar */
.vs-energy-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vs-energy-bar-bg {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  overflow: hidden;
}
.vs-energy-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

/* Check-in button */
.vs-checkin-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.vs-checkin-btn:active { transform: scale(0.95); }
.vs-checkin-btn.checked {
  background: rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.5) !important;
  cursor: default;
}

/* Spot detail panel (slide in) */
.vs-detail-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #0a0a12;
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.vs-detail-overlay.open {
  display: flex;
  transform: translateX(0);
}
.vs-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.vs-back-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.vs-detail-name { font-size: 17px; font-weight: 700; color: #fff; }
.vs-detail-body { flex:1; overflow-y:auto; padding: 16px; }

/* Detail energy ring */
.vs-detail-ring-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}
.vs-detail-ring-canvas { display: block; }
.vs-detail-ring-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.vs-detail-ring-num { font-size: 32px; font-weight: 900; }
.vs-detail-ring-label { font-size: 11px; color: rgba(255,255,255,0.4); }

/* Detail stats grid */
.vs-detail-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.vs-detail-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}
.vs-detail-stat-icon { font-size: 20px; margin-bottom: 4px; }
.vs-detail-stat-num { font-size: 18px; font-weight: 800; color: #fff; }
.vs-detail-stat-label { font-size: 10px; color: rgba(255,255,255,0.4); }

/* Missions in detail */
.vs-missions-title {
  font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 10px;
}
.vs-mission-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  margin-bottom: 8px;
}
.vs-mission-icon { font-size: 22px; }
.vs-mission-info { flex: 1; }
.vs-mission-name { font-size: 13px; font-weight: 700; color: #fff; }
.vs-mission-desc { font-size: 11px; color: rgba(255,255,255,0.4); }
.vs-mission-vbc {
  font-size: 13px; font-weight: 800;
  color: #f59e0b;
  white-space: nowrap;
}

/* Activity feed in detail */
.vs-activity-feed { margin-top: 16px; }
.vs-activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.vs-activity-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.vs-activity-text { flex: 1; font-size: 12px; color: rgba(255,255,255,0.6); }
.vs-activity-text strong { color: #fff; }
.vs-activity-time { font-size: 11px; color: rgba(255,255,255,0.3); }

/* NERHIA bar */
.vs-nerhia-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(139,92,246,0.1);
  border-top: 1px solid rgba(139,92,246,0.2);
  flex-shrink: 0;
}
.vs-nerhia-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.vs-nerhia-text { font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.4; }
.vs-nerhia-name { font-weight: 700; color: #a78bfa; }
