body fuse-splash-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 25%, #eff6ff 50%, #e0f2fe 75%, #f8fafc 100%);
    color: #374151;
    z-index: 999999;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body fuse-splash-screen {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #1e293b 75%, #0f172a 100%);
        color: #cbd5e1;
    }
}

/* Parallax background effect */
body fuse-splash-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    animation: parallaxFloat 15s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@media (prefers-color-scheme: dark) {
    body fuse-splash-screen::before {
        background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 50%), radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    }
}

/* Grid overlay */
body fuse-splash-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    opacity: 0.8;
    z-index: -1;
}

@media (prefers-color-scheme: dark) {
    body fuse-splash-screen::after {
        background: linear-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
        opacity: 0.6;
    }
}

@keyframes parallaxFloat {
    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }
    33% {
        transform: translateY(-10px) translateX(5px);
    }
    66% {
        transform: translateY(5px) translateX(-5px);
    }
}

/* Logo styling with glassmorphism */
body fuse-splash-screen img {
    width: 140px;
    max-width: 140px;
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

@media (prefers-color-scheme: dark) {
    body fuse-splash-screen img {
        border: 1px solid rgba(59, 130, 246, 0.2);
        background: rgba(30, 41, 59, 0.3);
    }
}

/* Loading text */
body fuse-splash-screen .loading-text {
    margin-top: 30px;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, #2563eb, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    z-index: 10;
}

@media (prefers-color-scheme: dark) {
    body fuse-splash-screen .loading-text {
        background: linear-gradient(135deg, #60a5fa, #3b82f6, #93c5fd);
    }
}

/* Modern spinner container */
body fuse-splash-screen .spinner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 50px;
    width: 60px;
    z-index: 10;
}

/* Modern spinner dots */
body fuse-splash-screen .spinner > div {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 100%;
    display: inline-block;
    -webkit-animation: fuse-bouncedelay 1s infinite ease-in-out both;
    animation: fuse-bouncedelay 1s infinite ease-in-out both;
    box-shadow:
        0 4px 14px 0 rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (prefers-color-scheme: dark) {
    body fuse-splash-screen .spinner > div {
        background: linear-gradient(135deg, #60a5fa, #3b82f6);
        box-shadow:
            0 4px 14px 0 rgba(96, 165, 250, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(59, 130, 246, 0.3);
    }
}

body fuse-splash-screen .spinner .bounce1 {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

body fuse-splash-screen .spinner .bounce2 {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

@-webkit-keyframes fuse-bouncedelay {
    0%,
    80%,
    100% {
        -webkit-transform: scale(0);
    }

    40% {
        -webkit-transform: scale(1);
    }
}

@keyframes fuse-bouncedelay {
    0%,
    80%,
    100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    40% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

body:not(.fuse-splash-screen-hidden) {
    overflow: hidden;
}

body.fuse-splash-screen-hidden fuse-splash-screen {
    visibility: hidden;
    opacity: 0;
}
