Is my money and are my shares safe in case the broker faces financial trouble or shuts down?

Yes. Your shares are held in your demat account with the depository (CDSL/NSDL) and not with the broker, so they remain safe even if the broker faces financial issues. Funds lying in your trading account are also kept in a separate client account as per SEBI regulations. In case of broker default, investors are further protected by the exchange’s Investor Protection Fund (IPF).