html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    background-color: #0f141c; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*, *:before, *:after {
    box-sizing: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a, button, input, textarea {
    -webkit-tap-highlight-color: transparent;
}

#pwa-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #090d16;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.splash-content {
    text-align: center;
}

.logo-container {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
}

.splash-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0, 242, 254, 0.3);
}

.pulse-wave, .pulse-wave-delayed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 2px solid #00f2fe;
    opacity: 0;
    z-index: 1;
    animation: spxPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.pulse-wave-delayed {
    animation-delay: 1s;
}

@keyframes spxPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

.splash-title {
    color: #ffffff;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 2px;
    margin: 0 0 15px 0;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.loading-bar-container {
    width: 160px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    margin: 0 auto 12px;
    overflow: hidden;
}

.loading-bar-fill {
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, #0284c7, #00f2fe);
    border-radius: 2px;
    animation: spxLoading 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spxLoading {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.splash-subtitle {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    margin: 0;
}

.background-stage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.background-stage__layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #111827 0%, #070a12 100%);
}