/* QuickBooks-style four green dots loading indicator */
.qb-dots-spinner {
  position: relative;
  width: 44px;
  height: 44px;
  animation: qb-dots-rotate 1.1s linear infinite;
}

.qb-dots-spinner span {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2ca01c;
  box-shadow: 0 0 0 1px rgba(44, 160, 28, 0.08);
  animation: qb-dots-pulse 1.1s ease-in-out infinite;
}

.qb-dots-spinner span:nth-child(1) {
  top: 0;
  left: 50%;
  margin-left: -5.5px;
  animation-delay: 0s;
}

.qb-dots-spinner span:nth-child(2) {
  top: 50%;
  right: 0;
  margin-top: -5.5px;
  animation-delay: -0.275s;
}

.qb-dots-spinner span:nth-child(3) {
  bottom: 0;
  left: 50%;
  margin-left: -5.5px;
  animation-delay: -0.55s;
}

.qb-dots-spinner span:nth-child(4) {
  top: 50%;
  left: 0;
  margin-top: -5.5px;
  animation-delay: -0.825s;
}

@keyframes qb-dots-rotate {
  to { transform: rotate(360deg); }
}

@keyframes qb-dots-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.72); opacity: 0.55; }
}

/* Full-page loading overlay (trial setup / virtual app) */
.qb-loading-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(244, 246, 248, 0.96);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.qb-loading-overlay.is-hidden {
  display: none;
}

.qb-loading-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
  max-width: 720px;
  width: 100%;
  display: flex;
  overflow: hidden;
  min-height: 280px;
}

.qb-loading-spinner-col,
.trial-loading-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e2e8f0;
  padding: 2rem;
}

.qb-loading-content,
.trial-loading-right {
  flex: 1.1;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.qb-loading-content .product,
.trial-loading-right .product {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.qb-loading-content ul,
.trial-loading-right ul {
  padding-left: 1.1rem;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.65;
}

.qb-loading-hint,
#trialLoadingHint {
  font-size: 0.92rem;
  color: #64748b;
  margin-top: 1rem;
  margin-bottom: 0;
  min-height: 1.4em;
}

@media (max-width: 768px) {
  .qb-loading-card,
  .trial-loading-card {
    flex-direction: column;
  }
  .qb-loading-spinner-col,
  .trial-loading-left {
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }
}

/* SSO / 启动失败重试面板 */
.qb-trial-retry {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 246, 248, 0.98);
  padding: 1.5rem;
}

.qb-trial-retry.is-hidden {
  display: none;
}

.qb-trial-retry-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  max-width: 420px;
  width: 100%;
  padding: 2rem 1.75rem;
  text-align: center;
}

.qb-trial-retry-spinner {
  margin: 0 auto 1.25rem;
}

.qb-trial-retry-msg {
  color: #b91c1c;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.qb-trial-retry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
