#splash {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    opacity: 1;
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0.45s;
    font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
}

#splash.dark {
    background: #090d16;
}

#splash.out {
    opacity: 0;
    visibility: hidden;
}

.sp-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.sp-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--sp-primary-color, #00b494) 0%, transparent 70%);
    opacity: 0.16;
    filter: blur(24px);
    animation: sp-pulse 2.2s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}

#splash.dark .sp-glow {
    opacity: 0.26;
    filter: blur(32px);
}

.sp-loader-wrapper {
    position: relative;
    width: 82px;
    height: 82px;
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.sp-ring-outer {
    position: absolute;
    inset: 0;
    border: 3.5px solid transparent;
    border-top-color: var(--sp-primary-color, #00b494);
    border-radius: 50%;
    animation: sp-spin-clockwise 1.1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.sp-ring-inner {
    position: absolute;
    inset: 6.5px;
    border: 3.5px solid transparent;
    border-bottom-color: var(--sp-primary-color, #00b494);
    opacity: 0.65;
    border-radius: 50%;
    animation: sp-spin-counter 0.85s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.sp-logo {
    width: 44px;
    height: 44px;
    color: var(--sp-primary-color, #00b494);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sp-scale 1.8s ease-in-out infinite alternate;
}

.sp-logo svg {
    width: 26px;
    height: 26px;
}

.sp-restaurant {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    transition: color 0.3s;
}

#splash.dark .sp-restaurant {
    color: #f3f4f6;
}

.sp-status {
    font-size: 0.82rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 22px;
    min-height: 1.2em;
    transition: color 0.3s;
}

#splash.dark .sp-status {
    color: #9ca3af;
}

.sp-track {
    width: 140px;
    height: 3px;
    border-radius: 6px;
    background: #e5e7eb;
    overflow: hidden;
}

#splash.dark .sp-track {
    background: #1f2937;
}

.sp-fill {
    height: 100%;
    width: 0%;
    background: var(--sp-primary-color, #00b494);
    border-radius: 6px;
    transition: width 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes sp-spin-clockwise {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes sp-spin-counter {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes sp-pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.12;
    }

    100% {
        transform: scale(1.12);
        opacity: 0.22;
    }
}

@keyframes sp-scale {
    0% {
        transform: scale(0.92);
    }

    100% {
        transform: scale(1.08);
    }
}