.tagged-users-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.tagged-users-modal.active {
    display: flex;
}

.tagged-users-modal-content {
    width: 100%;
    max-width: 390px;
    background: #fff;
    border-radius: 18px;
    padding: 18px 16px 20px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.25);
}

.tagged-users-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.tagged-users-modal-header h3 {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    color: #6b7280;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.tagged-users-close-btn {
    border: none;
    background: transparent;
    font-size: 20px;
    color: #111827;
    cursor: pointer;
    padding: 0;
}

.tagged-users-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 420px;
    overflow-y: auto;
}

.tagged-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.tagged-user-left {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.tagged-user-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f5a000;
    background: #4f7df3;
}

.tagged-user-info {
    flex: 1;
    line-height: 1.2;
    min-width: 0;
}

.tagged-user-name {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tagged-user-username {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tagged-user-connect-btn {
    margin-left: auto;
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    border-radius: 25px;
    padding: 8px 17px;
    background: linear-gradient(90deg, #dc7228, #000);
    cursor: pointer;
    white-space: nowrap;
    min-width: 92px;
}

.tagged-user-connect-btn:hover {
    opacity: 0.9;
}

.tagged-user-connect-btn.btn-pending {
    background: #6b7280;
}

.tagged-user-connect-btn.btn-connected {
    background: linear-gradient(90deg, #dc7228, #000);
}

.tagged-users-empty {
    text-align: center;
    color: #6b7280;
    padding: 24px 10px;
}

.tagged-users-empty i {
    font-size: 26px;
    margin-bottom: 8px;
}