/* ===== AI THEME COLOR VARIABLES ===== */
        :root {
            --ai-primary:   #6366f1;
            --ai-secondary: #8b5cf6;
            --ai-success:   #10b981;
            --ai-warning:   #f59e0b;
            --ai-danger:    #ef4444;
        }

/* Main Section Styling */
        .recommendation-section {
            margin-top: 100px;
            margin-bottom: 60px;
            padding: 0 15px;
        }

        /* Header Card with AI Gradient */
        .recommendation-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #ffffff;
            padding: 40px 30px;
            border-radius: 20px;
            margin-bottom: 30px;
            text-align: center;
            box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
            position: relative;
            overflow: hidden;
        }

        .recommendation-header::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: shimmer 6s ease-in-out infinite;
        }

        @keyframes shimmer {
            0%, 100% { transform: translate(0, 0) rotate(0deg); }
            50% { transform: translate(10%, 10%) rotate(180deg); }
        }

        .recommendation-header h2 {
            margin: 0 0 15px 0;
            font-size: 36px;
            font-weight: 700;
            color: #ffffff;
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
        }

        .ai-badge {
            background: rgba(255, 255, 255, 0.2);
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .ai-icon {
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        .recommendation-header p {
            margin: 0;
            font-size: 16px;
            color: rgba(255, 255, 255, 0.95);
            line-height: 1.8;
            max-width: 900px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        /* Version Switcher Box */
        .version-switcher-box {
            background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
            border-left: 4px solid var(--polines-navy);
            padding: 20px 25px;
            border-radius: 12px;
            margin-bottom: 30px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 15px;
        }

        .version-info {
            display: flex;
            align-items: flex-start;
            gap: 15px;
            flex: 1;
            min-width: 250px;
        }

        .version-icon {
            font-size: 32px;
            line-height: 1;
        }

        .version-text {
            flex: 1;
        }

        .version-text strong {
            color: var(--polines-navy);
            font-size: 15px;
            display: block;
            margin-bottom: 5px;
        }

        .version-text p {
            color: #4c1d95;
            font-size: 13px;
            margin: 0;
            line-height: 1.5;
        }

        .btn-switch-version {
            padding: 12px 24px;
            background: var(--polines-navy);
            color: #ffffff;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            font-size: 14px;
            text-decoration: none;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
        }

        .btn-switch-version:hover {
            background: var(--polines-blue);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 51, 102, 0.4);
            color: #ffffff;
            text-decoration: none;
        }

        /* Abstract Input Card */
        .abstract-card {
            background: #ffffff;
            border-radius: 20px;
            padding: 35px;
            box-shadow: 0 5px 25px rgba(0,0,0,0.08);
            margin-bottom: 30px;
            border: 2px solid #f3f4f6;
        }

        .abstract-card h4 {
            color: var(--polines-navy);
            font-weight: 700;
            margin-bottom: 20px;
            font-size: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .abstract-card h4 i {
            color: var(--ai-primary);
        }

        #abstractInput {
            width: 100%;
            min-height: 220px;
            padding: 18px;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            font-size: 14px;
            line-height: 1.8;
            resize: vertical;
            transition: all 0.3s ease;
            font-family: 'Poppins', sans-serif;
            background: #fafafa;
        }

        #abstractInput:focus {
            outline: none;
            border-color: var(--ai-primary);
            box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
            background: #ffffff;
        }

        .char-counter {
            margin-top: 12px;
            font-size: 13px;
            color: #6b7280;
            text-align: right;
            font-weight: 500;
        }

        .char-counter.warning {
            color: #ef4444;
            font-weight: 600;
        }

        .char-counter.success {
            color: var(--ai-success);
            font-weight: 600;
        }

        .button-group {
            display: flex;
            gap: 12px;
            margin-top: 24px;
        }

        .btn-analyze {
            flex: 1;
            padding: 18px;
            background: linear-gradient(135deg, var(--ai-primary) 0%, var(--ai-secondary) 100%);
            color: #ffffff;
            border: none;
            border-radius: 12px;
            font-weight: 700;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
        }

        .btn-analyze:hover:not(:disabled) {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
        }

        .btn-analyze:active:not(:disabled) {
            transform: translateY(-1px);
        }

        .btn-analyze:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .btn-analyze .ai-sparkle {
            animation: spin 3s linear infinite;
        }

        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .btn-reset {
            padding: 18px 30px;
            background: #6b7280;
            color: #ffffff;
            border: none;
            border-radius: 12px;
            font-weight: 600;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .btn-reset:hover {
            background: #4b5563;
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(107, 114, 128, 0.3);
        }

        /* AI Analysis Progress */
        .ai-analyzing {
            background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
            border-radius: 16px;
            padding: 40px;
            margin-top: 30px;
            text-align: center;
            border: 2px solid var(--ai-primary);
        }

        .ai-brain {
            width: 80px;
            height: 80px;
            margin: 0 auto 20px;
            position: relative;
        }

        .brain-pulse {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--ai-primary) 0%, var(--ai-secondary) 100%);
            animation: brainPulse 1.5s ease-in-out infinite;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
        }

        @keyframes brainPulse {
            0%, 100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
            }
            50% {
                transform: scale(1.1);
                box-shadow: 0 0 0 20px rgba(99, 102, 241, 0);
            }
        }

        .ai-analyzing h4 {
            color: var(--polines-navy);
            font-weight: 700;
            margin-bottom: 10px;
            font-size: 20px;
        }

        .ai-analyzing p {
            color: #4b5563;
            margin: 0;
            font-size: 14px;
        }

        .progress-steps {
            margin-top: 25px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
        }

        .progress-step {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 18px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 10px;
            opacity: 0.4;
            transition: all 0.3s ease;
        }

        .progress-step.active {
            opacity: 1;
            background: #ffffff;
            box-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
        }

        .progress-step.completed {
            opacity: 0.7;
        }

        .step-icon {
            font-size: 20px;
        }

        .step-text {
            font-size: 14px;
            font-weight: 500;
            color: var(--polines-navy);
        }

        /* Results Section */
        #resultsSection {
            display: none;
            margin-top: 40px;
        }

        /* AI Insights Card */
        .ai-insights-card {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            border-radius: 16px;
            padding: 25px;
            margin-bottom: 25px;
            border: 2px solid #f59e0b;
        }

        .insights-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 15px;
        }

        .insights-icon {
            font-size: 28px;
        }

        .insights-header h4 {
            margin: 0;
            color: #92400e;
            font-weight: 700;
            font-size: 18px;
        }

        .insights-content {
            color: #78350f;
            line-height: 1.8;
            font-size: 14px;
        }

        .insight-subjects {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 12px;
        }

        .subject-tag {
            background: rgba(255, 255, 255, 0.5);
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            color: #92400e;
            border: 1px solid rgba(245, 158, 11, 0.3);
        }

        /* Filter Results Card */
        .filter-results-card {
            background: #ffffff;
            border-radius: 16px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 3px 15px rgba(0,0,0,0.08);
            border: 2px solid #f3f4f6;
        }

        .filter-results-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--polines-navy);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .filter-results-title i {
            color: var(--ai-primary);
        }

        .filter-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }

        .filter-item {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .filter-item label {
            font-size: 13px;
            font-weight: 600;
            color: #4b5563;
        }

        .filter-item select,
        .filter-item input {
            padding: 12px;
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            font-size: 14px;
            transition: all 0.3s ease;
            background: #fafafa;
        }

        .filter-item select:focus,
        .filter-item input:focus {
            outline: none;
            border-color: var(--ai-primary);
            background: #ffffff;
        }

        /* Journal Card Enhanced */
        .journal-card {
            background: #ffffff;
            border-radius: 16px;
            padding: 28px;
            margin-bottom: 20px;
            box-shadow: 0 3px 15px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
            border: 2px solid #f3f4f6;
            position: relative;
        }

        .journal-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 30px rgba(0,0,0,0.12);
            border-color: var(--ai-primary);
        }

        .journal-rank {
            position: absolute;
            top: 24px;
            left: 24px;
            font-size: 36px;
        }

        .journal-content {
            margin-left: 60px;
        }

        .journal-header-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 15px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .journal-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--polines-navy);
            margin: 0;
            flex: 1;
            min-width: 250px;
        }

        .journal-badges {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .badge-sinta {
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .sinta-1 { background: #8BC34A; color: #1B5E20; }
        .sinta-2 { background: #CDDC39; color: #33691E; }
        .sinta-3 { background: #FFEB3B; color: #5D4037; }
        .sinta-4 { background: #FFC107; color: #4E342E; }
        .sinta-5 { background: #FF9800; color: #3E2723; }
        .sinta-6 { background: #FF5722; color: #FFFFFF; }

        .journal-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-bottom: 15px;
        }

        .detail-item {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .detail-label {
            font-size: 12px;
            font-weight: 600;
            color: #6b7280;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .detail-value {
            font-size: 14px;
            color: #1f2937;
            font-weight: 500;
        }

        .detail-value.apc-value {
            font-weight: 700;
        }

        .detail-value.apc-value.free {
            color: var(--ai-success);
        }

        .detail-value.apc-value.paid {
            color: #dc3545;
        }

        .publication-months {
            font-size: 13px;
            color: #6b7280;
            margin-top: 4px;
            display: block;
        }

        .journal-scope {
            margin-top: 18px;
            padding-top: 18px;
            border-top: 2px solid #f3f4f6;
        }

        .scope-label {
            font-size: 12px;
            font-weight: 600;
            color: #6b7280;
            text-transform: uppercase;
            margin-bottom: 10px;
        }

        .scope-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .scope-tag {
            background: #f3f4f6;
            padding: 6px 14px;
            border-radius: 16px;
            font-size: 12px;
            color: #4b5563;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .scope-tag:hover {
            background: var(--ai-primary);
            color: #ffffff;
        }

        .btn-show-more {
            margin-top: 10px;
            padding: 8px 16px;
            background: linear-gradient(135deg, var(--ai-primary) 0%, var(--ai-secondary) 100%);
            color: #ffffff;
            border: none;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .btn-show-more:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
        }

        .scope-hidden {
            display: none;
        }

        .journal-actions {
            margin-top: 18px;
            display: flex;
            gap: 12px;
        }

        .btn-visit {
            flex: 1;
            padding: 12px 24px;
            background: var(--polines-gold);
            color: var(--polines-navy);
            border: none;
            border-radius: 10px;
            font-weight: 600;
            font-size: 14px;
            text-decoration: none;
            text-align: center;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-visit:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(253, 181, 21, 0.4);
            color: var(--polines-navy);
            background: var(--polines-yellow);
            text-decoration: none;
        }

        /* No Results */
        .no-results {
            text-align: center;
            padding: 60px 20px;
            background: #f9fafb;
            border-radius: 16px;
            margin-top: 20px;
        }

        .no-results i {
            font-size: 64px;
            color: #d1d5db;
            margin-bottom: 20px;
        }

        .no-results h4 {
            color: #6b7280;
            margin-bottom: 10px;
        }

        .no-results p {
            color: #9ca3af;
        }

        /* Call to Action */
        .call-to-action {
            background: linear-gradient(135deg, var(--polines-navy) 0%, var(--polines-blue) 100%);
            padding: 50px 0;
            margin-top: 60px;
        }

        .call-to-action h2 {
            color: var(--polines-gold);
            font-weight: 700;
        }

        .call-to-action h4 {
            color: #ffffff;
            font-weight: 400;
        }

        .call-to-action .border-button a {
            background-color: var(--polines-gold);
            color: var(--polines-navy);
            border: 2px solid var(--polines-gold);
            font-weight: 600;
        }

        .call-to-action .border-button a:hover {
            background-color: transparent;
            color: var(--polines-gold);
            border: 2px solid var(--polines-gold);
        }

        /* Responsive */
        @media (max-width: 992px) {
            header.header-area .main-nav .nav {
                background-color: var(--polines-navy) !important;
            }

            header.header-area .main-nav .nav li.has-sub ul.sub-menu {
                background-color: var(--polines-blue) !important;
            }
        }

        @media (max-width: 768px) {
            .recommendation-section {
                margin-top: 100px;
            }

            .recommendation-header h2 {
                font-size: 28px;
                flex-direction: column;
            }

            .version-switcher-box {
                flex-direction: column;
                align-items: flex-start;
            }

            .btn-switch-version {
                width: 100%;
                justify-content: center;
            }

            .journal-content {
                margin-left: 0;
            }

            .journal-rank {
                position: static;
                margin-bottom: 10px;
            }

            .journal-header-row {
                flex-direction: column;
            }

            .journal-title {
                font-size: 18px;
                min-width: 100%;
            }

            .journal-details {
                grid-template-columns: 1fr;
            }

            .filter-row {
                grid-template-columns: 1fr;
            }

            .journal-actions {
                flex-direction: column;
            }

            .button-group {
                flex-direction: column;
            }

            .btn-reset {
                width: 100%;
            }
        }