Advancing lithium separation and recovery through first-principles frameworks