.members-loading {
    color: var(--muted);
}

.member-card-enhanced {
    position: relative;
    padding-right: 76px;
}

.member-avatar-layered {
    position: relative;
    overflow: hidden;
}

.member-avatar-layered img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 180ms ease;
}

.member-avatar-layered.has-image img {
    opacity: 1;
}

.member-country {
    position: absolute;
    top: 16px;
    right: 16px;
    min-width: 34px;
    min-height: 25px;
    padding: 4px 7px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: rgba(201, 8, 18, 0.13);
    border: 1px solid rgba(240, 25, 35, 0.52);
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    cursor: help;
}

.member-information {
    min-width: 0;
}

.member-actions {
    position: absolute;
    right: 15px;
    bottom: 15px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.member-action {
    width: 31px;
    height: 31px;
    padding: 6px;
    display: grid;
    place-items: center;
    color: #a9a9ad;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 4px;
    cursor: pointer;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.member-action:hover,
.member-action:focus-visible {
    color: #fff;
    border-color: rgba(240, 25, 35, 0.7);
    background: rgba(201, 8, 18, 0.16);
    transform: translateY(-1px);
    outline: none;
}

.member-action svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.discord-action-wrap {
    position: relative;
}

.discord-popover {
    position: absolute;
    right: 0;
    bottom: calc(100% + 9px);
    z-index: 5;
    max-width: 220px;
    padding: 9px 11px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(5px);
    color: #fff;
    background: #242528;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
    font: inherit;
    font-size: 0.8rem;
    cursor: copy;
    transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.discord-popover::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 9px;
    border: 6px solid transparent;
    border-top-color: #242528;
}

.discord-action-wrap.is-open .discord-popover {
    visibility: visible;
    opacity: 1;
    transform: none;
}

.copy-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 100;
    padding: 11px 15px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    color: #fff;
    background: #252528;
    border: 1px solid rgba(240, 25, 35, 0.6);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    font-size: 0.82rem;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.copy-toast.is-visible {
    visibility: visible;
    opacity: 1;
    transform: none;
}

@media (max-width: 650px) {
    .member-card-enhanced {
        padding-right: 58px;
    }

    .member-country {
        top: 12px;
        right: 12px;
    }

    .member-actions {
        right: 11px;
        bottom: 11px;
    }
}
