:root {
  --bg-dark: #020617;
  --neon-pink: #ff007f;
  --usmm-blue: #00d4ff;
  --neon-yellow: #ffff00;
  --neon-green: #22c55e;
  --neon-red: #ef4444;
  --wire: rgba(255, 255, 0, 0.1);
}

body {
  margin: 0;
  background-color: var(--bg-dark);
  font-family: 'Tilt Neon', sans-serif;
  color: #f8fafc;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

.cyber-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #0f172a 0%, #020617 70%);
}

/* Nodes Layer */
.nodes-layer {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 10;
  pointer-events: none;
}

.dock {
  position: absolute;
  width: 40px; /* Smaller nodes for density */
  height: 40px;
  background: #0f172a;
  border: 2px solid #1e293b;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  transition: opacity 0.5s ease-out;
  animation: fadeIn 0.5s ease-out;
  transform: translate(-50%, -50%); /* Center anchor */
  z-index: 20;
}

.dock img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.dock-glow {
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 50%;
  border: 1px solid var(--neon-yellow);
  opacity: 0.4;
}

/* Centered Hub */
.hub-wrapper.centered-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.usmm-core {
  width: 140px;
  height: 121px;
  background: var(--neon-pink);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  filter: drop-shadow(0 0 10px var(--neon-pink));
  transition: filter 0.3s ease;
}

.core-layer-1 {
  width: 136px; 
  height: 117px;
  background: var(--bg-dark); 
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.core-layer-2 {
  width: 128px; 
  height: 110px;
  background: var(--neon-pink);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.core-inner {
  width: 124px;
  height: 106px;
  background: var(--bg-dark);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  color: var(--usmm-blue);
  font-size: 1.8rem;
  font-weight: bold;
  text-shadow: 0 0 15px var(--usmm-blue);
  letter-spacing: 2px;
}

.core-ring {
  position: absolute;
  top: -20px; left: -20px; right: -20px; bottom: -20px;
  border: 1px dashed var(--neon-yellow);
  border-radius: 50%;
  opacity: 0.1;
  animation: spin 20s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.hub-status {
  position: absolute;
  bottom: -40px;
  width: 300px;
  text-align: center;
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 3px;
  transition: color 0.3s ease;
}

/* Wires */
.pipeline-svg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

.wire-path {
  fill: none;
  stroke-width: 1;
  opacity: 0.3;
  transition: stroke 0.3s ease;
}

/* Packets */
.packet-layer {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 15;
}

.packet {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.dry-run-banner {
  font-family: 'Tilt Neon', sans-serif;
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--neon-red);
  color: white;
  padding: 6px 24px;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 4px;
  z-index: 100;
  letter-spacing: 3px;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
  pointer-events: none;
}

.packet.dry {
  border: 1px solid white;
}

.packet-label {
  display: none; /* Hide for density */
}

.active-core {
  animation: coreProcess 3s infinite linear;
}

.active-core .core-inner {
  animation: counterRotate 3s infinite linear;
}

@keyframes coreProcess {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes counterRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
