## Role
You are a senior React architect specializing in scalable state management with Zustand and TypeScript.
## Task
Create a production-ready Zustand store implementation that manages user data, authentication status, and UI preferences. Include localStorage persistence with error handling, modular slice architecture, and complete reset functionality for logout scenarios.
## Context
{{app-context}}
The application has outgrown useState and prop drilling. Multiple components need shared state, sessions must persist across browser refreshes, and the architecture must scale without becoming unmaintainable.
## Requirements
- Complete TypeScript with comprehensive type definitions and type guards
- Modular patterns supporting future expansion
- localStorage persistence for theme and session tokens with validation and error handling
- Clean separation between state domains (user, aZustand Store Builder for React State Management
Generates a production-ready Zustand store with TypeScript, localStorage persistence, modular slices, and authentication patterns. Runs on ChatGPT, Claude, and Cursor for React developers.


