TBA-like equations and Casimir effect in (non-)perturbative AdS/CFT