/* ===== STATUS BAR (TOP) ===== */
.portal-status-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 48px;
  background: linear-gradient(180deg, rgba(3,7,18,0.95) 0%, rgba(15,23,42,0.85) 100%);
  border-bottom: 1px solid rgba(0,245,212,0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 1000;
  backdrop-filter: blur(12px);
  font-size: 0.8rem;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.portal-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--portal-primary);
  text-shadow: 0 0 10px rgba(0,245,212,0.5);
}
.portal-logo::before {
  content: '??';
  animation: spin 4s linear infinite;
}

.connection-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  background: rgba(0,180,216,0.15);
  border: 1px solid var(--quic-blue);
  border-radius: 20px;
  font-size: 0.75rem;
}
.connection-dot {
  width: 8px; height: 8px;
  background: var(--status-online);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 8px var(--status-online);
}

.protocol-tags {
  display: flex;
  gap: 0.5rem;
}
.proto-tag {
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}
.proto-tag.quic { 
  background: rgba(0,180,216,0.2); 
  color: var(--quic-blue); 
  border: 1px solid var(--quic-blue); 
}
.proto-tag.ws { 
  background: rgba(255,158,100,0.2); 
  color: var(--ws-orange); 
  border: 1px solid var(--ws-orange); 
}
.proto-tag.cdn { 
  background: rgba(157,78,221,0.2); 
  color: var(--cdn-purple); 
  border: 1px solid var(--cdn-purple); 
}

.status-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.latency-display {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--terminal-green);
}
.latency-value { font-weight: 700; }

.cdn-node {
  padding: 0.2rem 0.6rem;
  background: rgba(157,78,221,0.15);
  border-radius: 4px;
  font-size: 0.75rem;
  border-left: 2px solid var(--cdn-purple);
}

/* ===== NETWORK VISUALIZER PANEL ===== */
.network-panel {
  position: fixed;
  right: 1rem;
  top: 60px;
  width: 280px;
  background: rgba(7,17,34,0.95);
  border: 1px solid rgba(157,78,221,0.4);
  border-radius: 12px;
  padding: 1rem;
  z-index: 998;
  backdrop-filter: blur(10px);
  font-size: 0.75rem;
  opacity: 0;
  transform: translateX(20px);
}
.panel-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--cdn-purple);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.network-list {
  list-style: none;
}
.network-item {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(157,78,221,0.2);
}
.network-item:last-child { border-bottom: none; }
.node-name { color: #cbd5e1; }
.node-status { color: var(--status-online); }
.node-latency { color: var(--terminal-green); font-weight: 600; }

.network-stats {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(157,78,221,0.3);
}
.stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}
.stat-row:last-child { margin-bottom: 0; }
.stat-value { color: var(--terminal-green); font-weight: 600; }

/* ===== RESPONSIVE NETWORK PANEL ===== */
@media (max-width: 1024px) {
  .network-panel { display: none; }
}