/* Editor boot loading — shown only after mode is chosen (not during drop/format/mode steps) */

html.ae-editor-boot-active,
html.ae-editor-boot-active body {
  background: #06080f !important;
  overflow: hidden;
}

html.ae-editor-boot-active .ae-initial-loader,
html.ae-editor-boot-active [data-ae-upload-shell],
html.ae-editor-boot-active [data-ae-wizard-surface],
html.ae-editor-boot-active [data-ae-fallback-format-grid],
html.ae-editor-boot-active .ae-format-intro,
html.ae-editor-boot-active .ae-mode-intro {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.ae-editor-boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(109, 93, 252, 0.22), transparent 60%),
    rgba(4, 7, 14, 0.94);
  backdrop-filter: blur(18px) saturate(1.15);
}

.ae-editor-boot-card {
  width: min(100%, 420px);
  padding: 28px 26px 24px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(165deg, rgba(14, 20, 36, 0.98) 0%, rgba(8, 12, 24, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 40px 100px -50px rgba(0, 0, 0, 0.9),
    0 0 80px -40px rgba(109, 93, 252, 0.35);
  text-align: center;
  color: #f1f5f9;
}

.ae-editor-boot-eyebrow {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}

.ae-editor-boot-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ae-editor-boot-mode {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.ae-editor-boot-spin {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid rgba(148, 163, 184, 0.25);
  border-top-color: #66ff7a;
  animation: ae-editor-boot-spin 0.85s linear infinite;
}

.ae-editor-boot-dots {
  display: inline-flex;
  gap: 8px;
  margin-top: 4px;
}

.ae-editor-boot-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  animation: ae-editor-boot-dot 1.1s ease-in-out infinite;
}

.ae-editor-boot-dots span:nth-child(1) {
  background: #ff5f6d;
  animation-delay: 0s;
}
.ae-editor-boot-dots span:nth-child(2) {
  background: #ffb020;
  animation-delay: 0.12s;
}
.ae-editor-boot-dots span:nth-child(3) {
  background: #66ff7a;
  animation-delay: 0.24s;
}
.ae-editor-boot-dots span:nth-child(4) {
  background: #15c8ff;
  animation-delay: 0.36s;
}
.ae-editor-boot-dots span:nth-child(5) {
  background: #6d5dfc;
  animation-delay: 0.48s;
}

@keyframes ae-editor-boot-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ae-editor-boot-dot {
  0%,
  80%,
  100% {
    transform: scale(0.65);
    opacity: 0.45;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mode step intro — matches format step */
body.ae-wizard-step-mode .ae-mode-intro {
  display: block;
  margin: 0 0 1.25rem;
  text-align: center;
}

body.ae-wizard-step-mode .ae-mode-intro__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

body.ae-wizard-step-mode .ae-mode-intro__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 3.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
}

body.ae-wizard-step-mode .ae-mode-intro__sub {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #64748b;
}
