/* Premium Cinematic Loading Spinner */
.loading {
  position: fixed;
  z-index: 99999;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  transition: opacity 0.3s ease;
}

.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.loading.is-hidden,
.loading.is-hidden:before,
.loading.is-hidden:after {
  animation: none !important;
  -webkit-animation: none !important;
  -moz-animation: none !important;
  -ms-animation: none !important;
  -o-animation: none !important;
}

/* Warm ambient overlay */
.loading:before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 40%, rgba(212, 168, 83, 0.08) 0%, rgba(5, 5, 8, 0.5) 70%);
  z-index: -1;
  transition: opacity 0.3s ease;
}

.loading.is-hidden:before {
  opacity: 0;
}

.loading:not(:required) {
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}

.loading:not(:required):after {
  content: '';
  display: block;
  width: 2em;
  height: 2em;
  margin-top: -0.5em;
  border-radius: 50%;
  background: transparent;
  -webkit-animation: spinner 1.5s ease-in-out infinite;
  -moz-animation: spinner 1.5s ease-in-out infinite;
  -ms-animation: spinner 1.5s ease-in-out infinite;
  -o-animation: spinner 1.5s ease-in-out infinite;
  animation: spinner 1.5s ease-in-out infinite;
  /* Gold ring + outer glow */
  -webkit-box-shadow:
    0 0 0 2px rgba(212, 168, 83, 0.6),
    0 0 0 4px rgba(212, 168, 83, 0.15),
    0 0 24px rgba(212, 168, 83, 0.08);
  box-shadow:
    0 0 0 2px rgba(212, 168, 83, 0.6),
    0 0 0 4px rgba(212, 168, 83, 0.15),
    0 0 24px rgba(212, 168, 83, 0.08);
  transform: scale(0.85);
}

.loading.is-hidden:after {
  opacity: 0;
}

@-webkit-keyframes spinner {
  0%   { transform: rotate(0deg) scale(0.85); opacity: 0.7; }
  50%  { transform: rotate(180deg) scale(1.0); opacity: 1; }
  100% { transform: rotate(360deg) scale(0.85); opacity: 0.7; }
}
@-moz-keyframes spinner {
  0%   { transform: rotate(0deg) scale(0.85); opacity: 0.7; }
  50%  { transform: rotate(180deg) scale(1.0); opacity: 1; }
  100% { transform: rotate(360deg) scale(0.85); opacity: 0.7; }
}
@-o-keyframes spinner {
  0%   { transform: rotate(0deg) scale(0.85); opacity: 0.7; }
  50%  { transform: rotate(180deg) scale(1.0); opacity: 1; }
  100% { transform: rotate(360deg) scale(0.85); opacity: 0.7; }
}
@keyframes spinner {
  0%   { transform: rotate(0deg) scale(0.85); opacity: 0.7; }
  50%  { transform: rotate(180deg) scale(1.0); opacity: 1; }
  100% { transform: rotate(360deg) scale(0.85); opacity: 0.7; }
}