.global-loading {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(3px);
  transition: opacity 150ms ease, visibility 150ms ease;
}

.global-loading.is-active {
  visibility: visible;
  opacity: 1;
}

.global-loading__panel {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 12rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 0.9rem;
  color: #f8fafc;
  background: #0f172a;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
  font: 600 0.95rem/1.4 system-ui, sans-serif;
}

.global-loading__spinner {
  width: 1.4rem;
  height: 1.4rem;
  flex: 0 0 auto;
  border: 3px solid rgba(248, 250, 252, 0.28);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: global-loading-spin 700ms linear infinite;
}

@keyframes global-loading-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .global-loading,
  .global-loading__spinner {
    transition: none;
    animation-duration: 1.5s;
  }
}
