body oneby-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, var(--oneby-bg) 0%, var(--oneby-surface) 100%);
    color: var(--oneby-text-primary);
    z-index: 999999;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1), 
                transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

body oneby-splash-screen .splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body oneby-splash-screen .logo-container {
    margin-bottom: 24px;
    animation: logoFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

body oneby-splash-screen .logo-container img {
    width: 280px;
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.07));
}

body oneby-splash-screen .dots-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    height: 24px;
}

body oneby-splash-screen .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--oneby-primary);
    opacity: 0;
    transform: scale(0.6);
    animation: dotPulse 1.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

body oneby-splash-screen .dot-1 {
    animation-delay: 0s;
}

body oneby-splash-screen .dot-2 {
    animation-delay: 0.15s;
}

body oneby-splash-screen .dot-3 {
    animation-delay: 0.3s;
}

body oneby-splash-screen .progress-wrapper {
    margin-bottom: 20px;
}

body oneby-splash-screen .progress-container {
    width: 240px;
}

body oneby-splash-screen .progress-track {
    position: relative;
    width: 100%;
    height: 4px;
    background-color: var(--oneby-border);
    border-radius: 999px;
    overflow: hidden;
}

body oneby-splash-screen .progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--oneby-primary) 0%, var(--oneby-success) 100%);
    border-radius: 999px;
    animation: progressFill 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    transform-origin: left;
}

body oneby-splash-screen .progress-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: shimmer 2s linear infinite;
}

body oneby-splash-screen .fun-message {
    font-size: 14px;
    font-weight: 400;
    color: var(--oneby-text-secondary);
    opacity: 0;
    animation: textFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
    font-style: italic;
    text-align: center;
    min-height: 20px;
    transition: opacity 0.4s ease-in-out;
}

body oneby-splash-screen .fun-message.fade-out {
    opacity: 0;
}

body oneby-splash-screen .updating-text {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--oneby-text-secondary);
    font-style: italic;
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(-10px);
    }
    60% {
        transform: scale(1.02) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.6);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes progressFill {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

body.oneby-splash-screen-hidden oneby-splash-screen {
    visibility: hidden;
    opacity: 0;
    transform: scale(0.98);
}

@media (max-width: 640px) {
    body oneby-splash-screen .logo-container img {
        width: 200px;
        max-width: 200px;
    }
    
    body oneby-splash-screen .progress-container {
        width: 200px;
    }
    
    body oneby-splash-screen .dots-container {
        gap: 16px;
    }
    
    body oneby-splash-screen .dot {
        width: 8px;
        height: 8px;
    }
}
