.nav .nav-profile-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 44px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background:
        linear-gradient(to bottom right, #2e8eff 0%, rgba(46, 142, 255, 0) 34%),
        rgba(46, 142, 255, 0.2);
    color: #fff;
    cursor: pointer;
    transition: background-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}

.nav .nav-profile-button::before,
.nav .nav-profile-button::after {
    content: none !important;
}

.nav-profile-button__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: #121722;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    transition: background-color 300ms ease, color 300ms ease;
}

.nav-profile-button__inner svg {
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.nav .nav-profile-button:hover,
.nav .nav-profile-button:focus-visible {
    background-color: rgba(46, 142, 255, 0.74);
    box-shadow: 0 0 12px rgba(46, 142, 255, 0.48);
    outline: none;
    transform: translateY(-1px);
}

.nav .nav-profile-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(53, 230, 208, 0.28), 0 0 14px rgba(46, 142, 255, 0.5);
}

:root[data-theme="light"] .nav-profile-button__inner {
    border-color: rgba(35, 89, 131, 0.12);
    background: rgba(249, 252, 255, 0.96);
    color: #173b59;
}

:root[data-theme="light"] .nav .nav-profile-button {
    background:
        linear-gradient(to bottom right, #2e8eff 0%, rgba(46, 142, 255, 0) 34%),
        rgba(46, 142, 255, 0.13);
    box-shadow: 0 7px 18px rgba(31, 82, 125, 0.09);
}

:root[data-theme="light"] .nav .nav-profile-button:hover,
:root[data-theme="light"] .nav .nav-profile-button:focus-visible {
    background-color: rgba(46, 142, 255, 0.4);
    box-shadow: 0 0 12px rgba(46, 142, 255, 0.26);
}

@media (max-width: 900px) {
    .nav .nav-profile-button {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        height: 48px;
    }

    .nav-profile-button__inner {
        width: calc(100% - 4px);
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav .nav-profile-button,
    .nav-profile-button__inner { transition: none; }
}
