Break apart the text,then you will be able to use a gradient fill.

As for the Line, select the line and then
click on Modify / Curves / Lines to Fills.