body {
    --sk-navigation-offset: 90px;
    padding-top: var(--sk-navigation-offset);
}

.sk-navigation {
    position: fixed;
    z-index: 1030;
    inset: 0 0 auto;
    padding: 10px 18px 0;
    pointer-events: none;
    font-family: "Inter", system-ui, sans-serif;
    line-height: 1.25;
}

.sk-nav-shell {
    --sk-nav-trim: 0px;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    width: calc(min(100%, 1140px) - var(--sk-nav-trim));
    min-height: 66px;
    margin: 0 auto;
    padding: 5px 12px;
    border: 1px solid;
    border-color: #fff9 #ece3ff54 #e4d7ff75;
    border-radius: 999px;
    background-color: rgba(40, 33, 66, .68);
    background-image:
        radial-gradient(ellipse at 14% 0, #e1efff2b, transparent 44%),
        radial-gradient(ellipse at 94% 100%, #c2a8ff2e, transparent 46%),
        linear-gradient(180deg, #ffffff1c, transparent 32%, transparent 76%, #ddd0ff14);
    box-shadow: inset 1px 1px 2px #ffffff52, inset -1px -1px 2px #ece5ff38, 0 8px 24px #231b3c29;
    -webkit-backdrop-filter: blur(20px) saturate(155%);
    backdrop-filter: blur(20px) saturate(155%);
    pointer-events: auto;
}

.sk-navigation.scrolled .sk-nav-shell {
    --sk-nav-trim: clamp(32px, 5vw, 72px);
    min-height: 56px;
    background-color: rgba(36, 30, 58, .71);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .sk-navigation .sk-nav-shell { background-color: #39324f; }
    .sk-navigation.scrolled .sk-nav-shell { background-color: #332c49; }
}

.sk-navigation-brand {
    display: inline-flex;
    justify-self: start;
    justify-content: center;
    align-items: center;
    padding: 0 6px;
    border-radius: 12px;
}

.sk-nav-logo {
    position: relative;
    display: block;
}

.sk-nav-logo img {
    display: block;
    width: auto;
    height: 50px;
}

@media (prefers-reduced-motion: no-preference) {
    .sk-nav-logo {
        transform-origin: 14% 50%;
        backface-visibility: hidden;
        animation: sk-navigation-logo-wave 8.4s cubic-bezier(.37, 0, .63, 1) infinite;
    }

    .sk-nav-logo::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(108deg, transparent 37%, #ffffff29 44%, #fffffff9 50%, #ffffff38 56%, transparent 63%);
        background-size: 260% 100%;
        -webkit-mask: url("../images/brand/logo/logo-new.png") center / contain no-repeat;
        mask: url("../images/brand/logo/logo-new.png") center / contain no-repeat;
        animation: sk-navigation-logo-shimmer 7.6s linear infinite;
    }
}

@keyframes sk-navigation-logo-wave {
    0%, 100% {
        transform: perspective(420px) rotateY(-2deg) skewY(-.25deg);
        filter: brightness(1);
    }
    22% {
        transform: perspective(420px) rotateY(7deg) skewY(.8deg) translateY(-.8px);
        filter: brightness(1.08);
    }
    48% {
        transform: perspective(420px) rotateY(-5deg) skewY(-.65deg) translateY(.5px);
        filter: brightness(.98);
    }
    73% {
        transform: perspective(420px) rotateY(5deg) skewY(.55deg) translateY(-.4px);
        filter: brightness(1.05);
    }
}

@keyframes sk-navigation-logo-shimmer {
    from { background-position: 180% 50%; }
    to { background-position: -180% 50%; }
}

.sk-nav-list {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sk-nav-link,
.sk-navigation-login,
.sk-profile-trigger,
.sk-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #fcf9ff;
    font: 600 .9rem/1.25 "Inter", system-ui, sans-serif;
    text-decoration: none;
}

.sk-nav-link { padding: 0 15px; }
.sk-nav-link i { font-size: 1rem; color: #e2d7f2; }
.sk-nav-link:hover { background: #ffffff16; color: #fff; }

.sk-nav-link[aria-current] {
    border-color: #f6efffc9;
    background: linear-gradient(160deg, #fbf9ff 0%, #ece5f6 62%, #dbcfe9);
    color: #392e50;
    box-shadow: inset 0 1px 0 #fff, inset 0 -1px 1px #bcaace80, 0 3px 9px #21173732;
}

.sk-nav-link[aria-current] i { color: #685180; }

.sk-profile-dropdown, .sk-navigation-login { justify-self: end; }

.sk-navigation-login,
.sk-profile-trigger,
.sk-nav-toggle {
    border-color: #f1e8ff70;
    background: linear-gradient(150deg, #ffffff2e, #ffffff0c);
    box-shadow: inset 0 1px 0 #ffffff42;
}

.sk-navigation-login { padding: 0 17px; }
.sk-profile-trigger { gap: 8px; padding: 3px 11px 3px 4px; }
.sk-profile-trigger i { color: #eee6f6; font-size: .85rem; }
.sk-profile-trigger[aria-expanded="true"] i { transform: rotate(180deg); }

.sk-navigation-login:hover,
.sk-profile-trigger:is(:hover, [aria-expanded="true"]),
.sk-nav-toggle:is(:hover, [aria-expanded="true"]) {
    background-color: #ffffff21;
    color: #fff;
}

.sk-nav-account-name {
    max-width: 15ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sk-nav-avatar {
    position: relative;
    display: inline-grid;
    flex: none;
    width: 34px;
    height: 34px;
    border: 1px solid #fff9;
    border-radius: 50%;
    font-size: 1rem;
}

.sk-profile-trigger .sk-nav-avatar::after {
    content: "";
    position: absolute;
    right: -1px;
    bottom: 0;
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #21ac85;
}

.sk-navigation .sk-profile-menu {
    top: calc(100% + 12px);
    right: 0;
    left: auto;
    width: min(18rem, calc(100vw - 30px));
    margin: 0;
    padding: 7px;
    border: 1px solid #dcd6e6;
    border-radius: 18px;
    background: #fcfaff;
    box-shadow: 0 16px 40px #261d3e30;
    color: #392e50;
}

.sk-profile-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    padding: 10px 7px 12px;
    border-bottom: 1px solid #e5dfec;
    color: #392e50;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.sk-profile-summary:hover { color: #63467c; }
.sk-profile-identity { flex: 1; min-width: 0; }
.sk-profile-summary > i { flex: none; color: #796688; }
.sk-profile-summary .sk-nav-avatar { width: 38px; height: 38px; }
.sk-profile-summary small { display: block; margin-top: 3px; color: #63596e; }

.sk-profile-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 10px;
    color: #42364f;
    font-size: .9rem;
    font-weight: 600;
}

.sk-profile-menu .dropdown-item:is(:hover, :focus) { background: #eee8f5; color: #392e50; }
.sk-navigation :is(a, button):focus-visible { outline: 2px solid #f6ecff; outline-offset: 2px; }
.sk-navigation .sk-profile-menu :is(a, button):focus-visible { outline-color: #715789; outline-offset: -2px; }

.sk-nav-toggle { display: none; }

@media (min-width: 992px) {
    .sk-navigation-brand { width: 138px; }
    .sk-profile-dropdown, .sk-profile-trigger { max-width: 100%; }
    .sk-navigation.scrolled .sk-nav-logo img { height: 45px; }
    .sk-navigation .sk-nav-links, .sk-nav-panel { display: contents; }
}

@media (max-width: 991.98px) {
    body { --sk-navigation-offset: 76px; }
    .sk-navigation { padding: 7px 10px 0; }
    .sk-nav-shell {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 7px;
        min-height: 58px;
        padding: 4px 7px 4px 15px;
    }

    .sk-nav-logo img { height: 44px; }
    .sk-navigation.scrolled .sk-nav-shell {
        --sk-nav-trim: 12px;
        min-height: 52px;
    }
    .sk-navigation.scrolled .sk-nav-logo img { height: 39px; }
    .sk-navigation-login { grid-area: 1 / 2; min-height: 40px; padding: 0 14px; }
    .sk-profile-trigger { display: none; }

    .sk-nav-toggle {
        display: grid;
        grid-area: 1 / 3;
        width: 42px;
        padding: 0;
        place-items: center;
        font-size: 1.15rem;
    }
    .sk-nav-toggle[aria-expanded="false"] .fe-x,
    .sk-nav-toggle[aria-expanded="true"] .fe-menu { display: none; }

    .sk-nav-links {
        position: absolute;
        inset: calc(100% + 7px) 0 auto;
    }

    .sk-nav-panel {
        max-height: calc(100vh - 86px);
        max-height: calc(100dvh - 86px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 9px;
        border: 1px solid #e2daea;
        border-radius: 21px;
        background: #fcfaff;
        box-shadow: 0 12px 30px #261d3e2b;
    }

    .sk-nav-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
    }
    .sk-profile-dropdown {
        justify-self: stretch;
        width: 100%;
        margin-top: 8px;
        border-top: 1px solid #e5deec;
    }
    .sk-navigation .sk-profile-menu {
        position: static;
        display: block;
        width: auto;
        margin: 8px 0 0;
        padding: 7px;
        border: 1px solid #e4dbea;
        border-radius: 16px;
        background: linear-gradient(125deg, #f3edf8, #fbf8fd);
        box-shadow: inset 0 1px #fff;
    }
    .sk-profile-summary {
        margin: 0;
        padding: 5px 5px 10px;
        border: 0;
        border-radius: 10px;
    }
    .sk-profile-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .sk-profile-actions .dropdown-item {
        justify-content: center;
        min-height: 44px;
        border: 1px solid #e0d6e8;
        border-radius: 999px;
        background: #fff;
    }
    .sk-profile-actions button { color: #8b3d58; }

    .sk-nav-link { justify-content: flex-start; width: 100%; min-height: 44px; color: #4d415f; }
    .sk-nav-link i { color: #78618e; }
    .sk-nav-link:hover { background: #f1ebf6; color: #342b41; }
    .sk-nav-link[aria-current] {
        border-color: #d9cce5;
        background: linear-gradient(155deg, #f2edf7, #e4d9ef);
        box-shadow: inset 0 1px 0 #fff;
    }
    .sk-nav-link:focus-visible { outline-color: #715789 !important; outline-offset: -2px !important; }
}

@media (prefers-reduced-motion: no-preference) {
    .sk-navigation { --sk-nav-ease: cubic-bezier(.22, .75, .25, 1); }
    .sk-nav-shell {
        transition: width .32s var(--sk-nav-ease), min-height .32s var(--sk-nav-ease), background-color .32s ease;
    }
    .sk-nav-logo img { transition: height .32s var(--sk-nav-ease); }
    .sk-nav-link, .sk-navigation-login, .sk-profile-trigger, .sk-nav-toggle {
        transition: background-color .18s ease, border-color .18s ease;
    }
}
