/* Freeio-inspired Blazor route loader: lightweight, no jQuery dependency */
.sk-page-loader {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 45%, rgba(15, 84, 140, .08), transparent 30%),
        rgba(246, 248, 251, .92);
    backdrop-filter: blur(6px);
    animation: sk-loader-fade-in .12s ease-out both;
}

.sk-page-loader__content {
    position: relative;
    width: 104px;
    height: 104px;
    display: grid;
    place-items: center;
}

.sk-page-loader__brand {
    position: absolute;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #0f548c, #006e64);
    box-shadow: 0 18px 45px rgba(15, 84, 140, .24);
    font-weight: 950;
    font-size: 1.25rem;
    z-index: 2;
}

.sk-page-loader__ring {
    position: absolute;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    border: 2px solid rgba(15, 84, 140, .13);
    border-top-color: #0f548c;
    border-right-color: #006e64;
    animation: sk-loader-spin .78s linear infinite;
}

.sk-page-loader__ring::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 999px;
    border: 1px solid rgba(0, 110, 100, .13);
    border-bottom-color: #006e64;
    animation: sk-loader-spin-reverse 1.05s linear infinite;
}

.sk-page-loader__text {
    position: absolute;
    top: 112px;
    color: #003d59;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .02em;
}

@keyframes sk-loader-spin {
    to { transform: rotate(360deg); }
}

@keyframes sk-loader-spin-reverse {
    to { transform: rotate(-360deg); }
}

@keyframes sk-loader-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Top nav compact correction */
.sk-public-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(15, 84, 140, .08);
    backdrop-filter: blur(16px);
}

.sk-public-nav__inner {
    width: min(1180px, calc(100% - 40px));
    height: 76px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
}

.sk-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #003d59;
    font-weight: 900;
    font-size: 1.14rem;
    text-decoration: none;
    white-space: nowrap;
}

.sk-brand:hover { color: #003d59; }

.sk-brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #0f548c, #006e64);
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(15, 84, 140, .16);
}

.sk-public-nav__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.sk-public-nav__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    color: #5f6d82;
    font-size: .91rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: color .16s ease, background .16s ease, transform .16s ease;
}

.sk-public-nav__links a:hover {
    color: #003d59;
    background: rgba(15, 84, 140, .07);
    transform: translateY(-1px);
}

.sk-public-nav__actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.sk-lang,
.sk-link-btn,
.sk-join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
}

.sk-lang {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: #64748b;
    background: #fff;
    border: 1px solid rgba(15, 84, 140, .12);
    font-size: .85rem;
    font-weight: 900;
}

.sk-link-btn {
    min-height: 38px;
    padding: 0 12px;
    color: #003d59;
    font-size: .92rem;
    font-weight: 900;
}

.sk-join-btn {
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #0f548c, #006e64);
    font-size: .92rem;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(0, 61, 89, .18);
}

.sk-join-btn:hover { color: #fff; }

@media (max-width: 850px) {
    .sk-public-nav__inner {
        width: min(100% - 28px, 1180px);
        height: auto;
        min-height: 72px;
        grid-template-columns: 1fr auto;
        gap: 10px;
        padding: 10px 0;
    }

    .sk-public-nav__links {
        grid-column: 1 / -1;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .sk-public-nav__links::-webkit-scrollbar { display: none; }

    .sk-link-btn { display: none; }
}

@media (max-width: 560px) {
    .sk-brand span:last-child { font-size: 1rem; }

    .sk-brand-mark {
        width: 36px;
        height: 36px;
    }

    .sk-lang {
        width: 34px;
        height: 34px;
    }

    .sk-join-btn {
        min-height: 38px;
        padding: 0 15px;
    }
}

.sk-page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(244, 250, 252, .82);
    backdrop-filter: blur(10px);
}
