/* ═══════════════════════════════════════════════════════════
   DMA Bootstrap Splash — shown while Angular boots.
   Kept consistent with the in-app page-loader (dark aviation +
   new logo) so there is no jarring white flash on a full reload.
   The .overlay lives inside <app-root> and is replaced when
   Angular renders, so no JS removal logic is required.
   ═══════════════════════════════════════════════════════════ */

.overlay {
    position: fixed;
    inset: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    z-index: 99999999;
    background:
        radial-gradient(120% 120% at 12% 8%, #0b1530 0%, transparent 55%),
        radial-gradient(120% 120% at 90% 100%, #0a1a2e 0%, transparent 50%),
        #050a18;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.overlay .boot-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.overlay .boot-aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.5;
    animation: bootAurora 18s ease-in-out infinite;
}
.overlay .boot-aurora-1 {
    width: 560px;
    height: 560px;
    top: -18%;
    left: -10%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.45), transparent 70%);
}
.overlay .boot-aurora-2 {
    width: 520px;
    height: 520px;
    bottom: -20%;
    right: -8%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 70%);
    animation-delay: -9s;
}
@keyframes bootAurora {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(28px, -24px) scale(1.08); }
}

.overlay .boot-loader {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: bootFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.overlay .boot-mark {
    position: relative;
    width: 168px;
    height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay .boot-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.overlay .boot-ring-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.07);
    stroke-width: 3;
}
.overlay .boot-ring-arc {
    fill: none;
    stroke: url(#bootRingGrad);
    stroke-width: 3;
    stroke-linecap: round;
    transform-origin: 60px 60px;
    filter: drop-shadow(0 0 6px rgba(45, 212, 191, 0.5));
    animation: bootRingSpin 1.4s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}
@keyframes bootRingSpin {
    0% { transform: rotate(0deg); stroke-dasharray: 60 260; }
    50% { stroke-dasharray: 150 170; }
    100% { transform: rotate(360deg); stroke-dasharray: 60 260; }
}

.overlay .boot-logo {
    position: relative;
    width: 104px;
    height: auto;
    object-fit: contain;
    opacity: 0;
    animation:
        bootLogoIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards,
        bootLogoPulse 3.4s ease-in-out 1.1s infinite;
    filter: drop-shadow(0 4px 20px rgba(59, 130, 246, 0.3));
}
@keyframes bootLogoIn {
    from { opacity: 0; transform: scale(0.86); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes bootLogoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.035); }
}

.overlay .boot-bar {
    position: relative;
    width: 168px;
    height: 3px;
    margin-top: 30px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.overlay .boot-bar span {
    position: absolute;
    top: 0;
    left: -45%;
    height: 100%;
    width: 40%;
    border-radius: 99px;
    background: linear-gradient(90deg, #2dd4bf, #3b82f6, #8b5cf6);
    animation: bootBarSlide 1.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes bootBarSlide {
    0% { left: -45%; width: 40%; }
    50% { width: 55%; }
    100% { left: 100%; width: 40%; }
}

@keyframes bootFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .overlay .boot-aurora,
    .overlay .boot-ring-arc,
    .overlay .boot-logo,
    .overlay .boot-bar span,
    .overlay .boot-loader {
        animation: none !important;
    }
    .overlay .boot-loader,
    .overlay .boot-logo { opacity: 1; }
    .overlay .boot-ring-arc { stroke-dasharray: 110 220; opacity: 0.6; }
    .overlay .boot-bar span { left: 0; width: 100%; opacity: 0.7; }
}
