Meditation changed everything about my life -- similar to the OP I also slid by on smarts and not hard work, but started practicing meditation in college due to general anxiety and went from a B- to A+ student--I didn't even work longer, but just had more focus and mental stability on the task that I was performing at hand, which ultimately allowed me to get more done.
Plus, once you're in the habit of applying some type of discipline that's not about the end result (e.g. I always gave up on projects because I wanted them to be amazing right off the bat) it becomes much, much easier to be willing to put in non-grandiose, day by day drive necessary to accomplish /real/ things. Put another way, when you pay attention to the details, suddenly that overwhelming urge toward "greatness" or "brilliance" fades away, and you can actually get things finished.
Agreed, don't beat yourself up about this. It's a very human problem, and even recognition of your current circumstances is far and away above what many people ever accomplish.
http://ideonexus.com/2012/08/27/the-science-of-mindfulness-m...
I also recommend adopting an exercise routine in the morning. I find myself much more productive and focuse during the day if I've gone for a 5k run first thing when I wake up.
Also, consider installing parental monitoring software on your computer. I use the Nanny for Google Chrome plugin to block access to news and other time-wasting sites during the day or limit myself to 10-20 minutes of such sites a day. It's easy to get around (I turned it off to post this comment), but it serves as a reminder to stay focused:
https://chrome.google.com/webstore/detail/nanny-for-google-c...
Good luck, and don't beat yourself up over this. Perpetual distraction is something I think we are all wrestling with.