

        /* ACADEMIC & PROFESSIONAL STYLING */
        body {
            font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            scroll-behavior: smooth;
            letter-spacing: 0.01em;
            line-height: 1.6;
        }
        
        h1, h2, h3, h4, h5, h6 {
            font-family: 'Crimson Pro', Georgia, serif;
            font-weight: 600;
            letter-spacing: -0.02em;
        }
        
        .academic-header {
            background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
            border-bottom: 3px solid #1e40af;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }
        
        .academic-title {
            font-family: 'Crimson Pro', Georgia, serif;
            font-weight: 700;
            letter-spacing: -0.03em;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            line-height: 1.2;
        }
        
        .academic-subtitle {
            font-family: 'Source Sans Pro', sans-serif;
            font-weight: 300;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            font-size: 0.75rem;
        }
        
        .section-title {
            font-family: 'Crimson Pro', Georgia, serif;
            position: relative;
            padding-bottom: 0.75rem;
            margin-bottom: 2rem;
            letter-spacing: -0.01em;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: linear-gradient(90deg, transparent, #3b82f6, transparent);
        }
        
        .section-subtitle {
            font-family: 'Source Sans Pro', sans-serif;
            color: #475569; /* slate-600 */
            font-size: 0.95rem;
            margin-top: -0.75rem;
            margin-bottom: 1.25rem;
        }

        .soft-divider {
            height: 1px;
            width: 100%;
            background: linear-gradient(90deg, rgba(99,102,241,0) 0%, rgba(99,102,241,0.35) 50%, rgba(99,102,241,0) 100%);
        }

        .toolkit-card {
            transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
            background: white;
            border: 1px solid #e5e7eb;
        }
        .toolkit-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 16px 20px -8px rgba(0, 0, 0, 0.12), 0 8px 8px -8px rgba(0, 0, 0, 0.07);
            border-color: currentColor;
        }
        
        .category-badge {
            font-family: 'Source Sans Pro', sans-serif;
            font-weight: 600;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            font-size: 0.7rem;
        }
        
        .academic-footer {
            background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
            border-top: 2px solid #475569;
        }
        
        .about-section {
            background: white;
            border: 1px solid #e5e7eb;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }
        
        .profile-image {
            border: 4px solid #3b82f6;
            box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.3);
        }
        
        body {
            font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            scroll-behavior: smooth;
        }
        .toolkit-card {
            transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
        }
        .toolkit-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 20px 30px -5px rgb(0 0 0 / 0.15), 0 10px 15px -8px rgb(0 0 0 / 0.12);
        }
        .output-content::-webkit-scrollbar, #pdf-viewer-container::-webkit-scrollbar, #chat-history::-webkit-scrollbar, #pdf-nav-content::-webkit-scrollbar, #genppt-preview-area::-webkit-scrollbar, #reco-preview-area::-webkit-scrollbar {
            width: 8px;
        }
        .output-content::-webkit-scrollbar-track, #pdf-viewer-container::-webkit-scrollbar-track, #chat-history::-webkit-scrollbar-track, #pdf-nav-content::-webkit-scrollbar-track, #genppt-preview-area::-webkit-scrollbar-track, #reco-preview-area::-webkit-scrollbar-track {
            background: #f1f5f9;
        }
        .output-content::-webkit-scrollbar-thumb, #pdf-viewer-container::-webkit-scrollbar-thumb, #chat-history::-webkit-scrollbar-thumb, #pdf-nav-content::-webkit-scrollbar-thumb, #genppt-preview-area::-webkit-scrollbar-thumb, #reco-preview-area::-webkit-scrollbar-thumb {
            background: #94a3b8;
            border-radius: 10px;
        }
        .output-content::-webkit-scrollbar-thumb:hover, #pdf-viewer-container::-webkit-scrollbar-thumb:hover, #chat-history::-webkit-scrollbar-thumb:hover, #pdf-nav-content::-webkit-scrollbar-thumb:hover, #genppt-preview-area::-webkit-scrollbar-thumb:hover, #reco-preview-area::-webkit-scrollbar-thumb:hover {
            background: #64748b;
        }
        .modal {
            transition: opacity 0.3s ease-in-out;
        }
        .modal-content {
            max-width: 42rem; /* ~672px for readable measure */
            width: 100%;
            padding: 1.25rem 1.5rem;
            line-height: 1.7;
        }
        .modal-actions .btn-primary {
            background: #2563eb; /* blue-600 */
            color: #fff;
        }
        .modal-actions .btn-secondary {
            background: #eef2ff; /* indigo-50 */
            color: #4338ca; /* indigo-700 */
        }
        #pdf-viewer-container {
            scroll-behavior: smooth;
        }
        #pdf-viewer canvas {
            display: block;
            margin: 0 auto 1rem;
            box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
            transition: width 0.3s ease, height 0.3s ease;
        }
        .pdf-page-placeholder {
            margin: 0 auto 1rem;
            box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
            background-color: #e2e8f0;
        }
        .pdf-controls {
            position: sticky;
            bottom: 1rem;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
            border-radius: 9999px;
            padding: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: opacity 0.3s ease-in-out;
            width: fit-content;
            margin: 0 auto;
            z-index: 50;
        }
        .pdf-controls button {
            background: none;
            border: none;
            color: white;
            padding: 0.5rem;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .pdf-controls button:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }
        .pdf-controls span {
            color: white;
            font-size: 0.875rem;
            min-width: 50px;
            text-align: center;
        }
        .follow-up-question {
            background-color: #f8fafc;
            color: #4338ca;
            border: 1px solid #e0e7ff;
            padding: 0.5rem 0.75rem;
            border-radius: 0.5rem;
            font-size: 0.875rem;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
        }
        .follow-up-question:hover {
            background-color: #eef2ff;
            border-color: #c7d2fe;
            transform: translateY(-2px);
            box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
        }
        .analysis-card {
                background-color: #ffffff;
                border-radius: 0.75rem;
                padding: 1.5rem;
                box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05);
        }
        
        /* MINIMALIST CHAT BUBBLE STYLES */
        .ai-message-bubble {
            background-color: #ffffff;
            color: #334155; /* slate-700 */
            border-radius: 0.75rem;
            padding: 0.75rem 1rem;
            box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); /* shadow-sm */
            max-width: 95%;
            animation: slide-fade-in 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
        }
        .user-message-bubble {
            background-color: #ffffff;
            color: #1d4ed8; /* blue-700 */
            border-radius: 0.75rem;
            padding: 0.75rem 1rem;
            box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); /* shadow-md */
            max-width: 95%;
            animation: slide-fade-in 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
        }
        @keyframes slide-fade-in {
            0% {
                opacity: 0;
                transform: translateY(10px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* AI-Powered Navigation Panel */
        #pdf-navigation-panel {
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            background-color: #fff;
            box-shadow: 2px 0 10px rgba(0,0,0,0.1);
            z-index: 40;
            display: flex;
            flex-direction: column;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border-right: 1px solid #e2e8f0;
        }
        #nav-panel-toggle {
            position: absolute;
            left: 100%;
            top: 50%;
            transform: translateY(-50%);
            width: 24px;
            height: 48px;
            background-color: #fff;
            border: 1px solid #e2e8f0;
            border-left: none;
            border-radius: 0 8px 8px 0;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 2px 0 5px rgba(0,0,0,0.05);
        }
        #pdf-nav-content .thumbnail-container {
            position: relative;
            margin: 0 auto 10px;
            width: 100%;
        }
        #pdf-nav-content canvas {
            width: 100%;
            cursor: pointer;
            border: 2px solid transparent;
            border-radius: 0.25rem;
            transition: border-color 0.2s ease-in-out;
        }
        #pdf-nav-content canvas.active {
             border-color: #4f46e5;
             box-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
        }
        #pdf-nav-content .thumbnail-container canvas.active + .page-number + .active-overlay {
            opacity: 1;
        }
        .active-overlay {
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background-color: rgba(79, 70, 229, 0.2);
            border-radius: 0.25rem;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.2s;
        }
        #pdf-nav-content .page-number {
            position: absolute;
            bottom: 4px;
            right: 4px;
            background-color: rgba(0,0,0,0.6);
            color: white;
            font-size: 9px;
            padding: 1px 4px;
            border-radius: 3px;
        }
        
        /* INTERACTIVE AI OUTLINE */
        .outline-item {
            padding: 4px 16px; /* Compact spacing */
            cursor: pointer;
            border-left: 3px solid transparent;
            transition: background-color 0.2s, border-color 0.2s, color 0.2s;
            display: flex;
            align-items: center;
            font-size: 13px;
            line-height: 1.4;
        }
        .outline-item::before {
            content: '>';
            margin-right: 0.5rem;
            font-weight: 600;
            color: #a5b4fc;
            transition: transform 0.2s, color 0.2s;
        }
        .outline-item:hover {
            background-color: #eff6ff; /* light blue */
            border-left-color: #a5b4fc;
            color: #4f46e5; /* indigo */
        }
        .outline-item:hover::before {
            transform: translateX(3px);
            color: #4f46e5;
        }
        .outline-item.level-1 { font-weight: 600; }
        .outline-item.level-2 { padding-left: 28px; }
        .outline-item.level-3 { padding-left: 40px; }


        /* Chat container adjustments */
        #chat-container.minimized {
            width: 0 !important;
            padding: 0;
            overflow: hidden;
            border-left: none;
        }
        #chat-container.minimized #chat-history, 
        #chat-container.minimized .p-2.border-t {
             display: none;
        }
        #pdf-viewer-container.chat-minimized {
             width: 100% !important;
        }
        /* Prominent Chat Toggle Button */
        #chat-minimize-btn {
            background-color: rgba(226, 232, 240, 0.7); /* slate-200 with transparency */
            backdrop-filter: blur(4px);
            border: 1px solid rgba(203, 213, 225, 0.5); /* slate-300 with transparency */
            border-radius: 9999px;
            padding: 0.25rem 0.5rem;
            transition: background-color 0.2s;
        }
        #chat-minimize-btn:hover {
            background-color: rgba(203, 213, 225, 0.8); /* slate-300 with transparency */
        }
        /* MOBILE FOCUS MODE */
        #mobile-view-toggle button.active {
            background-color: #4f46e5;
            color: white;
        }

        /* ARTICLE ANALYZER REDESIGN */
        .analysis-card {
            background-color: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 0.75rem;
            padding: 1.5rem;
            box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05);
        }
        #analyzer-content .analysis-title {
            font-size: 1.875rem; /* text-3xl */
            font-weight: 700;
            color: #1e293b; /* slate-800 */
        }
        #analyzer-content .analysis-section-header {
            font-size: 1.25rem; /* text-xl */
            font-weight: 600;
            color: #334155; /* slate-700 */
            margin-bottom: 0.75rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid #e2e8f0; /* slate-200 */
        }
         #analyzer-content .analysis-section-card ul {
            list-style-type: disc;
            padding-left: 1.25rem;
            margin-top: 0.5rem;
        }
        .concept-tag {
            background-color: #eef2ff; /* indigo-50 */
            color: #4338ca; /* indigo-700 */
            border-radius: 9999px;
            padding: 0.25rem 0.75rem;
            font-size: 0.875rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            border: 1px solid transparent;
        }
        .concept-tag:hover {
            background-color: #c7d2fe; /* indigo-200 */
            transform: translateY(-2px);
            box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
        }
        .concept-tag.active {
            background-color: #4f46e5; /* indigo-600 */
            color: white;
            box-shadow: 0 4px 14px 0 rgb(79 70 229 / 30%);
            transform: translateY(-2px);
        }
        #concept-explanation-area {
            background-color: #f8fafc; /* slate-50 */
            padding: 1rem;
            border-radius: 0.5rem;
            margin-top: 1rem;
            min-height: 100px;
            border: 1px solid #e2e8f0;
        }
        #concept-explanation-area ul {
            list-style-type: disc;
            padding-left: 1.25rem;
        }

        /* GENPPT & RECO WRITER STYLES */
        .form-label {
            font-weight: 500;
            color: #334155; /* slate-700 */
        }
        .slide-preview-card {
            background-color: white;
            border: 1px solid #e2e8f0;
            border-radius: 0.5rem;
            padding: 1rem;
            margin-bottom: 1rem;
            box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
            display: flex;
        }
        .slide-preview-card .slide-number {
            font-size: 2rem;
            font-weight: 700;
            color: #e2e8f0;
            margin-right: 1rem;
        }
        .slide-preview-card h5 {
            font-weight: 600;
            color: #1e293b;
        }
        .slide-preview-card ul {
            list-style-type: disc;
            padding-left: 1.25rem;
            color: #475569;
            margin-top: 0.5rem;
        }

        /* AUTHENTICATION & USER PROFILE STYLES */
        .user-profile-btn {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            border-radius: 9999px;
            background-color: #f1f5f9;
            cursor: pointer;
            transition: all 0.2s;
        }
        .user-profile-btn:hover {
            background-color: #e2e8f0;
        }
        .user-type-badge {
            padding: 0.25rem 0.75rem;
            border-radius: 9999px;
            font-size: 0.75rem;
            font-weight: 600;
        }
        .badge-student { background-color: #d1fae5; color: #065f46; }
        .badge-researcher { background-color: #dbeafe; color: #1e40af; }
        .badge-scientist { background-color: #e9d5ff; color: #6b21a8; }
        
        /* CATEGORY SECTIONS */
        .category-section {
            margin-bottom: 4rem;
        }
        .category-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 3px solid;
        }
        .category-free { border-color: #4f46e5; }
        .category-student { border-color: #10b981; }
        .category-researcher { border-color: #3b82f6; }
        .category-scientist { border-color: #8b5cf6; }
        
        .category-icon {
            width: 3rem;
            height: 3rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }
        .icon-free { background-color: #eef2ff; color: #4f46e5; }
        .icon-student { background-color: #d1fae5; color: #10b981; }
        .icon-researcher { background-color: #dbeafe; color: #3b82f6; }
        .icon-scientist { background-color: #e9d5ff; color: #8b5cf6; }
        
        /* LOCKED TOOL OVERLAY */
        .tool-locked-overlay {
            position: absolute;
            inset: 0;
            background-color: rgba(0, 0, 0, 0.7);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border-radius: 1rem;
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 10;
            pointer-events: none; /* CRITICAL FIX: Overlay doesn't block clicks on card */
        }
        .toolkit-card.locked:hover .tool-locked-overlay {
            opacity: 1;
        }
        .toolkit-card.locked {
            cursor: pointer; /* Changed from not-allowed - locked cards should still be clickable to show login */
            position: relative;
        }
        
        /* AUTH MODAL STYLES */
        .auth-modal {
            backdrop-filter: blur(4px);
        }
        .auth-form {
            width: 100%;
            max-width: 28rem;
        }
        .auth-tab {
            padding: 0.75rem 1.5rem;
            cursor: pointer;
            border-bottom: 3px solid transparent;
            font-weight: 600;
            transition: all 0.2s;
        }
        .auth-tab.active {
            border-bottom-color: #4f46e5;
            color: #4f46e5;
        }
        .user-type-option {
            padding: 1rem;
            border: 2px solid #e2e8f0;
            border-radius: 0.5rem;
            cursor: pointer;
            transition: all 0.2s;
            text-align: center;
        }
        .user-type-option:hover {
            border-color: #4f46e5;
            background-color: #f8fafc;
        }
        .user-type-option.selected {
            border-color: #4f46e5;
            background-color: #eef2ff;
        }
        
        /* DROPDOWN MENU */
        .dropdown-menu {
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 0.5rem;
            background-color: white;
            border-radius: 0.5rem;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
            min-width: 200px;
            z-index: 50;
            opacity: 0;
            transform: translateY(-10px);
            pointer-events: none;
            transition: all 0.2s;
        }
        .dropdown-menu.show {
            opacity: 1;
            transform: translateY(0);
            pointer-events: all;
        }
 
 
 
		/**new mobile view**/
   @media (max-width: 767px) { 
   #ask-anything-modal .h-\[80vh\] {
    height: auto;
}
#scilitsearch-hero-form #scilitsearch-hero-input{ min-width:100%!important}
.catcard .catcardicon  {    align-items: start;}
 #about .aboutimg{align-items:center}
  #about .aboutshare a{justify-content:center;margin: 0px;}
    #about .aboutshare   { flex-direction: row; gap: 9px;}
	.aboutifobot{text-align:left;display:block}
		.aboutifobot h3{text-align:center;}
		 .aboutifobot .section-subtitle{margin-top:0px;}
		 .modalheader { flex-direction: row!important;justify-content:space-between;}
		 #genPPTModal  .h-\[90vh\],
		 #manuscriptMentorModal  .h-\[90vh\],
		 #recoWriterModal .h-\[90vh\],
		 #supervisorEyeModal   .h-\[90vh\],
		 #synopticAIModal .h-\[90vh\] {
    height: 100%;        overflow: hidden;
}
 #recoWriterModal  #reco-content .p-8 {
    padding: 1rem;
}
.btngroup {flex-wrap:wrap}

#articleFinderModal .p-8 {    padding: 1rem;}
  #nexusReaderModal #nexus-reader-content ,
						      #nexusReaderModal #nexus-reader-content .h-full,
						 #nexusReaderModal .h-\[calc\(100vh-40px\)\].flex{  height: auto !important;}
						  #modalheader ,
						 #nexusReaderModal #modalheader	{ flex-direction: row!important;justify-content:space-between;}
 }


                    /* Responsive scaling for logo and Quick Reference button */
                    @media (max-width: 640px) {
                        #aira-logo-img {
                            width: 38px !important;
                            height: 38px !important;
                            border-radius: 10px !important;
                        }
                        #ask-anything-btn {
                            font-size: 0.82rem !important;
                            height: 32px !important;
                            min-width: 32px !important;
                            padding: 0 7px 0 7px !important;
                            border-radius: 999px !important;
                        }
                        #quick-ref-center button,
                        #ask-anything-btn-center {
                            font-size: 0.92rem !important;
                            height: 34px !important;
                            min-width: 34px !important;
                            padding: 0 10px !important;
                        }
                        .quick-ref-label {
                            font-size: 0.92em !important;
                        }
                        header > div[style*="position:absolute"] {
                            top: 8px !important;
                            left: 8px !important;
                            gap: 7px !important;
                        }
                        /* PDFScholar Chat Modal Responsive Fix */
                        #nexusReaderModal .flex {
                            flex-direction: column !important;
                            height: 100% !important;
                            min-height: 0 !important;
                        }
						  
                        #nexus-reader-content {
                            height: 70vh !important;
                            min-height: 0 !important;
                            max-height: 75vh !important;
                            overflow-y: auto !important;
                            -webkit-overflow-scrolling: touch !important;
                        }
						   #nexusReaderModal #nexus-reader-content ,
						      #nexusReaderModal #nexus-reader-content .h-full,
						 #nexusReaderModal .h-\[calc\(100vh-40px\)\].flex{  height: auto !important;}
						  #modalheader ,
						 #nexusReaderModal #modalheader	{ flex-direction: row!important;justify-content:space-between;}
                    }

            /* Responsive scaling for logo and Quick Reference button */
            @media (max-width: 640px) {
                #aira-logo-img {
                    width: 38px !important;
                    height: 38px !important;
                    border-radius: 10px !important;
                }
                #ask-anything-btn {
                    font-size: 0.82rem !important;
                    height: 32px !important;
                    min-width: 32px !important;
                    padding: 0 7px 0 7px !important;
                    border-radius: 999px !important;
                }
                #quick-ref-center button,
                #ask-anything-btn-center {
                    font-size: 0.92rem !important;
                    height: 34px !important;
                    min-width: 34px !important;
                    padding: 0 10px !important;
                }
                .quick-ref-label {
                    font-size: 0.92em !important;
                }
                header > div[style*="position:absolute"] {
                    top: 8px !important;
                    left: 8px !important;
                    gap: 7px !important;
                }
            }
