@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;900&family=Rajdhani:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
  --void: #000008;
  --deep-space: #00000f;
  --nebula-blue: #0a0a2e;
  --cyber-cyan: #00f5ff;
  --cyber-cyan-dim: rgba(0, 245, 255, 0.15);
  --cyber-cyan-glow: rgba(0, 245, 255, 0.6);
  --hot-red: rgba(255, 30, 30, 0.45);
  --hot-red-border: rgba(255, 60, 60, 0.9);
  --star-white: rgba(255, 255, 255, 0.9);
  --grid-line: rgba(0, 245, 255, 0.06);
  --panel-bg: rgba(0, 4, 20, 0.92);
  --text-primary: #e0f7ff;
  --text-secondary: rgba(180, 230, 255, 0.7);
  --accent-gold: #ffd700;
  --accent-green: #00ff88;
}

* {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}

html, body { width: 100%; height: 100%; overflow: hidden; background: var(--void); font-family: 'Rajdhani', sans-serif; cursor: crosshair; }


#space-bg {
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at 20% 50%, #0d0033 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, #000d33 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, #001a1a 0%, transparent 50%),
              #000008;
}
#space-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }


#scanlines {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,245,255,0.015) 2px, rgba(0,245,255,0.015) 4px);
}
#grid-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px; animation: gridPan 40s linear infinite;
}
@keyframes gridPan { from { background-position: 0 0; } to { background-position: 60px 60px; } }


#map-container { position: fixed; inset: 0; z-index: 2; }
#map-container svg, #map-container canvas { position: absolute; top: 0; left: 0; }


.hud-corner { position: fixed; width: 60px; height: 60px; z-index: 10; pointer-events: none; }
.hud-corner::before, .hud-corner::after { content: ''; position: absolute; background: var(--cyber-cyan); box-shadow: 0 0 8px var(--cyber-cyan); }
.hud-corner::before { width: 100%; height: 2px; }
.hud-corner::after  { width: 2px;  height: 100%; }
.hud-tl { top: 20px;    left: 20px; }
.hud-tr { top: 20px;    right: 20px;  transform: scaleX(-1); }
.hud-bl { bottom: 20px; left: 20px;   transform: scaleY(-1); }
.hud-br { bottom: 20px; right: 20px;  transform: scale(-1); }


#top-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 56px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; padding: 0 80px;
  background: linear-gradient(180deg, rgba(0,8,30,0.95) 0%, transparent 100%);
  border-bottom: 1px solid rgba(0,245,255,0.15);
}
#app-title {
  font-family: 'Orbitron', monospace; font-size: 18px; font-weight: 700;
  color: var(--cyber-cyan); letter-spacing: 4px; text-transform: uppercase;
  text-shadow: 0 0 20px var(--cyber-cyan), 0 0 40px rgba(0,245,255,0.3);
}
#app-title span { color: var(--star-white); opacity: 0.5; font-weight: 300; }
#live-stats { display: flex; gap: 32px; align-items: center; }
.stat-item { font-family: 'Share Tech Mono', monospace; font-size: 11px; color: var(--text-secondary); letter-spacing: 1px; }
.stat-item strong { color: var(--cyber-cyan); font-size: 13px; }
#clock { font-family: 'Share Tech Mono', monospace; font-size: 13px; color: var(--cyber-cyan); letter-spacing: 2px; text-shadow: 0 0 10px var(--cyber-cyan); }


#exit-map-btn {
  position: fixed;
  top: 14px;
  left: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(180, 220, 255, 0.7);
  background: rgba(0, 4, 20, 0.85);
  border: 1px solid rgba(0, 245, 255, 0.2);
  padding: 9px 16px 9px 12px;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  cursor: pointer;
}
#exit-map-btn:hover {
  color: var(--cyber-cyan);
  border-color: rgba(0, 245, 255, 0.5);
  background: rgba(0, 245, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.15);
}
#exit-map-btn svg {
  width: 12px; height: 12px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}


#country-search-wrap {
  position: fixed;
  top: 56px;
  left: 24px;
  z-index: 190;
  width: 260px;
}

#country-dropdown-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(0, 4, 20, 0.9);
  border: 1px solid rgba(0, 245, 255, 0.25);
  color: rgba(180, 220, 255, 0.75);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 9px 12px;
  cursor: pointer;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  text-transform: uppercase;
}
#country-dropdown-btn:hover {
  border-color: rgba(0, 245, 255, 0.5);
  color: var(--cyber-cyan);
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.1);
}
#country-dropdown-btn.open {
  border-color: rgba(0, 245, 255, 0.5);
  color: var(--cyber-cyan);
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.12);
}

#country-dropdown-label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#country-dropdown-label img {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 1px;
  flex-shrink: 0;
  opacity: 0.9;
}

#dropdown-globe-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.5;
}

#dropdown-chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
#country-dropdown-btn.open #dropdown-chevron {
  transform: rotate(180deg);
  opacity: 0.9;
}

#country-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  max-height: 320px;
  overflow-y: auto;
  background: rgba(0, 4, 28, 0.97);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-top: none;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 245, 255, 0.05);
  display: none;
  z-index: 300;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 245, 255, 0.2) transparent;
}
#country-dropdown::-webkit-scrollbar { width: 4px; }
#country-dropdown::-webkit-scrollbar-track { background: transparent; }
#country-dropdown::-webkit-scrollbar-thumb { background: rgba(0, 245, 255, 0.2); border-radius: 2px; }
#country-dropdown.open { display: block; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 245, 255, 0.05);
  transition: background 0.15s ease;
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover,
.dropdown-item.focused {
  background: rgba(0, 245, 255, 0.08);
}
.dropdown-item.selected-item {
  background: rgba(0, 245, 255, 0.07);
  border-left: 2px solid rgba(0, 245, 255, 0.5);
}
.dropdown-item.selected-item .dropdown-name {
  color: var(--cyber-cyan);
}

.dropdown-flag {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 1px;
  flex-shrink: 0;
  opacity: 0.9;
}
.dropdown-flag-placeholder {
  width: 22px;
  height: 15px;
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: 1px;
  flex-shrink: 0;
}
.dropdown-name {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 1px;
  color: rgba(180, 220, 255, 0.85);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dropdown-item:hover .dropdown-name,
.dropdown-item.focused .dropdown-name {
  color: rgba(0, 245, 255, 0.95);
}
.dropdown-loading {
  padding: 12px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: rgba(0, 245, 255, 0.4);
  letter-spacing: 1px;
  text-align: center;
}


#toggle-view {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 28px;
  background: var(--panel-bg);
  border: 1px solid var(--cyber-cyan);
  color: var(--cyber-cyan);
  font-family: 'Orbitron', monospace; font-size: 11px; font-weight: 600;
  cursor: pointer; z-index: 100; letter-spacing: 3px; text-transform: uppercase;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0,245,255,0.2), inset 0 0 20px rgba(0,245,255,0.05);
}
#toggle-view:hover {
  background: rgba(0,245,255,0.12);
  box-shadow: 0 0 40px rgba(0,245,255,0.5), inset 0 0 30px rgba(0,245,255,0.1);
  color: #fff;
}


#loading {
  position: fixed; inset: 0; z-index: 200; background: var(--void);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
}
#loading-title { font-family: 'Orbitron', monospace; font-size: 28px; font-weight: 900; color: var(--cyber-cyan); letter-spacing: 8px; text-shadow: 0 0 30px var(--cyber-cyan); animation: flicker 3s infinite; }
#loading-bar-wrap { width: 300px; height: 2px; background: rgba(0,245,255,0.1); border: 1px solid rgba(0,245,255,0.2); overflow: hidden; }
#loading-bar { height: 100%; background: var(--cyber-cyan); box-shadow: 0 0 10px var(--cyber-cyan); animation: loadBar 2.5s ease-in-out forwards; }
@keyframes loadBar { 0% { width: 0%; } 60% { width: 80%; } 100% { width: 100%; } }
#loading-text { font-family: 'Share Tech Mono', monospace; font-size: 11px; color: var(--text-secondary); letter-spacing: 3px; animation: typewriter 2s steps(30) infinite alternate; }
@keyframes typewriter { from { opacity: 0.4; } to { opacity: 1; } }


#hover-info {
  position: fixed; background: var(--panel-bg); border: 1px solid var(--cyber-cyan);
  color: var(--cyber-cyan); padding: 6px 14px; font-family: 'Orbitron', monospace; font-size: 10px;
  letter-spacing: 2px; pointer-events: none; z-index: 100; display: none;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  box-shadow: 0 0 15px rgba(0,245,255,0.3); white-space: nowrap;
}


#info-panel {
  position: fixed; right: -460px; top: 0; width: 440px; height: 100vh;
  background: var(--panel-bg); backdrop-filter: blur(20px);
  border-left: 1px solid rgba(0,245,255,0.3);
  box-shadow: -20px 0 80px rgba(0,0,0,0.8), -1px 0 0 rgba(0,245,255,0.1);
  transition: right 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 50; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: rgba(0,245,255,0.3) transparent;
  overflow-y: auto;
}
#info-panel.visible { right: 0; }
#info-panel::-webkit-scrollbar { width: 3px; }
#info-panel::-webkit-scrollbar-track { background: transparent; }
#info-panel::-webkit-scrollbar-thumb { background: rgba(0,245,255,0.3); border-radius: 2px; }

#panel-header {
  position: sticky; top: 0; background: rgba(0,4,20,0.98);
  border-bottom: 1px solid rgba(0,245,255,0.15); padding: 20px 24px 16px;
  z-index: 10; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
#country-name { font-family: 'Orbitron', monospace; font-size: 16px; font-weight: 700; color: var(--cyber-cyan); text-shadow: 0 0 15px rgba(0,245,255,0.5); letter-spacing: 2px; line-height: 1.3; flex: 1; }
#close-panel {
  width: 32px; height: 32px; flex-shrink: 0; background: none; border: 1px solid rgba(0,245,255,0.3);
  color: var(--cyber-cyan); font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
#close-panel:hover { background: rgba(255,30,30,0.2); border-color: rgba(255,80,80,0.6); color: #ff5555; box-shadow: 0 0 15px rgba(255,30,30,0.3); }

#panel-body { padding: 0 24px 40px; }

#country-flag-wrap { position: relative; margin: 20px 0; overflow: hidden; min-height: 180px; }
#country-flag-wrap.flag-loading {
  background: linear-gradient(90deg, rgba(0,245,255,0.04) 25%, rgba(0,245,255,0.10) 50%, rgba(0,245,255,0.04) 75%);
  background-size: 200% 100%; animation: flagShimmer 1.2s ease-in-out infinite;
  border: 1px solid rgba(0,245,255,0.15);
}
@keyframes flagShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
#country-flag {
  width: 100%; height: 180px; display: block;
  border: 1px solid rgba(0,245,255,0.2); background-color: rgba(0,245,255,0.04);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  transition: background-image 0.1s;
}
#flag-scan { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(0,245,255,0.05) 50%, transparent 100%); animation: flagScan 3s ease-in-out infinite; }
@keyframes flagScan { 0% { transform: translateY(-100%); } 100% { transform: translateY(200%); } }

#panel-tabs { display: flex; gap: 2px; margin-bottom: 20px; border-bottom: 1px solid rgba(0,245,255,0.1); }
.tab-btn {
  flex: 1; padding: 8px 4px; background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--text-secondary); font-family: 'Orbitron', monospace; font-size: 8px; letter-spacing: 1.5px;
  cursor: pointer; transition: all 0.2s; text-transform: uppercase;
}
.tab-btn.active { color: var(--cyber-cyan); border-bottom-color: var(--cyber-cyan); text-shadow: 0 0 10px rgba(0,245,255,0.5); }
.tab-btn:hover:not(.active) { color: var(--text-primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

.info-row { display: flex; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(0,245,255,0.06); gap: 12px; }
.info-row:last-child { border-bottom: none; }
.info-icon { width: 28px; height: 28px; flex-shrink: 0; background: rgba(0,245,255,0.07); border: 1px solid rgba(0,245,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 13px; clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%); }
.info-label { font-family: 'Share Tech Mono', monospace; font-size: 9px; color: rgba(0,245,255,0.5); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 3px; }
.info-value { font-family: 'Rajdhani', sans-serif; font-size: 14px; font-weight: 500; color: var(--text-primary); line-height: 1.3; text-align: justify; }
.info-value.highlight { color: var(--cyber-cyan); font-family: 'Orbitron', monospace; font-size: 12px; text-align: left; }

.stat-bar-wrap { margin-top: 4px; }
.stat-bar { height: 3px; background: rgba(0,245,255,0.1); border-radius: 2px; overflow: hidden; margin-bottom: 8px; }
.stat-bar-fill { height: 100%; background: linear-gradient(90deg, var(--cyber-cyan), rgba(0,245,255,0.4)); box-shadow: 0 0 6px var(--cyber-cyan); transition: width 1s cubic-bezier(0.23, 1, 0.32, 1); }

.section-title {
  font-family: 'Orbitron', monospace; font-size: 9px; letter-spacing: 3px; color: rgba(0,245,255,0.4);
  text-transform: uppercase; margin: 20px 0 10px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(0,245,255,0.1); position: relative;
}
.section-title::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 40px; height: 1px; background: var(--cyber-cyan); box-shadow: 0 0 6px var(--cyber-cyan); }


#city-list { display: flex; flex-direction: column; gap: 4px; }
.city-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px;
  background: rgba(0,245,255,0.03); border: 1px solid rgba(0,245,255,0.08);
  border-left: 2px solid rgba(0,245,255,0.3); cursor: pointer; transition: all 0.2s;
}
.city-item:hover { background: rgba(255,215,0,0.08); border-left: 2px solid rgba(255,215,0,0.5); cursor: pointer; }
.city-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyber-cyan); box-shadow: 0 0 6px var(--cyber-cyan); flex-shrink: 0; margin-top: 6px; }
.city-item-main { flex: 1; min-width: 0; }
.city-item-header { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-primary); }
.city-item-header:hover { color: var(--cyber-cyan); }
.city-pop { margin-left: auto; font-family: 'Share Tech Mono', monospace; font-size: 9px; color: var(--text-secondary); flex-shrink: 0; }
.city-chevron { font-size: 10px; color: rgba(0,245,255,0.4); flex-shrink: 0; transition: color 0.2s; }
.city-item:hover .city-chevron { color: var(--cyber-cyan); }
.city-item-detail { margin-top: 8px; padding: 8px 0 4px; border-top: 1px solid rgba(0,245,255,0.1); animation: expandFade 0.2s ease; }
@keyframes expandFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.city-detail-row { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; font-size: 11px; }
.city-detail-label { font-family: 'Share Tech Mono', monospace; font-size: 9px; color: rgba(0,245,255,0.4); letter-spacing: 1.5px; text-transform: uppercase; }
.city-detail-row span:last-child { color: var(--text-primary); font-family: 'Share Tech Mono', monospace; font-size: 10px; }
.city-detail-desc { margin-top: 6px; font-size: 11px; color: var(--text-secondary); font-family: 'Rajdhani', sans-serif; line-height: 1.4; border-left: 2px solid rgba(0,245,255,0.2); padding-left: 8px; text-align: justify; }

.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.badge { padding: 3px 10px; background: rgba(0,245,255,0.07); border: 1px solid rgba(0,245,255,0.2); color: var(--cyber-cyan); font-family: 'Share Tech Mono', monospace; font-size: 9px; letter-spacing: 1px; clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%); }


#risk-content { padding: 4px 0; }
.risk-empty { color: rgba(0,245,255,0.3); font-family: 'Share Tech Mono', monospace; font-size: 10px; padding: 16px 0; text-align: center; letter-spacing: 2px; }
.risk-level-badge { display: inline-block; padding: 5px 18px; margin-bottom: 14px; font-family: 'Orbitron', monospace; font-size: 11px; font-weight: 700; letter-spacing: 3px; clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%); }
.risk-low      { background: rgba(0,255,136,0.12); border: 1px solid rgba(0,255,136,0.5); color: #00ff88; }
.risk-medium   { background: rgba(255,215,0,0.12); border: 1px solid rgba(255,215,0,0.5); color: #ffd700; }
.risk-high     { background: rgba(255,100,0,0.12); border: 1px solid rgba(255,100,0,0.6); color: #ff6400; }
.risk-critical { background: rgba(255,30,30,0.15); border: 1px solid rgba(255,50,50,0.7); color: #ff3333; box-shadow: 0 0 12px rgba(255,30,30,0.2); }
.risk-summary { font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 500; color: var(--text-primary); line-height: 1.5; margin-bottom: 14px; padding: 10px 12px; background: rgba(0,245,255,0.03); border-left: 2px solid rgba(0,245,255,0.3); text-align: justify; }
.risk-category { margin-bottom: 12px; padding: 10px 12px; background: rgba(0,4,20,0.5); border: 1px solid rgba(0,245,255,0.1); }
.risk-cat-title { font-family: 'Orbitron', monospace; font-size: 9px; letter-spacing: 2px; color: var(--cyber-cyan); text-transform: uppercase; margin-bottom: 6px; }
.risk-cat-body { font-family: 'Rajdhani', sans-serif; font-size: 12px; color: var(--text-secondary); line-height: 1.5; text-align: justify; }
.risk-updated { font-family: 'Share Tech Mono', monospace; font-size: 9px; color: rgba(0,245,255,0.3); letter-spacing: 1px; margin-top: 12px; text-align: right; }


.country { fill: rgba(0, 20, 80, 0.85); stroke: rgba(0,245,255,0.5); stroke-width: 0.4; transition: fill 0.2s, stroke 0.2s; cursor: crosshair; }
.country:hover { fill: var(--hot-red); stroke: var(--hot-red-border); filter: url(#glow); }
.country.selected { fill: var(--hot-red); stroke: var(--hot-red-border); filter: url(#glow); }
.city-marker { fill: rgba(0,245,255,0.8); stroke: rgba(0,245,255,0.3); stroke-width: 0.5; cursor: pointer; transition: all 0.2s; }
.city-marker:hover { cursor: pointer; }
.city-label { fill: rgba(0,245,255,0.7); font-family: 'Share Tech Mono', monospace; font-size: 5px; pointer-events: none; letter-spacing: 0.5px; }


@keyframes flicker { 0%, 95%, 100% { opacity: 1; } 96% { opacity: 0.7; } 97% { opacity: 1; } 98% { opacity: 0.5; } 99% { opacity: 1; } }
@keyframes neonPulse { 0%, 100% { text-shadow: 0 0 10px #00f5ff, 0 0 20px #00f5ff, 0 0 30px #00f5ff; } 50% { text-shadow: 0 0 20px #00f5ff, 0 0 40px #00f5ff, 0 0 60px #00f5ff; } }
@keyframes borderPulse { 0%, 100% { border-color: #00f5ff; box-shadow: 0 0 20px rgba(0,245,255,0.5); } 50% { border-color: rgba(0,245,255,0.4); box-shadow: 0 0 10px rgba(0,245,255,0.2); } }


#status-bar {
  position: fixed; bottom: 0; left: 0; right: 0; height: 32px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; padding: 0 80px;
  background: linear-gradient(0deg, rgba(0,8,30,0.95) 0%, transparent 100%);
  border-top: 1px solid rgba(0,245,255,0.1);
}
#status-left, #status-right { font-family: 'Share Tech Mono', monospace; font-size: 9px; color: rgba(0,245,255,0.4); letter-spacing: 2px; text-transform: uppercase; }
#status-coords { font-family: 'Share Tech Mono', monospace; font-size: 10px; color: rgba(0,245,255,0.6); letter-spacing: 1px; }

#mode-badge { position: fixed; top: 72px; right: 30px; font-family: 'Orbitron', monospace; font-size: 9px; letter-spacing: 3px; color: rgba(0,245,255,0.5); z-index: 20; text-transform: uppercase; writing-mode: vertical-rl; }


#city-popup { position: fixed; background: var(--panel-bg); border: 1px solid rgba(0,245,255,0.4); box-shadow: 0 0 40px rgba(0,0,0,0.8), 0 0 20px rgba(0,245,255,0.1); padding: 16px 20px; z-index: 200; width: 260px; display: none; pointer-events: all; clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%); }
#city-popup-name { font-family: 'Orbitron', monospace; font-size: 12px; color: var(--cyber-cyan); letter-spacing: 2px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(0,245,255,0.15); }
.popup-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 11px; color: var(--text-secondary); }
.popup-row span:last-child { color: var(--text-primary); font-family: 'Share Tech Mono', monospace; }
#city-popup-close { position: absolute; top: 8px; right: 14px; background: none; border: none; color: rgba(0,245,255,0.4); cursor: pointer; font-size: 14px; padding: 2px 6px; }
#city-popup-close:hover { color: #ff5555; }


#issues-content { padding: 4px 0; }
.issues-empty { color: rgba(0,245,255,0.3); font-family: 'Share Tech Mono', monospace; font-size: 10px; padding: 16px 0; text-align: center; letter-spacing: 2px; }
.issue-severity { display: inline-block; padding: 3px 12px; margin-bottom: 8px; font-family: 'Orbitron', monospace; font-size: 9px; font-weight: 700; letter-spacing: 2px; clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%); }
.issue-severity.risk-low      { background: rgba(0,255,136,0.12); border: 1px solid rgba(0,255,136,0.5);  color: #00ff88; }
.issue-severity.risk-medium   { background: rgba(255,215,0,0.12);  border: 1px solid rgba(255,215,0,0.5);  color: #ffd700; }
.issue-severity.risk-high     { background: rgba(255,100,0,0.12);  border: 1px solid rgba(255,100,0,0.6);  color: #ff6400; }
.issue-severity.risk-critical { background: rgba(255,30,30,0.15);  border: 1px solid rgba(255,50,50,0.7);  color: #ff3333; box-shadow: 0 0 10px rgba(255,30,30,0.15); }
.issue-item { margin-bottom: 12px; padding: 10px 12px; background: rgba(0,4,20,0.5); border: 1px solid rgba(0,245,255,0.1); border-left: 2px solid rgba(0,245,255,0.25); transition: border-left-color 0.2s; }
.issue-item:hover { border-left-color: var(--cyber-cyan); }
.issue-title { font-family: 'Orbitron', monospace; font-size: 9px; letter-spacing: 2px; color: var(--cyber-cyan); text-transform: uppercase; margin-bottom: 6px; }
.issue-body { font-family: 'Rajdhani', sans-serif; font-size: 12px; color: var(--text-secondary); line-height: 1.5; text-align: justify; }
.issues-updated { font-family: 'Share Tech Mono', monospace; font-size: 9px; color: rgba(0,245,255,0.3); letter-spacing: 1px; margin-top: 12px; text-align: right; }


#areas-content { padding: 4px 0; }
.areas-empty { color: rgba(0,245,255,0.3); font-family: 'Share Tech Mono', monospace; font-size: 10px; padding: 16px 0; text-align: center; letter-spacing: 2px; }
.areas-city-group { margin-bottom: 16px; }
.areas-city-label { font-family: 'Orbitron', monospace; font-size: 9px; letter-spacing: 3px; color: rgba(0,245,255,0.5); text-transform: uppercase; padding: 6px 0 6px 4px; margin-bottom: 6px; border-bottom: 1px solid rgba(0,245,255,0.08); display: flex; align-items: center; gap: 8px; }
.areas-city-label::before { content: ''; display: inline-block; width: 24px; height: 1px; background: var(--cyber-cyan); box-shadow: 0 0 4px var(--cyber-cyan); }
.area-item { margin-bottom: 8px; padding: 10px 12px; background: rgba(0,4,20,0.5); border: 1px solid rgba(0,245,255,0.08); position: relative; overflow: hidden; transition: border-color 0.2s; }
.area-item:hover { border-color: rgba(0,245,255,0.2); }
.area-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.area-item.area-low::before      { background: #00ff88; box-shadow: 0 0 6px rgba(0,255,136,0.5); }
.area-item.area-medium::before   { background: #ffd700; box-shadow: 0 0 6px rgba(255,215,0,0.5); }
.area-item.area-high::before     { background: #ff6400; box-shadow: 0 0 6px rgba(255,100,0,0.5); }
.area-item.area-critical::before { background: #ff3333; box-shadow: 0 0 8px rgba(255,30,30,0.6); }
.area-item-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.area-name { font-family: 'Orbitron', monospace; font-size: 9px; letter-spacing: 1.5px; color: var(--text-primary); text-transform: uppercase; flex: 1; line-height: 1.4; }
.area-risk-badge { flex-shrink: 0; padding: 2px 8px; font-family: 'Orbitron', monospace; font-size: 8px; font-weight: 700; letter-spacing: 1.5px; clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%); }
.area-risk-badge.risk-low      { background: rgba(0,255,136,0.12); border: 1px solid rgba(0,255,136,0.5);  color: #00ff88; }
.area-risk-badge.risk-medium   { background: rgba(255,215,0,0.12);  border: 1px solid rgba(255,215,0,0.5);  color: #ffd700; }
.area-risk-badge.risk-high     { background: rgba(255,100,0,0.12);  border: 1px solid rgba(255,100,0,0.6);  color: #ff6400; }
.area-risk-badge.risk-critical { background: rgba(255,30,30,0.15);  border: 1px solid rgba(255,50,50,0.7);  color: #ff3333; box-shadow: 0 0 8px rgba(255,30,30,0.15); }
.area-body { font-family: 'Rajdhani', sans-serif; font-size: 12px; color: var(--text-secondary); line-height: 1.5; border-left: 2px solid rgba(0,245,255,0.1); padding-left: 8px; text-align: justify; }
.areas-updated { font-family: 'Share Tech Mono', monospace; font-size: 9px; color: rgba(0,245,255,0.3); letter-spacing: 1px; margin-top: 12px; text-align: right; }

#panel-tabs .tab-btn { font-size: 7.5px; letter-spacing: 1px; padding: 8px 2px; }


@keyframes softPulse {
  0%   { filter: drop-shadow(0 0 2px currentColor); opacity: 0.9; }
  50%  { filter: drop-shadow(0 0 8px currentColor); opacity: 1; }
  100% { filter: drop-shadow(0 0 2px currentColor); opacity: 0.9; }
}
.city-marker[data-selected="1"],
.custom-marker[data-selected="1"],
.city-dot3d[data-selected="1"],
.custom-dot3d[data-selected="1"] {
  animation: softPulse 2s ease-in-out infinite;
}
@keyframes dotHoverPulse {
  0%   { filter: drop-shadow(0 0 3px rgba(255,215,0,0.7));  opacity: 0.95; }
  50%  { filter: drop-shadow(0 0 10px rgba(255,215,0,1)) drop-shadow(0 0 18px rgba(255,180,0,0.7)); opacity: 1; }
  100% { filter: drop-shadow(0 0 3px rgba(255,215,0,0.7));  opacity: 0.95; }
}

.city-item:hover .city-item-header span:first-child {
  color: #ffd700;
}

#team .team-grid {
  display: flex;
  justify-content: center;
}
