#app-splash {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: opacity 0.4s ease;
}
#app-splash img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 20px;
}
#app-splash .splash-loader {
    display: flex;
    gap: 6px;
}
#app-splash .splash-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4f46e5;
    animation: splashPulse 1.2s ease-in-out infinite;
}
#app-splash .splash-dot:nth-child(2) {
    animation-delay: 0.2s;
}
#app-splash .splash-dot:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes splashPulse {
    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}
#app-splash {
    display: flex;
}

/* Update banner */
#pwa-update-banner {
    display: none;
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-family: 'Kanit', sans-serif;
    align-items: center;
    gap: 0.75rem;
    z-index: 9990;
    box-shadow: 0 4px 20px rgb(0 0 0 / 0.25);
    white-space: nowrap;
}
#pwa-update-banner.show {
    display: flex;
}
#pwa-update-banner button {
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    font-family: 'Kanit', sans-serif;
    cursor: pointer;
    font-weight: 500;
}
/* Offline banner */
#pwa-offline-banner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #dc2626;
    color: #fff;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-family: 'Kanit', sans-serif;
    z-index: 9991;
}
#pwa-offline-banner.show {
    display: block;
}
