.public-nav-backdrop {
    display: none;
}

.public-mobile-actions {
    display: contents;
}

body.public-menu-open {
    overflow: hidden;
}

@media (max-width: 820px) {
    .site-header {
        z-index: 90;
    }

    .menu-toggle {
        position: relative;
        z-index: 94;
        display: grid !important;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, .13);
        border-radius: 15px;
        color: #fff;
        background: rgba(255, 255, 255, .045);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    }

    .menu-toggle svg {
        width: 21px;
        height: 21px;
        margin: auto;
    }

    .menu-toggle .close-icon {
        display: none;
    }

    .menu-toggle[aria-expanded="true"] .menu-icon {
        display: none;
    }

    .menu-toggle[aria-expanded="true"] .close-icon {
        display: block;
    }

    .public-nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 82;
        display: block;
        padding: 0;
        border: 0;
        background: rgba(1, 4, 14, .66);
        backdrop-filter: blur(5px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }

    .public-nav-backdrop.open {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links {
        position: fixed !important;
        top: 90px !important;
        left: 50% !important;
        right: auto !important;
        z-index: 93 !important;
        width: min(680px, calc(100% - 32px)) !important;
        max-height: calc(100dvh - 108px);
        overflow: auto;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch !important;
        gap: 8px !important;
        padding: 16px !important;
        border: 1px solid rgba(121, 151, 255, .24) !important;
        border-radius: 24px !important;
        background: linear-gradient(155deg, rgba(14, 22, 48, .99), rgba(5, 10, 25, .99)) !important;
        box-shadow: 0 26px 80px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
        backdrop-filter: blur(22px);
        transform: translate(-50%, -12px) scale(.98);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform .2s ease, opacity .2s ease, visibility .2s ease;
    }

    .nav-links.open {
        transform: translate(-50%, 0) scale(1);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links > a {
        width: 100% !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 9px;
        margin: 0 !important;
        padding: 10px 12px !important;
        border: 1px solid rgba(255, 255, 255, .075) !important;
        border-radius: 13px !important;
        color: #cbd4e8 !important;
        background: rgba(255, 255, 255, .035) !important;
        box-shadow: none !important;
        font-size: 14px !important;
        font-weight: 780 !important;
        line-height: 1.25;
    }

    .nav-links > a::before {
        content: "";
        width: 6px;
        height: 6px;
        flex: 0 0 auto;
        border-radius: 50%;
        background: linear-gradient(135deg, #69a5ff, #46d6ee);
        box-shadow: 0 0 13px rgba(70, 214, 238, .45);
    }

    .nav-links > a:last-of-type {
        grid-column: 1 / -1;
    }

    .nav-links > a:hover,
    .nav-links > a:focus-visible,
    .nav-links > a.active {
        color: #fff !important;
        border-color: rgba(107, 145, 255, .3) !important;
        background: rgba(62, 105, 204, .12) !important;
        outline: none;
    }

    .public-mobile-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
        margin-top: 4px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, .08);
    }

    .public-mobile-actions > a {
        width: 100% !important;
        min-height: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 12px !important;
        border-radius: 14px !important;
        font-size: 15px !important;
        font-weight: 800 !important;
    }

    .public-mobile-actions > a::before {
        display: none;
    }

    .public-mobile-actions .login {
        color: #e9edff !important;
        border: 1px solid rgba(255, 255, 255, .16) !important;
        background: rgba(255, 255, 255, .035) !important;
    }

    .public-mobile-actions .start {
        color: #fff !important;
        border: 1px solid transparent !important;
        background: linear-gradient(135deg, #347cff, #20c5ea) !important;
        box-shadow: 0 12px 30px rgba(43, 110, 255, .28) !important;
    }
}

@media (max-width: 560px) {
    .nav-links {
        top: 82px !important;
        width: calc(100% - 24px) !important;
        max-height: calc(100dvh - 94px);
        padding: 12px !important;
        border-radius: 20px !important;
        gap: 7px !important;
    }

    .nav-links > a {
        min-height: 44px !important;
        padding: 9px 10px !important;
        font-size: 13px !important;
    }

    .public-mobile-actions {
        gap: 8px;
        margin-top: 3px;
        padding-top: 10px;
    }

    .public-mobile-actions > a {
        min-height: 46px !important;
        padding-inline: 10px !important;
        font-size: 14px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-links,
    .public-nav-backdrop {
        transition: none !important;
    }
}
