.app-loader-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(1.2) blur(1px);
}

.app-loader-core { text-align: center; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial; }
.app-loader-core .label { margin-top: 12px; font-size: 14px; color: #333; }

/* Spinner */
.app-loader-core.spinner .ring {
  width: 60px; height: 60px;
  border: 6px solid #e5e7eb;
  border-top-color: var(--loader-color, #2563eb);
  border-radius: 50%;
  animation: appSpin 1s linear infinite;
}

/* Bar */
.app-loader-core.bar .bar-track {
  width: 240px; height: 6px; background: #e5e7eb; overflow: hidden; border-radius: 999px;
}
.app-loader-core.bar .bar-fill {
  width: 40%; height: 100%;
  background: var(--loader-color, #2563eb);
  animation: appSlide 1.2s ease-in-out infinite;
  border-radius: 999px;
}

/* Dots */
.app-loader-core.dots .dot {
  display: inline-block;
  width: 10px; height: 10px;
  margin: 0 4px; border-radius: 50%;
  background: var(--loader-color, #2563eb);
  animation: appBounce 1s infinite;
}
.app-loader-core.dots .dot:nth-child(2) { animation-delay: 0.1s; }
.app-loader-core.dots .dot:nth-child(3) { animation-delay: 0.2s; }

/* Glass */
.app-loader-core.glass .glass-spinner {
  width: 56px; height: 56px; border-radius: 18px;
  background: radial-gradient(circle at 30% 30%, #60a5fa, #2563eb);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35), inset 0 -6px 12px rgba(255,255,255,0.4);
  animation: appPulse 1.1s ease-in-out infinite;
}

/* Animations */
@keyframes appSpin { to { transform: rotate(360deg); } }
@keyframes appSlide {
  0%   { transform: translateX(-60%); }
  50%  { transform: translateX(20%); }
  100% { transform: translateX(120%); }
}
@keyframes appBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.6; }
  40% { transform: translateY(-8px); opacity: 1; }
}
@keyframes appPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.06); filter: brightness(1.1); }
}
