/* Pre-React boot loader (shared with src/components/BootingScreen.jsx). Pure CSS, no JS needed. */
html, body { margin: 0; background: #F8FAFC; }
html.dark, html.dark body { background: #0B1B2B; }
.jb-boot {
  position: fixed; inset: 0; z-index: 9999; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; padding: 24px; background: #F8FAFC; color: #12304A;
  font-family: 'Rubik', system-ui, sans-serif;
}
html.dark .jb-boot { background: #0B1B2B; color: #E6EEF5; }
.jb-logo {
  display: block; width: min(290px, 72vw); aspect-ratio: 300 / 109; height: auto;
  animation: jb-in .7s cubic-bezier(.2,.7,.2,1) both;
}
html.dark .jb-logo { box-sizing: border-box; padding: 18px 20px; width: min(330px, 80vw); aspect-ratio: auto; }
.jb-wait { display: flex; flex-direction: column; align-items: center; gap: 14px; animation: jb-fade .5s ease .35s both; }
.jb-bar { position: relative; width: 168px; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(18,48,74,.10); direction: ltr; }
html.dark .jb-bar { background: rgba(255,255,255,.14); }
.jb-bar i { position: absolute; top: 0; bottom: 0; left: 0; width: 42%; border-radius: 3px; background: linear-gradient(90deg, #00A878, #F5A623); animation: jb-sweep 1.3s cubic-bezier(.45,0,.55,1) infinite; }
[dir="rtl"] .jb-bar i { animation-name: jb-sweep-rtl; left: auto; right: 0; }
.jb-cap { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; letter-spacing: 0; opacity: .8; }
.jb-dots { display: inline-flex; gap: 4px; }
.jb-dots b { width: 5px; height: 5px; border-radius: 50%; background: #00A878; animation: jb-dot 1.2s ease-in-out infinite; }
.jb-dots b:nth-child(2) { background: #F5A623; animation-delay: .15s; }
.jb-dots b:nth-child(3) { animation-delay: .3s; }
.jb-static .jb-logo, .jb-static .jb-wait { animation: none; }
.jb-out { animation: jb-out .5s ease forwards; pointer-events: none; }
@keyframes jb-in { from { opacity: 0; transform: scale(.94) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes jb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes jb-sweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(240%); } }
@keyframes jb-sweep-rtl { 0% { transform: translateX(100%); } 100% { transform: translateX(-240%); } }
@keyframes jb-dot { 0%, 80%, 100% { transform: scale(.6); opacity: .45; } 40% { transform: scale(1); opacity: 1; } }
@keyframes jb-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .jb-logo, .jb-wait, .jb-dots b { animation: none !important; }
  .jb-bar i { animation: none !important; width: 100%; opacity: .55; }
}
