/* Header Login Button */
        .header-right .header-login-btn {
            display: inline-block;
            padding: 8px 22px;
            background: linear-gradient(135deg, #2563EB 0%, #0EA5E9 100%);
            color: white !important;
            text-decoration: none !important;
            border-radius: 9px;
            font-weight: 600;
            font-size: 13.5px;
            border: none;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .header-right .header-login-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            transition: left 0.6s;
        }
        .header-right .header-login-btn:hover::before {
            left: 100%;
        }
        .header-right .header-login-btn:hover {
            background: linear-gradient(135deg, #1D4ED8 0%, #0284C7 100%);
            box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
            transform: translateY(-2px);
        }
        .header-right .header-login-btn:active {
            transform: translateY(0);
        }

        /* Header Right Container & Action Icons */
        .header-right {
            display: flex !important;
            align-items: center !important;
            gap: 8px !important;
            flex-shrink: 0 !important;
        }

        .header-action-btn {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 34px !important;
            height: 34px !important;
            border-radius: 50% !important;
            background: #f8fafc !important;
            border: 1px solid #e2e8f0 !important;
            color: #475569 !important;
            text-decoration: none !important;
            cursor: pointer !important;
            position: relative !important;
            transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
            padding: 0 !important;
            margin: 0 !important;
            outline: none !important;
            -webkit-tap-highlight-color: transparent !important;
            flex-shrink: 0 !important;
        }

        .header-action-btn:hover {
            background: #eff6ff !important;
            color: #2563eb !important;
            border-color: rgba(37, 99, 235, 0.25) !important;
            transform: scale(1.06) !important;
            box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15) !important;
        }

        .header-action-btn:active {
            transform: scale(0.92) !important;
            background: #dbeafe !important;
        }

        .header-action-btn svg {
            width: 16px !important;
            height: 16px !important;
            display: block !important;
            stroke-width: 2.2 !important;
            transition: transform 0.2s ease !important;
        }

        /* Notification Badge Pulse Dot */
        .header-action-btn .notif-badge-dot {
            position: absolute;
            top: 5px;
            right: 5px;
            width: 7px;
            height: 7px;
            background: #ef4444;
            border-radius: 50%;
            border: 1.5px solid #ffffff;
            box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.3);
            animation: notifPulseDot 2s infinite ease-in-out;
        }

        @keyframes notifPulseDot {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.3); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.35); }
        }

        @media (max-width: 768px) {
            .header-right {
                gap: 6px !important;
            }
            .header-action-btn {
                width: 30px !important;
                height: 30px !important;
            }
            .header-action-btn svg {
                width: 14px !important;
                height: 14px !important;
            }
            .header-action-btn .notif-badge-dot {
                top: 4px;
                right: 4px;
                width: 6px;
                height: 6px;
            }
        }

        @media (max-width: 380px) {
            .header-right {
                gap: 5px !important;
            }
            .header-action-btn {
                width: 27px !important;
                height: 27px !important;
            }
            .header-action-btn svg {
                width: 13px !important;
                height: 13px !important;
            }
        }

        /* ===== Modern Smart Search Modal (Simple & Beautiful Look) ===== */
        .header-search-overlay {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.68);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            z-index: 999999;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            align-items: flex-start;
            justify-content: center;
            padding: 45px 16px 20px 16px;
        }

        .header-search-overlay.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .header-search-modal {
            background: #ffffff;
            width: 100%;
            max-width: 640px;
            border-radius: 20px;
            box-shadow: 0 25px 70px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.85);
            transform: translateY(-16px) scale(0.97);
            transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            max-height: calc(100vh - 80px);
            position: relative;
        }

        .header-search-overlay.active .header-search-modal {
            transform: translateY(0) scale(1);
        }

        /* Top Radiant Accent Line */
        .search-modal-accent-bar {
            height: 3.5px;
            width: 100%;
            background: linear-gradient(90deg, #2563eb 0%, #06b6d4 35%, #8b5cf6 70%, #ec4899 100%);
            flex-shrink: 0;
        }

        /* Search Header Bar */
        .search-modal-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 18px;
            background: #ffffff;
            border-bottom: 1px solid #f1f5f9;
            position: relative;
        }

        .search-modal-icon-wrap {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
            color: #2563eb;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            flex-shrink: 0;
            box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
        }

        .search-modal-input {
            flex: 1;
            border: none;
            outline: none;
            font-size: 15.5px;
            font-weight: 500;
            color: #0f172a;
            background: transparent;
            font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
            letter-spacing: -0.2px;
        }

        .search-modal-input::placeholder {
            color: #94a3b8;
            font-weight: 400;
        }

        .search-clear-btn {
            background: #f1f5f9;
            border: none;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            color: #64748b;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            transition: all 0.15s ease;
            flex-shrink: 0;
        }

        .search-clear-btn.visible {
            display: flex;
        }

        .search-clear-btn:hover {
            background: #e2e8f0;
            color: #0f172a;
        }

        /* Circular Close Button */
        .search-modal-close-btn {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            outline: none;
            color: #64748b;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            flex-shrink: 0;
        }

        .search-modal-close-btn:hover {
            background: #fee2e2;
            color: #ef4444;
            border-color: #fca5a5;
            transform: rotate(90deg) scale(1.08);
        }

        /* Filter Chips Tabs Bar */
        .search-filter-tabs {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 10px 16px;
            background: #f8fafc;
            border-bottom: 1px solid #f1f5f9;
            overflow-x: auto;
            flex-shrink: 0;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .search-filter-tabs::-webkit-scrollbar {
            display: none;
        }

        .search-tab-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 12px;
            border-radius: 9999px;
            font-size: 12px;
            font-weight: 600;
            color: #475569;
            background: #ffffff;
            border: 1px solid #e2e8f0;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.18s ease;
            font-family: inherit;
            outline: none;
        }

        .search-tab-pill:hover {
            border-color: #cbd5e1;
            color: #0f172a;
            background: #f1f5f9;
        }

        .search-tab-pill.active {
            background: #2563eb;
            color: #ffffff;
            border-color: #2563eb;
            box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
        }

        .search-tab-pill.active i {
            color: #ffffff;
        }

        .search-tab-pill i {
            font-size: 11px;
            color: #64748b;
        }

        /* Modal Body Scroll Container */
        .search-modal-body {
            padding: 16px 18px;
            overflow-y: auto;
            max-height: 440px;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .search-modal-body::-webkit-scrollbar {
            width: 5px;
        }

        .search-modal-body::-webkit-scrollbar-thumb {
            background: #e2e8f0;
            border-radius: 4px;
        }

        /* Section Titles */
        .search-group-title {
            font-size: 11px;
            font-weight: 700;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            margin: 0 0 8px 2px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .search-group-title .count {
            font-weight: 600;
            font-size: 10.5px;
            color: #94a3b8;
            text-transform: none;
            letter-spacing: 0;
        }

        /* Popular & Trending Tags Cloud */
        .search-trending-wrap {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .search-trending-tag {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            color: #334155;
            font-size: 11.5px;
            font-weight: 600;
            padding: 5px 11px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.15s ease;
            font-family: inherit;
            outline: none;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .search-trending-tag i {
            color: #f97316;
            font-size: 10px;
        }

        .search-trending-tag:hover {
            background: #eff6ff;
            color: #2563eb;
            border-color: #bfdbfe;
            transform: translateY(-1px);
        }

        /* Quick Portals Grid (Default View) */
        .search-quick-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
        }

        .search-quick-card {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 12px;
            background: #f8fafc;
            border: 1px solid #f1f5f9;
            border-radius: 11px;
            text-decoration: none;
            color: #1e293b;
            transition: all 0.18s ease;
        }

        .search-quick-card:hover {
            background: #ffffff;
            border-color: #cbd5e1;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
            transform: translateY(-1px);
        }

        .search-quick-icon {
            width: 32px;
            height: 32px;
            border-radius: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            flex-shrink: 0;
            transition: transform 0.2s ease;
        }

        .search-quick-card:hover .search-quick-icon {
            transform: scale(1.08);
        }

        .search-quick-info {
            flex: 1;
            min-width: 0;
        }

        .search-quick-name-row {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .search-quick-name {
            font-size: 13px;
            font-weight: 600;
            color: #0f172a;
            line-height: 1.25;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .search-quick-mini-badge {
            font-size: 8.5px;
            font-weight: 700;
            padding: 1px 5px;
            border-radius: 4px;
            text-transform: uppercase;
            line-height: 1.2;
        }

        .badge-blue { background: #eff6ff; color: #2563eb; }
        .badge-indigo { background: #eef2ff; color: #4f46e5; }
        .badge-green { background: #ecfdf5; color: #059669; }
        .badge-amber { background: #fffbeb; color: #d97706; }
        .badge-purple { background: #faf5ff; color: #9333ea; }
        .badge-rose { background: #fff1f2; color: #e11d48; }

        .search-quick-sub {
            font-size: 10.5px;
            color: #64748b;
            line-height: 1.2;
            margin-top: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Results List */
        .search-results-list {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .search-result-item {
            list-style: none;
        }

        .search-result-item a {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 14px;
            border-radius: 12px;
            text-decoration: none;
            color: #0f172a;
            background: #ffffff;
            border: 1px solid #f1f5f9;
            transition: all 0.16s ease;
        }

        .search-result-item a:hover,
        .search-result-item a.active-keyboard {
            background: #f8fafc;
            border-color: #cbd5e1;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
            transform: translateX(2px);
        }

        .search-res-logo-box {
            width: 36px;
            height: 36px;
            border-radius: 9px;
            background: #ffffff;
            border: 1px solid #e2e8f0;
            padding: 3px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
        }

        .search-res-logo-box img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 6px;
        }

        .search-res-info {
            flex: 1;
            min-width: 0;
        }

        .search-res-title {
            font-size: 13.5px;
            font-weight: 600;
            color: #0f172a;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.3;
        }

        .search-res-sub {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 3px;
        }

        /* Notification Tag */
        .search-notif-tag {
            font-size: 9.5px;
            font-weight: 700;
            padding: 1px 7px;
            border-radius: 6px;
            background: linear-gradient(135deg, #fef3c7, #fde68a);
            color: #92400e;
            border: 1px solid #fcd34d;
            display: inline-flex;
            align-items: center;
            gap: 3px;
            line-height: 1.3;
        }

        .search-res-cat-tag {
            font-size: 9.5px;
            font-weight: 700;
            padding: 1px 7px;
            border-radius: 6px;
            line-height: 1.3;
        }

        .search-res-cat-tag.cat-mock { background: #eff6ff; color: #2563eb; }
        .search-res-cat-tag.cat-syllabus { background: #eef2ff; color: #4f46e5; }
        .search-res-cat-tag.cat-job { background: #ecfdf5; color: #059669; }
        .search-res-cat-tag.cat-pyq { background: #fffbeb; color: #d97706; }
        .search-res-cat-tag.cat-admit { background: #faf5ff; color: #9333ea; }
        .search-res-cat-tag.cat-result { background: #fff1f2; color: #e11d48; }
        .search-res-cat-tag.cat-default { background: #f1f5f9; color: #475569; }

        /* Fetched Keyword Tags Row */
        .search-res-kws {
            display: flex;
            align-items: center;
            gap: 4px;
            overflow: hidden;
            white-space: nowrap;
        }

        .search-kw-pill {
            font-size: 9px;
            font-weight: 500;
            color: #64748b;
            background: #f1f5f9;
            padding: 1px 6px;
            border-radius: 4px;
            display: inline-flex;
            align-items: center;
            gap: 2px;
            max-width: 120px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .search-kw-pill i {
            font-size: 8px;
            color: #94a3b8;
        }

        .search-res-highlight {
            color: #2563eb;
            font-weight: 700;
            background: rgba(37, 99, 235, 0.09);
            padding: 0 3px;
            border-radius: 3px;
        }

        .search-res-arrow {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: #f1f5f9;
            color: #64748b;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            margin-left: auto;
            flex-shrink: 0;
            transition: all 0.18s ease;
        }

        .search-result-item a:hover .search-res-arrow,
        .search-result-item a.active-keyboard .search-res-arrow {
            background: #2563eb;
            color: #ffffff;
            transform: translateX(2px);
        }

        /* Empty State */
        .search-empty-box {
            padding: 32px 16px;
            text-align: center;
            color: #64748b;
        }

        .search-empty-icon {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: #f1f5f9;
            color: #94a3b8;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            margin-bottom: 10px;
        }

        .search-empty-box h5 {
            font-size: 14px;
            font-weight: 600;
            color: #0f172a;
            margin: 0 0 5px 0;
        }

        .search-empty-box p {
            font-size: 12px;
            color: #64748b;
            margin: 0 0 12px 0;
            line-height: 1.4;
        }

        /* Status Footer */
        .search-modal-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 18px;
            background: #f8fafc;
            border-top: 1px solid #f1f5f9;
            font-size: 11.5px;
            color: #64748b;
            flex-shrink: 0;
        }

        .search-footer-keys {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .search-key-item {
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .search-key-item kbd {
            background: #ffffff;
            border: 1px solid #cbd5e1;
            border-radius: 4px;
            padding: 1px 5px;
            font-size: 9.5px;
            font-family: inherit;
            color: #334155;
            font-weight: 700;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        }

        .search-footer-brand {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 11px;
            font-weight: 600;
            color: #64748b;
        }

        .search-live-pulse-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #22c55e;
            box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
            animation: pulseSearchLive 2s infinite ease-in-out;
        }

        @keyframes pulseSearchLive {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.3); opacity: 0.6; }
        }

        /* Dark Mode Overrides */
        .sr-dark-mode .header-search-overlay,
        body.sr-dark-mode .header-search-overlay {
            background: rgba(3, 7, 18, 0.82);
        }

        .sr-dark-mode .header-search-modal,
        body.sr-dark-mode .header-search-modal {
            background: #0f172a;
            box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.9), 0 0 0 1px #1e293b;
        }

        .sr-dark-mode .search-modal-header,
        body.sr-dark-mode .search-modal-header {
            background: #0f172a;
            border-bottom-color: #1e293b;
        }

        .sr-dark-mode .search-modal-icon-wrap,
        body.sr-dark-mode .search-modal-icon-wrap {
            background: #1e293b;
            color: #38bdf8;
            box-shadow: none;
        }

        .sr-dark-mode .search-modal-input,
        body.sr-dark-mode .search-modal-input {
            color: #f8fafc;
        }

        .sr-dark-mode .search-modal-input::placeholder,
        body.sr-dark-mode .search-modal-input::placeholder {
            color: #64748b;
        }

        .sr-dark-mode .search-clear-btn,
        body.sr-dark-mode .search-clear-btn {
            background: #1e293b;
            color: #94a3b8;
        }

        .sr-dark-mode .search-modal-close-btn,
        body.sr-dark-mode .search-modal-close-btn {
            background: #1e293b;
            border-color: #334155;
            color: #94a3b8;
        }

        .sr-dark-mode .search-modal-close-btn:hover,
        body.sr-dark-mode .search-modal-close-btn:hover {
            background: rgba(239, 68, 68, 0.2);
            color: #f87171;
            border-color: #ef4444;
        }

        .sr-dark-mode .search-filter-tabs,
        body.sr-dark-mode .search-filter-tabs {
            background: #0b1120;
            border-bottom-color: #1e293b;
        }

        .sr-dark-mode .search-tab-pill,
        body.sr-dark-mode .search-tab-pill {
            background: #1e293b;
            border-color: #334155;
            color: #94a3b8;
        }

        .sr-dark-mode .search-tab-pill:hover,
        body.sr-dark-mode .search-tab-pill:hover {
            background: #243044;
            color: #f8fafc;
        }

        .sr-dark-mode .search-tab-pill.active,
        body.sr-dark-mode .search-tab-pill.active {
            background: #2563eb;
            color: #ffffff;
            border-color: #2563eb;
        }

        .sr-dark-mode .search-group-title,
        body.sr-dark-mode .search-group-title {
            color: #94a3b8;
        }

        .sr-dark-mode .search-quick-card,
        body.sr-dark-mode .search-quick-card {
            background: #1e293b;
            border-color: #1e293b;
            color: #f8fafc;
        }

        .sr-dark-mode .search-quick-card:hover,
        body.sr-dark-mode .search-quick-card:hover {
            background: #243044;
            border-color: #334155;
        }

        .sr-dark-mode .search-quick-name,
        body.sr-dark-mode .search-quick-name {
            color: #f8fafc;
        }

        .sr-dark-mode .search-quick-sub,
        body.sr-dark-mode .search-quick-sub {
            color: #94a3b8;
        }

        .sr-dark-mode .search-trending-tag,
        body.sr-dark-mode .search-trending-tag {
            background: #1e293b;
            border-color: #334155;
            color: #cbd5e1;
        }

        .sr-dark-mode .search-trending-tag:hover,
        body.sr-dark-mode .search-trending-tag:hover {
            background: #2563eb;
            color: #ffffff;
            border-color: #2563eb;
        }

        .sr-dark-mode .search-result-item a,
        body.sr-dark-mode .search-result-item a {
            background: #1e293b;
            border-color: #1e293b;
            color: #f8fafc;
        }

        .sr-dark-mode .search-result-item a:hover,
        .sr-dark-mode .search-result-item a.active-keyboard,
        body.sr-dark-mode .search-result-item a:hover,
        body.sr-dark-mode .search-result-item a.active-keyboard {
            background: #243044;
            border-color: #334155;
        }

        .sr-dark-mode .search-res-logo-box,
        body.sr-dark-mode .search-res-logo-box {
            background: #0f172a;
            border-color: #334155;
        }

        .sr-dark-mode .search-res-title,
        body.sr-dark-mode .search-res-title {
            color: #f8fafc;
        }

        .sr-dark-mode .search-kw-pill,
        body.sr-dark-mode .search-kw-pill {
            background: #0f172a;
            color: #94a3b8;
        }

        .sr-dark-mode .search-res-highlight,
        body.sr-dark-mode .search-res-highlight {
            color: #38bdf8;
            background: rgba(56, 189, 248, 0.15);
        }

        .sr-dark-mode .search-res-arrow,
        body.sr-dark-mode .search-res-arrow {
            background: #0f172a;
            color: #94a3b8;
        }

        .sr-dark-mode .search-modal-footer,
        body.sr-dark-mode .search-modal-footer {
            background: #0b1120;
            border-top-color: #1e293b;
            color: #64748b;
        }

        .sr-dark-mode .search-key-item kbd,
        body.sr-dark-mode .search-key-item kbd {
            background: #1e293b;
            border-color: #334155;
            color: #cbd5e1;
        }

        .sr-dark-mode .search-empty-icon,
        body.sr-dark-mode .search-empty-icon {
            background: #1e293b;
            color: #64748b;
        }

        .sr-dark-mode .search-empty-box h5,
        body.sr-dark-mode .search-empty-box h5 {
            color: #f8fafc;
        }

        /* =========================================================================
           Mobile-Friendly Search Popup Styles (Ultra-Responsive & Touch Optimized)
           ========================================================================= */
        @media (max-width: 768px) {
            .header-search-overlay {
                padding: 14px 10px;
                align-items: flex-start;
            }
            .header-search-modal {
                max-height: calc(100vh - 28px);
                max-height: calc(100dvh - 28px);
                border-radius: 16px;
            }
            .search-modal-footer .search-footer-keys {
                display: none;
            }
        }

        @media (max-width: 640px) {
            .header-search-overlay {
                padding: 0;
                align-items: stretch;
                background: rgba(15, 23, 42, 0.85);
                backdrop-filter: blur(14px);
                -webkit-backdrop-filter: blur(14px);
            }

            .header-search-modal {
                width: 100vw;
                max-width: 100vw;
                height: 100%;
                height: 100dvh;
                max-height: 100dvh;
                border-radius: 0;
                border: none;
                box-shadow: none;
                display: flex;
                flex-direction: column;
                transform: translateY(-8px);
            }

            .header-search-overlay.active .header-search-modal {
                transform: translateY(0);
            }

            /* Top Accent line */
            .search-modal-accent-bar {
                height: 3px;
            }

            /* Header Row */
            .search-modal-header {
                padding: 10px 12px;
                gap: 8px;
                border-bottom-width: 1px;
            }

            .search-modal-icon-wrap {
                width: 32px;
                height: 32px;
                font-size: 13px;
                border-radius: 8px;
            }

            /* Input with 16px font to strictly eliminate iOS Safari auto-zoom */
            .search-modal-input {
                font-size: 16px !important;
                letter-spacing: -0.1px;
            }

            .search-clear-btn {
                width: 26px;
                height: 26px;
                font-size: 11px;
            }

            .search-modal-close-btn {
                width: 32px;
                height: 32px;
                font-size: 13px;
            }

            /* Category Filter Tabs Bar */
            .search-filter-tabs {
                padding: 7px 10px;
                gap: 5px;
                -webkit-overflow-scrolling: touch;
            }

            .search-tab-pill {
                padding: 5px 10px;
                font-size: 11.5px;
                gap: 4px;
            }

            .search-tab-pill i {
                font-size: 10px;
            }

            /* Body Container */
            .search-modal-body {
                padding: 10px 12px;
                flex: 1;
                max-height: none;
                gap: 10px;
                -webkit-overflow-scrolling: touch;
                overscroll-behavior: contain;
            }

            .search-group-title {
                font-size: 10.5px;
                margin-bottom: 6px;
            }

            /* Trending Searches */
            .search-trending-wrap {
                gap: 5px;
            }

            .search-trending-tag {
                padding: 4px 8px;
                font-size: 11px;
                border-radius: 6px;
            }

            /* Quick Portals: 2 Columns Compact Mobile Grid */
            .search-quick-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 6px;
            }

            .search-quick-card {
                padding: 7px 8px;
                gap: 7px;
                border-radius: 9px;
            }

            .search-quick-icon {
                width: 28px;
                height: 28px;
                font-size: 12px;
                border-radius: 7px;
            }

            .search-quick-name {
                font-size: 11.5px;
            }

            .search-quick-mini-badge {
                font-size: 7.5px;
                padding: 1px 3px;
            }

            .search-quick-sub {
                display: none;
            }

            /* Search Results Items */
            .search-results-list {
                gap: 5px;
            }

            .search-result-item a {
                padding: 8px 10px;
                gap: 9px;
                border-radius: 10px;
            }

            .search-res-logo-box {
                width: 32px;
                height: 32px;
                border-radius: 7px;
                padding: 2px;
            }

            .search-res-title {
                font-size: 12.5px;
                line-height: 1.3;
            }

            .search-res-sub {
                gap: 3px;
                margin-top: 2px;
            }

            .search-notif-tag {
                font-size: 8px;
                padding: 1px 4px;
                border-radius: 4px;
            }

            .search-res-cat-tag {
                font-size: 8px;
                padding: 1px 4px;
                border-radius: 4px;
            }

            .search-kw-pill {
                font-size: 8px;
                padding: 1px 4px;
                max-width: 80px;
            }

            .search-res-arrow {
                width: 22px;
                height: 22px;
                font-size: 9.5px;
            }

            .search-empty-box {
                padding: 24px 12px;
            }

            .search-empty-icon {
                width: 38px;
                height: 38px;
                font-size: 16px;
                margin-bottom: 8px;
            }

            .search-empty-box h5 {
                font-size: 13px;
            }

            .search-empty-box p {
                font-size: 11.5px;
                margin-bottom: 8px;
            }

            /* Footer */
            .search-modal-footer {
                padding: 8px 12px;
                font-size: 10.5px;
            }
        }

        @media (max-width: 380px) {
            .search-modal-header {
                padding: 8px 10px;
                gap: 6px;
            }

            .search-modal-icon-wrap {
                width: 28px;
                height: 28px;
                font-size: 12px;
            }

            .search-modal-close-btn {
                width: 30px;
                height: 30px;
                font-size: 12px;
            }

            .search-filter-tabs {
                padding: 6px 8px;
                gap: 4px;
            }

            .search-tab-pill {
                padding: 4px 8px;
                font-size: 11px;
            }

            .search-modal-body {
                padding: 8px 10px;
            }

            .search-quick-grid {
                grid-template-columns: 1fr 1fr;
                gap: 4px;
            }

            .search-res-logo-box {
                width: 28px;
                height: 28px;
            }

            .search-res-title {
                font-size: 12px;
            }

            .search-res-kws {
                display: none;
            }
        }

        /* Header User Avatar */
        .header-user-avatar {
            width: 34px !important;
            height: 34px !important;
            border-radius: 50% !important;
            object-fit: cover !important;
            border: none !important;
            outline: none !important;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
            transition: transform 0.2s ease !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            font-size: 0.95rem !important;
            font-weight: 700 !important;
        }

        .header-user-avatar:hover {
            transform: scale(1.06) !important;
            border: none !important;
            outline: none !important;
        }

        @media (max-width: 768px) {
            .header-user-avatar {
                width: 30px !important;
                height: 30px !important;
                font-size: 0.85rem !important;
            }
        }

        @media (max-width: 380px) {
            .header-user-avatar {
                width: 27px !important;
                height: 27px !important;
                font-size: 0.78rem !important;
            }
        }

        /* ===== Modern & Simple Desktop Navigation Bar (No Box + Bullet Glider) ===== */
        .nav-desktop {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin: 0;
            padding: 0;
            list-style: none;
            flex-shrink: 0;
        }

        .nav-item-dropdown {
            position: relative;
        }

        .nav-desktop .nav-link {
            display: inline-flex;
            align-items: center;
            gap: 5.5px;
            padding: 8px 5px;
            font-size: 13.5px;
            font-weight: 500;
            color: #64748b;
            text-decoration: none;
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            border-radius: 0;
            transition: color 0.18s ease;
            position: relative;
            user-select: none;
            -webkit-user-select: none;
            letter-spacing: -0.01em;
            line-height: 1.4;
            white-space: nowrap;
            z-index: 2;
        }

        @media (max-width: 1240px) and (min-width: 769px) {
            .nav-desktop {
                gap: 8px;
            }
            .nav-desktop .nav-link {
                gap: 4px;
                padding: 6px 3px;
                font-size: 12.5px;
            }
            .nav-desktop .nav-link i.nav-main-icon {
                font-size: 12.5px;
            }
        }

        /* Hover State - Clean Color Transition */
        .nav-desktop .nav-link:hover,
        .nav-item-dropdown:hover > .nav-link {
            color: #0f172a;
            background: transparent !important;
        }

        /* Active State - Vibrant Royal Blue (NO BOX) */
        .nav-desktop .nav-link.active {
            color: #2563eb !important;
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            font-weight: 600 !important;
        }

        /* Bullet Sliding Glider (Magic Line that Glides From One Tab to Another) */
        .nav-sliding-glider {
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2.5px;
            background: linear-gradient(90deg, #2563eb, #38bdf8);
            border-radius: 99px;
            box-shadow: 0 1px 6px rgba(37, 99, 235, 0.45);
            pointer-events: none;
            z-index: 3;
            opacity: 0;
            transform: translateZ(0);
            will-change: left, width, opacity;
            transition: left 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                        width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                        opacity 0.2s ease;
        }

        /* Main Icon Styling & Pop Animation */
        .nav-desktop .nav-link i.nav-main-icon {
            font-size: 14px;
            color: #64748b;
            transition: color 0.18s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
            display: inline-block;
        }

        .nav-desktop .nav-link:hover i.nav-main-icon,
        .nav-item-dropdown:hover > .nav-link i.nav-main-icon {
            color: #0f172a;
            transform: translateY(-1px);
        }

        .nav-desktop .nav-link.active i.nav-main-icon {
            color: #2563eb !important;
            animation: navIconPop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        @keyframes navIconPop {
            0% { transform: scale(0.85); }
            50% { transform: scale(1.22); }
            100% { transform: scale(1); }
        }

        /* Page Content Smooth Entrance Animation */
        main {
            transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
        }

        main.sr-page-exiting,
        main.sr-page-entering {
            will-change: opacity, transform;
        }

        main.sr-page-exiting {
            opacity: 0.15 !important;
            transform: translateY(-8px) scale(0.998) !important;
        }

        main.sr-page-entering {
            animation: srPageSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
        }

        @keyframes srPageSlideUp {
            0% {
                opacity: 0;
                transform: translateY(16px) scale(0.995);
            }
            100% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        /* Subtle Chevron */
        .nav-chevron {
            font-size: 9.5px !important;
            margin-left: 2px;
            color: #94a3b8 !important;
            transition: transform 0.22s ease, color 0.18s ease !important;
        }

        .nav-item-dropdown:hover .nav-chevron {
            transform: rotate(180deg);
            color: #0f172a !important;
        }

        /* Classes LIVE Badge - Clean & Minimal */
        .nav-badge-live {
            display: inline-flex;
            align-items: center;
            gap: 3.5px;
            background: #fee2e2;
            color: #dc2626 !important;
            font-size: 9px;
            font-weight: 700;
            padding: 1.5px 5.5px;
            border-radius: 5px;
            letter-spacing: 0.3px;
            margin-left: 3px;
            line-height: 1.1;
        }

        .pulse-live-dot {
            width: 5px;
            height: 5px;
            background: #dc2626;
            border-radius: 50%;
            display: inline-block;
            animation: navPulseLive 1.4s infinite ease-in-out;
        }

        @keyframes navPulseLive {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.35; transform: scale(1.3); }
        }

        /* Notification Bell Indicator Dot */
        .nav-notif-wrap {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .nav-notif-dot {
            position: absolute;
            top: -2px;
            right: -2px;
            width: 6px;
            height: 6px;
            background: #ef4444;
            border-radius: 50%;
            border: 1.5px solid #ffffff;
        }

        /* ===== Clean Modern Dropdown Menu ===== */
        .nav-dropdown-menu {
            position: absolute;
            top: calc(100% + 8px);
            left: 50%;
            transform: translateX(-50%) translateY(6px);
            min-width: 320px;
            background: #ffffff;
            border-radius: 14px;
            padding: 8px;
            box-shadow: 0 12px 36px -4px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.85);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease;
            z-index: 1050;
            transform-origin: top center;
        }

        .nav-dropdown-menu::before {
            content: '';
            position: absolute;
            top: -12px;
            left: 0;
            right: 0;
            height: 12px;
        }

        .nav-item-dropdown:hover .nav-dropdown-menu {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translateX(-50%) translateY(0);
        }

        .nav-dropdown-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 14px 12px;
            border-bottom: 1px solid rgba(226, 232, 240, 0.6);
            margin-bottom: 8px;
        }

        .nav-dropdown-title {
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #64748b;
        }

        .nav-dropdown-badge {
            font-size: 10px;
            font-weight: 700;
            padding: 4px 10px;
            border-radius: 8px;
            background: #f1f5f9;
            color: #475569;
        }

        .nav-dropdown-badge.badge-red {
            background: rgba(254, 226, 226, 0.7);
            color: #b91c1c;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .nav-dropdown-badge.badge-amber {
            background: rgba(254, 243, 199, 0.7);
            color: #b45309;
        }

        .nav-dropdown-item {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 12px 14px;
            border-radius: 14px;
            text-decoration: none;
            color: inherit;
            transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
            position: relative;
            background: transparent;
            border: 1px solid transparent;
        }

        .nav-dropdown-item:hover {
            background: rgba(255, 255, 255, 0.9);
            border-color: rgba(226, 232, 240, 0.8);
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
            transform: scale(1.02);
            z-index: 1;
        }

        .nav-dropdown-item.active {
            background: rgba(254, 242, 242, 0.8);
            border-color: #ef4444;
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
        }

        .nav-drop-icon {
            width: 44px;
            height: 44px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow: 0 4px 12px rgba(0,0,0,0.04), inset 0 0 0 1px rgba(255,255,255,0.5);
        }

        .nav-dropdown-item:hover .nav-drop-icon {
            transform: scale(1.15) rotate(6deg);
            box-shadow: 0 8px 16px rgba(0,0,0,0.08), inset 0 0 0 1px rgba(255,255,255,0.8);
        }

        .icon-syllabus { background: linear-gradient(135deg, #f5f3ff, #ede9fe); color: #7c3aed; }
        .icon-mock { background: linear-gradient(135deg, #f0fdf4, #dcfce7); color: #059669; }
        .icon-practice { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: #d97706; }
        .icon-pyq { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); color: #0284c7; }
        .icon-live { background: linear-gradient(135deg, #fef2f2, #fee2e2); color: #dc2626; }
        .icon-video { background: linear-gradient(135deg, #eef2ff, #e0e7ff); color: #4338ca; }
        .icon-demo { background: linear-gradient(135deg, #f0fdf4, #dcfce7); color: #16a34a; }
        .icon-schedule { background: linear-gradient(135deg, #faf5ff, #f3e8ff); color: #9333ea; }
        .icon-jobs { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #2563eb; }
        .icon-admit { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: #d97706; }
        .icon-result { background: linear-gradient(135deg, #f0fdf4, #dcfce7); color: #16a34a; }
        .icon-keys { background: linear-gradient(135deg, #fdf4ff, #fae8ff); color: #c026d3; }

        .nav-drop-content {
            flex: 1;
            min-width: 0;
        }

        .nav-drop-title {
            font-size: 14.5px;
            font-weight: 700;
            color: #1e293b;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: color 0.2s ease;
        }

        .drop-mini-tag {
            font-size: 10px;
            font-weight: 700;
            padding: 2px 7px;
            border-radius: 9999px;
            line-height: 1.3;
        }

        .tag-new { background: #e0e7ff; color: #3730a3; }
        .tag-free { background: #dcfce7; color: #15803d; }
        .tag-live { background: #fee2e2; color: #b91c1c; }

        .nav-drop-sub {
            font-size: 12px;
            color: #64748b;
            margin-top: 3px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .nav-drop-arrow {
            margin-left: auto;
            font-size: 14px;
            color: #cbd5e1;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            opacity: 0;
            transform: translateX(-10px) scale(0.8);
        }

        .nav-dropdown-item:hover .nav-drop-arrow {
            opacity: 1;
            transform: translateX(0) scale(1);
            color: #3b82f6;
        }

        .nav-dropdown-item:hover .nav-drop-title {
            color: #3b82f6;
        }

        /* ===== Header Container & 3-Line Menu Trigger ===== */
        .header {
            height: 57px !important;
            padding: 0 16px !important;
            display: flex !important;
            align-items: center !important;
            background: rgba(255, 255, 255, 0.88) !important; /* Perfect Frosted Glass Header */
            backdrop-filter: blur(16px) saturate(180%) !important;
            -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
            border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
            box-shadow: 0 2px 14px rgba(15, 23, 42, 0.04) !important;
        }

        .header-inner {
            max-width: 100% !important;
            width: 100% !important;
            padding: 0 !important;
            margin: 0 !important;
            display: flex !important;
            grid-template-columns: none !important;
            justify-content: space-between !important;
            align-items: center !important;
            gap: 15px !important;
        }

        .header-brand-group {
            display: flex !important;
            align-items: center !important;
            gap: 10px !important;
            margin-left: 0 !important;
            padding-left: 0 !important;
            flex-shrink: 0 !important;
        }

        /* ===== Logo & Brand Tagline ===== */
        .logo {
            display: flex !important;
            align-items: center !important;
            gap: 10px !important;
            text-decoration: none !important;
            user-select: none !important;
            flex-shrink: 0 !important;
        }

        .header-logo-img {
            height: 34px !important;
            width: auto !important;
            max-width: 40px !important;
            object-fit: contain !important;
            flex-shrink: 0 !important;
            display: block !important;
            transition: transform 0.2s ease !important;
        }

        .logo:hover .header-logo-img {
            transform: scale(1.04) !important;
        }

        .logo-text-group {
            display: flex !important;
            flex-direction: column !important;
            justify-content: center !important;
            text-align: left !important;
            white-space: nowrap !important;
            flex-shrink: 0 !important;
            line-height: 1.15 !important;
        }

        .logo-title {
            font-size: 17px !important;
            font-weight: 800 !important;
            color: #0f172a !important;
            letter-spacing: -0.3px !important;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
            transition: color 0.2s ease !important;
            line-height: 1.15 !important;
            display: block !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        .logo:hover .logo-title {
            color: #2563eb !important;
        }

        .logo-tagline {
            font-size: 9px !important;
            font-weight: 700 !important;
            color: #2563eb !important;
            letter-spacing: 0.35px !important;
            text-transform: uppercase !important;
            white-space: nowrap !important;
            display: block !important;
            margin: 2px 0 0 0 !important;
            padding: 0 !important;
            line-height: 1 !important;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
        }

        @media (max-width: 768px) {
            .header-logo-img {
                height: 30px !important;
            }
            .logo-title {
                font-size: 14.5px !important;
            }
            .logo-tagline {
                font-size: 7.8px !important;
                letter-spacing: 0.2px !important;
                display: block !important;
            }
        }

        @media (max-width: 380px) {
            .header-logo-img {
                height: 27px !important;
            }
            .logo-title {
                font-size: 13.5px !important;
            }
            .logo-tagline {
                font-size: 7.2px !important;
                letter-spacing: 0.1px !important;
                display: block !important;
            }
        }

        .mobile-nav-toggle-btn {
            display: none !important; /* Hidden on PC / Desktop */
            align-items: center;
            justify-content: center;
            background: transparent !important;
            border: none !important;
            outline: none !important;
            box-shadow: none !important;
            color: #1e293b;
            padding: 0;
            margin: 0;
            height: 28px;
            cursor: pointer;
            transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease, opacity 0.2s ease;
            -webkit-tap-highlight-color: transparent;
        }

        .mobile-nav-toggle-btn svg {
            height: 28px;
            width: 20px;
            display: block;
        }

        @media (max-width: 768px) {
            .mobile-nav-toggle-btn {
                display: inline-flex !important; /* Visible ONLY on Mobile */
                height: 24px;
            }
            .mobile-nav-toggle-btn svg {
                height: 24px;
                width: 17px;
            }
        }

        .mobile-nav-toggle-btn:hover {
            color: #2563eb;
            transform: scale(1.06);
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
        }

        .mobile-nav-toggle-btn:active {
            transform: scale(0.92);
            opacity: 0.7;
            background: transparent !important;
        }

        /* ===== Freud UI Inspired Mobile Side Drawer ===== */
        .mobile-drawer-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.55);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            z-index: 999998;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .mobile-drawer-backdrop.active {
            opacity: 1;
            pointer-events: auto;
        }

        .mobile-drawer-card {
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            width: 310px;
            max-width: 85vw;
            height: 100%;
            background: #ffffff;
            border-radius: 0 28px 28px 0;
            border-right: 1.5px solid #000000;
            box-shadow: 20px 0 50px rgba(0, 0, 0, 0.22);
            transform: translateX(-105%);
            transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
            z-index: 999999;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            user-select: none;
            -webkit-user-select: none;
        }

        .mobile-drawer-card.active {
            transform: translateX(0);
        }

        /* Drawer Top Card Header (Exact Match to Profile Box #e6e9ee) */
        .drawer-header-caramel {
            background: #e6e9ee;
            padding: 16px 16px 20px 16px;
            position: relative;
            color: #111827;
            flex-shrink: 0;
            border-bottom: none;
            box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7);
        }

        .drawer-header-caramel::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 50%;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 100%);
            pointer-events: none;
            border-radius: 0 28px 0 0;
        }

        .drawer-top-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
            position: relative;
            z-index: 2;
        }

        .drawer-header-brand {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13.5px;
            font-weight: 800;
            color: #111827;
            letter-spacing: -0.2px;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }

        .drawer-header-brand svg {
            color: #6347f6;
            width: 14px;
            height: 14px;
            filter: drop-shadow(0 2px 6px rgba(99, 71, 246, 0.35));
        }

        .drawer-close-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: transparent;
            border: none;
            outline: none;
            color: #000000;
            cursor: pointer;
            transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            padding: 0;
            box-shadow: none;
        }

        .drawer-close-btn svg {
            width: 16px;
            height: 16px;
            stroke: #000000;
            stroke-width: 2.5;
            transition: transform 0.2s ease;
        }

        .drawer-close-btn:hover {
            transform: scale(1.1);
        }

        .drawer-close-btn:active {
            transform: scale(0.9);
            background: transparent;
        }

        .drawer-profile-box {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 2px 0 6px 0;
            position: relative;
            z-index: 2;
        }

        .drawer-avatar-wrap {
            position: relative;
            margin-bottom: 6px;
        }

        .drawer-avatar-img {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            border: none !important;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
            object-fit: cover;
            display: block;
        }

        .drawer-avatar-placeholder {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            border: none !important;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
            background: #6347f6;
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: 800;
        }

        .drawer-online-dot {
            position: absolute;
            bottom: 1px;
            right: 1px;
            width: 11px;
            height: 11px;
            background: #10b981;
            border: 2px solid #ffffff;
            border-radius: 50%;
            box-shadow: 0 0 0 1px #000000;
            z-index: 3;
        }

        .drawer-user-name {
            font-size: 16px;
            font-weight: 800;
            color: #111827;
            margin: 0 0 2px 0;
            letter-spacing: -0.3px;
            line-height: 1.25;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }

        .drawer-user-tagline {
            font-size: 11px;
            color: #4b5563;
            margin: 0;
            line-height: 1.3;
            font-weight: 600;
        }

        /* Drawer Guest Authentication State (Modern Attractive Design) */
        .drawer-guest-box {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            padding: 2px 4px 6px 4px;
        }

        .drawer-guest-title {
            font-size: 14.5px;
            font-weight: 800;
            color: #0f172a;
            margin: 0 0 3px 0;
            letter-spacing: -0.2px;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }

        .drawer-guest-subtitle {
            font-size: 11px;
            color: #64748b;
            margin: 0 0 10px 0;
            line-height: 1.35;
            font-weight: 500;
            text-align: center;
        }

        .drawer-guest-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            max-width: 245px;
        }

        .drawer-auth-btn {
            flex: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            height: 36px;
            border-radius: 10px;
            font-size: 12.5px;
            font-weight: 700;
            text-decoration: none;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            -webkit-tap-highlight-color: transparent;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            cursor: pointer;
            letter-spacing: 0.1px;
        }

        .btn-auth-login {
            background: linear-gradient(135deg, #6347f6 0%, #4f46e5 100%);
            color: #ffffff !important;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 3px 10px rgba(99, 71, 246, 0.3);
        }

        .btn-auth-login svg {
            color: #ffffff;
            stroke: #ffffff;
            width: 13.5px;
            height: 13.5px;
        }

        .btn-auth-login:hover {
            background: linear-gradient(135deg, #5336ea 0%, #4338ca 100%);
            box-shadow: 0 5px 14px rgba(99, 71, 246, 0.4);
            transform: translateY(-1px);
        }

        .btn-auth-login:active {
            transform: scale(0.97);
            box-shadow: 0 2px 6px rgba(99, 71, 246, 0.2);
        }

        .btn-auth-signup {
            background: #ffffff;
            color: #1e293b !important;
            border: 1.5px solid #e2e8f0;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
        }

        .btn-auth-signup svg {
            color: #475569;
            stroke: #475569;
            width: 13.5px;
            height: 13.5px;
        }

        .btn-auth-signup:hover {
            background: #f8fafc;
            border-color: #cbd5e1;
            color: #0f172a !important;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.07);
            transform: translateY(-1px);
        }

        .btn-auth-signup:hover svg {
            color: #0f172a;
            stroke: #0f172a;
        }

        .btn-auth-signup:active {
            transform: scale(0.97);
            background: #f1f5f9;
        }

        .drawer-wave-divider {
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            width: 100%;
            height: 20px;
            pointer-events: none;
        }

        .drawer-wave-divider svg {
            display: block;
            width: 100%;
            height: 100%;
        }

        /* Drawer Scrollable Body */
        .mobile-drawer-body {
            flex: 1;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding: 10px 12px 4px 12px;
        }

        .drawer-section-title {
            font-size: 10px;
            font-weight: 800;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            margin: 10px 0 4px 10px;
        }

        .drawer-nav-list {
            display: flex;
            flex-direction: column;
            gap: 4px;
            list-style: none;
            padding: 0;
            margin: 0 0 2px 0;
        }

        .drawer-nav-item a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 12px;
            border-radius: 10px;
            text-decoration: none;
            color: #374151;
            font-size: 12.5px;
            font-weight: 600;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            -webkit-tap-highlight-color: transparent;
            border: 1px solid transparent;
        }

        .drawer-nav-item a:hover {
            background: #f1f4f9;
            color: #111827;
            transform: translateX(2px);
        }

        .drawer-nav-item.active a {
            background: #f1f4f9;
            border: 1.5px solid #000000;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
            color: #111827;
            font-weight: 700;
        }

        .drawer-item-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            color: #64748b;
            flex-shrink: 0;
            transition: color 0.2s ease;
        }

        .drawer-item-icon svg {
            width: 15px;
            height: 15px;
        }

        .drawer-nav-item.active .drawer-item-icon {
            color: #6347f6;
        }

        .drawer-item-badge {
            margin-left: auto;
            font-size: 9px;
            font-weight: 800;
            padding: 2px 6px;
            border-radius: 9999px;
            background: #eeebfd;
            color: #6347f6;
            border: 1px solid rgba(99, 71, 246, 0.2);
        }

        .drawer-item-badge.badge-live {
            background: #fee2e2;
            color: #b91c1c;
        }

        .drawer-nav-item.item-danger a {
            color: #ef4444;
        }

        .drawer-nav-item.item-danger .drawer-item-icon {
            color: #ef4444;
        }

        .drawer-nav-item.item-danger a:hover {
            background: #fef2f2;
        }

        /* Drawer Footer Logout (Center Aligned Text with Icon, No Box) */
        .mobile-drawer-footer {
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 6px 16px 8px 16px;
            background: #ffffff;
            border-top: 1px solid #f1f5f9;
        }

        .drawer-logout-text-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            background: transparent;
            border: none;
            outline: none;
            padding: 2px 8px;
            color: #ef4444 !important;
            font-size: 13px;
            font-weight: 700;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.18s ease;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            letter-spacing: 0.1px;
            -webkit-tap-highlight-color: transparent;
        }

        .drawer-logout-text-btn svg {
            color: #ef4444;
            stroke: #ef4444;
            transition: transform 0.2s ease, color 0.18s ease;
        }

        .drawer-logout-text-btn:hover {
            color: #dc2626 !important;
        }

        .drawer-logout-text-btn:hover svg {
            color: #dc2626;
            stroke: #dc2626;
            transform: translateX(2px);
        }

        .drawer-logout-text-btn:active {
            opacity: 0.7;
        }

        /* ===== Mobile Header Layout ===== */
        @media (max-width: 768px) {
            .header {
                height: 50px !important;
                padding: 0 12px !important;
            }
            .header-inner {
                display: flex !important;
                justify-content: space-between !important;
                align-items: center !important;
                width: 100% !important;
            }
            .header-brand-group {
                display: flex !important;
                align-items: center !important;
                gap: 10px !important;
            }
            .mobile-nav-toggle-btn {
                display: inline-flex !important;
            }
            .header-right .header-login-btn {
                padding: 7px 16px;
                font-size: 12.5px;
            }
            .nav-desktop {
                display: none !important;
            }
        }
        @media (max-width: 480px) {
            .header-right .header-login-btn {
                padding: 6px 14px;
                font-size: 11.5px;
            }
        }

        /* ================================================================= */
        /* 09 Layered Card Navigation (Mobile Bottom Bar)                    */
        /* ================================================================= */
        .lc-dock-container {
            display: none !important;
            position: fixed;
            bottom: 12px;
            left: 0;
            right: 0;
            margin: 0 auto;
            width: calc(100% - 24px);
            max-width: 420px;
            z-index: 99999;
            user-select: none;
            -webkit-user-select: none;
            touch-action: pan-y;
            pointer-events: auto;
        }

        /* Transparent Floating Dock Track Container */
        .lc-dock-tray {
            position: relative;
            width: 100%;
            height: 66px;
            background: transparent !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            border: none !important;
            border-radius: 0 !important;
            box-shadow: none !important;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            padding: 0 4px 4px 4px;
            box-sizing: border-box;
        }

        /* Stepped Recessed Ledge in Dock Tray (Hidden for transparent mode) */
        .lc-dock-tray::before {
            display: none !important;
        }

        /* Horizontal Card Deck Track - Flat Bottom Slotted Alignment */
        .lc-deck-track {
            position: relative;
            width: 100%;
            height: 68px;
            display: block;
            overflow: visible;
            z-index: 2;
        }

        /* Base Layered Card Item - 100% Solid Opaque with Rich Gray Shadow */
        .lc-card {
            position: absolute;
            bottom: 0;
            width: 20.8%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            padding: 4px 2px 6px 2px;
            box-sizing: border-box;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
            outline: none;
            transform-origin: bottom center;
            opacity: 1 !important;
            will-change: left, height, transform, box-shadow;
            transition: left 0.32s cubic-bezier(0.25, 1.15, 0.45, 1),
                        height 0.32s cubic-bezier(0.25, 1.15, 0.45, 1), 
                        transform 0.32s cubic-bezier(0.25, 1.15, 0.45, 1), 
                        box-shadow 0.3s ease, 
                        border-color 0.25s ease, 
                        background 0.25s ease, 
                        color 0.2s ease,
                        z-index 0.1s ease;

            /* 100% Solid Opaque White Background & Prominent Gray Elevation Shadow */
            background: #ffffff !important;
            border: 1.5px solid #d1d5db !important;
            box-shadow: 0 4px 14px rgba(107, 114, 128, 0.35), 0 2px 6px rgba(107, 114, 128, 0.2), 0 -1px 4px rgba(107, 114, 128, 0.12) !important;
            color: #475569 !important;
        }

        /* 0. Offscreen Left Hidden Slot */
        .lc-card[data-slot="-1"] {
            left: -22% !important;
            height: 42px;
            opacity: 0 !important;
            pointer-events: none !important;
            z-index: 1;
        }

        /* 1. Outer Edge Cards (Slot 0 & Slot 4) -> Smallest Height */
        .lc-card[data-slot="0"] {
            left: 0%;
            height: 46px;
            border-radius: 11px 11px 7px 7px;
            z-index: 3;
            opacity: 1 !important;
            pointer-events: auto;
        }
        .lc-card[data-slot="0"] .lc-card-icon svg {
            width: 18px;
            height: 18px;
        }
        .lc-card[data-slot="0"] .lc-card-label {
            font-size: 9.5px;
        }

        .lc-card[data-slot="4"] {
            left: 79.2%;
            height: 46px;
            border-radius: 11px 11px 7px 7px;
            z-index: 3;
            opacity: 1 !important;
            pointer-events: auto;
        }
        .lc-card[data-slot="4"] .lc-card-icon svg {
            width: 18px;
            height: 18px;
        }
        .lc-card[data-slot="4"] .lc-card-label {
            font-size: 9.5px;
        }

        /* 2. Mid Side Cards (Slot 1 & Slot 3) -> Medium Height */
        .lc-card[data-slot="1"] {
            left: 19.8%;
            height: 54px;
            border-radius: 13px 13px 8px 8px;
            z-index: 8;
            opacity: 1 !important;
            pointer-events: auto;
        }
        .lc-card[data-slot="1"] .lc-card-icon svg {
            width: 20px;
            height: 20px;
        }
        .lc-card[data-slot="1"] .lc-card-label {
            font-size: 10.5px;
        }

        .lc-card[data-slot="3"] {
            left: 59.4%;
            height: 54px;
            border-radius: 13px 13px 8px 8px;
            z-index: 8;
            opacity: 1 !important;
            pointer-events: auto;
        }
        .lc-card[data-slot="3"] .lc-card-icon svg {
            width: 20px;
            height: 20px;
        }
        .lc-card[data-slot="3"] .lc-card-label {
            font-size: 10.5px;
        }

        /* 3. Center Card (Slot 2) -> Tallest Height */
        .lc-card[data-slot="2"] {
            left: 39.6%;
            height: 64px;
            border-radius: 15px 15px 9px 9px;
            z-index: 20;
            opacity: 1 !important;
            pointer-events: auto;
        }
        .lc-card[data-slot="2"] .lc-card-icon svg {
            width: 22px;
            height: 22px;
        }
        .lc-card[data-slot="2"] .lc-card-label {
            font-size: 11px;
        }

        /* 4. Offscreen Right Hidden Slot */
        .lc-card[data-slot="5"] {
            left: 102% !important;
            height: 42px;
            opacity: 0 !important;
            pointer-events: none !important;
            z-index: 1;
        }

        .lc-card:hover:not(.active) {
            color: #0284c7 !important;
            border-color: #94a3b8 !important;
            box-shadow: 0 6px 18px rgba(107, 114, 128, 0.45), 0 2px 8px rgba(107, 114, 128, 0.25), 0 -2px 6px rgba(107, 114, 128, 0.15) !important;
        }

        /* Active Selected Center Card - Electric Cyan Glow */
        .lc-card.active,
        .lc-card[data-slot="2"].active {
            height: 66px !important;
            transform: scale(1.025);
            border-radius: 15px 15px 9px 9px !important;
            z-index: 25 !important;
            background: linear-gradient(180deg, #ffffff 0%, #e0f2fe 55%, #bae6fd 100%) !important;
            border: 2px solid #00d2ff !important;
            box-shadow: 0 -4px 22px rgba(0, 210, 255, 0.75), 
                        0 0 15px rgba(0, 210, 255, 0.5), 
                        0 4px 10px rgba(0, 0, 0, 0.12) !important;
            color: #0369a1 !important;
            opacity: 1 !important;
        }

        /* Card Icon */
        .lc-card-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .lc-card-icon svg {
            stroke: currentColor;
            stroke-width: 1.9;
            fill: none;
            transition: all 0.25s ease;
        }

        .lc-card.active .lc-card-icon svg,
        .lc-card[data-slot="2"].active .lc-card-icon svg {
            width: 23px !important;
            height: 23px !important;
            stroke: #0284c7;
            stroke-width: 2.1;
            transform: scale(1.08);
            filter: drop-shadow(0 1px 2px rgba(2, 132, 199, 0.25));
        }

        /* Card Label */
        .lc-card-label {
            font-weight: 600;
            letter-spacing: -0.2px;
            line-height: 1.1;
            margin-top: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
            text-align: center;
            font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
            transition: font-weight 0.2s ease, color 0.2s ease;
        }

        .lc-card.active .lc-card-label,
        .lc-card[data-slot="2"].active .lc-card-label {
            font-weight: 700 !important;
            font-size: 11.5px !important;
            color: #0369a1 !important;
            letter-spacing: -0.1px;
        }

        /* Dark Mode Theme Support - 100% Solid Opaque (No Transparency) */
        body.sr-dark-mode .lc-dock-tray,
        html.sr-dark-mode .lc-dock-tray,
        body.dark-mode .lc-dock-tray,
        [data-theme="dark"] .lc-dock-tray {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
        }

        body.sr-dark-mode .lc-dock-tray::before,
        html.sr-dark-mode .lc-dock-tray::before,
        body.dark-mode .lc-dock-tray::before,
        [data-theme="dark"] .lc-dock-tray::before {
            display: none !important;
        }

        body.sr-dark-mode .lc-card,
        html.sr-dark-mode .lc-card,
        body.dark-mode .lc-card,
        [data-theme="dark"] .lc-card {
            background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
            border: 1.5px solid #475569 !important;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.75), 0 2px 6px rgba(71, 85, 105, 0.35), 0 -1px 4px rgba(71, 85, 105, 0.2) !important;
            color: #94a3b8 !important;
            opacity: 1 !important;
        }

        body.sr-dark-mode .lc-card:hover:not(.active),
        html.sr-dark-mode .lc-card:hover:not(.active),
        body.dark-mode .lc-card:hover:not(.active),
        [data-theme="dark"] .lc-card:hover:not(.active) {
            color: #38bdf8 !important;
            border-color: #64748b !important;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.85), 0 3px 8px rgba(71, 85, 105, 0.45) !important;
        }

        body.sr-dark-mode .lc-card.active,
        body.sr-dark-mode .lc-card[data-slot="2"].active,
        html.sr-dark-mode .lc-card.active,
        html.sr-dark-mode .lc-card[data-slot="2"].active,
        body.dark-mode .lc-card.active,
        body.dark-mode .lc-card[data-slot="2"].active,
        [data-theme="dark"] .lc-card.active,
        [data-theme="dark"] .lc-card[data-slot="2"].active {
            background: linear-gradient(180deg, #1e293b 0%, #0c4a6e 65%, #075985 100%) !important;
            border: 2px solid #38bdf8 !important;
            box-shadow: 0 -4px 22px rgba(56, 189, 248, 0.8), 
                        0 0 16px rgba(56, 189, 248, 0.6), 
                        0 4px 14px rgba(0, 0, 0, 0.7) !important;
            color: #ffffff !important;
            opacity: 1 !important;
        }

        body.sr-dark-mode .lc-card.active .lc-card-icon svg,
        html.sr-dark-mode .lc-card.active .lc-card-icon svg,
        body.dark-mode .lc-card.active .lc-card-icon svg,
        [data-theme="dark"] .lc-card.active .lc-card-icon svg {
            stroke: #38bdf8 !important;
            filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.6));
        }

        body.sr-dark-mode .lc-card.active .lc-card-label,
        html.sr-dark-mode .lc-card.active .lc-card-label,
        body.dark-mode .lc-card.active .lc-card-label,
        [data-theme="dark"] .lc-card.active .lc-card-label {
            color: #ffffff !important;
        }

        /* Mobile Responsive Breakpoints */
        @media (max-width: 768px) {
            body {
                padding-bottom: 84px !important;
            }
            .lc-dock-container {
                display: block !important;
            }
        }

        @media (max-width: 370px) {
            .lc-dock-container {
                bottom: 8px !important;
                width: calc(100% - 16px) !important;
            }
            .lc-dock-tray,
            .lc-deck-track {
                height: 60px;
            }
            .lc-card[data-slot="0"],
            .lc-card[data-slot="4"] {
                height: 42px;
            }
            .lc-card[data-slot="1"],
            .lc-card[data-slot="3"] {
                height: 49px;
            }
            .lc-card[data-slot="2"] {
                height: 56px;
            }
            .lc-card.active,
            .lc-card[data-slot="2"].active {
                height: 60px !important;
            }
        }

        /* ================================================================= */
        /* Permanent Desktop Auto-Slim Sidebar (Below Header)                */
        /* ================================================================= */
        .desktop-permanent-sidebar {
            display: none;
            position: fixed;
            top: 57px; /* Directly below 57px Header */
            left: 0;
            bottom: 0;
            height: calc(100vh - 57px);
            width: 56px; /* Ultra-Sleek Slim Collapsed mode */
            background: rgba(255, 255, 255, 0.95) !important;
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border-right: 1px solid rgba(226, 232, 240, 0.85) !important;
            z-index: 1020;
            flex-direction: column;
            box-shadow: 2px 0 10px rgba(15, 23, 42, 0.03);
            user-select: none;
            -webkit-user-select: none;
            transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, backdrop-filter 0.25s ease, -webkit-backdrop-filter 0.25s ease, box-shadow 0.28s ease, border-color 0.25s ease;
            overflow-x: hidden;
        }

        /* Smooth Expand on Hover -> Balanced Frosted Acrylic Glass */
        .desktop-permanent-sidebar:hover,
        .desktop-permanent-sidebar.force-expand {
            width: 240px; /* Slides smoothly on hover */
            background: rgba(255, 255, 255, 0.38) !important; /* Sweet Spot Frosted Glass (~62% Translucent) */
            backdrop-filter: blur(18px) saturate(180%) !important; /* Silky Glass Blur */
            -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
            border-right: 1px solid rgba(255, 255, 255, 0.50) !important;
            box-shadow: 14px 0 35px -6px rgba(15, 23, 42, 0.08), 2px 0 8px rgba(15, 23, 42, 0.02) !important;
        }

/* Nav Scrollable Area */
        .sidebar-nav-scroll {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            scrollbar-width: none;
            -ms-overflow-style: none;
            padding: 8px 0 10px 0;
            width: 240px;
            box-sizing: border-box;
        }

        .sidebar-nav-scroll::-webkit-scrollbar {
            display: none;
        }

        /* ================================================================= */
        /* 3 Colorful Accent Dots (Above Dashboard)                          */
        /* ================================================================= */
        .sidebar-top-dots {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 56px;
            padding: 10px 0 8px 0;
            gap: 6px;
            box-sizing: border-box;
            transition: all 0.22s ease;
        }

        .desktop-permanent-sidebar:hover .sidebar-top-dots,
        .desktop-permanent-sidebar.force-expand .sidebar-top-dots {
            width: 100%;
            justify-content: flex-start;
            padding: 10px 0 8px 18px;
        }

        .sidebar-dot {
            width: 8.5px;
            height: 8.5px;
            border-radius: 50%;
            display: inline-block;
            flex-shrink: 0;
            transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
            position: relative;
        }

        .sidebar-top-dots:hover .sidebar-dot {
            transform: scale(1.18);
        }

        .sidebar-dot.dot-red {
            background: #ff5f56;
            box-shadow: 0 0 6px rgba(255, 95, 86, 0.45);
        }

        .sidebar-dot.dot-yellow {
            background: #ffbd2e;
            box-shadow: 0 0 6px rgba(255, 189, 46, 0.45);
        }

        .sidebar-dot.dot-green {
            background: #27c93f;
            box-shadow: 0 0 6px rgba(39, 201, 63, 0.45);
        }

        .sr-dark-mode .sidebar-dot.dot-red {
            background: #f87171;
            box-shadow: 0 0 6px rgba(248, 113, 113, 0.4);
        }

        .sr-dark-mode .sidebar-dot.dot-yellow {
            background: #fbbf24;
            box-shadow: 0 0 6px rgba(251, 191, 36, 0.4);
        }

        .sr-dark-mode .sidebar-dot.dot-green {
            background: #34d399;
            box-shadow: 0 0 6px rgba(52, 211, 153, 0.4);
        }

        .sidebar-section-label {
            font-size: 8px;
            font-weight: 800;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            padding: 8px 0 4px 0;
            text-align: center;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            white-space: nowrap;
            width: 56px;
            transition: all 0.18s ease;
        }

        .desktop-permanent-sidebar:hover .sidebar-section-label,
        .desktop-permanent-sidebar.force-expand .sidebar-section-label {
            text-align: left;
            padding: 10px 14px 4px 14px;
            font-size: 9.5px;
            letter-spacing: 0.8px;
            width: 100%;
        }

        .sidebar-menu {
            display: flex;
            flex-direction: column;
            gap: 4px;
            padding: 0 8px;
            position: relative;
            box-sizing: border-box;
        }

        .sidebar-link {
            display: flex;
            align-items: center;
            height: 38px;
            border-radius: 9px;
            color: #475569;
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            position: relative;
            transition: background 0.16s ease, color 0.16s ease;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            width: 100%;
            box-sizing: border-box;
            white-space: nowrap;
            padding: 0 4px;
        }

        .sidebar-link .sidebar-icon {
            font-size: 15px;
            width: 38px;
            height: 38px;
            margin: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #64748b;
            flex-shrink: 0;
            border-radius: 8px;
            background: transparent;
            transition: all 0.16s ease;
        }

        .sidebar-link .sidebar-text {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            flex: 1;
            opacity: 0;
            transform: translateX(-6px);
            transition: opacity 0.14s ease, transform 0.14s ease;
            margin-left: 8px;
        }

        .desktop-permanent-sidebar:hover .sidebar-link .sidebar-text,
        .desktop-permanent-sidebar.force-expand .sidebar-link .sidebar-text {
            opacity: 1;
            transform: translateX(0);
            transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1) 0.05s, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
        }

        .desktop-permanent-sidebar:hover .sidebar-link,
        .desktop-permanent-sidebar.force-expand .sidebar-link {
            padding-right: 8px;
        }

        .sidebar-link:hover {
            background: rgba(241, 245, 249, 0.85);
            color: #0f172a;
            border-color: rgba(226, 232, 240, 0.7);
            transform: translateX(1.5px);
        }

        .sidebar-link:hover .sidebar-icon {
            color: #2563eb;
            background: rgba(239, 246, 255, 0.95);
            transform: scale(1.08);
        }

        /* Active Selected Item: Jet Black Luxury Box */
        /* In Slim / Patla mode -> ONLY the Jet Black Icon Box Shows */
        .sidebar-link.active {
            background: transparent !important;
            border: 1px solid transparent !important;
            box-shadow: none !important;
            position: relative;
            color: #0f172a !important;
            font-weight: 700 !important;
            transition: all 0.22s ease;
        }

        /* The Jet Black Icon Box */
        .sidebar-link.active .sidebar-icon {
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
            color: #ffffff !important;
            font-size: 15.5px !important;
            width: 38px !important;
            height: 38px !important;
            border-radius: 9px !important;
            box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            margin: 0 !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            transform: none !important;
            filter: none !important;
            transition: all 0.2s ease;
        }

        .sidebar-link.active .sidebar-text {
            color: #0f172a !important;
            font-weight: 700 !important;
            letter-spacing: 0.1px;
        }

        .sidebar-active-indicator {
            display: none !important;
        }

        .sidebar-link.active .sidebar-active-indicator {
            display: none !important;
        }

        /* When Hovered / Expanded (Slide hokar aaye) -> Sleek Row Backdrop */
        .desktop-permanent-sidebar:hover .sidebar-link.active,
        .desktop-permanent-sidebar.force-expand .sidebar-link.active {
            background: rgba(15, 23, 42, 0.05) !important;
            border: 1px solid rgba(15, 23, 42, 0.10) !important;
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
            border-radius: 9px !important;
        }

        .desktop-permanent-sidebar:hover .sidebar-link.active:hover,
        .desktop-permanent-sidebar.force-expand .sidebar-link.active:hover {
            background: rgba(15, 23, 42, 0.08) !important;
            border-color: rgba(15, 23, 42, 0.15) !important;
        }

        .sidebar-badge-pill {
            font-size: 8.5px;
            font-weight: 700;
            padding: 2px 6.5px;
            border-radius: 9999px;
            line-height: 1.2;
            margin-left: auto;
            opacity: 0;
            transform: scale(0.9);
            transition: opacity 0.16s ease, transform 0.16s ease;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .desktop-permanent-sidebar:hover .sidebar-badge-pill,
        .desktop-permanent-sidebar.force-expand .sidebar-badge-pill {
            opacity: 1;
            transform: scale(1);
            transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1) 0.06s, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) 0.06s;
        }

        .sidebar-badge-pill.badge-live {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            color: #ffffff;
            box-shadow: 0 2px 6px rgba(239, 68, 68, 0.38);
            letter-spacing: 0.5px;
        }

        .sidebar-badge-pill.badge-pro {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: #ffffff;
            box-shadow: 0 2px 6px rgba(245, 158, 11, 0.38);
            letter-spacing: 0.5px;
        }

        .sidebar-badge-pill.badge-new {
            background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
            color: #ffffff;
            box-shadow: 0 2px 6px rgba(99, 102, 241, 0.38);
            letter-spacing: 0.5px;
        }

        .sidebar-divider {
            height: 1px;
            background: #f1f5f9;
            margin: 8px 10px;
            border: none;
        }

        .sidebar-link-danger:hover {
            background: #fef2f2 !important;
            color: #ef4444 !important;
        }

        .sidebar-link-danger:hover .sidebar-icon {
            color: #ef4444 !important;
            background: #fee2e2 !important;
        }

        .sidebar-link-primary {
            color: #2563eb !important;
            font-weight: 600;
        }

        .sidebar-link-primary .sidebar-icon {
            color: #2563eb !important;
        }

        /* Bottom User Profile Section */
        .sidebar-footer-user {
            flex-shrink: 0;
            border-top: 1px solid rgba(226, 232, 240, 0.5);
            padding: 8px 0;
            background: transparent !important;
            width: 240px;
            overflow: hidden;
            box-sizing: border-box;
            transition: padding 0.22s ease, background 0.22s ease;
        }

        .desktop-permanent-sidebar:hover .sidebar-footer-user,
        .desktop-permanent-sidebar.force-expand .sidebar-footer-user {
            padding: 8px 8px;
            background: transparent !important;
        }

        /* ================================================================= */
        /* Dark Mode Toggle Button (Above Student Image)                    */
        /* ================================================================= */
        .sidebar-theme-toggle-btn {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            height: 38px;
            width: 38px;
            margin-left: 9px; /* Exact center for 56px width: (56px - 38px) / 2 = 9px */
            margin-right: 9px;
            margin-top: 0;
            margin-bottom: 8px;
            padding: 0;
            border-radius: 10px;
            border: 1px solid rgba(226, 232, 240, 0.85);
            background: rgba(248, 250, 252, 0.75);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            color: #475569;
            cursor: pointer;
            position: relative;
            transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1), background 0.18s ease, border-color 0.18s ease, margin 0.22s ease;
            outline: none;
            box-sizing: border-box;
            overflow: hidden;
            -webkit-tap-highlight-color: transparent;
            flex-shrink: 0;
        }

        .sidebar-theme-toggle-btn:hover {
            background: #eff6ff;
            color: #2563eb;
            border-color: #93c5fd;
            transform: scale(1.04);
        }

        .desktop-permanent-sidebar:hover .sidebar-theme-toggle-btn,
        .desktop-permanent-sidebar.force-expand .sidebar-theme-toggle-btn {
            width: calc(100% - 16px);
            margin-left: 8px;
            margin-right: 8px;
            padding: 0 8px 0 0;
        }

        .theme-icon-wrap {
            width: 36px;
            height: 36px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 15px;
            color: #64748b;
            transition: color 0.18s ease, transform 0.25s ease;
        }

        .theme-icon-wrap svg {
            width: 17px;
            height: 17px;
            flex-shrink: 0;
        }

        .theme-icon-wrap .theme-svg-moon {
            display: block !important;
        }

        .theme-icon-wrap .theme-svg-sun {
            display: none !important;
        }

        .sidebar-theme-toggle-btn:hover .theme-icon-wrap {
            color: #2563eb;
            transform: rotate(15deg);
        }

        .theme-toggle-text {
            font-size: 12.5px;
            font-weight: 600;
            color: #334155;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            flex: 1;
            opacity: 0;
            transform: translateX(-8px);
            transition: opacity 0.18s ease, transform 0.18s ease;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            text-align: left;
            margin-left: 6px;
        }

        .theme-toggle-text .text-to-dark {
            display: inline !important;
        }

        .theme-toggle-text .text-to-light {
            display: none !important;
        }

        .desktop-permanent-sidebar:hover .theme-toggle-text,
        .desktop-permanent-sidebar.force-expand .theme-toggle-text {
            opacity: 1;
            transform: translateX(0);
        }

        .theme-switch-track {
            width: 30px;
            height: 16px;
            background: #cbd5e1;
            border-radius: 20px;
            position: relative;
            flex-shrink: 0;
            margin-right: 6px;
            opacity: 0;
            transition: opacity 0.18s ease, background 0.22s ease;
        }

        .desktop-permanent-sidebar:hover .theme-switch-track,
        .desktop-permanent-sidebar.force-expand .theme-switch-track {
            opacity: 1;
        }

        .theme-switch-thumb {
            width: 12px;
            height: 12px;
            background: #ffffff;
            border-radius: 50%;
            position: absolute;
            top: 2px;
            left: 2px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.2);
            transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
        }

        /* ================================================================= */
        /* Dark Mode Theme Styles                                           */
        /* ================================================================= */
        .sr-dark-mode body,
        body.sr-dark-mode {
            background-color: #0b0f19 !important;
            color: #f1f5f9 !important;
        }

        .sr-dark-mode .theme-icon-wrap .theme-svg-moon,
        html.sr-dark-mode .theme-icon-wrap .theme-svg-moon,
        body.sr-dark-mode .theme-icon-wrap .theme-svg-moon {
            display: none !important;
        }

        .sr-dark-mode .theme-icon-wrap .theme-svg-sun,
        html.sr-dark-mode .theme-icon-wrap .theme-svg-sun,
        body.sr-dark-mode .theme-icon-wrap .theme-svg-sun {
            display: block !important;
        }

        .sr-dark-mode .theme-toggle-text .text-to-dark,
        body.sr-dark-mode .theme-toggle-text .text-to-dark {
            display: none !important;
        }

        .sr-dark-mode .theme-toggle-text .text-to-light,
        body.sr-dark-mode .theme-toggle-text .text-to-light {
            display: inline !important;
        }

        .sr-dark-mode .theme-switch-track {
            background: #2563eb !important;
        }

        .sr-dark-mode .theme-switch-thumb {
            transform: translateX(14px) !important;
        }

        .sr-dark-mode .sidebar-theme-toggle-btn {
            background: #1e293b !important;
            border-color: #334155 !important;
            color: #f1f5f9 !important;
        }

        .sr-dark-mode .sidebar-theme-toggle-btn:hover {
            background: #273549 !important;
            border-color: #3b82f6 !important;
        }

        .sr-dark-mode .theme-toggle-text {
            color: #f1f5f9 !important;
        }

        .sr-dark-mode .desktop-permanent-sidebar {
            background: rgba(15, 23, 42, 0.95) !important;
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
            box-shadow: 2px 0 12px rgba(0, 0, 0, 0.25) !important;
        }

        .sr-dark-mode .desktop-permanent-sidebar:hover,
        .sr-dark-mode .desktop-permanent-sidebar.force-expand {
            background: rgba(15, 23, 42, 0.40) !important; /* Sweet Spot Frosted Dark Glass */
            backdrop-filter: blur(18px) saturate(180%) !important;
            -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
            border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
            box-shadow: 20px 0 50px rgba(0, 0, 0, 0.40) !important;
        }

        .sr-dark-mode .sidebar-section-label {
            color: #64748b !important;
        }

        .sr-dark-mode .sidebar-link {
            color: #94a3b8 !important;
        }

        .sr-dark-mode .sidebar-link:hover {
            background: rgba(255, 255, 255, 0.06) !important;
            color: #f8fafc !important;
        }

        .sr-dark-mode .sidebar-link:hover .sidebar-icon {
            color: #38bdf8 !important;
            background: rgba(56, 189, 248, 0.12) !important;
        }

        .sr-dark-mode .sidebar-link.active {
            background: transparent !important;
            border: 1px solid transparent !important;
            box-shadow: none !important;
        }

        .sr-dark-mode .sidebar-link.active .sidebar-icon {
            background: linear-gradient(135deg, #0f172a 0%, #020617 100%) !important;
            color: #ffffff !important;
            border: 1px solid rgba(255, 255, 255, 0.2) !important;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
        }

        .sr-dark-mode .sidebar-link.active .sidebar-text {
            color: #f8fafc !important;
            font-weight: 700 !important;
        }

        .sr-dark-mode .desktop-permanent-sidebar:hover .sidebar-link.active,
        .sr-dark-mode .desktop-permanent-sidebar.force-expand .sidebar-link.active {
            background: rgba(255, 255, 255, 0.06) !important;
            border: 1px solid rgba(255, 255, 255, 0.12) !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
        }

        .sr-dark-mode .sidebar-divider {
            background: rgba(255, 255, 255, 0.08) !important;
        }

        .sr-dark-mode .sidebar-footer-user {
            background: rgba(15, 23, 42, 0.6) !important;
            backdrop-filter: blur(16px) saturate(180%) !important;
            -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
            border-top-color: rgba(255, 255, 255, 0.08) !important;
        }

        .sr-dark-mode .sidebar-user-card:hover {
            background: rgba(30, 41, 59, 0.7) !important;
        }

        .sr-dark-mode .sidebar-user-name {
            color: #f8fafc !important;
        }

        .sr-dark-mode .sidebar-user-sub {
            color: #64748b !important;
        }

        .sr-dark-mode .sidebar-avatar-guest {
            background: rgba(30, 41, 59, 0.8) !important;
            color: #94a3b8 !important;
        }

        .sr-dark-mode .header {
            background: rgba(15, 23, 42, 0.88) !important; /* Frosted Dark Theme Header */
            backdrop-filter: blur(16px) saturate(180%) !important;
            -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        }

        .sr-dark-mode .logo-title {
            color: #f8fafc !important;
        }

        .sr-dark-mode .header-action-btn {
            background: #1e293b !important;
            border-color: #334155 !important;
            color: #94a3b8 !important;
        }

        .sr-dark-mode .header-action-btn:hover {
            background: #273549 !important;
            color: #38bdf8 !important;
            border-color: #3b82f6 !important;
        }

        .sr-dark-mode .nav-desktop {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
        }

        .sr-dark-mode .nav-desktop .nav-link {
            color: #94a3b8 !important;
            background: transparent !important;
        }

        .sr-dark-mode .nav-desktop .nav-link:hover,
        .sr-dark-mode .nav-item-dropdown:hover > .nav-link {
            color: #f8fafc !important;
            background: transparent !important;
        }

        .sr-dark-mode .nav-desktop .nav-link.active {
            color: #38bdf8 !important;
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
        }

        .sr-dark-mode .nav-sliding-glider {
            background: #38bdf8 !important;
            box-shadow: 0 0 10px rgba(56, 189, 248, 0.8) !important;
        }

        .sr-dark-mode .nav-desktop .nav-link i.nav-main-icon {
            color: #94a3b8 !important;
        }

        .sr-dark-mode .nav-desktop .nav-link:hover i.nav-main-icon {
            color: #f8fafc !important;
        }

        .sr-dark-mode .nav-desktop .nav-link.active i.nav-main-icon {
            color: #38bdf8 !important;
        }

        .sr-dark-mode .nav-badge-live {
            background: rgba(239, 68, 68, 0.2) !important;
            color: #f87171 !important;
        }

        .sr-dark-mode .pulse-live-dot {
            background: #f87171 !important;
        }

        .sr-dark-mode .nav-notif-dot {
            border-color: #0f172a !important;
        }

        .sr-dark-mode .nav-dropdown-menu {
            background: #0f172a !important;
            border-color: #1e293b !important;
            box-shadow: 0 20px 40px -4px rgba(0, 0, 0, 0.5), 0 0 0 1px #1e293b !important;
        }

        .sidebar-user-card {
            display: flex;
            align-items: center;
            text-decoration: none;
            padding: 4px 0;
            border-radius: 10px;
            transition: background 0.18s ease;
            width: 100%;
            box-sizing: border-box;
        }

        .desktop-permanent-sidebar:hover .sidebar-user-card,
        .desktop-permanent-sidebar.force-expand .sidebar-user-card {
            padding: 4px 6px;
            gap: 10px;
        }

        .sidebar-user-card:hover {
            background: #f8fafc;
        }

        .sidebar-user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            font-weight: 700;
            border: none !important;
            margin-left: 10px; /* Exact center for 56px width: (56px - 36px) / 2 = 10px */
            margin-right: 10px;
            transition: margin 0.22s ease;
        }

        .desktop-permanent-sidebar:hover .sidebar-user-avatar,
        .desktop-permanent-sidebar.force-expand .sidebar-user-avatar {
            margin-left: 0;
            margin-right: 0;
        }

        .sidebar-avatar-fallback {
            background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
            color: white;
        }

        .sidebar-avatar-guest {
            background: #e2e8f0;
            color: #475569;
            font-size: 13px;
        }

        .sidebar-user-details {
            min-width: 0;
            flex: 1;
            opacity: 0;
            transform: translateX(-8px);
            transition: opacity 0.18s ease, transform 0.18s ease;
            white-space: nowrap;
        }

        .desktop-permanent-sidebar:hover .sidebar-user-details,
        .desktop-permanent-sidebar.force-expand .sidebar-user-details {
            opacity: 1;
            transform: translateX(0);
        }

        .sidebar-user-name {
            font-size: 13px;
            font-weight: 700;
            color: #0f172a;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.25;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }

        .sidebar-user-sub {
            font-size: 10.5px;
            color: #94a3b8;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.2;
            margin-top: 1px;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }

        /* ================================================================= */
        /* Desktop vs Mobile Layout Rules                                   */
        /* ================================================================= */
        @media (min-width: 769px) {
            body {
                padding-top: 57px !important;
                margin-top: 0 !important;
            }
            .desktop-permanent-sidebar {
                display: flex !important;
            }
            .mobile-nav-toggle-btn {
                display: none !important; /* Hide 3-line / 4-line menu on PC */
            }
            .header {
                left: 0 !important;
                right: 0 !important;
                top: 0 !important;
                width: 100% !important;
                height: 57px !important;
                z-index: 1030 !important;
            }
            main {
                margin-left: 56px !important;
                margin-top: 0 !important;
                padding-top: 0 !important;
                width: calc(100% - 56px) !important;
                transition: margin-left 0.22s cubic-bezier(0.16, 1, 0.3, 1), width 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
            }
            .footer {
                margin-left: 56px !important;
                width: calc(100% - 56px) !important;
                transition: margin-left 0.22s cubic-bezier(0.16, 1, 0.3, 1), width 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
            }
        }

        @media (max-width: 768px) {
            body {
                padding-top: 50px !important;
                margin-top: 0 !important;
            }
            .desktop-permanent-sidebar {
                display: none !important;
            }
            .mobile-nav-toggle-btn {
                display: inline-flex !important;
            }
            .header {
                left: 0 !important;
                right: 0 !important;
                top: 0 !important;
                width: 100% !important;
                height: 50px !important;
                min-height: 50px !important;
                max-height: 50px !important;
                margin: 0 !important;
            }
            main {
                margin-left: 0 !important;
                margin-top: 0 !important;
                padding-top: 0 !important;
                width: 100% !important;
            }
            .footer {
                margin-left: 0 !important;
                width: 100% !important;
            }
        }

/* --- Additional Extracted Header Style --- */
@media (max-width: 480px) {
                        #planExpiredModal .modal {
                            width: 100% !important;
                            max-width: 420px !important;
                        }
                        #planExpiredModal .modal > div:first-child {
                            padding: 10px 15px !important;
                        }
                        #planExpiredModal h3 {
                            font-size: 15px !important;
                        }
                        #closePlanExpiredModal {
                            width: 30px !important;
                            height: 30px !important;
                            font-size: 13px !important;
                            top: 5px !important;
                            right: 5px !important;
                        }
                        #planExpiredModal .modal > div:nth-child(2) {
                            padding: 6px 10px !important;
                        }
                        #planExpiredModal .modal > div:nth-child(2) > div:first-child {
                            padding: 6px !important;
                            margin-bottom: 6px !important;
                        }
                        #planExpiredModal .modal > div:nth-child(2) > div:first-child > div:nth-child(2) {
                            font-size: 0.6rem !important;
                            margin-bottom: 3px !important;
                            padding: 5px 8px !important;
                        }
                        #planExpiredModal .modal > div:nth-child(2) > div:first-child > div:nth-child(3) {
                            font-size: 0.45rem !important;
                            margin-bottom: 3px !important;
                        }
                        #planExpiredModal .modal > div:nth-child(2) > div:first-child > div:nth-child(4) {
                            font-size: 0.45rem !important;
                            margin-bottom: 4px !important;
                        }
                        #planExpiredModal .modal > div:nth-child(2) > div:first-child > div:nth-child(4) > div:nth-child(3),
                        #planExpiredModal .modal > div:nth-child(2) > div:first-child > div:nth-child(4) > div:nth-child(4),
                        #planExpiredModal .modal > div:nth-child(2) > div:first-child > div:nth-child(4) > div:nth-child(5) {
                            display: none !important;
                        }
                        #planExpiredModal .modal > div:nth-child(2) > div:first-child > a {
                            padding: 7px !important;
                            font-size: 0.65rem !important;
                            margin-bottom: 3px !important;
                        }
                        #planExpiredModal .modal > div:nth-child(2) > div:first-child > div:nth-child(5) {
                            gap: 5px !important;
                        }
                        #planExpiredModal .modal > div:nth-child(2) > div:first-child > div:nth-child(5) span {
                            font-size: 0.5rem !important;
                        }
                        #planExpiredModal .modal > div:nth-child(2) > div:nth-child(2) {
                            margin-top: 4px !important;
                            padding-top: 5px !important;
                        }
                        #planExpiredModal .modal > div:nth-child(2) > div:nth-child(2) p {
                            font-size: 8px !important;
                        }
                    }
                    @media (max-width: 360px) {
                        #planExpiredModal .modal {
                            width: 100% !important;
                            max-width: 360px !important;
                        }
                        #planExpiredModal .modal > div:first-child {
                            padding: 8px 12px !important;
                        }
                        #planExpiredModal h3 {
                            font-size: 13px !important;
                        }
                        #planExpiredModal .modal > div:nth-child(2) {
                            padding: 5px 8px !important;
                        }
                        #planExpiredModal .modal > div:nth-child(2) > div:first-child {
                            padding: 5px !important;
                            margin-bottom: 5px !important;
                        }
                    }

/* --- Additional Extracted Header Style --- */
/* Modal Overlay & Card for Premium Test Popup */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 23, 42, 0.72);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 99999;
            opacity: 0;
            transition: opacity 0.25s ease;
            box-sizing: border-box;
            padding: 16px;
        }
        .modal-overlay.active {
            display: flex !important;
            opacity: 1;
        }
        #loginRequiredModal .premium-modal-card {
            background: #ffffff;
            border-radius: 20px;
            width: 100%;
            max-width: 440px;
            overflow: hidden;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
            transform: scale(0.92) translateY(10px);
            transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
            animation: none;
        }
        #loginRequiredModal.active .premium-modal-card {
            transform: scale(1) translateY(0);
        }
        .premium-modal-header {
            background: linear-gradient(135deg, #059669 0%, #10b981 50%, #047857 100%);
            padding: 24px 20px 20px;
            text-align: center;
            color: #ffffff;
            position: relative;
        }
        .premium-modal-header .close-btn {
            position: absolute;
            top: 14px;
            right: 14px;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: #ffffff;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }
        .premium-modal-header .close-btn:hover {
            background: rgba(255, 255, 255, 0.35);
            transform: scale(1.08) rotate(90deg);
        }
        .premium-modal-crown {
            width: 52px;
            height: 52px;
            background: rgba(255, 255, 255, 0.22);
            border: 2px solid rgba(255, 255, 255, 0.4);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 10px;
            font-size: 24px;
            color: #fef08a;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
        }
        .premium-modal-title {
            margin: 0;
            font-size: 22px;
            font-weight: 700;
            color: #ffffff;
            letter-spacing: -0.3px;
        }
        .premium-modal-subtitle {
            margin: 6px 0 0 0;
            font-size: 13px;
            color: rgba(255, 255, 255, 0.92);
            font-weight: 400;
        }
        .premium-modal-body {
            padding: 22px 24px;
            background: #ffffff;
        }
        .premium-feature-box {
            background: #f0fdf4;
            border: 1px solid #bbf7d0;
            border-left: 4px solid #10b981;
            border-radius: 12px;
            padding: 14px 16px;
            margin-bottom: 18px;
        }
        .premium-feature-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
        }
        .premium-feature-title h4 {
            margin: 0;
            color: #065f46;
            font-size: 14px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .premium-badge-pill {
            background: #10b981;
            color: #ffffff;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }
        .premium-feature-list {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .premium-feature-list li {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            font-size: 13px;
            color: #064e3b;
            line-height: 1.4;
        }
        .premium-feature-list li i {
            color: #10b981;
            font-size: 14px;
            margin-top: 2px;
            flex-shrink: 0;
        }
        .premium-btn-group {
            display: flex;
            gap: 12px;
            margin-bottom: 14px;
        }
        .premium-btn-login {
            flex: 1;
            padding: 13px 16px;
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: #ffffff !important;
            border-radius: 10px;
            font-weight: 600;
            font-size: 14.5px;
            text-align: center;
            text-decoration: none !important;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
            transition: all 0.2s ease;
        }
        .premium-btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
        }
        .premium-btn-register {
            flex: 1;
            padding: 13px 16px;
            background: #ffffff;
            color: #059669 !important;
            border: 2px solid #10b981;
            border-radius: 10px;
            font-weight: 600;
            font-size: 14.5px;
            text-align: center;
            text-decoration: none !important;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.2s ease;
        }
        .premium-btn-register:hover {
            background: #f0fdf4;
            border-color: #059669;
            transform: translateY(-2px);
        }
        .premium-fee-note {
            background: #ecfdf5;
            border: 1px dashed #6ee7b7;
            border-radius: 8px;
            padding: 9px 12px;
            font-size: 12.5px;
            color: #065f46;
            text-align: center;
            margin-bottom: 12px;
        }
        .premium-trust-badge {
            text-align: center;
            padding-top: 10px;
            border-top: 1px solid #f1f5f9;
            font-size: 11.5px;
            color: #64748b;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        @media (max-width: 480px) {
            #loginRequiredModal .premium-modal-card {
                max-width: 94%;
                border-radius: 16px;
            }
            .premium-modal-header {
                padding: 18px 16px 16px;
            }
            .premium-modal-crown {
                width: 42px;
                height: 42px;
                font-size: 20px;
                margin-bottom: 8px;
            }
            .premium-modal-title {
                font-size: 19px;
            }
            .premium-modal-subtitle {
                font-size: 12px;
            }
            .premium-modal-body {
                padding: 16px;
            }
            .premium-btn-group {
                flex-direction: column;
                gap: 8px;
            }
            .premium-btn-login,
            .premium-btn-register {
                width: 100%;
                padding: 11px 14px;
                font-size: 14px;
                box-sizing: border-box;
            }
        }

/* =========================================================================
   Unified Global Search Styles (Shared across all pages & customizable)
   ========================================================================= */
.sr-search-highlight {
    background: rgba(254, 240, 138, 0.7);
    color: #854d0e;
    font-weight: 700;
    padding: 0 3px;
    border-radius: 3px;
}
.sr-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    transition: background 0.15s ease;
}
.sr-search-item:hover, .sr-search-item.active {
    background: #f8fafc;
}
.sr-item-logo-box {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    padding: 3px;
}
.sr-item-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.sr-item-details {
    flex: 1;
    min-width: 0;
}
.sr-item-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sr-item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    flex-wrap: wrap;
}
.sr-item-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
}
.sr-cat-mock { background: #eff6ff; color: #1d4ed8; }
.sr-cat-syllabus { background: #ecfdf5; color: #047857; }
.sr-cat-job { background: #fef2f2; color: #b91c1c; }
.sr-cat-pyq { background: #fdf4ff; color: #86198f; }
.sr-cat-admit { background: #fff7ed; color: #c2410c; }
.sr-cat-result { background: #f0fdf4; color: #15803d; }
.sr-cat-notification { background: #fffbeb; color: #b45309; }
.sr-cat-default { background: #f1f5f9; color: #475569; }
.sr-item-kw {
    font-size: 0.72rem;
    color: #64748b;
}
.sr-item-arrow {
    color: #94a3b8;
    font-size: 0.85rem;
}
.sr-search-empty {
    padding: 28px 16px;
    text-align: center;
}
.sr-empty-icon {
    font-size: 2rem;
    color: #94a3b8;
    margin-bottom: 8px;
}
.sr-empty-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}
.sr-empty-sub {
    font-size: 0.8rem;
    color: #64748b;
}
