:root{
  --bg:#0b0507;
  --burg:#14070a;
  --panel:#1a0c0f;
  --panel2:#13070a;
  --text:#fff;
  --muted:rgba(255,255,255,.65);
  --accent:#ff2a2a;
  --accent2:#ff4b5c;
  --border:rgba(255,42,42,.22);
  --glow:rgba(255,42,42,.18);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(1000px 560px at 60% 0%, rgba(255,42,42,.16), transparent 58%),
    radial-gradient(900px 520px at 15% 20%, rgba(255,75,92,.12), transparent 58%),
    var(--bg);
}

.shell{
  min-height:100vh;
  padding:18px;
}


.topbar{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:end;                 
  padding: 6px 14px 14px;         
  letter-spacing:3px;
  font-size:12px;
  color:rgba(255,255,255,.78);
}

.top-left{ justify-self:start; }

.top-center{
  justify-self:center;
  align-self:center;
  padding-bottom: 6px;            
}

.top-right{
  justify-self:end;
  display:flex;
  align-items:end;                
  gap:10px;
}

.top-logo{
  height:72px;                     
  width:auto;
  opacity:.95;
  filter: drop-shadow(0 0 14px rgba(255,42,42,.26));
  user-select:none;
  pointer-events:none;
}

.dl-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(255,42,42,.35);
  background:rgba(0,0,0,.22);
  color:rgba(255,255,255,.9);
  text-decoration:none;
  letter-spacing:1.2px;
  font-size:12px;
  box-shadow:0 0 18px rgba(255,42,42,.10);
}

.dl-btn:hover{
  background:rgba(255,42,42,.10);
  border-color:rgba(255,42,42,.55);
}

.loading{
  margin:0 10px 10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,42,42,.18);
  background:rgba(255,42,42,.06);
}

.grid{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap:16px;
  align-items:start;
}

.leftcol{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:10px;
  border-radius:18px;
  border:1px solid rgba(255,42,42,.14);
  background:linear-gradient(180deg, rgba(255,42,42,.05), transparent 60%), rgba(0,0,0,.18);
  box-shadow:0 0 30px rgba(255,42,42,.10);
}

.metric{
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(255,42,42,.14);
  background:rgba(0,0,0,.18);
}
.metric-num{
  font-size:46px;
  font-weight:800;
  letter-spacing:.5px;
  color:rgba(255,255,255,.92);
}
.metric-label{
  margin-top:6px;
  font-size:12px;
  letter-spacing:2px;
  color:rgba(255,255,255,.72);
}
.metric-sub{
  margin-top:6px;
  font-size:12px;
  color:var(--muted);
}
.metric-sub code{
  color:rgba(255,255,255,.75);
  background:rgba(255,42,42,.08);
  padding:2px 6px;
  border-radius:8px;
  border:1px solid rgba(255,42,42,.14);
}

.panel{
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(255,42,42,.14);
  background:rgba(0,0,0,.18);
}
.panel-title{
  font-size:12px;
  letter-spacing:2px;
  color:rgba(255,255,255,.72);
  margin-bottom:10px;
}

.mapwrap{
  position:relative;
  border:none;
  background:transparent;
  box-shadow:none;
}

.mapframe{
  position:relative;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,42,42,.20);
  background:linear-gradient(180deg, rgba(255,42,42,.05), transparent 60%), rgba(0,0,0,.18);
  box-shadow:0 0 36px rgba(255,42,42,.12);
}

.map-logo{
  position:absolute;
  top:14px;
  right:14px;
  height:52px;        
  width:auto;
  z-index:1000;
  pointer-events:none;
  filter: drop-shadow(0 0 12px rgba(255,42,42,.35));
}

#map{
  height: calc(100vh - 0px);
  min-height:560px;
}

.muted{opacity:.9}

/* lists */
.list{
  list-style:none;
  margin:0;
  padding:0;
  max-height:260px;
  overflow:auto;
  border-radius:14px;
  border:1px solid rgba(255,42,42,.14);
  background:rgba(0,0,0,.14);
}
.list li{
  padding:10px 12px;
  border-bottom:1px solid rgba(255,42,42,.10);
  font-size:12.5px;
  line-height:1.35;
}
.list li:nth-child(odd){background:rgba(255,42,42,.03)}
.list li:hover{background:rgba(255,42,42,.14)}

.bottom-panel{
  margin-top:14px;
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(255,42,42,.14);
  background:rgba(0,0,0,.18);
  box-shadow:0 0 26px rgba(255,42,42,.10);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip{
  background:var(--panel2);
  color:var(--text);
  border:1px solid rgba(255,42,42,.18);
  box-shadow:0 0 18px rgba(255,42,42,.14);
}
.leaflet-popup-content{margin:10px 12px}

.neon-dot .glow-dot{
  width:12px;height:12px;border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 10px rgba(255,42,42,.9), 0 0 26px rgba(255,42,42,.55);
  animation:pulse 1.8s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{transform:scale(1);opacity:.95}
  50%{transform:scale(1.25);opacity:.75}
}

@media (max-width: 1020px){
  .grid{grid-template-columns:1fr}
  #map{height:60vh; min-height:420px}
}

.leaflet-container {
  background: #000;                 
  outline: none;
}

.leaflet-tile {
  outline: 1px solid transparent;   
  image-rendering: -webkit-optimize-contrast;
  transform: translateZ(0);
  background: #000;

}


.leaflet-tile-container {
  will-change: transform;
}
.leaflet-pane { transform: translateZ(0); }

#cve-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,42,42,.6) rgba(0,0,0,.25);
}


#cve-list::-webkit-scrollbar {
  width: 8px;
}
#cve-list::-webkit-scrollbar-track {
  background: rgba(0,0,0,.25);
  border-radius: 10px;
}
#cve-list::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(255,42,42,.9),
    rgba(255,75,92,.7)
  );
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(255,42,42,.6);
}

.cve-item {
  cursor: pointer;
  padding: 14px 16px;
  transition: background 0.2s ease;
}
.cve-item:hover {
  background: rgba(255,42,42,.12);
}

.cve-header{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.cve-headtext{
  flex:1;
  min-width:0;
}

.cve-headtop{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:baseline;
}

.cve-meta{
  font-size:12px;
  color:rgba(255,255,255,.6);
  white-space:nowrap;
}

.cve-dot{
  margin:0 6px;
  opacity:.5;
}

.cve-title{
  margin-top:4px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.cve-score{
  min-width: 54px;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  color: #0b0507;
  background: linear-gradient(180deg, rgba(255,42,42,.95), rgba(255,75,92,.75));
  border: 1px solid rgba(255,42,42,.55);
  padding: 6px 10px;
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(255,42,42,.22);
}

.cve-id {
  font-size: 12px;
  opacity: 0.8;
  letter-spacing: 1px;
}

.cve-title {
  font-size: 13.5px;
  line-height: 1.4;
  color: rgba(255,255,255,.92);
}

.cve-desc {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,.75);
}

.cve-item.open {
  box-shadow: inset 0 0 0 1px rgba(255,42,42,.25);
}
.mini-list{
  list-style:none;
  margin:10px 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.mini-list li{
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:13px;
  line-height:1.2;
  padding:6px 0;
  border-bottom:1px solid rgba(255,42,42,.10);
}

.mini-list li:last-child{border-bottom:none;}

.svc-name{
  color:rgba(255,255,255,.88);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.svc-count{
  color:var(--accent);
  font-weight:800;
}
