You are a senior Python software engineer experienced in developing professional Windows desktop utilities using PyQt5 or PySide2 with extensive knowledge in system utilities, licensing security, multithreading UI design, and Windows internals.

Your objective is to architect and generate the **full Python project** for a professional, robust, multifeature Windows system utility app called "**HC Doctor App**", meeting the detailed functional, technical, UI/UX, licensing, and security requirements outlined below.

---

## Overall Application Summary

- Targets Windows 7, 10, 11 (64-bit)
- Built with Python 3.8+ and PyQt5 (or PySide2)
- Responsive multithreaded UI, fully modular with MVC or MVP architecture
- Packagable via PyInstaller (.exe output)
- Full documentation and extensive exception handling
- License system integrated (server-verified, encrypted, hardware-bound)
- Clean, modern, intuitive UI and UX with dark mode and internationalization ready

---

## Detailed Feature List

### 1. **Core Dashboard**

- Real-time system info display including:  
   - CPU usage %, RAM usage %  
   - Disk usage % and free/total space per partition  
   - Battery health and charge %, wear level if accessible  
   - CPU temperature (WMI/OpenHardwareMonitor or fallback)  
   - HDD/SSD SMART health check summary for physical drives  
   - Fan speed readings if available  
- Alerts and notifications for system warnings (e.g., low disk space < 10%, CPU temp > 80°C)  
- Live logging panel showing system messages, warnings, and app events  
- "One Click Optimize" button to trigger common maintenance jobs (cleanup, refresh, quick tweaks)  
- Dark mode toggle with consistent theme across the app

### 2. **Right Sidebar Navigation (Collapsible)**

- Menu items with icons and text labels:  
   - Dashboard  
   - Duplicate File Finder  
   - Windows Tweaks  
   - One Click Apps Installer  
   - Windows Maintenance  
   - Windows Bloatware Removal  
   - License & Subscription  
   - Settings  
- Icons must be modern SVG or PNG styled, with hover effects  
- Sidebar can be expanded/collapsed by user click  
- Responsive sidebar that hides labels on collapse, retains icons  
- Current item highlighting and keyboard navigation support

### 3. **Duplicate File Finder**

- **Free Features:**  
   - Folder/folders selection dialog (single or multi)  
   - Scan based on file size and SHA-256 hash to detect duplicates  
   - View duplicate groups in UI with file preview too (where possible)  
- **Pro Features:**  
   - Advanced fuzzy hash scanning (e.g., using ssdeep or similar)  
   - Multi-selection with batch delete/move capabilities (with trash & confirmation)  
   - Detailed scan progress, cancelation, and incremental UI updates  
   - Preview pane supporting images, text files, and metadata display  
   - Export scan reports (CSV/JSON)

### 4. **Windows Tweaks**

- **Free (Safe) Tweaks:**  
   - One-click enable/disable USB storage devices  
   - Enable Windows classic Photo Viewer  
   - Add “Open With” to context menu  
   - Basic UI toggles for Windows performance options (animations etc)  
- **Pro (Advanced) Tweaks:**  
   - Registry manipulations including: animations control, telemetry restrictions, paging file optimizations  
   - Taskbar left alignment toggle for Windows 11  
   - Spyware and privacy settings toggles  
   - Full tweak application UI with progress bars and revert last applied tweak option  
   - Safe operation flow with automatic system restore point creation before critical changes

### 5. **One Click Apps Installer**

- Similar to Ninite UI:  
   - Grid of popular commonly used applications with icons and toggle selection  
   - Supports Chocolatey package installations silently with admin privilege check  
   - "Install Selected" button triggers silent installs  
   - Background threaded install process with live logs and progress bars  
   - Error reporting per app install failure  
   - User cancellation support  

### 6. **Windows Maintenance Tools**

- GUI to run SFC (`sfc /scannow`) and DISM (`dism /online /cleanup-image /restorehealth`) scans  
- Real-time progress and detailed logs displayed  
- Repair options post-scan  
- Windows Update status display and manual update trigger buttons  
- Logs export and compressed archive support  
- Report and resolve most common Windows system issues via safe scripted commands  
- Option to schedule automatic maintenance jobs with user-set intervals

### 7. **Windows Bloatware Removal**

- Display list of pre-installed Windows apps with install dates, sizes, and descriptions  
- Safe uninstall option per app with restore feature  
- **Free version:** single app uninstall/restore, no batch  
- **Pro version:** batch uninstall, schedule uninstall jobs, and full restore from backup  
- Clear warnings for system-critical apps  

### 8. **Licensing & Subscription System**

- Razorpay subscription integration supporting multiple plans: monthly, 3-month, 6-month, yearly, 3-year  
- After payment success from server backend, generate license keys encoded and encrypted tied to unique hardware fingerprint (hash of CPU+motherboard+disk info)  
- License activation workflow with online server verification  
- License storage encrypted locally (using `cryptography.Fernet` or equivalent) with non-hardcoded keys  
- License periodic online validation and refresh to prevent offline tampering or key reuse on multiple devices  
- Only one PC activation per license, hardware changes require reactivation and manual license transfer  
- Secure offline fallback with tamper detection  
- Integration placeholders for Razorpay webhooks and license server API  
- License expiration warning, renewal and upgrade links from UI  

### 9. **Additional Features**

- Scheduled automatic cleanup and optimization tasks configurable from UI  
- Browser cache and Windows telemetry privacy cleaner  
- System restore point creation before all critical changes (tweaks, uninstallations, maintenance)  
- Dark mode available throughout the app  
- Fully internationalization-ready UI foundations with translation files placeholder (.ts/.qm files)  
- In-app developer contact form with logs attachment and error reporting submission  
- Logs export feature for support  
- Persistent notification system (tray notifications or in-app alerts)

---

## Technical and Development Requirements

- **Programming Techniques:**  
   - Use PyQt5/PySide2 advanced widgets and layouts  
   - Themes & stylesheet CSS for dark/light mode  
   - Signals/slots for inter-module communication  
   - QThread or QRunnable + QThreadPool for any IO or CPU intensive task (scans, installs)  
- **System APIs:**  
   - Use `psutil`, `wmi` for system info  
   - Use `subprocess` with retries and timeout for running commands (SFC, DISM, Chocolatey)  
- **Cryptography:**  
   - Use `cryptography` package for license key encryption/decryption securely  
- **Modular Code Organization:**  
   - Separate UI from backend business logic and data access  
   - Use MVC or MVP architectural patterns  
- **Testing:**  
   - Provide test suite skeleton with `pytest` coverage for backend critical modules  
- **Security:**  
   - Avoid hardcoded encryption keys; store in environment/config securely  
   - Prevent license code tampering through encryption and periodic validation  
   - Prompt for elevation/UAC when required for system operations  
- **Packaging & Deployment:**  
   - Provide `pyinstaller.spec` file and build instructions for Windows exe  
   - Recommendations for code obfuscation (PyArmor, Nuitka, Cython) post-build  

---

## Deliverables

Your output should include:

- Complete Python project folder structure with meaningful README and docs folder  
- All Python source code files for backend modules (system info, license, tweaks, apps installer, duplicate finder, maintenance, bloatware removal, logging, utils)  
- All PyQt5 UI modules for all screens and dialogs, including license activation workflow UI  
- Example Razorpay subscription integration backend snippet (Flask or Django), client placeholders  
- Hardware fingerprint code snippet securely hashing CPU, motherboard, disk info  
- Multithreaded QThread/QRunnable examples for long-running tasks with UI communication  
- Exception-safe subprocess command execution examples  
- Code documentation with docstrings and inline comments on every file/class/function  
- Instructions on environment setup, dependency installation, run commands, and PyInstaller packaging  
- Security notes and best practices for license encryption and app protection  
- Localization-ready UI with no hardcoded user-facing strings, replaced by translation keys where applicable  
- Dark mode stylesheet sample integrated with the app  

---

## Additional Notes

- Emphasize UX/UX: UI responsiveness, clear progress indicators, friendly error messages  
- Provide placeholding comments or stubs where integration (payments, license server) requires backend  
- Logs and notifications cross-linked so status changes reflect instantly in Dashboard alerts  
- Design for easy maintainability and scalability  

---

# End of prompt.

(note i want professional commercial grade ui ux)

Feel free to supply this comprehensive prompt to any advanced AI or development team to **regenerate the entire HC Doctor App project from scratch** with all professional-grade code, UI, backend, and infrastructure built-in and tested.

If you need, I can help generate modular code snippets or project scaffolding based on this prompt next.

---

**Good luck building your HC Doctor App!**