/* GateControl PWA Splash Screen */
html, body {
    background: #f7f7f8;
    min-height: 100vh;
    color: #f8f9fa;
}

body.gc-app-ready {
    background: #ffffff;
    color: inherit;
}

:root {
    --gc-splash-primary: #4d6d5d;
    --gc-splash-primary-dark: #1a2921;
    --gc-splash-secondary: rgba(255,255,255,0.08);
    --gc-splash-text: #f4f7f5;
    --gc-splash-muted: rgba(233,245,239,0.75);
    --gc-splash-border: rgba(255,255,255,0.18);
}

.gc-splash {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f7f7f8 0%, #eef1f4 100%);
    z-index: 100000;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    color: var(--gc-splash-text);
    overflow: hidden;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.gc-splash--hidden {
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
}

.gc-splash__card {
    position: relative;
    width: min(560px, 92vw);
    max-height: 88vh;
    padding: clamp(28px, 6vw, 48px) clamp(24px, 7vw, 56px);
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow:
        0 18px 40px rgba(0,0,0,0.12),
        0 10px 18px rgba(0,0,0,0.08);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    overflow: hidden;
}

.gc-splash__glow {
    position: absolute;
    inset: -60px -80px;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.45), transparent 70%),
                radial-gradient(circle at 80% 10%, rgba(169,199,184,0.35), transparent 60%),
                radial-gradient(circle at 50% 120%, rgba(77,109,93,0.25), transparent 75%);
    opacity: 0.85;
    filter: blur(38px);
    z-index: 0;
}

.gc-splash__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
}


.gc-splash__logo-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 22px;
    background: rgba(77,109,93,0.12);
    border: 1px solid rgba(77,109,93,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}

.gc-splash__logo-wrapper img {
    width: 82px;
    height: 82px;
    object-fit: contain;
}

.gc-splash__logo-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.gc-splash__headline {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gc-splash__title {
    font-size: clamp(1.6rem, 3.8vw, 2.55rem);
    letter-spacing: -0.02em;
    font-weight: 700;
    margin: 0;
}

.gc-splash__subtitle {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gc-splash-muted);
}

.gc-splash__status {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gc-splash__message {
    font-size: clamp(1rem, 2.6vw, 1.2rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #212529;
}

.gc-splash__progress-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(77,109,93,0.16);
    overflow: hidden;
    position: relative;
}

.gc-splash__progress-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(77,109,93,0.35) 0%, rgba(77,109,93,0.95) 100%);
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(77,109,93,0.28);
    transition: width 0.6s ease;
}

.gc-splash__progress-info {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(33,37,41,0.7);
    text-align: center;
}

.gc-splash__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: rgba(33,37,41,0.55);
}

.gc-splash__footer span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gc-splash__status-light {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-left: auto;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.7), rgba(33,37,41,0.65));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5), 0 0 12px rgba(33,37,41,0.35);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.gc-splash__status-light--success {
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.85), rgba(40,167,69,0.85));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7), 0 0 24px rgba(40,167,69,0.6), 0 0 40px rgba(40,167,69,0.35);
}

.gc-splash__footer .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
}

.gc-splash__background-ornament {
    position: absolute;
    inset: -140px;
    background: radial-gradient(circle at 10% 10%, rgba(255,255,255,0.4), transparent 65%),
                radial-gradient(circle at 80% 20%, rgba(169,199,184,0.25), transparent 65%),
                radial-gradient(circle at 50% 120%, rgba(77,109,93,0.18), transparent 70%);
    opacity: 0.85;
    pointer-events: none;
}

@media (max-width: 768px) {
    .gc-splash__card {
        padding: 32px 22px;
        width: calc(100vw - 48px);
    }

    .gc-splash__logo-row {
        text-align: center;
        gap: 16px;
    }

    .gc-splash__headline {
        align-items: center;
    }

    .gc-splash__timeline {
        gap: 10px;
    }

    .gc-splash__timeline li {
        padding: 8px 14px 8px 28px;
        font-size: 0.78rem;
    }

    .gc-splash__timeline li::before {
        left: 10px;
    }

    .gc-splash__footer {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }
}
