.community-user-hover-card {
    position: absolute;
    z-index: 1200;
    display: none;
    width: 280px;
    max-width: calc(100vw - 24px);
    padding: .8rem;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 14px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 16px 44px rgba(15, 23, 42, .16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.community-user-hover-card.show {
    display: block;
}

.community-user-hover-card-head {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: .7rem;
}

.community-user-hover-card-avatar {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 700;
}

.community-user-hover-card-head-meta {
    min-width: 0;
}

.community-user-hover-card-name {
    color: var(--text-color);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.25;
}

.community-user-hover-card-official {
    display: inline-block;
    max-width: 100%;
    padding: .08rem .4rem;
    border-radius: var(--radius-sm);
    background: #fff0d7;
    color: #92400e;
    font-size: .7rem;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
    vertical-align: middle;
}

.community-user-hover-card-id {
    margin-top: .1rem;
    color: var(--text-light);
    font-size: .75rem;
}

.community-user-hover-card-bio {
    display: -webkit-box;
    min-height: 2.3em;
    margin-bottom: .6rem;
    overflow: hidden;
    color: #475569;
    font-size: .84rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.community-user-hover-card-recent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .75rem;
}

.community-user-hover-card-recent-label {
    color: var(--text-light);
    font-size: .76rem;
}

.community-user-hover-card-recent-value {
    max-width: 60%;
    overflow: hidden;
    padding: .18rem .55rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, .14);
    color: #166534;
    font-size: .78rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-user-hover-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}

.community-user-hover-card-btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.community-user-hover-card-btn.secondary {
    border: 1px solid rgba(148, 163, 184, .35);
    background: #f1f5f9;
    color: #1e293b;
}

.community-user-hover-card-btn.primary {
    border: 1px solid rgba(var(--brand-primary-rgb), .25);
    background: var(--brand-gradient);
    color: #fff;
}

.community-user-hover-card-btn:hover {
    transform: translateY(-1px);
}

.community-user-hover-card-btn:focus-visible {
    outline: 3px solid rgba(var(--brand-primary-rgb), .22);
    outline-offset: 2px;
}

.community-user-hover-card-loading {
    display: inline-flex;
    min-height: 70px;
    align-items: center;
    gap: .55rem;
    color: var(--text-light);
    font-size: .84rem;
}

.community-user-hover-card-loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-primary);
    box-shadow: 0 0 0 0 rgba(var(--brand-primary-rgb), .5);
    animation: communityUserCardPulse 1.2s infinite;
}

.community-user-hover-card--ai {
    width: 220px;
}

.community-user-hover-card-avatar-img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

@keyframes communityUserCardPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(var(--brand-primary-rgb), .5);
    }
    70% {
        transform: scale(1.08);
        box-shadow: 0 0 0 8px rgba(var(--brand-primary-rgb), 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .community-user-hover-card-loading-dot {
        animation: none;
    }

    .community-user-hover-card-btn {
        transition: none;
    }
}

.community-user-hover-card-close { position: absolute; right: 4px; top: 4px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--text-light); font: inherit; font-size: .75rem; cursor: pointer; }
.community-user-hover-card-head { padding-right: 30px; }
.community-user-hover-card-actions > :only-child { grid-column: 1 / -1; }
.community-user-hover-card-context { margin: .5rem 0 .85rem; color: var(--text-color); font-size: .82rem; line-height: 1.6; }
.community-user-hover-card-frame { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); pointer-events: none; }
