/* Full Page Loading */
.global-loading {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Background blur */
.blur-background {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Card */
.spinner-container {
  position: relative;
  z-index: 10;
  padding: 42px 50px;
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    rgba(30, 41, 59, 0.95),
    rgba(15, 23, 42, 0.95)
  );
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  text-align: center;
}

/* Spinner ring */
.spinner-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    conic-gradient(#22d3ee, #6366f1, #22d3ee);
  animation: spin 1s linear infinite;
  margin: 0 auto 18px;
  position: relative;
}

/* Inner cut */
.spinner-ring::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: #020617;
  border-radius: 50%;
}

/* Text */
.loading-text {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: #e5e7eb;
  letter-spacing: 0.4px;
  animation: pulse 1.6s ease-in-out infinite;
}

/* Animations */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Hide loader */
.global-loading.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
