/* Centered AI-generation loader. Only visible during explicit AI generation. */
#examCrackerAiLoader {
  position: fixed; inset: 0; z-index: 100000; display: none;
  align-items: center; justify-content: center;
  padding: 20px; background: rgba(3, 7, 18, .78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
#examCrackerAiLoader.is-active { display: flex; }
body.ec-loader-open { overflow: hidden !important; }
.ec-ai-loader-card { width: min(440px, 94vw); padding: 30px 26px 24px; text-align: center;
  border: 1px solid rgba(129,140,248,.32); border-radius: 22px;
  background: linear-gradient(180deg, rgba(15,23,42,.99), rgba(9,13,22,.99));
  box-shadow: 0 24px 80px rgba(0,0,0,.55), 0 0 40px rgba(99,102,241,.12); }
.ec-ai-loader-orbit { width: 62px; height: 62px; margin: 0 auto 18px; position: relative; border: 3px solid rgba(129,140,248,.18); border-top-color: #818cf8; border-radius: 50%; animation: ecLoaderSpin .9s linear infinite; }
.ec-ai-loader-orbit span { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #67e8f9; top: -5px; left: 25px; box-shadow: 0 0 14px rgba(103,232,249,.8); }
.ec-ai-loader-orbit span:nth-child(2) { top: 25px; left: -5px; background:#a78bfa; }
.ec-ai-loader-orbit span:nth-child(3) { top: 25px; left: 53px; background:#34d399; }
.ec-ai-loader-title { color:#fff; font:800 1.15rem/1.3 Outfit,system-ui,sans-serif; }
.ec-ai-loader-status { margin-top:8px; min-height:22px; color:#a5b4fc; font:600 .9rem/1.4 Plus Jakarta Sans,system-ui,sans-serif; }
.ec-ai-loader-track { height:7px; margin:22px 0 12px; overflow:hidden; border-radius:999px; background:rgba(255,255,255,.08); }
.ec-ai-loader-track > div { width:12%; height:100%; border-radius:inherit; background:linear-gradient(90deg,#6366f1,#22d3ee); transition:width .35s ease; }
.ec-ai-loader-note { color:#94a3b8; font-size:.76rem; line-height:1.5; }
@keyframes ecLoaderSpin { to { transform:rotate(360deg); } }
@media(max-width:480px) { .ec-ai-loader-card { padding:26px 18px 20px; border-radius:18px; } .ec-ai-loader-title { font-size:1.05rem; } }
