.net-status {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 99999;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Close button inside the pill */
.net-status-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.375rem;
  margin-right: -0.375rem;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  opacity: 0.7;
}
.net-status-close:hover {
  background: rgba(255,255,255,0.3);
  opacity: 1;
}
.net-status-close:active {
  transform: scale(0.9);
}

.net-status.online {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  box-shadow: 
    0 8px 32px rgba(5, 150, 105, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.net-status.offline {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  box-shadow: 
    0 8px 32px rgba(220, 38, 38, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  animation: pulse-offline 2s ease-in-out infinite;
}

@keyframes pulse-offline {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.net-status.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px) scale(0.95);
}

/* Icon in status */
.net-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.net-status.online::before {
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.net-status.offline::before {
  background: #fff;
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}