.app-navbar {
    min-height: 76px;
    border-bottom: 1px solid rgba(17, 24, 39, .07);
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 10px 30px rgba(17, 24, 39, .045);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.app-navbar__inner {
    gap: 1.25rem;
}

.app-brand {
    flex: 0 0 auto;
    margin-right: 0;
    color: #172033;
    font-weight: 850;
    letter-spacing: -.035em;
    text-decoration: none;
}

.app-brand:hover,
.app-brand:focus {
    color: #172033;
}

.app-brand__name {
    white-space: nowrap;
    font-size: 1.18rem;
}

.app-brand__name > span {
    color: #5b21b6;
}

.app-navbar .brand-mark {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(145deg, #5b21b6 0%, #6d28d9 52%, #4f46e5 100%);
    box-shadow: 0 10px 24px rgba(91, 33, 182, .24);
    transition: transform .18s ease, box-shadow .18s ease;
}

.app-brand:hover .brand-mark {
    transform: translateY(-1px) rotate(-2deg);
    box-shadow: 0 13px 28px rgba(91, 33, 182, .28);
}

.app-navbar__menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .65rem;
    min-width: 0;
}

.app-navbar__links {
    display: flex;
    align-items: center;
    gap: .15rem;
    padding: .3rem;
    border: 1px solid #ebe8f1;
    border-radius: 999px;
    background: #f8f7fb;
}

.app-navbar__links .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .42rem;
    min-height: 40px;
    padding: .5rem .78rem !important;
    border-radius: 999px;
    color: #606776;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.app-navbar__links .nav-link i {
    color: #8b819d;
    font-size: .78rem;
    transition: color .16s ease;
}

.app-navbar__links .nav-link:hover,
.app-navbar__links .nav-link:focus {
    color: #4c1d95;
    background: rgba(255, 255, 255, .8);
}

.app-navbar__links .nav-link:hover i,
.app-navbar__links .nav-link:focus i,
.app-navbar__links .nav-link.active i {
    color: #6d28d9;
}

.app-navbar__links .nav-link.active {
    color: #4c1d95;
    background: #fff;
    box-shadow: 0 5px 14px rgba(17, 24, 39, .08);
}

.app-navbar__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 44px;
    padding: .65rem 1rem;
    border: 1px solid #5b21b6;
    border-radius: 999px;
    background: linear-gradient(135deg, #5b21b6, #6d28d9);
    color: #fff;
    font-size: .88rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(91, 33, 182, .2);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.app-navbar__cta:hover,
.app-navbar__cta:focus {
    color: #fff;
    background: linear-gradient(135deg, #4c1d95, #5b21b6);
    transform: translateY(-1px);
    box-shadow: 0 11px 24px rgba(91, 33, 182, .25);
}

.app-navbar__icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border: 1px solid #e4e0ec;
    border-radius: 50%;
    background: #fff;
    color: #5b6472;
    font-size: .92rem;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(17, 24, 39, .045);
    transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}

button.app-navbar__icon-button {
    cursor: pointer;
}

button.app-navbar__icon-button:has(> span) {
    width: auto;
    min-width: 64px;
    flex-basis: auto;
    padding: 0 .9rem;
    border-radius: 999px;
}

.app-navbar__icon-button:hover,
.app-navbar__icon-button:focus {
    border-color: rgba(91, 33, 182, .22);
    background: #f7f4ff;
    color: #5b21b6;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(91, 33, 182, .1);
}

.app-navbar__icon-button--danger:hover,
.app-navbar__icon-button--danger:focus {
    border-color: #fecaca;
    background: #fff5f5;
    color: #b42318;
}

.app-navbar__toggler {
    width: 42px;
    height: 42px;
    padding: .45rem;
    border-radius: 12px;
    background: #f8f7fb;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .app-navbar__inner {
        gap: .8rem;
    }

    .app-brand__name {
        font-size: 1.04rem;
    }

    .app-navbar .brand-mark {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 12px;
    }

    .app-navbar__menu {
        gap: .4rem;
    }

    .app-navbar__links .nav-link {
        padding-inline: .6rem !important;
        font-size: .82rem;
    }

    .app-navbar__cta {
        padding-inline: .8rem;
        font-size: .82rem;
    }
}

@media (max-width: 991.98px) {
    .app-navbar {
        min-height: 68px;
    }

    .app-navbar__inner {
        gap: .75rem;
    }

    .app-navbar .navbar-collapse {
        margin-top: .7rem;
        padding: .8rem 0 1rem;
        border-top: 1px solid #ebe8f1;
    }

    .app-navbar__menu {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: .65rem;
    }

    .app-navbar__links {
        grid-column: 1 / -1;
        display: grid;
        gap: .3rem;
        padding: .45rem;
        border-radius: 18px;
    }

    .app-navbar__links .nav-link {
        justify-content: flex-start;
        min-height: 44px;
        padding-inline: .9rem !important;
        border-radius: 13px;
    }

    .app-navbar__cta {
        justify-content: center;
        min-height: 44px;
    }

    .app-navbar__icon-button {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }
}

@media (max-width: 575.98px) {
    .app-brand__name {
        font-size: 1.02rem;
    }

    .app-navbar .brand-mark {
        width: 37px;
        height: 37px;
        flex-basis: 37px;
        border-radius: 12px;
    }

    .app-navbar__menu {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .app-navbar__cta {
        min-width: 0;
        padding-inline: .85rem;
    }
}
