:root {
            --primary: #8BC540;
            --primary-dark: #6BA832;
            --primary-light: #B8E986;
            --primary-glow: rgba(139, 197, 64, 0.3);

            --secondary: #1E293B;
            --accent: #FBBF24;

            --dark: #0F172A;
            --dark-800: #1E293B;
            --dark-700: #334155;
            --dark-600: #475569;

            --gray-500: #64748B;
            --gray-400: #94A3B8;
            --gray-300: #CBD5E1;
            --gray-200: #E2E8F0;
            --gray-100: #F1F5F9;
            --gray-50: #F8FAFC;

            --white: #FFFFFF;

            --gradient-primary: linear-gradient(135deg, #8BC540 0%, #6BA832 100%);
            --gradient-dark: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
            --gradient-hero: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 50%, #F1F5F9 100%);

            --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
            --shadow-primary: 0 10px 40px -10px rgba(139, 197, 64, 0.4);

            --radius: 10px;
            --radius-lg: 16px;
            --radius-xl: 24px;

            /* Spacing shkalasi (izchil ritm) */
            --space-1: 0.25rem;
            --space-2: 0.5rem;
            --space-3: 0.75rem;
            --space-4: 1rem;
            --space-5: 1.5rem;
            --space-6: 2rem;
            --space-8: 3rem;

            /* Fluid tipografiya shkalasi (mobil -> desktop silliq) */
            --text-xs: 0.75rem;
            --text-sm: 0.875rem;
            --text-base: 1rem;
            --text-lg: 1.125rem;
            --text-xl: 1.25rem;
            --h1: clamp(1.5rem, 4vw + 0.5rem, 3.5rem);
            --h2: clamp(1.25rem, 2.6vw + 0.5rem, 2.5rem);
            --h3: clamp(1.1rem, 1.5vw + 0.7rem, 1.75rem);
            --h4: clamp(1.05rem, 1vw + 0.8rem, 1.25rem);
        }

        /* ========== DARK THEME ========== */
        [data-theme="dark"] {
            --dark: #F1F5F9;
            --dark-800: #E2E8F0;
            --dark-700: #CBD5E1;
            --dark-600: #94A3B8;

            --gray-500: #94A3B8;
            --gray-400: #64748B;
            --gray-300: #334155;
            --gray-200: #1E293B;
            --gray-100: #162032;
            --gray-50: #0F172A;

            --white: #1A2332;

            --secondary: #E2E8F0;

            --gradient-dark: linear-gradient(135deg, #E2E8F0 0%, #F1F5F9 100%);
            --gradient-hero: linear-gradient(135deg, #0F172A 0%, #162032 50%, #0F172A 100%);

            --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
            --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
            --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.4);

            color-scheme: dark;
        }

        /* --- Dark: Body & Typography --- */
        [data-theme="dark"] body {
            color: #94A3B8;
            background: #0F172A;
        }

        [data-theme="dark"] .text-dark,
        [data-theme="dark"] h1, [data-theme="dark"] h2,
        [data-theme="dark"] h3, [data-theme="dark"] h4,
        [data-theme="dark"] h5, [data-theme="dark"] h6 {
            color: #F1F5F9 !important;
        }

        [data-theme="dark"] p { color: #94A3B8; }
        [data-theme="dark"] a { color: #8BC540; }
        [data-theme="dark"] a:hover { color: #B8E986; }
        [data-theme="dark"] .text-muted { color: #64748B !important; }
        [data-theme="dark"] small { color: #64748B; }

        /* --- Dark: Navbar --- */
        [data-theme="dark"] .navbar {
            background: rgba(15, 23, 42, 0.85);
            border-color: rgba(255, 255, 255, 0.07);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.04);
        }

        [data-theme="dark"] .navbar-brand { color: #F1F5F9 !important; }
        [data-theme="dark"] .nav-link-simple { color: #94A3B8; }
        [data-theme="dark"] .nav-link-simple:hover { color: #8BC540; background: rgba(139, 197, 64, 0.1); }
        [data-theme="dark"] .nav-link-simple.active { color: #8BC540; background: rgba(139, 197, 64, 0.15); }

        /* --- Dark: Notification bell --- */
        [data-theme="dark"] .notif-bell-btn {
            background: #1E293B;
            border-color: #334155;
            color: #94A3B8;
        }
        [data-theme="dark"] .notif-bell-btn:hover { background: #334155; color: #F1F5F9; }
        [data-theme="dark"] .notif-dropdown {
            background: #1A2332;
            border-color: #334155;
            box-shadow: 0 20px 50px rgba(0,0,0,0.5);
        }
        [data-theme="dark"] .notif-dropdown-header { border-bottom-color: #334155; }
        [data-theme="dark"] .notif-dropdown-footer { border-top-color: #334155; }
        [data-theme="dark"] .notif-item { border-bottom-color: #1E293B; }
        [data-theme="dark"] .notif-item:hover { background: #162032; }
        [data-theme="dark"] .notif-item.unread { background: rgba(139, 197, 64, 0.05); }
        [data-theme="dark"] .notif-item-title { color: #E2E8F0; }

        /* --- Dark: Buttons --- */
        [data-theme="dark"] .btn-light {
            background: #1E293B;
            color: #E2E8F0;
            border-color: #334155;
        }
        [data-theme="dark"] .btn-light:hover { background: #334155; border-color: #475569; color: #F1F5F9; }
        [data-theme="dark"] .btn-dark {
            background: #F1F5F9;
            color: #0F172A;
        }
        [data-theme="dark"] .btn-dark:hover { background: #E2E8F0; color: #0F172A; }
        [data-theme="dark"] .btn-outline {
            border-color: #475569;
            color: #E2E8F0;
        }
        [data-theme="dark"] .btn-outline:hover { background: #E2E8F0; color: #0F172A; }

        /* --- Dark: Cards --- */
        [data-theme="dark"] .card {
            background: #1A2332;
            border-color: #1E293B;
        }
        [data-theme="dark"] .card:hover { border-color: #334155; }
        [data-theme="dark"] .card-glow:hover { border-color: rgba(139, 197, 64, 0.4); }

        /* --- Dark: Forms --- */
        [data-theme="dark"] .form-control,
        [data-theme="dark"] .input-group-text,
        [data-theme="dark"] .form-select {
            background: #162032;
            border-color: #334155;
            color: #E2E8F0;
        }
        [data-theme="dark"] .form-control:focus,
        [data-theme="dark"] .form-select:focus {
            border-color: #8BC540;
            box-shadow: 0 0 0 3px rgba(139, 197, 64, 0.2);
        }
        [data-theme="dark"] .form-control::placeholder { color: #475569; }
        [data-theme="dark"] .form-check-input {
            background-color: #1E293B;
            border-color: #475569;
        }
        [data-theme="dark"] .form-check-input:checked {
            background-color: #8BC540;
            border-color: #8BC540;
        }

        /* --- Dark: Alerts --- */
        [data-theme="dark"] .alert-success { background: #064E3B; color: #A7F3D0; border-left-color: #10B981; }
        [data-theme="dark"] .alert-danger { background: #7F1D1D; color: #FECACA; border-left-color: #EF4444; }
        [data-theme="dark"] .alert-warning { background: #78350F; color: #FDE68A; border-left-color: #F59E0B; }
        [data-theme="dark"] .alert-info { background: #1E3A5F; color: #BFDBFE; border-left-color: #3B82F6; }

        /* --- Dark: Tables --- */
        [data-theme="dark"] table, [data-theme="dark"] .table {
            color: #94A3B8;
        }
        [data-theme="dark"] .table > :not(caption) > * > * {
            background-color: transparent;
            border-bottom-color: #1E293B;
            color: #94A3B8;
        }
        [data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
            background-color: rgba(30, 41, 59, 0.3);
        }
        [data-theme="dark"] thead th { color: #E2E8F0 !important; }

        /* --- Dark: Footer --- */
        [data-theme="dark"] .footer {
            background: #0B1120;
            border-top: 1px solid #1E293B;
        }
        [data-theme="dark"] .footer-brand { color: #F1F5F9; }
        [data-theme="dark"] .footer a { color: #64748B; }
        [data-theme="dark"] .footer a:hover { color: #8BC540; }
        [data-theme="dark"] .footer-bottom { border-top-color: #1E293B; }

        /* --- Dark: Badges & Tags --- */
        [data-theme="dark"] .badge { opacity: 0.9; }
        [data-theme="dark"] .badge.bg-light { background: #1E293B !important; color: #E2E8F0 !important; }

        /* --- Dark: Modals --- */
        [data-theme="dark"] .modal-content {
            background: #1A2332;
            border-color: #334155;
            color: #E2E8F0;
        }
        [data-theme="dark"] .modal-header { border-bottom-color: #1E293B; }
        [data-theme="dark"] .modal-footer { border-top-color: #1E293B; }
        [data-theme="dark"] .btn-close { filter: invert(1); }

        /* --- Dark: Pagination --- */
        [data-theme="dark"] .page-link {
            background: #1A2332;
            border-color: #334155;
            color: #94A3B8;
        }
        [data-theme="dark"] .page-link:hover { background: #1E293B; color: #8BC540; }
        [data-theme="dark"] .page-item.active .page-link {
            background: #8BC540;
            border-color: #8BC540;
            color: white;
        }

        /* --- Dark: Dropdowns (Bootstrap) --- */
        [data-theme="dark"] .dropdown-menu {
            background: #1A2332;
            border-color: #334155;
        }
        [data-theme="dark"] .dropdown-item { color: #94A3B8; }
        [data-theme="dark"] .dropdown-item:hover { background: #1E293B; color: #F1F5F9; }
        [data-theme="dark"] .dropdown-divider { border-top-color: #1E293B; }

        /* --- Dark: System Banners --- */
        [data-theme="dark"] .system-banner { opacity: 0.95; }

        /* --- Dark: Scrollbar --- */
        [data-theme="dark"] ::-webkit-scrollbar { width: 8px; }
        [data-theme="dark"] ::-webkit-scrollbar-track { background: #0F172A; }
        [data-theme="dark"] ::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
        [data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #475569; }

        /* --- Dark: Home page sections --- */
        [data-theme="dark"] .hero {
            background: linear-gradient(160deg, #0F172A 0%, #162032 40%, #0F172A 100%) !important;
        }
        [data-theme="dark"] .hero::before {
            background: radial-gradient(circle, rgba(139, 197, 64, 0.06) 0%, transparent 70%);
        }
        [data-theme="dark"] section[style*="background: white"],
        [data-theme="dark"] section[style*="background:#fff"],
        [data-theme="dark"] section[style*="background: #fff"] {
            background: #0F172A !important;
        }

        /* --- Dark: Auth pages --- */
        [data-theme="dark"] .auth-wrapper {
            background: linear-gradient(135deg, #0F172A 0%, #162032 50%, #0F172A 100%) !important;
        }
        [data-theme="dark"] .auth-card {
            background: #1A2332;
            border-color: #1E293B;
        }
        [data-theme="dark"] .tg-section {
            background: #162032;
            border-color: #1E293B;
        }
        [data-theme="dark"] .phone-section {
            background: #162032;
            border-color: #1E293B;
        }
        [data-theme="dark"] .code-digit {
            background: #1A2332;
            border-color: #334155;
            color: #F1F5F9;
        }
        [data-theme="dark"] .code-digit:focus {
            border-color: #8BC540;
            box-shadow: 0 0 0 3px rgba(139, 197, 64, 0.2);
        }
        [data-theme="dark"] .code-digit.filled {
            border-color: #8BC540;
            background: rgba(139, 197, 64, 0.05);
        }

        /* --- Dark: Home page — Hero chat & bubbles --- */
        [data-theme="dark"] .hero-chat {
            background: #1A2332;
            border-color: #1E293B;
            box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
        }
        [data-theme="dark"] .hero-chat::before {
            background: linear-gradient(135deg, rgba(139, 197, 64, 0.2), transparent 50%);
        }
        [data-theme="dark"] .chat-header { border-bottom-color: #1E293B; }
        [data-theme="dark"] .bubble-user { background: #162032; color: #E2E8F0; }
        [data-theme="dark"] .bubble-ai {
            background: linear-gradient(135deg, rgba(139, 197, 64, 0.08) 0%, rgba(139, 197, 64, 0.02) 100%);
            color: #94A3B8;
        }
        [data-theme="dark"] .float-badge {
            background: #1A2332;
            border-color: #1E293B;
            color: #E2E8F0;
            box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.4);
        }
        [data-theme="dark"] .hero-badge {
            background: rgba(139, 197, 64, 0.08);
            border-color: rgba(139, 197, 64, 0.2);
        }

        /* --- Dark: Home page — Feature cards --- */
        [data-theme="dark"] .feature-card {
            background: #1A2332;
            border-color: #1E293B;
        }
        [data-theme="dark"] .feature-card:hover {
            border-color: rgba(139, 197, 64, 0.3);
            box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.4);
        }
        [data-theme="dark"] .features-section { background: #0F172A; }
        [data-theme="dark"] .steps-section { background: #0F172A; }

        /* --- Dark: Home page — Subject cards --- */
        [data-theme="dark"] .subjects-section { background: #0B1120; }
        [data-theme="dark"] .subject-card {
            background: #1A2332;
            border-color: #1E293B;
        }
        [data-theme="dark"] .subject-card:hover {
            border-color: rgba(139, 197, 64, 0.3);
            box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.4);
        }

        /* --- Dark: Home page — Stats section --- */
        [data-theme="dark"] .stats-section {
            background: linear-gradient(135deg, #0B1120 0%, #0F172A 100%);
        }
        [data-theme="dark"] .stat-label { color: #64748B; }

        /* --- Dark: Home page — Pricing cards --- */
        [data-theme="dark"] .pricing-section { background: #0B1120; }
        [data-theme="dark"] .pricing-card {
            background: #1A2332;
            border-color: #1E293B;
        }
        [data-theme="dark"] .pricing-card:hover {
            box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.4);
        }
        [data-theme="dark"] .pricing-card.popular {
            border-color: #8BC540;
            box-shadow: 0 20px 50px -15px rgba(139, 197, 64, 0.15);
        }
        [data-theme="dark"] .pricing-features li.disabled { color: #475569; }
        [data-theme="dark"] .pricing-features li.disabled .check { background: #1E293B; color: #475569; }

        /* --- Dark: Home page — CTA section --- */
        [data-theme="dark"] .cta-section {
            background: linear-gradient(135deg, #0D3B0F 0%, #0F4A12 50%, #0D3B0F 100%);
        }

        /* --- Dark: Home page — Section labels --- */
        [data-theme="dark"] .section-label {
            background: rgba(139, 197, 64, 0.08);
        }

        /* --- Dark: Tests list page — Test cards --- */
        [data-theme="dark"] .tl-card {
            background: #1A2332;
            border-color: #1E293B;
        }
        [data-theme="dark"] .tl-card:hover {
            border-color: #334155;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        }
        [data-theme="dark"] .tl-card-bottom { border-top-color: #1E293B; }
        [data-theme="dark"] .tl-badge.practice { background: rgba(5, 150, 105, 0.15); color: #34D399; }
        [data-theme="dark"] .tl-badge.exam { background: rgba(220, 38, 38, 0.15); color: #FCA5A5; }
        [data-theme="dark"] .tl-badge.block { background: rgba(37, 99, 235, 0.15); color: #93C5FD; }
        [data-theme="dark"] .tl-badge.test { background: #1E293B; color: #94A3B8; }
        [data-theme="dark"] .tl-empty {
            background: #1A2332;
            border-color: #1E293B;
        }
        [data-theme="dark"] .tl-empty-icon { background: #162032; }
        [data-theme="dark"] .tl-empty-icon i { color: #64748B; }

        /* --- Dark: Profile page --- */
        [data-theme="dark"] .icon-box {
            background: #1E293B;
        }
        [data-theme="dark"] .bg-opacity-10 { --bs-bg-opacity: 0.08; }
        [data-theme="dark"] .border-light { border-color: #1E293B !important; }
        [data-theme="dark"] .border-start { border-left-color: #1E293B !important; }
        [data-theme="dark"] .card-footer { background: #1A2332 !important; border-top-color: #1E293B !important; }
        [data-theme="dark"] .text-dark { color: #E2E8F0 !important; }
        [data-theme="dark"] .progress { background: #1E293B; }
        [data-theme="dark"] .bg-gradient-primary { background: linear-gradient(135deg, #8BC540, #6BA832); }

        /* --- Dark: New Profile page --- */
        [data-theme="dark"] .profile-hero { background: #0F172A; border-bottom-color: #1E293B; }
        [data-theme="dark"] .avatar-inner { background: #1A2332; border-color: #1A2332; }
        [data-theme="dark"] .avatar-placeholder { background: #1E293B; color: #8BC540; }
        [data-theme="dark"] .profile-tag { background: #1E293B; border-color: #334155; color: #94A3B8; }
        [data-theme="dark"] .stat-mini { background: #1A2332; border-color: #1E293B; }
        [data-theme="dark"] .stat-mini:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
        [data-theme="dark"] .stat-mini-value { color: #F1F5F9; }
        [data-theme="dark"] .prof-card { background: #1A2332; border-color: #1E293B; }
        [data-theme="dark"] .prof-card-header { border-bottom-color: #1E293B; }
        [data-theme="dark"] .prof-card-header h6 { color: #E2E8F0; }
        [data-theme="dark"] .level-progress-bar { background: #1E293B; }
        [data-theme="dark"] .streak-display { background: linear-gradient(135deg, #1A1207, #1C1608); border-color: #3D2A0A; }
        [data-theme="dark"] .badge-item:hover { background: #162032; }
        [data-theme="dark"] .badge-icon-wrap { background: #162032; border-color: #1E293B; }
        [data-theme="dark"] .activity-item { border-bottom-color: #1E293B; }
        [data-theme="dark"] .subject-bar-name { color: #E2E8F0; }
        [data-theme="dark"] .subject-bar-track { background: #1E293B; }

        /* --- Dark: Misc Bootstrap overrides --- */
        [data-theme="dark"] .bg-white { background-color: #1A2332 !important; }
        [data-theme="dark"] .bg-light { background-color: #162032 !important; }
        [data-theme="dark"] .border { border-color: #1E293B !important; }
        [data-theme="dark"] .border-bottom { border-bottom-color: #1E293B !important; }
        [data-theme="dark"] .border-top { border-top-color: #1E293B !important; }
        [data-theme="dark"] .text-body { color: #94A3B8 !important; }
        [data-theme="dark"] .shadow, [data-theme="dark"] .shadow-sm, [data-theme="dark"] .shadow-lg {
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
        }
        [data-theme="dark"] hr { border-color: #1E293B; }
        [data-theme="dark"] .list-group-item {
            background: #1A2332;
            border-color: #1E293B;
            color: #94A3B8;
        }
        [data-theme="dark"] .accordion-item { background: #1A2332; border-color: #1E293B; }
        [data-theme="dark"] .accordion-button { background: #1A2332; color: #E2E8F0; }
        [data-theme="dark"] .accordion-button:not(.collapsed) { background: #162032; color: #8BC540; }
        [data-theme="dark"] .breadcrumb-item a { color: #64748B; }
        [data-theme="dark"] .breadcrumb-item.active { color: #94A3B8; }
        [data-theme="dark"] .text-secondary { color: #64748B !important; }
        [data-theme="dark"] .border-end { border-right-color: #1E293B !important; }
        [data-theme="dark"] .bg-dark { background-color: #0B1120 !important; }
        [data-theme="dark"] .card.bg-dark { background: #0B1120 !important; border-color: #1E293B !important; }
        [data-theme="dark"] .text-white-50 { color: rgba(148, 163, 184, 0.7) !important; }
        [data-theme="dark"] .btn-link { color: #8BC540; }
        [data-theme="dark"] .btn-link:hover { color: #B8E986; }
        [data-theme="dark"] .btn-outline-secondary {
            border-color: #334155;
            color: #94A3B8;
        }
        [data-theme="dark"] .btn-outline-secondary:hover {
            background: #1E293B;
            border-color: #475569;
            color: #E2E8F0;
        }
        [data-theme="dark"] .btn-primary {
            background: linear-gradient(135deg, #8BC540, #6BA832);
            border-color: #8BC540;
        }
        [data-theme="dark"] .btn-outline {
            border-color: #334155;
            color: #94A3B8;
        }
        [data-theme="dark"] .btn-outline:hover {
            background: #1E293B;
            color: #E2E8F0;
        }
        [data-theme="dark"] .btn-sm.btn-light {
            background: #1E293B;
            border-color: #334155;
            color: #E2E8F0;
        }
        [data-theme="dark"] .btn-sm.btn-light:hover {
            background: #334155;
            color: #F1F5F9;
        }

        /* --- Dark: Test detail page --- */
        [data-theme="dark"] .td-card {
            background: #1A2332;
            border-color: #1E293B;
        }
        [data-theme="dark"] .td-card-header { border-bottom-color: #1E293B; }
        [data-theme="dark"] .td-info-item { border-bottom-color: #1E293B; }
        [data-theme="dark"] .td-attempt-item { background: #162032; }
        [data-theme="dark"] .td-attempt-score.excellent { background: rgba(5, 150, 105, 0.15); color: #34D399; }
        [data-theme="dark"] .td-attempt-score.good { background: rgba(139, 197, 64, 0.15); color: #8BC540; }
        [data-theme="dark"] .td-attempt-score.average { background: rgba(217, 119, 6, 0.15); color: #FBBF24; }
        [data-theme="dark"] .td-attempt-score.poor { background: rgba(220, 38, 38, 0.15); color: #FCA5A5; }

        /* --- Dark: My results page --- */
        [data-theme="dark"] .chart-card {
            background: #1A2332;
            border-color: #1E293B;
        }
        [data-theme="dark"] .chart-card-header { border-bottom-color: #1E293B; }
        [data-theme="dark"] .chart-card-header h6 { color: #E2E8F0; }
        [data-theme="dark"] .subject-legend-item { color: #94A3B8; }
        [data-theme="dark"] .results-sort select { background: #1A2332; border-color: #334155; color: #E2E8F0; }
        [data-theme="dark"] .stat-card {
            background: #1A2332;
            border-color: #1E293B;
        }
        [data-theme="dark"] .stat-icon.green { background: rgba(5, 150, 105, 0.12); color: #34D399; }
        [data-theme="dark"] .stat-icon.blue { background: rgba(37, 99, 235, 0.12); color: #93C5FD; }
        [data-theme="dark"] .stat-icon.yellow { background: rgba(217, 119, 6, 0.12); color: #FBBF24; }
        [data-theme="dark"] .stat-icon.purple { background: rgba(124, 58, 237, 0.12); color: #C4B5FD; }
        [data-theme="dark"] .results-tab {
            background: #1E293B;
            border-color: #334155;
            color: #94A3B8;
        }
        [data-theme="dark"] .results-tab:hover { background: #334155; }
        [data-theme="dark"] .results-tab.active {
            background: #E2E8F0;
            border-color: #E2E8F0;
            color: #0F172A;
        }
        [data-theme="dark"] .result-item {
            background: #1A2332;
            border-color: #1E293B;
        }
        [data-theme="dark"] .result-item:hover {
            border-color: #334155;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        }
        [data-theme="dark"] .result-score.excellent { background: rgba(5, 150, 105, 0.15); color: #34D399; border-color: #10B981; }
        [data-theme="dark"] .result-score.good { background: rgba(139, 197, 64, 0.15); color: #8BC540; border-color: #8BC540; }
        [data-theme="dark"] .result-score.average { background: rgba(217, 119, 6, 0.15); color: #FBBF24; border-color: #F59E0B; }
        [data-theme="dark"] .result-score.poor { background: rgba(220, 38, 38, 0.15); color: #FCA5A5; border-color: #EF4444; }

        /* --- Dark: AI Mentor page --- */
        [data-theme="dark"] .activity-card {
            background: #1A2332;
            border-color: #1E293B;
        }

        /* --- Dark: Universities page --- */
        [data-theme="dark"] .uni-card { background: #1A2332; border-color: #1E293B; }
        [data-theme="dark"] .uni-card:hover { border-color: #334155; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
        [data-theme="dark"] .uni-card-name { color: #E2E8F0; }
        [data-theme="dark"] .uni-card-logo { background: #1A2332; }
        [data-theme="dark"] .uni-card-type.state { background: rgba(37,99,235,0.12); color: #93C5FD; }
        [data-theme="dark"] .uni-card-type.private { background: rgba(220,38,38,0.12); color: #FCA5A5; }
        [data-theme="dark"] .uni-card-info-icon.price { background: rgba(5,150,105,0.12); color: #34D399; }
        [data-theme="dark"] .uni-card-info-icon.date { background: rgba(217,119,6,0.12); color: #FBBF24; }
        [data-theme="dark"] .uni-card-info-value { color: #CBD5E1; }
        [data-theme="dark"] .unis-stats-bar { background: #1A2332; border-color: #1E293B; }
        [data-theme="dark"] .unis-stats-icon.blue { background: rgba(37,99,235,0.12); color: #93C5FD; }
        [data-theme="dark"] .unis-stats-icon.green { background: rgba(5,150,105,0.12); color: #34D399; }
        [data-theme="dark"] .unis-stats-icon.orange { background: rgba(234,88,12,0.12); color: #FB923C; }
        [data-theme="dark"] .unis-filter-btn { background: #1E293B; border-color: #334155; color: #94A3B8; }
        [data-theme="dark"] .unis-filter-btn:hover { background: #334155; }
        [data-theme="dark"] .unis-filter-btn.active { background: var(--gradient-primary); border-color: var(--primary); color: white; }
        [data-theme="dark"] .unis-region-select { background: #1A2332; border-color: #334155; color: #E2E8F0; }
        [data-theme="dark"] .unis-search input { background: #1A2332; border-color: #334155; color: #E2E8F0; }
        [data-theme="dark"] .unis-empty { background: #1A2332; border-color: #1E293B; }

        /* --- Dark: Competitions page --- */
        [data-theme="dark"] .comp-hero {
            background: linear-gradient(135deg, #0B1120 0%, #0F172A 100%);
        }
        [data-theme="dark"] .hero-stat {
            background: rgba(255,255,255,0.03);
            border-color: rgba(255,255,255,0.06);
        }

        /* --- Dark: Leaderboard hero inline override --- */
        [data-theme="dark"] section[style*="background: linear-gradient(135deg, #F8FAFC"] {
            background: linear-gradient(135deg, #0F172A 0%, #162032 50%, #0F172A 100%) !important;
        }
        [data-theme="dark"] .card-glow[style*="background: linear-gradient(135deg, #FFFBEB"] {
            background: linear-gradient(135deg, #1A2332 0%, #162032 100%) !important;
            border-color: #8BC540 !important;
        }

        /* --- Dark: News page --- */
        [data-theme="dark"] .hover-lift:hover {
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
        }
        [data-theme="dark"] .rounded-4 { border-color: #1E293B; }
        [data-theme="dark"] .no-scrollbar::-webkit-scrollbar { display: none; }
        [data-theme="dark"] .badge.bg-white {
            background: #1E293B !important;
            color: #E2E8F0 !important;
        }
        [data-theme="dark"] .card-img-top + .card-body { background: #1A2332; }

        /* --- Dark: Section with section-sm class --- */
        [data-theme="dark"] .section-sm { background: #0F172A; }
        [data-theme="dark"] .section-sm.bg-light { background: #0B1120 !important; }

        /* --- Dark: Settings & forms pages --- */
        [data-theme="dark"] .nav-pills .nav-link {
            color: #94A3B8;
        }
        [data-theme="dark"] .nav-pills .nav-link.active {
            background: #8BC540;
            color: white;
        }
        [data-theme="dark"] .nav-pills .nav-link:hover:not(.active) {
            background: #1E293B;
            color: #E2E8F0;
        }

        /* --- Dark: Generic inline style overrides --- */
        [data-theme="dark"] [style*="background: white"],
        [data-theme="dark"] [style*="background:#fff"],
        [data-theme="dark"] [style*="background: #fff"],
        [data-theme="dark"] [style*="background-color: white"],
        [data-theme="dark"] [style*="background: #FFFFFF"],
        [data-theme="dark"] [style*="background: #ffffff"] {
            background: #1A2332 !important;
        }
        [data-theme="dark"] [style*="color: #0F172A"],
        [data-theme="dark"] [style*="color:#0F172A"] {
            color: #F1F5F9 !important;
        }
        [data-theme="dark"] [style*="background: #F8FAFC"],
        [data-theme="dark"] [style*="background:#F8FAFC"],
        [data-theme="dark"] [style*="background: #F1F5F9"],
        [data-theme="dark"] [style*="background:#F1F5F9"] {
            background: #0F172A !important;
        }
        [data-theme="dark"] [style*="border-color: #E2E8F0"],
        [data-theme="dark"] [style*="border: 1px solid #E2E8F0"],
        [data-theme="dark"] [style*="border-bottom: 1px solid #E2E8F0"],
        [data-theme="dark"] [style*="border-bottom: 2px solid var(--gray-200)"] {
            border-color: #1E293B !important;
        }

        /* ========== USER DROPDOWN ========== */
        .user-dropdown-wrapper {
            position: relative;
        }

        .user-dropdown-trigger {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.3rem 0.65rem 0.3rem 0.3rem;
            border-radius: 50px;
            border: 1.5px solid var(--gray-200);
            background: var(--white);
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            color: inherit;
            user-select: none;
        }

        .user-dropdown-trigger:hover {
            border-color: var(--gray-300);
            background: var(--gray-50);
            color: inherit;
        }

        .user-nav-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--gradient-primary);
            color: white;
            font-weight: 800;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            flex-shrink: 0;
            border: 2px solid rgba(255,255,255,0.4);
            box-shadow: 0 2px 8px rgba(139,197,64,0.3);
        }

        .user-nav-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .user-nav-avatar-lg {
            width: 44px;
            height: 44px;
            font-size: 1.05rem;
            border: 2px solid var(--gray-200);
            box-shadow: 0 2px 10px rgba(139,197,64,0.2);
        }

        .user-trigger-name {
            font-weight: 700;
            font-size: 0.85rem;
            color: var(--dark);
            max-width: 90px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .user-trigger-chevron {
            font-size: 0.6rem;
            color: var(--gray-400);
            transition: transform 0.2s ease;
        }

        .user-dropdown-wrapper.open .user-trigger-chevron {
            transform: rotate(180deg);
        }

        .user-dropdown-menu {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            width: 250px;
            background: var(--white);
            border: 1px solid var(--gray-200);
            border-radius: 16px;
            box-shadow: 0 20px 50px -10px rgba(0,0,0,0.15);
            opacity: 0;
            visibility: hidden;
            transform: translateY(6px);
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1060;
            overflow: hidden;
        }

        .user-dropdown-wrapper.open .user-dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .user-dropdown-menu::before {
            content: '';
            position: absolute;
            top: -6px;
            right: 18px;
            width: 12px;
            height: 12px;
            background: var(--white);
            border: 1px solid var(--gray-200);
            border-bottom: none;
            border-right: none;
            transform: rotate(45deg);
            z-index: 1;
        }

        .ud-header {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1rem 1.1rem 0.9rem;
            border-bottom: 1px solid var(--gray-100);
        }

        .ud-name {
            font-weight: 700;
            font-size: 0.92rem;
            color: var(--dark);
            line-height: 1.25;
        }

        .ud-level {
            font-size: 0.72rem;
            color: var(--gray-500);
            font-weight: 600;
            margin-top: 0.15rem;
        }

        .ud-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem 1.1rem;
            text-decoration: none;
            color: var(--dark-600);
            font-size: 0.88rem;
            font-weight: 600;
            transition: all 0.2s ease;
            border-bottom: 1px solid var(--gray-100);
        }

        .ud-item:last-child { border-bottom: none; }

        .ud-item:hover {
            background: var(--gray-50);
            color: var(--dark);
        }

        .ud-item-icon {
            width: 34px;
            height: 34px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.95rem;
            flex-shrink: 0;
        }

        .ud-item-icon.icon-green {
            background: rgba(139,197,64,0.12);
            color: var(--primary-dark);
        }

        .ud-item-icon.icon-red {
            background: rgba(239,68,68,0.1);
            color: #DC2626;
        }

        .ud-item-text {
            display: flex;
            flex-direction: column;
            line-height: 1.25;
        }

        .ud-item-label { font-weight: 700; color: var(--dark); font-size: 0.88rem; }
        .ud-item-desc  { font-size: 0.72rem; color: var(--gray-500); font-weight: 500; }

        [data-theme="dark"] .user-dropdown-trigger {
            background: #1E293B;
            border-color: #334155;
            color: #E2E8F0;
        }

        [data-theme="dark"] .user-dropdown-trigger:hover {
            background: #334155;
        }

        [data-theme="dark"] .user-trigger-name { color: #E2E8F0; }

        [data-theme="dark"] .user-dropdown-menu {
            background: #1A2332;
            border-color: #2D3B4F;
            box-shadow: 0 20px 50px -10px rgba(0,0,0,0.4);
        }

        [data-theme="dark"] .user-dropdown-menu::before {
            background: #1A2332;
            border-color: #2D3B4F;
        }

        [data-theme="dark"] .ud-header { border-bottom-color: #2D3B4F; }
        [data-theme="dark"] .ud-item { border-bottom-color: #2D3B4F; }
        [data-theme="dark"] .ud-item:hover { background: #162032; }
        [data-theme="dark"] .ud-item-label { color: #E2E8F0; }
        [data-theme="dark"] .ud-name { color: #F1F5F9; }

        @media (max-width: 576px) {
            .user-dropdown-menu {
                width: calc(100vw - 24px);
                right: -10px;
            }
        }

        /* Dark mode toggle */
        /* DARK REJIM VAQTINCHA O'CHIRILGAN — tugmalar yashirildi (2026-07-13) */
        .theme-toggle, .mob-menu-foot { display: none !important; }

        .theme-toggle {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            border: 1px solid var(--gray-200);
            background: var(--white);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            color: var(--dark-600);
            cursor: pointer;
            transition: all 0.25s ease;
        }

        .theme-toggle:hover {
            background: var(--gray-100);
            border-color: var(--gray-300);
            color: var(--primary);
        }

        [data-theme="dark"] .theme-toggle .bi-moon-fill { display: none; }
        [data-theme="light"] .theme-toggle .bi-sun-fill { display: none; }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            -webkit-text-size-adjust: 100%; /* iOS: matn avto-shishishini to'xtatadi */
            text-size-adjust: 100%;
        }

        body {
            font-family: 'Lexend', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
            font-size: 15px;
            line-height: 1.7;
            color: var(--dark-600);
            background: var(--gray-50);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: optimizeLegibility;
            letter-spacing: -0.011em;
        }

        /* Premium fon — nozik brend-yashil glow'lar (palitra O'ZGARMAYDI, ortiqcha emas) */
        body::before {
            content: '';
            position: fixed;
            inset: 0;
            z-index: -1;
            pointer-events: none;
            background:
                radial-gradient(820px circle at 88% -6%, rgba(139,197,64,0.10), transparent 44%),
                radial-gradient(620px circle at -6% 104%, rgba(139,197,64,0.06), transparent 42%);
        }
        [data-theme="dark"] body::before {
            background:
                radial-gradient(820px circle at 88% -6%, rgba(139,197,64,0.08), transparent 46%),
                radial-gradient(620px circle at -6% 104%, rgba(139,197,64,0.05), transparent 44%);
        }

        /* Tap polish + klaviatura fokus (a11y) */
        a, button, .btn, .mob-item, .tl-nav-item { -webkit-tap-highlight-color: transparent; }
        :focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

        /* Harakatni kamaytirish so'ralganda (a11y) */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
        }

        /* Typography */
        h1, h2, h3, h4, h5, h6 {
            color: var(--dark);
            font-weight: 800;
            line-height: 1.2;
            letter-spacing: -0.02em;
        }

        h1 { font-size: var(--h1); }
        h2 { font-size: var(--h2); }
        h3 { font-size: var(--h3); }
        h4 { font-size: var(--h4); }

        p { color: var(--gray-500); }

        a {
            color: var(--primary);
            text-decoration: none;
            transition: all 0.3s ease;
        }

        a:hover { color: var(--primary-dark); }

        /* ========== NAVBAR ========== */
        .navbar {
            position: fixed;
            top: 12px;
            left: 50%;
            transform: translateX(-50%);
            width: calc(100% - 32px);
            max-width: 1200px;
            z-index: 1050;
            background: rgba(255, 255, 255, 0.82);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid rgba(255, 255, 255, 0.65);
            border-radius: 100px;
            padding: 0.55rem 1.25rem;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255,255,255,0.9);
        }

        /* "2026" yorlig'i — yangi bo'lim uchun */
        .nav-new-dot{
            display:inline-block;margin-left:.28rem;padding:.06rem .32rem;
            background:linear-gradient(135deg,#8BC540,#6BA832);color:#fff;
            border-radius:5px;font-size:.6rem;font-weight:900;vertical-align:middle;
            letter-spacing:.2px;
        }

        /* "New" — diqqat tortuvchi qizil variant (2026 pili bilan bir xil shakl) */
        .nav-new-dot--hot{ background:linear-gradient(135deg,#F87171,#DC2626); }

        /* Havolalar guruhi bilan o'ng tomondagi tugmalar orasidagi nafas.
           Busiz "New" yorlig'i qo'ng'iroqqa tegib turardi. */
        .nav-links-simple { margin-right: .5rem; }

        /* Premium navbar button */
        .nav-premium-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            padding: 0.4rem 0.9rem;
            background: var(--gradient-primary);
            color: #fff !important;
            border-radius: 8px;
            font-size: 0.8rem;
            font-weight: 800;
            text-decoration: none;
            transition: all 0.2s;
            box-shadow: 0 2px 10px rgba(139,197,64,0.3);
            white-space: nowrap;
        }
        .nav-premium-btn:hover {
            box-shadow: 0 4px 18px rgba(139,197,64,0.45);
            transform: translateY(-1px);
            color: #fff !important;
        }

        /* Premium FAOL — diamond badge (premium userlar uchun) */
        .nav-premium-active {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.4rem 0.85rem;
            background: linear-gradient(135deg, #FBBF24, #F59E0B);
            color: #fff !important;
            border-radius: 8px;
            font-size: 0.78rem;
            font-weight: 800;
            text-decoration: none;
            transition: all 0.2s;
            box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
            white-space: nowrap;
            border: 1px solid rgba(255,255,255,0.3);
        }
        .nav-premium-active:hover {
            box-shadow: 0 4px 18px rgba(245, 158, 11, 0.5);
            transform: translateY(-1px);
            color: #fff !important;
        }
        .nav-premium-active .pa-days {
            background: rgba(255,255,255,0.25);
            padding: 1px 7px;
            border-radius: 50px;
            font-size: 0.68rem;
            font-weight: 800;
        }
        .nav-premium-active.expiring {
            background: linear-gradient(135deg, #EF4444, #DC2626);
            box-shadow: 0 2px 10px rgba(239,68,68,0.4);
            animation: pulse-warn 2s ease-in-out infinite;
        }
        @keyframes pulse-warn {
            0%, 100% { box-shadow: 0 2px 10px rgba(239,68,68,0.4); }
            50% { box-shadow: 0 2px 18px rgba(239,68,68,0.7); }
        }

        /* Premium info dropdown */
        .ud-premium-card {
            background: linear-gradient(135deg, #FEF3C7, #FDE68A);
            border: 1px solid #FBBF24;
            border-radius: 10px;
            padding: 12px 14px;
            margin: 8px 12px;
            display: flex; gap: 10px; align-items: center;
        }
        .ud-premium-card .pc-icon {
            width: 38px; height: 38px;
            background: linear-gradient(135deg, #FBBF24, #F59E0B);
            border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.2rem; color: #fff; flex-shrink: 0;
        }
        .ud-premium-card .pc-info { flex: 1; min-width: 0; }
        .ud-premium-card .pc-title {
            font-size: 0.82rem; font-weight: 800; color: #78350F;
        }
        .ud-premium-card .pc-meta {
            font-size: 0.72rem; color: #92400E; margin-top: 2px;
        }

        .navbar-brand {
            font-weight: 900;
            font-size: 1.5rem;
            color: var(--dark) !important;
            display: flex;
            align-items: center;
            gap: 0.6rem;
        }

        .navbar-brand .logo-icon {
            width: 40px;
            height: 40px;
            background: var(--gradient-primary);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            box-shadow: var(--shadow-primary);
        }

        /* ========== SIMPLE NAV LINKS ========== */
        .nav-links-simple {
            gap: 0.25rem;
        }

        .nav-link-simple {
            color: var(--dark-600);
            font-weight: 600;
            font-size: 0.85rem;
            padding: 0.45rem 0.75rem;
            border-radius: var(--radius);
            transition: all 0.25s ease;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.35rem;
            white-space: nowrap;
        }

        .nav-link-simple i {
            font-size: 0.9rem;
        }

        .nav-link-simple:hover {
            color: var(--primary-dark);
            background: rgba(139, 197, 64, 0.08);
        }

        .nav-link-simple.active {
            color: var(--primary-dark);
            background: rgba(139, 197, 64, 0.1);
        }

        /* ========== NOTIFICATION BELL ========== */
        .notif-bell-wrapper {
            position: relative;
        }

        .notif-bell-btn {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            border: 1px solid var(--gray-200);
            background: var(--white);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.15rem;
            color: var(--dark-600);
            cursor: pointer;
            transition: all 0.25s ease;
            position: relative;
        }

        .notif-bell-btn:hover {
            background: var(--gray-100);
            border-color: var(--gray-300);
            color: var(--primary-dark);
        }

        .notif-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            min-width: 18px;
            height: 18px;
            padding: 0 5px;
            background: #EF4444;
            color: white;
            font-size: 0.65rem;
            font-weight: 800;
            border-radius: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid white;
            line-height: 1;
        }

        .notif-dropdown {
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            width: 340px;
            background: var(--white);
            border: 1px solid var(--gray-200);
            border-radius: 16px;
            box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
            opacity: 0;
            visibility: hidden;
            transform: translateY(6px);
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1060;
            overflow: hidden;
        }

        .notif-dropdown.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .notif-dropdown-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.85rem 1rem;
            border-bottom: 1px solid var(--gray-200);
        }

        .notif-dropdown-header h6 {
            font-size: 0.9rem;
            font-weight: 800;
            margin: 0;
        }

        .notif-mark-read-btn {
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--primary);
            cursor: pointer;
            background: none;
            border: none;
            padding: 0.25rem 0.5rem;
            border-radius: 6px;
            transition: all 0.2s ease;
        }

        .notif-mark-read-btn:hover {
            background: rgba(139, 197, 64, 0.1);
        }

        .notif-list {
            max-height: 320px;
            overflow-y: auto;
        }

        .notif-item {
            display: flex;
            gap: 0.75rem;
            padding: 0.75rem 1rem;
            transition: background 0.2s ease;
            text-decoration: none;
            color: inherit;
            border-bottom: 1px solid var(--gray-100);
        }

        .notif-item:hover {
            background: var(--gray-50);
            color: inherit;
        }

        .notif-item.unread {
            background: rgba(139, 197, 64, 0.04);
        }

        .notif-item-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.95rem;
            flex-shrink: 0;
            background: var(--gray-100);
            color: var(--dark-600);
        }

        .notif-item-icon.type-system { background: rgba(59, 130, 246, 0.1); color: #2563EB; }
        .notif-item-icon.type-news { background: rgba(139, 197, 64, 0.1); color: var(--primary-dark); }
        .notif-item-icon.type-competition { background: rgba(245, 158, 11, 0.1); color: #D97706; }
        .notif-item-icon.type-achievement { background: rgba(139, 92, 246, 0.1); color: #7C3AED; }
        .notif-item-icon.type-battle { background: rgba(239, 68, 68, 0.1); color: #DC2626; }
        .notif-item-icon.type-friend { background: rgba(20, 184, 166, 0.1); color: #0D9488; }
        .notif-item-icon.type-reminder { background: rgba(245, 158, 11, 0.1); color: #D97706; }

        .notif-item-body {
            flex: 1;
            min-width: 0;
        }

        /* Matnni N qatorga qisqartirish — shablonlarda line-clamp-2/3 ishlatilgan,
           lekin klass hech qayerda aniqlanmagan edi: excerpt to'liq chiqib
           kartochkalar devorga aylanardi (yangiliklar ro'yxati). */
        .line-clamp-1, .line-clamp-2, .line-clamp-3, .line-clamp-4 {
            display: -webkit-box;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .line-clamp-1 { -webkit-line-clamp: 1; }
        .line-clamp-2 { -webkit-line-clamp: 2; }
        .line-clamp-3 { -webkit-line-clamp: 3; }
        .line-clamp-4 { -webkit-line-clamp: 4; }

        .notif-item-title {
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--dark);
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .notif-item-time {
            font-size: 0.7rem;
            color: var(--gray-400);
            font-weight: 500;
            margin-top: 2px;
        }

        .notif-empty {
            padding: 2rem 1rem;
            text-align: center;
            color: var(--gray-400);
        }

        .notif-empty i {
            font-size: 2rem;
            display: block;
            margin-bottom: 0.5rem;
            opacity: 0.5;
        }

        .notif-dropdown-footer {
            padding: 0.65rem 1rem;
            border-top: 1px solid var(--gray-200);
            text-align: center;
        }

        .notif-dropdown-footer a {
            font-size: 0.82rem;
            font-weight: 700;
            color: var(--primary);
        }

        @media (max-width: 576px) {
            .notif-dropdown {
                width: calc(100vw - 24px);
                right: -60px;
            }
        }

        /* ========== BUTTONS ========== */
        .btn,
        .btn.btn-lg,
        .btn.btn-sm {
            border-radius: 999px !important;   /* pill — Bootstrap .btn-lg radiusini bosadi */
        }
        .btn {
            font-weight: 800;
            font-size: 0.95rem;
            padding: 0.85rem 1.85rem;
            transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
            border: none;
            position: relative;
            overflow: hidden;
            letter-spacing: 0.01em;
        }

        .btn-primary {
            /* Premium 3D: yumshoq qirra (rang yaqin) + chuqur rangli soya + glossy yuza */
            background: linear-gradient(180deg, #A2DB5E 0%, #8BC540 52%, #77B437 100%);
            color: var(--white);
            box-shadow: 0 3px 0 #6EA733,                        /* nozik qirra — hajm, "o'yinchoq" emas */
                        0 10px 20px -5px rgba(139, 197, 64, 0.5),
                        0 20px 38px -12px rgba(107, 168, 50, 0.4),
                        inset 0 1.5px 0 rgba(255, 255, 255, 0.55),
                        inset 0 -1px 2px rgba(60, 100, 25, 0.15);
        }

        /* hoverda o'tib ketuvchi yorug'lik (shine) */
        .btn-primary::after {
            content: '';
            position: absolute;
            top: 0;
            left: -85%;
            width: 55%;
            height: 100%;
            background: linear-gradient(90deg,
                        transparent, rgba(255,255,255,0.38), transparent);
            transform: skewX(-22deg);
            transition: left 0.65s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
        }
        .btn-primary:hover::after { left: 135%; }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 0 #6EA733,
                        0 16px 28px -6px rgba(139, 197, 64, 0.55),
                        0 26px 46px -14px rgba(107, 168, 50, 0.45),
                        inset 0 1.5px 0 rgba(255, 255, 255, 0.6),
                        inset 0 -1px 2px rgba(60, 100, 25, 0.15);
            color: var(--white);
        }

        /* bosilganda HAQIQATAN pastga cho'kadi — qirra yo'qoladi */
        .btn-primary:active {
            transform: translateY(3px);
            box-shadow: 0 0 0 #6EA733,
                        0 4px 10px -4px rgba(139, 197, 64, 0.4),
                        inset 0 1px 0 rgba(255, 255, 255, 0.35),
                        inset 0 2px 6px rgba(60, 100, 25, 0.22);
        }

        /* Tugma ichidagi 3D icon */
        .btn-3d {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.6rem;
        }
        .btn-3d-icon {
            width: 30px; height: 30px; object-fit: contain; flex: 0 0 auto;
            filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.25));
            transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        .btn-3d:hover .btn-3d-icon { transform: translateY(-2px) scale(1.12) rotate(-6deg); }
        .btn-3d:active .btn-3d-icon { transform: scale(0.92); }

        .btn-dark {
            background: var(--gradient-dark);
            color: var(--white);
            box-shadow: var(--shadow-md);
        }

        .btn-dark:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
            color: var(--white);
        }

        .btn-outline {
            background: transparent;
            color: var(--dark);
            border: 2px solid var(--gray-300);
        }

        .btn-outline:hover {
            background: var(--dark);
            color: var(--white);
            border-color: var(--dark);
            transform: translateY(-2px);
            box-shadow: 0 12px 26px -10px rgba(15, 23, 42, 0.45);
        }
        .btn-outline:active { transform: translateY(0) scale(0.985); }

        .btn-light {
            background: var(--white);
            color: var(--dark);
            border: 1px solid var(--gray-200);
            box-shadow: var(--shadow-sm);
        }

        .btn-light:hover {
            background: var(--gray-100);
            border-color: var(--gray-300);
        }

        .btn-lg {
            padding: 1rem 2rem;
            font-size: 1.05rem;
            border-radius: var(--radius-lg);
        }

        .btn-sm {
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
        }

        /* ========== CARDS ========== */
        .card {
            background: var(--white);
            border: 1px solid var(--gray-200);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow);
            transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
            overflow: hidden;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
            border-color: var(--gray-300);
        }

        .card-body { padding: 1.75rem; }

        .card-glow:hover {
            border-color: var(--primary-light);
            box-shadow: 0 20px 40px -15px rgba(139, 197, 64, 0.25);
        }

        /* ========== FORM CONTROLS ========== */
        .form-control {
            padding: 0.875rem 1.1rem;
            font-size: 1rem;
            border: 2px solid var(--gray-200);
            border-radius: var(--radius);
            transition: all 0.3s ease;
            background: var(--white);
        }

        .form-control:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px var(--primary-glow);
            outline: none;
        }

        .form-label {
            font-weight: 600;
            font-size: 0.9rem;
            color: var(--dark);
            margin-bottom: 0.6rem;
        }

        .input-group-text {
            background: var(--gray-100);
            border: 2px solid var(--gray-200);
            border-right: none;
            font-weight: 600;
            color: var(--dark-600);
        }

        /* ========== BADGES ========== */
        .badge {
            font-weight: 700;
            font-size: 0.75rem;
            padding: 0.5rem 1rem;
            border-radius: 50px;
            letter-spacing: 0.02em;
        }

        .badge-primary {
            background: var(--primary-glow);
            color: var(--primary-dark);
        }

        .badge-dark {
            background: var(--dark);
            color: var(--white);
        }

        .badge-accent {
            background: rgba(251, 191, 36, 0.2);
            color: #B45309;
        }

        /* ========== ICON BOX ========== */
        .icon-box {
            width: 56px;
            height: 56px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--primary-glow);
            border-radius: var(--radius-lg);
            color: var(--primary-dark);
            font-size: 1.4rem;
            transition: all 0.3s ease;
        }

        .icon-box-lg {
            width: 72px;
            height: 72px;
            font-size: 1.75rem;
            border-radius: var(--radius-xl);
        }

        .icon-box-gradient {
            background: var(--gradient-primary);
            color: var(--white);
            box-shadow: var(--shadow-primary);
        }

        /* ========== SYSTEM BANNER ========== */
        .system-banner {
            position: relative;
            padding: 12px 0;
            font-size: 0.875rem;
            font-weight: 600;
            overflow: hidden;
            white-space: nowrap;
        }

        .system-banner-info { background: var(--dark); color: var(--gray-300); }
        .system-banner-warning { background: #FEF3C7; color: #92400E; }
        .system-banner-success { background: var(--primary); color: var(--white); }
        .system-banner-danger { background: #FEE2E2; color: #991B1B; }
        .system-banner-promo { background: var(--gradient-primary); color: var(--white); }

        .banner-track { overflow: hidden; width: 100%; }

        .banner-content {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .banner-content a {
            color: inherit;
            text-decoration: underline;
            margin-left: 8px;
        }

        .banner-scroll { animation: bannerScroll 15s linear infinite; }

        @keyframes bannerScroll {
            0% { transform: translateX(100vw); }
            100% { transform: translateX(-100%); }
        }

        .banner-close {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255,255,255,0.15);
            border: none;
            color: inherit;
            width: 28px;
            height: 28px;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }

        .banner-close:hover { background: rgba(255,255,255,0.25); }

        /* ========== FOOTER ========== */
        .footer {
            background: var(--dark);
            color: var(--gray-400);
            padding: 4rem 0 2rem;
            margin-top: auto;
        }

        .footer h6 {
            color: var(--white);
            font-weight: 700;
            margin-bottom: 1.25rem;
        }

        .footer-brand {
            font-weight: 800;
            font-size: 1.5rem;
            color: var(--white);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .footer-brand .logo-icon {
            width: 40px;
            height: 40px;
            background: var(--gradient-primary);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.1rem;
        }

        .footer-links a {
            color: var(--gray-400);
            font-size: 0.95rem;
            transition: all 0.3s ease;
            display: inline-block;
        }

        .footer-links a:hover {
            color: var(--primary-light);
            transform: translateX(3px);
        }

        .footer-social a {
            width: 44px;
            height: 44px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--dark-700);
            border-radius: 12px;
            color: var(--gray-400);
            font-size: 1.1rem;
            transition: all 0.3s ease;
        }

        .footer-social a:hover {
            background: var(--gradient-primary);
            color: var(--white);
            transform: translateY(-3px);
        }

        .footer-bottom {
            border-top: 1px solid var(--dark-700);
            padding-top: 2rem;
            margin-top: 3rem;
        }

        /* ========== ALERTS ========== */
        .alert {
            border: none;
            border-radius: var(--radius-lg);
            padding: 1.1rem 1.5rem;
            font-weight: 500;
            border-left: 4px solid;
        }

        .alert-success { background: #D1FAE5; color: #065F46; border-left-color: #10B981; }
        .alert-danger { background: #FEE2E2; color: #991B1B; border-left-color: #EF4444; }
        .alert-warning { background: #FEF3C7; color: #92400E; border-left-color: #F59E0B; }
        .alert-info { background: #DBEAFE; color: #1E40AF; border-left-color: #3B82F6; }

        /* ========== SECTIONS ========== */
        .section { padding: 6rem 0; }
        .section-sm { padding: 4rem 0; }

        /* ========== UTILITIES ========== */
        .text-primary { color: var(--primary) !important; }
        .text-gradient {
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .bg-gradient-primary { background: var(--gradient-primary) !important; }
        .bg-dark { background: var(--dark) !important; }

        .glow-primary { box-shadow: var(--shadow-primary); }

        /* Page wrapper */
        .page-wrapper {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            padding-top: 82px;
        }

        .page-content { flex: 1; }

        /* Animations */
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        .float-animation { animation: float 3s ease-in-out infinite; }

        /* Responsive */
        @media (max-width: 768px) {
            .navbar {
                top: 8px;
                width: calc(100% - 16px);
                padding: 0.5rem 1rem;
                border-radius: 60px;
            }
            .page-wrapper { padding-top: 74px; }

            .section { padding: 4rem 0; }
            .btn-lg { padding: 0.875rem 1.5rem; }

            /* Gorizontal overflow guard (mobil scroll oldini olish) */
            html, body { overflow-x: hidden; max-width: 100%; }
            img, video, table, pre { max-width: 100%; }

            /* Container */
            .container { padding-left: 12px; padding-right: 12px; }

            /* Cards */
            .card-body { padding: 1rem; }
            .card-header { padding: 0.75rem 1rem; }

            /* Typography */
            h1, .h1 { font-size: 1.5rem; }
            h2, .h2 { font-size: 1.25rem; }
            h3, .h3 { font-size: 1.1rem; }

            /* Touch-friendly buttons */
            .btn { min-height: 44px; }

            /* Tables */
            .table { font-size: 0.82rem; }
            .table th, .table td { padding: 0.5rem; }

            /* Lists/flex compact */
            .gap-3 { gap: 0.75rem !important; }
            .gap-4 { gap: 1rem !important; }
            .p-4 { padding: 1rem !important; }
            .p-5 { padding: 1.25rem !important; }
            .py-5 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }

            /* Mobile utility classes */
            .mob-stack { flex-direction: column !important; }
            .mob-full { width: 100% !important; }
            .mob-hide { display: none !important; }
            .mob-text-sm { font-size: 0.82rem !important; }
        }

        @media (max-width: 480px) {
            .container { padding-left: 10px; padding-right: 10px; }
            h1, .h1 { font-size: 1.35rem; }
            .table { font-size: 0.78rem; }
        }

        /* ========== HAMBURGER BUTTON ========== */
        .hamburger-btn {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            border: 1px solid var(--gray-200);
            background: var(--white);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            position: relative;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        .hamburger-btn:hover {
            background: var(--gray-100);
            border-color: var(--gray-300);
        }

        .hamburger-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            min-width: 16px;
            height: 16px;
            padding: 0 4px;
            background: #EF4444;
            color: white;
            font-size: 0.6rem;
            font-weight: 800;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid white;
        }

        [data-theme="dark"] .hamburger-btn {
            background: #1E293B;
            border-color: #334155;
            color: #94A3B8;
        }
        [data-theme="dark"] .hamburger-btn:hover { background: #334155; }
        [data-theme="dark"] .hamburger-badge { border-color: #1E293B; }

        /* ========== MOBILE MENU OVERLAY ========== */
        .mob-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.45);
            z-index: 1099;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            backdrop-filter: blur(2px);
        }

        .mob-overlay.open {
            opacity: 1;
            visibility: visible;
        }

        /* ========== MOBILE MENU PANEL ========== */
        .mob-menu {
            position: fixed;
            top: 0;
            right: 0;
            width: 300px;
            max-width: 88vw;
            height: 100dvh;
            background: var(--white);
            z-index: 1100;
            transform: translateX(100%);
            transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: -8px 0 40px rgba(0,0,0,0.15);
        }

        .mob-menu.open {
            transform: translateX(0);
        }

        [data-theme="dark"] .mob-menu {
            background: #1A2332;
            box-shadow: -8px 0 40px rgba(0,0,0,0.4);
        }

        /* Menu header */
        .mob-menu-head {
            padding: 1.1rem 1.25rem;
            border-bottom: 1px solid var(--gray-200);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-shrink: 0;
        }

        [data-theme="dark"] .mob-menu-head { border-bottom-color: #1E293B; }

        .mob-menu-close {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            border: 1px solid var(--gray-200);
            background: var(--gray-50);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--dark-600);
            font-size: 1rem;
            transition: all 0.2s;
        }

        .mob-menu-close:hover { background: var(--gray-100); }

        [data-theme="dark"] .mob-menu-close {
            background: #162032;
            border-color: #334155;
            color: #94A3B8;
        }

        /* Scrollable body */
        .mob-menu-body {
            flex: 1;
            overflow-y: auto;
            padding: 0.75rem 0;
            overscroll-behavior: contain;
        }

        .mob-menu-body::-webkit-scrollbar { display: none; }

        /* Profile card inside menu */
        .mob-profile-card {
            margin: 0 0.75rem 0.5rem;
            padding: 1rem;
            background: rgba(139,197,64,0.07);
            border: 1px solid rgba(139,197,64,0.2);
            border-radius: 14px;
            display: flex;
            align-items: center;
            gap: 0.85rem;
            text-decoration: none;
            transition: background 0.2s;
        }

        .mob-profile-card:hover { background: rgba(139,197,64,0.12); }

        .mob-avatar {
            width: 46px;
            height: 46px;
            border-radius: 50%;
            background: var(--gradient-primary);
            color: white;
            font-weight: 800;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            flex-shrink: 0;
            border: 2px solid rgba(255,255,255,0.4);
        }

        .mob-avatar img { width:100%; height:100%; object-fit:cover; }

        .mob-profile-name {
            font-weight: 800;
            font-size: 0.92rem;
            color: var(--dark);
            line-height: 1.2;
        }

        .mob-profile-level {
            font-size: 0.72rem;
            color: var(--gray-500);
            font-weight: 600;
            margin-top: 2px;
        }

        [data-theme="dark"] .mob-profile-name { color: #F1F5F9; }

        /* Section label */
        .mob-section-label {
            font-size: 0.65rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--gray-400);
            padding: 0.75rem 1.25rem 0.25rem;
        }

        /* Menu item */
        .mob-item {
            display: flex;
            align-items: center;
            gap: 0.85rem;
            padding: 0.7rem 1.25rem;
            text-decoration: none;
            color: var(--dark-600);
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.18s ease;
            position: relative;
        }

        .mob-item:hover {
            background: rgba(139,197,64,0.06);
            color: var(--primary-dark);
        }

        .mob-item.active {
            background: rgba(139,197,64,0.1);
            color: var(--primary-dark);
        }

        .mob-item.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 18%;
            bottom: 18%;
            width: 3px;
            background: var(--primary);
            border-radius: 0 3px 3px 0;
        }

        .mob-item.danger { color: #DC2626; }
        .mob-item.danger:hover { background: rgba(239,68,68,0.06); color: #DC2626; }

        .mob-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.95rem;
            flex-shrink: 0;
        }

        .mi-green  { background: rgba(139,197,64,0.12);  color: var(--primary-dark); }
        .mi-blue   { background: rgba(59,130,246,0.1);   color: #2563EB; }
        .mi-amber  { background: rgba(245,158,11,0.1);   color: #D97706; }
        .mi-purple { background: rgba(139,92,246,0.1);   color: #7C3AED; }
        .mi-teal   { background: rgba(20,184,166,0.1);   color: #0D9488; }
        .mi-red    { background: rgba(239,68,68,0.1);    color: #DC2626; }
        .mi-indigo { background: rgba(99,102,241,0.1);   color: #4F46E5; }
        .mi-gray   { background: var(--gray-100);         color: var(--gray-500); }

        [data-theme="dark"] .mob-item { color: #94A3B8; }
        [data-theme="dark"] .mob-item:hover { background: rgba(139,197,64,0.07); color: #8BC540; }
        [data-theme="dark"] .mob-item.active { background: rgba(139,197,64,0.1); color: #8BC540; }
        [data-theme="dark"] .mob-item.danger { color: #F87171; }
        [data-theme="dark"] .mob-item.danger:hover { background: rgba(239,68,68,0.07); }
        [data-theme="dark"] .mi-gray { background: #1E293B; color: #64748B; }

        .mob-divider {
            height: 1px;
            background: var(--gray-200);
            margin: 0.5rem 1.25rem;
        }

        [data-theme="dark"] .mob-divider { background: #1E293B; }

        .mob-item-badge {
            margin-left: auto;
            font-size: 0.62rem;
            font-weight: 800;
            background: #EF4444;
            color: white;
            padding: 0.15rem 0.5rem;
            border-radius: 50px;
            min-width: 18px;
            text-align: center;
        }

        /* Footer of mobile menu */
        .mob-menu-foot {
            padding: 0.75rem 1.25rem;
            border-top: 1px solid var(--gray-200);
            flex-shrink: 0;
        }

        [data-theme="dark"] .mob-menu-foot { border-top-color: #1E293B; }

        /* ========== MOBILE BOTTOM NAV ========== */
        /* Suzuvchi PILL panel — chetlarda joy, to'liq dumaloq */
        .mob-bottom-nav {
            display: none;
            position: fixed;
            bottom: calc(10px + env(safe-area-inset-bottom, 0px));
            left: 12px;
            right: 12px;
            z-index: 1049;
            background: rgba(255,255,255,0.92);
            border: 1px solid rgba(226,232,240,0.85);
            border-radius: 999px;
            overflow: hidden;
            box-shadow: 0 12px 32px -8px rgba(15,23,42,0.18),
                        0 3px 10px -3px rgba(15,23,42,0.08);
            backdrop-filter: blur(22px) saturate(1.6);
            -webkit-backdrop-filter: blur(22px) saturate(1.6);
        }

        .mob-bottom-nav-inner {
            display: flex;
            width: 100%;
        }

        .mob-bnav-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 3px;
            padding: 10px 2px;
            text-decoration: none;
            color: var(--gray-400);
            font-size: 0.56rem;
            font-weight: 700;
            letter-spacing: 0.01em;
            transition: color 0.2s ease;
            min-height: 60px;
            white-space: nowrap;
            position: relative;
            border: none;
            background: none;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }

        .mob-bnav-item svg {
            width: 23px; height: 23px; display: block;
            transition: transform 0.2s ease;
        }
        .mob-bnav-item .tmi-solid { display: none; }
        .mob-bnav-item:active svg { transform: scale(0.84); }
        .mob-bnav-item.active { color: var(--primary-dark); }
        .mob-bnav-item.active .tmi-line { display: none; }
        .mob-bnav-item.active .tmi-solid { display: block; }

        /* 3D nav iconlar — brend uslubida: active = yashil pill fon */
        .mob-bnav-item .bnav-3d {
            width: 32px; height: 32px; display: block; object-fit: contain;
            filter: drop-shadow(0 3px 6px rgba(15,23,42,0.16));
            opacity: 0.62;
            transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1),
                        opacity 0.25s ease, filter 0.25s ease;
        }
        .mob-bnav-item.active .bnav-3d {
            opacity: 1;
            filter: drop-shadow(0 5px 9px rgba(139,197,64,0.45));
            transform: translateY(-1px) scale(1.08);
        }
        .mob-bnav-item:active .bnav-3d { transform: scale(0.88); }

        /* Active element — yashil pill fon (brend) */
        .mob-bnav-item::before {
            content: '';
            position: absolute;
            top: 5px; left: 50%;
            width: 54px; height: 44px;
            transform: translateX(-50%) scale(0.7);
            border-radius: 999px;
            background: linear-gradient(160deg, rgba(139,197,64,0.16), rgba(107,168,50,0.10));
            opacity: 0;
            transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.34,1.56,0.64,1);
            z-index: -1;
        }
        .mob-bnav-item.active::before { opacity: 1; transform: translateX(-50%) scale(1); }
        /* eski tepa chiziq o'rniga pill ishlaydi */
        .mob-bnav-item.active::after { display: none; }

        /* markazdagi ko'tarilgan "Test" FAB */
        /* Test — boshqa nav elementlar bilan BIR XIL (ko'tarilgan doira olib tashlandi) */
        .mob-bnav-fab {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 3px;
            padding: 10px 2px;
            min-height: 60px;
            text-decoration: none;
            color: var(--gray-400);
            position: relative;
            -webkit-tap-highlight-color: transparent;
        }
        .mob-bnav-fab-inner { display: flex; flex-direction: column; align-items: center; gap: 3px; }
        .mob-bnav-fab-btn {
            background: none;
            box-shadow: none;
            border-radius: 0;
            width: auto; height: auto; margin-top: 0;
            display: flex; align-items: center; justify-content: center;
        }
        .mob-bnav-fab-btn svg { width: 26px; height: 26px; color: #fff; }
        .mob-bnav-fab-btn .fab-3d {
            width: 32px; height: 32px; object-fit: contain; display: block;
            filter: drop-shadow(0 3px 6px rgba(15,23,42,0.16));
            opacity: 0.62;
            transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1),
                        opacity 0.25s ease, filter 0.25s ease;
        }
        .mob-bnav-fab.active .fab-3d {
            opacity: 1;
            filter: drop-shadow(0 5px 9px rgba(139,197,64,0.45));
            transform: translateY(-1px) scale(1.08);
        }
        .mob-bnav-fab:active .fab-3d { transform: scale(0.88); }
        .mob-bnav-fab-label {
            font-size: 0.56rem; font-weight: 700;
            letter-spacing: 0.01em; color: inherit;
        }
        .mob-bnav-fab.active { color: var(--primary-dark); }
        /* active pill fon — boshqalar bilan bir xil */
        .mob-bnav-fab::before {
            content: '';
            position: absolute;
            top: 5px; left: 50%;
            width: 54px; height: 44px;
            transform: translateX(-50%) scale(0.7);
            border-radius: 999px;
            background: linear-gradient(160deg, rgba(139,197,64,0.16), rgba(107,168,50,0.10));
            opacity: 0;
            transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.34,1.56,0.64,1);
            z-index: -1;
        }
        .mob-bnav-fab.active::before { opacity: 1; transform: translateX(-50%) scale(1); }

        .mob-bnav-item.active::after {
            content: '';
            position: absolute;
            top: 0;
            left: 20%;
            right: 20%;
            height: 2.5px;
            background: var(--gradient-primary);
            border-radius: 0 0 4px 4px;
        }

        .mob-bnav-badge {
            position: absolute;
            top: 6px;
            left: calc(50% + 6px);
            min-width: 16px;
            height: 16px;
            padding: 0 4px;
            background: #EF4444;
            color: white;
            font-size: 0.55rem;
            font-weight: 800;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1.5px solid white;
        }

        @media (max-width: 767.98px) {
            .mob-bottom-nav { display: flex; }
            .page-wrapper { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
        }

        [data-theme="dark"] .mob-bottom-nav {
            background: rgba(15,23,42,0.92);
            border-color: rgba(51,65,85,0.9);
            box-shadow: 0 12px 32px -8px rgba(0,0,0,0.5),
                        0 3px 10px -3px rgba(0,0,0,0.3);
        }
        [data-theme="dark"] .mob-bnav-item { color: #475569; }
        [data-theme="dark"] .mob-bnav-item.active { color: #8BC540; }
        [data-theme="dark"] .mob-bnav-badge { border-color: #0F172A; }

        /* --- Dark: Extended inline style overrides --- */
        [data-theme="dark"] [style*="color: #1E293B"],
        [data-theme="dark"] [style*="color:#1E293B"],
        [data-theme="dark"] [style*="color: #374151"],
        [data-theme="dark"] [style*="color:#374151"],
        [data-theme="dark"] [style*="color: #4B5563"],
        [data-theme="dark"] [style*="color:#4B5563"] {
            color: #CBD5E1 !important;
        }
        [data-theme="dark"] [style*="background: #E2E8F0"],
        [data-theme="dark"] [style*="background:#E2E8F0"] {
            background: #1E293B !important;
        }
        [data-theme="dark"] [style*="color: #64748B"],
        [data-theme="dark"] [style*="color:#64748B"] {
            color: #94A3B8 !important;
        }
        [data-theme="dark"] [style*="background: rgba(255,255,255,0.5)"],
        [data-theme="dark"] [style*="background: rgba(255,255,255,0.8)"],
        [data-theme="dark"] [style*="background: rgba(255,255,255,0.9)"] {
            background: rgba(26,35,50,0.9) !important;
        }
        [data-theme="dark"] [style*="border-top: 1px solid #E2E8F0"],
        [data-theme="dark"] [style*="border-top: 1px solid #F1F5F9"],
        [data-theme="dark"] [style*="border-bottom: 1px solid #F1F5F9"] {
            border-color: #1E293B !important;
        }
        /* ===== Premium taktil bosish + jonlanish (tasteful, ortiqcha emas) ===== */
        .btn, .btn-primary, .btn-light, .btn-dark, .btn-outline,
        .tl-subj, a.tl-subj, .pr-btn, .mz-cta, .pt-cta, .card-hover,
        .feature-card, .stat-card, .uni-card, .comp-card {
            transition: transform .15s cubic-bezier(.34,1.5,.6,1),
                        box-shadow .22s ease, border-color .2s ease, background .2s ease;
        }
        .btn:active, .btn-primary:active, .btn-light:active, .btn-dark:active,
        .btn-outline:active, .tl-subj:active, a.tl-subj:active, .pr-btn:active,
        .mz-cta:active, .pt-cta:active, .card-hover:active,
        .feature-card:active, .uni-card:active, .comp-card:active {
            transform: scale(.965);
        }
        /* kartalarga chuqurroq, yumshoq soya — "tekis"likni yo'qotadi */
        .tl-subj {
            box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 22px rgba(15,23,42,.05);
        }
        .tl-subj:active {
            box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 4px 12px rgba(139,197,64,.14);
        }
        /* bosishni darhol his qildirish — kechikishsiz */
        .btn { transition-duration: .15s; }
