Design a comprehensive Next.js web application architecture that integrates user authentication with robust session management, employing a system like Geist UI for frontend components. Incorporate Telegram Login Widget for user authentication, interfacing through API routes and server actions, and use MongoDB as the primary database with device tracking via a dedicated Device model. Implement web push notifications to alert users about system events such as successful login messages, and facilitate multimedia content sharing including videos, images, and code snippets for testing purposes. Incorporate Role-Based Access Control (RBAC) for real-time permission management across different user roles, such as students, teachers, and administrators, with the ability to create and manage entities like schools, collage events, and organizations. Enable online and offline functionality, ensuring data is securely encrypted during transit and storage to prevent any unauthorized decoding. Support features for managing payments, donations, and premium services, with secure payment gateways integrated and thorough validation to prevent bypasses. Develop professional pages including About, and other informational pages, with a focus on a polished user experience. The system should support complex testing scenarios like Olympiads, with capabilities for real-time updates, but ensure that test data remains completely secure and undecipherable if accessed improperly. Overall, establish an advanced, secure, scalable, and user-friendly platform that meets these comprehensive requirements.Speak in uzbek(add notification, e.p. Tizimga kirdingiz ${logindata} inline button chiqish degan, webpush sozlash kerak, kodli savollar masalan, python, js va boshqa bilan video(media, rasm, code va boshqalar)lari test uchun, Device modeli ham kerak. auth va boshqa bypass oldini ol, Maktablar kollajlar va boshqa tashkilotlarni yaratish, Bu bilan to'lovlarni olish donate va boshqa pullik xizmatlar uchun, Role based accses controlni sozlash kerak real timeda testlarni ko'rish ishlash, olimpiyadalar, offline ishlashni qo'shish kerak lekin test malumotlarni hech qanday yo'l bilan decode qilib bo'lmasligi shart, About va boshqa pagelarni ham professional qilib ber. Shunlarni barchasni mukammal qilib ber)