/* HunterTrades 启动 / 登录加载层 */
#app-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(76, 141, 255, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(61, 214, 140, 0.06) 0%, transparent 50%),
    rgba(11, 15, 20, 0.96);
  backdrop-filter: blur(10px);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

#app-loading-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 36px 44px 32px;
  min-width: 240px;
  border-radius: 20px;
  border: 1px solid rgba(76, 141, 255, 0.18);
  background: linear-gradient(
    165deg,
    rgba(23, 29, 37, 0.92) 0%,
    rgba(15, 20, 28, 0.88) 100%
  );
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  animation: app-loading-card-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes app-loading-card-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.app-loading-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.app-loading-mark {
  position: relative;
  width: 40px;
  height: 36px;
}

.app-loading-mark .bar {
  position: absolute;
  bottom: 4px;
  width: 10px;
  height: 22px;
  border-radius: 2px;
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  box-shadow: 0 0 12px rgba(61, 214, 140, 0.35);
}

.app-loading-mark .bar-left { left: 6px; }
.app-loading-mark .bar-right {
  right: 6px;
  background: linear-gradient(180deg, #4ade80 0%, #ef4444 100%);
  box-shadow: 0 0 12px rgba(61, 214, 140, 0.25);
}

.app-loading-mark .bar::before,
.app-loading-mark .bar::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  border-radius: 1px;
  background: #4ade80;
}

.app-loading-mark .bar::before {
  top: -8px;
  height: 8px;
}

.app-loading-mark .bar::after {
  bottom: -6px;
  height: 6px;
}

.app-loading-mark .bar-right::after {
  background: #f87171;
}

.app-loading-mark .bridge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 5px;
  margin: -2.5px 0 0 -9px;
  border-radius: 2px;
  background: linear-gradient(90deg, #4ade80, #4c8dff);
  opacity: 0.9;
}

.app-loading-name {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c8d4e3;
}

.app-loading-spinner-wrap {
  position: relative;
  width: 52px;
  height: 52px;
}

.app-loading-spinner-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(76, 141, 255, 0.12);
}

.app-loading-spinner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: #4c8dff;
  border-right-color: rgba(76, 141, 255, 0.35);
  animation: app-loading-spin 0.85s cubic-bezier(0.55, 0.15, 0.35, 0.85) infinite;
}

.app-loading-spinner-inner {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: #3dd68c;
  border-left-color: rgba(61, 214, 140, 0.3);
  animation: app-loading-spin 1.2s cubic-bezier(0.55, 0.15, 0.35, 0.85) infinite reverse;
}

.app-loading-copy {
  text-align: center;
  min-height: 44px;
}

.app-loading-text {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #e7ecf3;
  letter-spacing: 0.02em;
}

.app-loading-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #6b7a8f;
  letter-spacing: 0.04em;
}

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