.profile-menu {
    position: relative;
    z-index: 90;
    flex: 0 0 auto;
    font-family: var(--body, "Manrope", Arial, sans-serif);
}

.profile-menu__trigger {
    display: inline-flex;
    min-height: 42px;
    max-width: 230px;
    padding: 0 10px;
    gap: 8px;
    align-items: center;
    border: 0;
    border-radius: 999px;
    color: #ffd4e3;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
    text-align: left;
    transition: color .2s ease, background .2s ease;
}

.profile-menu__avatar {
    display: grid;
    width: 32px;
    height: 32px;
    overflow: hidden;
    flex: 0 0 32px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    color: #120d1b;
    background: #f6df18;
    font-size: 12px;
    font-weight: 800;
}

.profile-menu__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-menu__trigger:hover,
.profile-menu__trigger:focus-visible,
.profile-menu.is-open .profile-menu__trigger {
    color: #fff;
    background: rgba(255, 255, 255, .09);
    outline: none;
}

.profile-menu__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-menu__chevron,
.profile-menu__item-icon {
    flex: 0 0 auto;
    font-family: "Material Symbols Rounded";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: "liga";
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}

.profile-menu__chevron { transition: transform .2s ease; }
.profile-menu.is-open .profile-menu__chevron { transform: rotate(180deg); }

.profile-menu__panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(280px, calc(100vw - 28px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-top: 4px solid #ed145b;
    border-radius: 4px 4px 18px 18px;
    color: #fff;
    background: #120d1b;
    box-shadow: 0 24px 60px rgba(8, 4, 14, .38);
}

.profile-menu__panel[hidden] { display: none; }

.profile-menu__identity {
    padding: 18px 18px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.profile-menu__identity strong,
.profile-menu__identity span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-menu__identity strong {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.profile-menu__identity span {
    margin-top: 5px;
    color: rgba(255, 255, 255, .58);
    font-size: 11px;
}

.profile-menu__actions { padding: 8px; }

.profile-menu__item,
.profile-menu__logout {
    display: flex;
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    gap: 11px;
    align-items: center;
    border: 0;
    border-radius: 10px;
    color: rgba(255, 255, 255, .82);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-align: left;
    text-decoration: none;
    text-transform: none;
    transition: color .18s ease, background .18s ease;
}

.profile-menu__item:hover,
.profile-menu__item:focus-visible,
.profile-menu__logout:hover,
.profile-menu__logout:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .09);
    outline: none;
}

.profile-menu__logout { color: #ffabc8; }
.profile-menu__form { margin: 0; }

@media (max-width: 860px) {
    .global-main-nav .profile-menu {
        width: min(100%, 340px);
    }

    .global-main-nav .profile-menu__trigger {
        max-width: 100%;
        min-height: 52px;
        padding: 0;
        border-radius: 0;
        font-family: var(--display, Impact, sans-serif);
        font-size: 42px;
        font-weight: 400;
        letter-spacing: .03em;
    }

    .global-main-nav .profile-menu__avatar {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-family: var(--body, "Manrope", Arial, sans-serif);
        font-size: 14px;
    }

    .global-main-nav .profile-menu__chevron { font-size: 30px; }

    .global-main-nav .profile-menu__panel {
        position: static;
        width: 100%;
        margin-top: 10px;
    }

    .global-main-nav .profile-menu__item,
    .global-main-nav .profile-menu__logout {
        font-family: var(--body, "Manrope", Arial, sans-serif);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0;
        text-transform: none;
    }
}

@media (max-width: 620px) {
    .member-header .profile-menu__trigger,
    .success-header .profile-menu__trigger {
        width: 42px;
        padding: 0;
        justify-content: center;
    }

    .member-header .profile-menu__name,
    .success-header .profile-menu__name,
    .member-header .profile-menu__chevron,
    .success-header .profile-menu__chevron {
        display: none;
    }
}
