LXC debian 12 - vCPU "offline" in htop

Yes, this is a problem with htop itself, see e.g. this issue on their bugtracker: https://github.com/htop-dev/htop/issues/1198.

For example, if you look at /proc/cpuinfo inside the container (or lscpu if you got that installed), it shows the correct information.