.hnx-network-activity {
  position: fixed;
  top: 84px;
  right: 20px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.92);
  color: #f9fafb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.hnx-network-activity.is-active {
  opacity: 1;
  transform: translateY(0);
}

.hnx-network-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.52);
  animation: hnxPulse 1.1s ease-in-out infinite;
}

.hnx-toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1300;
  display: grid;
  gap: 8px;
  pointer-events: none;
  max-width: min(420px, 88vw);
}

.hnx-toast {
  padding: 11px 14px;
  border-radius: 12px;
  color: #f8fafc;
  background: #111827;
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.24);
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hnx-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.hnx-toast-success {
  background: #065f46;
}

.hnx-toast-error,
.hnx-toast-danger {
  background: #9f1239;
}

.hnx-toast-warn,
.hnx-toast-warning {
  background: #92400e;
}

button[aria-busy="true"],
input[type="submit"][aria-busy="true"] {
  position: relative;
  opacity: 0.9;
}

button[aria-busy="true"]::after,
input[type="submit"][aria-busy="true"]::after {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #ffffff;
  border-radius: 999px;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  animation: hnxSpin 0.7s linear infinite;
}

@keyframes hnxSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes hnxPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.52);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}
