/* ===== CHATBOT ===== */
        .chatbot-toggle {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background: linear-gradient(135deg, #1BA8AF, #0e8a90);
            color: #ffffff;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.6rem;
            box-shadow: 0 8px 30px rgba(27, 168, 175, 0.40);
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            z-index: 999;
            animation: chatPulse 2s ease-in-out infinite;
        }

        .chatbot-toggle:hover {
            transform: scale(1.10) translateY(-3px);
            box-shadow: 0 12px 40px rgba(27, 168, 175, 0.50);
        }

        .chatbot-toggle.active {
            transform: rotate(90deg) scale(0.95);
            animation: none;
        }

        .chatbot-toggle .badge-dot {
            position: absolute;
            top: 2px;
            right: 2px;
            width: 16px;
            height: 16px;
            background: #ff4757;
            border-radius: 50%;
            border: 2px solid rgba(57,208,216,0.18);
            animation: dotBlink 1.5s ease-in-out infinite;
        }

        @keyframes chatPulse {
            0%, 100% { box-shadow: 0 8px 30px rgba(27, 168, 175, 0.40); }
            50% { box-shadow: 0 8px 50px rgba(27, 168, 175, 0.70); }
        }

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

        .chatbot-window {
            position: fixed;
            bottom: 105px;
            right: 30px;
            width: 420px;
            max-width: calc(100vw - 40px);
            height: 620px;
            max-height: calc(100vh - 150px);
            background: #0f2535;
            border-radius: 24px;
            box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            z-index: 998;
            opacity: 0;
            visibility: hidden;
            transform: translateY(25px) scale(0.95);
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .chatbot-window.open {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        .chatbot-header {
            background: linear-gradient(135deg, #1BA8AF, #0e8a90);
            padding: 16px 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            color: #ffffff;
            flex-shrink: 0;
            position: relative;
            overflow: hidden;
        }

        .chatbot-header::before {
            content: '';
            position: absolute;
            top: -50%; right: -20%;
            width: 150px; height: 150px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 50%;
        }

        .chatbot-header .bot-avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.20);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            flex-shrink: 0;
            position: relative;
            z-index: 1;
        }

        .chatbot-header .bot-avatar::after {
            content: '';
            position: absolute;
            bottom: 0; right: 0;
            width: 12px; height: 12px;
            background: #22c55e;
            border-radius: 50%;
            border: 2.5px solid #1BA8AF;
        }

        .chatbot-header .bot-info {
            position: relative;
            z-index: 1;
            flex: 1;
            min-width: 0;
        }

        .chatbot-header .bot-info h4 {
            font-size: 0.95rem;
            font-weight: 700;
            margin: 0;
            line-height: 1.2;
        }

        .chatbot-header .bot-info span {
            font-size: 0.7rem;
            opacity: 0.9;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .chatbot-header .bot-info span::before {
            content: '';
            width: 6px; height: 6px;
            background: #22c55e;
            border-radius: 50%;
            display: inline-block;
            animation: onlinePulse 2s ease-in-out infinite;
        }

        @keyframes onlinePulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.4; }
        }

        .chatbot-header .close-chat {
            margin-left: auto;
            background: rgba(255, 255, 255, 0.15);
            border: none;
            color: #ffffff;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            transition: all 0.3s ease;
            position: relative;
            z-index: 1;
            flex-shrink: 0;
        }

        .chatbot-header .close-chat:hover {
            background: rgba(255, 255, 255, 0.30);
            transform: rotate(90deg);
        }

        .chatbot-body {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            overflow-x: hidden;
            background: rgba(94,140,186,0.14);
            display: flex;
            flex-direction: column;
            gap: 14px;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
        }

        .chatbot-body::-webkit-scrollbar { width: 5px; }
        .chatbot-body::-webkit-scrollbar-track { background: transparent; }
        .chatbot-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }

        .chat-message {
            display: flex;
            gap: 10px;
            max-width: 92%;
            animation: msgSlide 0.3s ease;
        }

        @keyframes msgSlide {
            from { opacity: 0; transform: translateY(12px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .chat-message.bot { align-self: flex-start; }
        .chat-message.user { align-self: flex-end; flex-direction: row-reverse; }

        .chat-message .msg-avatar {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            flex-shrink: 0;
        }

        .chat-message.bot .msg-avatar {
            background: linear-gradient(135deg, #1BA8AF, #0e8a90);
            color: #ffffff;
        }

        .chat-message.user .msg-avatar {
            background: rgba(255,255,255,0.08);
            color: rgba(255,255,255,0.8);
        }

        .chat-message .msg-bubble {
            padding: 12px 16px;
            border-radius: 16px;
            font-size: 0.85rem;
            line-height: 1.65;
            color: #8989d2;
            word-wrap: break-word;
            overflow-wrap: break-word;
            min-width: 0;
        }

        .chat-message.bot .msg-bubble {
            background: #0f2535;
            border-bottom-left-radius: 4px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
        }

        .chat-message.user .msg-bubble {
            background: linear-gradient(135deg, #1BA8AF, #0e8a90);
            color: #ffffff;
            border-bottom-right-radius: 4px;
        }

        .chat-message .msg-bubble a {
            color: #72e4e9;
            font-weight: 700;
            text-decoration: none;
            border-bottom: 1px dashed #1BA8AF;
        }

        .chat-message .msg-bubble a:hover { border-bottom-style: solid; }

        .chat-message .msg-bubble i {
            color: #72e4e9;
            margin-right: 6px;
            font-size: 0.9rem;
        }

        .chat-message.user .msg-bubble i { color: #ffffff; }

        /* Welcome Features */
        .welcome-features {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin: 12px 0;
        }

        .welcome-feature {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 12px;
            background: rgba(94,140,186,0.14);
            border-radius: 10px;
            border-left: 3px solid #1BA8AF;
            font-size: 0.8rem;
            transition: all 0.3s ease;
        }

        .welcome-feature:hover {
            background: #0f2535;
            border-left-color: #0e8a90;
            transform: translateX(4px);
        }

        .welcome-feature i {
            color: #72e4e9;
            font-size: 0.95rem;
            width: 20px;
            text-align: center;
            margin-right: 0 !important;
        }

        /* MODERN JOB CARD */
        .chat-job-card {
            background: #0f2535;
            border: 1.5px solid rgba(104,144,176,0.35);
            border-radius: 14px;
            padding: 14px;
            margin: 10px 0;
            display: flex;
            flex-direction: column;
            gap: 10px;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            position: relative;
            overflow: hidden;
        }

        .chat-job-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0;
            width: 4px; height: 100%;
            background: linear-gradient(180deg, #1BA8AF, #0e8a90);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .chat-job-card:hover {
            border-color: #1BA8AF;
            box-shadow: 0 8px 25px rgba(27, 168, 175, 0.15);
            transform: translateY(-2px);
        }

        .chat-job-card:hover::before { opacity: 1; }

        .chat-job-card .job-header {
            display: flex;
            align-items: center;
            gap: 10px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(99,140,182,0.35);
        }

        .chat-job-card .job-flag {
            width: 38px;
            height: 38px;
            border-radius: 10px;
            background: linear-gradient(135deg, rgba(79,194,201,0.14), rgba(75,198,205,0.22));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            flex-shrink: 0;
            line-height: 1;
            border: 1px solid rgba(75,198,205,0.35);
            box-shadow: 0 2px 8px rgba(27, 168, 175, 0.08);
        }

        .chat-job-card .job-title-wrap {
            flex: 1;
            min-width: 0;
        }

        .chat-job-card .job-title-wrap strong {
            display: block;
            color: #8989d2;
            font-size: 0.88rem;
            font-weight: 800;
            line-height: 1.3;
            margin-bottom: 3px;
            word-wrap: break-word;
        }

        .chat-job-card .job-location-text {
            display: flex;
            align-items: center;
            gap: 4px;
            color: rgba(255,255,255,0.62);
            font-size: 0.72rem;
            font-weight: 500;
        }

        .chat-job-card .job-location-text i {
            color: #72e4e9;
            font-size: 0.7rem;
        }

        .chat-job-card .job-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

        .chat-job-card .stat-item {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 10px;
            background: rgba(94,140,186,0.14);
            border-radius: 8px;
            font-size: 0.72rem;
            color: rgba(255,255,255,0.8);
            font-weight: 600;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .chat-job-card .stat-item i {
            color: #72e4e9;
            font-size: 0.72rem;
            width: 14px;
            text-align: center;
            flex-shrink: 0;
        }

        .chat-job-card .salary-highlight {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 12px;
            background: linear-gradient(135deg, rgba(79,194,201,0.14), rgba(75,198,205,0.22));
            border-radius: 10px;
            border: 1px solid rgba(86,189,195,0.35);
            gap: 8px;
            flex-wrap: wrap;
        }

        .chat-job-card .salary-highlight .salary-label {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.7rem;
            font-weight: 600;
            color: #6aeaf1;
        }

        .chat-job-card .salary-highlight .salary-label i {
            font-size: 0.75rem;
        }

        .chat-job-card .salary-highlight .salary-amount {
            font-size: 0.95rem;
            font-weight: 800;
            color: #6aeaf1;
            letter-spacing: -0.3px;
        }

        .chat-job-card .salary-highlight .salary-amount small {
            font-size: 0.65rem;
            font-weight: 500;
            color: #6aeaf1;
            opacity: 0.8;
        }

        .chat-job-card .apply-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: 100%;
            padding: 10px 16px;
            background: linear-gradient(135deg, #1BA8AF, #0e8a90);
            color: #ffffff;
            border-radius: 10px;
            font-size: 0.78rem;
            font-weight: 700;
            text-decoration: none;
            transition: all 0.3s ease;
            border-bottom: none !important;
            letter-spacing: 0.2px;
            box-shadow: 0 3px 12px rgba(27, 168, 175, 0.25);
        }

        .chat-job-card .apply-btn i {
            color: #ffffff;
            font-size: 0.72rem;
            margin-right: 0 !important;
            transition: transform 0.3s ease;
        }

        .chat-job-card .apply-btn:hover {
            background: linear-gradient(135deg, #0e8a90, #0a767c);
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(27, 168, 175, 0.35);
            color: #ffffff;
            border-bottom: none !important;
        }

        .chat-job-card .apply-btn:hover i {
            transform: translateX(3px);
            color: #ffffff;
        }

        /* Quick Replies */
        .chat-quick-replies {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            padding: 0 20px 14px;
            background: rgba(94,140,186,0.14);
            max-height: 130px;
            overflow-y: auto;
        }

        .chat-quick-replies::-webkit-scrollbar { width: 3px; }
        .chat-quick-replies::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }

        .quick-reply-btn {
            padding: 8px 14px;
            background: #0f2535;
            border: 1.5px solid #1BA8AF;
            color: #72e4e9;
            border-radius: 50px;
            font-size: 0.72rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .quick-reply-btn i { font-size: 0.75rem; margin-right: 0; }

        .quick-reply-btn:hover {
            background: #1BA8AF;
            color: #ffffff;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(27, 168, 175, 0.25);
        }

        .quick-reply-btn:hover i { color: #ffffff; }

        /* Footer */
        .chatbot-footer {
            padding: 14px 16px;
            background: #0f2535;
            border-top: 1px solid rgba(105,140,176,0.35);
            display: flex;
            gap: 10px;
            align-items: center;
            flex-shrink: 0;
        }

        .chatbot-footer input {
            flex: 1;
            padding: 12px 18px;
            border: 1.5px solid rgba(105,140,176,0.35);
            border-radius: 50px;
            font-size: 0.85rem;
            font-family: inherit;
            outline: none;
            transition: all 0.3s ease;
            background: rgba(94,140,186,0.14);
            color: #8989d2;
            min-width: 0;
        }

        .chatbot-footer input:focus {
            border-color: #1BA8AF;
            background: #0f2535;
            box-shadow: 0 0 0 4px rgba(27, 168, 175, 0.08);
        }

        .chatbot-footer input::placeholder { color: #9a9aaa; }

        .chatbot-footer .send-btn {
            width: 46px;
            height: 46px;
            border-radius: 50%;
            background: linear-gradient(135deg, #1BA8AF, #0e8a90);
            border: none;
            color: #ffffff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        .chatbot-footer .send-btn:hover {
            transform: scale(1.08) rotate(-10deg);
            box-shadow: 0 4px 20px rgba(27, 168, 175, 0.35);
        }

        .chatbot-footer .send-btn:active { transform: scale(0.95); }

        .typing-indicator {
            display: flex;
            gap: 5px;
            padding: 14px 18px;
            background: #0f2535;
            border-radius: 16px;
            border-bottom-left-radius: 4px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
            width: fit-content;
        }

        .typing-indicator span {
            width: 8px;
            height: 8px;
            background: #1BA8AF;
            border-radius: 50%;
            animation: typingBounce 1.4s ease-in-out infinite;
        }

        .typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
        .typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

        @keyframes typingBounce {
            0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
            30% { transform: translateY(-7px); opacity: 1; }
        }

        /* Page content padding for fixed header */
        body { padding-top: 70px; }

        
@media (max-width: 768px) {
    .chatbot-toggle {
                bottom: 20px;
                right: 20px;
                width: 58px;
                height: 58px;
                font-size: 1.45rem;
            }
    .chatbot-window {
                bottom: 90px;
                right: 16px;
                left: 16px;
                width: auto;
                max-width: none;
                height: 560px;
                max-height: calc(100vh - 120px);
                border-radius: 20px;
            }
    .chatbot-body { padding: 18px; gap: 12px; }
    .chatbot-header { padding: 14px 18px; }
    .chatbot-header .bot-avatar { width: 40px; height: 40px; font-size: 1.2rem; }
    .chatbot-footer { padding: 12px 14px; }
}
@media (max-width: 480px) {
    .chatbot-toggle {
                bottom: 16px;
                right: 16px;
                width: 54px;
                height: 54px;
                font-size: 1.35rem;
            }
    .chatbot-window {
                bottom: 78px;
                right: 8px;
                left: 8px;
                width: auto;
                max-width: none;
                height: calc(100vh - 100px);
                max-height: 600px;
                border-radius: 16px;
            }
    .chatbot-header {
                padding: 12px 14px;
                gap: 10px;
            }
    .chatbot-header .bot-avatar {
                width: 36px;
                height: 36px;
                font-size: 1.05rem;
            }
    .chatbot-header .bot-avatar::after {
                width: 10px;
                height: 10px;
                border-width: 2px;
            }
    .chatbot-header .bot-info h4 { font-size: 0.85rem; }
    .chatbot-header .bot-info span { font-size: 0.62rem; }
    .chatbot-header .close-chat {
                width: 30px;
                height: 30px;
                font-size: 0.75rem;
            }
    .chatbot-body {
                padding: 14px;
                gap: 10px;
            }
    .chat-message {
                max-width: 95%;
                gap: 8px;
            }
    .chat-message .msg-avatar {
                width: 30px;
                height: 30px;
                font-size: 0.7rem;
            }
    .chat-message .msg-bubble {
                padding: 10px 13px;
                font-size: 0.8rem;
                line-height: 1.6;
                border-radius: 14px;
            }
    .welcome-feature {
                padding: 8px 10px;
                font-size: 0.75rem;
                gap: 8px;
            }
    .welcome-feature i { font-size: 0.85rem; }
    .chat-job-card {
                padding: 12px;
                gap: 9px;
                border-radius: 12px;
                margin: 8px 0;
            }
    .chat-job-card .job-header {
                gap: 8px;
                padding-bottom: 9px;
            }
    .chat-job-card .job-flag {
                width: 34px;
                height: 34px;
                font-size: 1.05rem;
                border-radius: 8px;
            }
    .chat-job-card .job-title-wrap strong {
                font-size: 0.82rem;
            }
    .chat-job-card .job-location-text {
                font-size: 0.68rem;
            }
    .chat-job-card .job-stats {
                gap: 6px;
            }
    .chat-job-card .stat-item {
                padding: 5px 8px;
                font-size: 0.68rem;
                gap: 5px;
            }
    .chat-job-card .stat-item i { font-size: 0.68rem; }
    .chat-job-card .salary-highlight {
                padding: 8px 10px;
                gap: 6px;
            }
    .chat-job-card .salary-highlight .salary-label {
                font-size: 0.66rem;
            }
    .chat-job-card .salary-highlight .salary-amount {
                font-size: 0.88rem;
            }
    .chat-job-card .salary-highlight .salary-amount small {
                font-size: 0.6rem;
            }
    .chat-job-card .apply-btn {
                padding: 9px 14px;
                font-size: 0.74rem;
                border-radius: 9px;
            }
    .chat-quick-replies {
                padding: 0 14px 12px;
                gap: 6px;
                max-height: 110px;
            }
    .quick-reply-btn {
                padding: 7px 12px;
                font-size: 0.68rem;
                gap: 4px;
            }
    .quick-reply-btn i { font-size: 0.68rem; }
    .chatbot-footer {
                padding: 10px 12px;
                gap: 8px;
            }
    .chatbot-footer input {
                padding: 10px 14px;
                font-size: 0.8rem;
            }
    .chatbot-footer .send-btn {
                width: 40px;
                height: 40px;
                font-size: 0.9rem;
            }
    .typing-indicator {
                padding: 12px 16px;
            }
    .typing-indicator span {
                width: 7px;
                height: 7px;
            }
}
@media (max-width: 360px) {
    .chatbot-toggle {
                width: 50px;
                height: 50px;
                font-size: 1.25rem;
                bottom: 14px;
                right: 14px;
            }
    .chatbot-window {
                bottom: 72px;
                right: 6px;
                left: 6px;
                border-radius: 14px;
            }
    .chatbot-header { padding: 10px 12px; }
    .chatbot-body { padding: 12px; gap: 9px; }
    .chat-message .msg-bubble {
                padding: 9px 12px;
                font-size: 0.78rem;
            }
    .chat-job-card {
                padding: 10px;
            }
    .chat-job-card .job-flag {
                width: 30px;
                height: 30px;
                font-size: 0.95rem;
            }
    .chat-job-card .job-title-wrap strong {
                font-size: 0.78rem;
            }
    .chat-job-card .apply-btn {
                padding: 8px 12px;
                font-size: 0.7rem;
            }
    .quick-reply-btn {
                font-size: 0.64rem;
                padding: 6px 10px;
            }
    .chatbot-footer input {
                padding: 9px 12px;
                font-size: 0.78rem;
            }
    .chatbot-footer .send-btn {
                width: 38px;
                height: 38px;
                font-size: 0.85rem;
            }
}
@media (min-width: 769px) {
    body.chatbot-open { overflow: auto; }
}
/* sits above the WhatsApp button of the new design */
.chatbot-toggle{bottom:150px !important;right:28px !important;}
.chatbot-window{bottom:220px !important;}
