/* ---- Zenopay 加载动画 ---- */

.app-loading {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f4ff 0%, #fdf2f8 40%, #f0fdf4 100%);
  z-index: 99999;
}

/* ---- 变形球 loader ---- */

.app-loader {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #6c5ce7, #00cec9, #fd79a8, #fdcb6e);
  background-size: 300% 300%;
  border-radius: 50%;
  animation: app-morph 2s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(108, 92, 231, 0.25);
}

@keyframes app-morph {
  0%, 100% {
    border-radius: 50%;
    transform: scale(1) rotate(0deg);
    background-position: 0% 50%;
  }
  25% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: scale(1.15) rotate(90deg);
    background-position: 100% 0%;
  }
  50% {
    border-radius: 40% 60%;
    transform: scale(0.9) rotate(180deg);
    background-position: 100% 100%;
  }
  75% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    transform: scale(1.1) rotate(270deg);
    background-position: 0% 100%;
  }
}

/* ---- 品牌文字 ---- */

.app-loader-text {
  margin-top: 24px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 6px;
  color: #5b4cc4;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  animation: app-text-pulse 2s ease-in-out infinite;
}

@keyframes app-text-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}
