.site-footer {
    background: #06132d;
    color: #a9b9d0;
    padding: 76px 0 25px;
    position: relative;
    overflow: hidden;
}

.site-footer:before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: -200px;
    top: -300px;
    background: radial-gradient(
        circle,
        rgba(37, 99, 235, 0.28),
        transparent 65%
    );
    pointer-events: none;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.15fr 1.85fr;
    gap: 90px;
    padding-bottom: 55px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.footer-logo-image {
    display: block;
    width: 150px;
    height: auto;
    max-height: 45px;
    object-fit: contain;
}

.footer-socials {
    display: flex;
    gap: 9px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    color: #cbd8e9;
    text-decoration: none;
    transition: 0.25s;
}

.footer-socials a:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.footer-links h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #fff;
    margin: 5px 0 18px;
}

.footer-links a,
.footer-links span {
    display: block;
    text-decoration: none;
    color: #91a5c0;
    font-size: 12px;
    margin: 0 0 12px;
    transition: 0.2s;
}

.footer-links a:hover {
    color: #67e8f9;
    transform: translateX(3px);
}

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 11px;
    color: #7186a3;
}

@media (max-width: 800px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 560px) {
    .site-footer {
        padding-top: 55px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

/* =========================================================
   FLOATING CHAT POPUP WIDGET (Fixed Bottom-Right)
   ========================================================= */
.floating-chat-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.floating-chat-container * {
    box-sizing: border-box;
}

/* 1. Popup Bubble */
.floating-chat-bubble {
    pointer-events: auto;
    position: relative;
    max-width: 310px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(37, 99, 235, 0.08);
    transform-origin: bottom right;
    animation: chatBubbleEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.floating-chat-bubble.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.92);
    pointer-events: none;
}

.chat-bubble-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    z-index: 2;
}

.chat-bubble-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.1);
}

.chat-bubble-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
}

.chat-bubble-avatar {
    position: relative;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.chat-avatar-pulse {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.chat-bubble-content {
    flex: 1;
    min-width: 0;
}

.chat-bubble-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
    padding-right: 14px;
}

.chat-sender-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.chat-online-tag {
    font-size: 10px;
    font-weight: 700;
    color: #16a34a;
    background: #dcfce7;
    padding: 2px 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.chat-online-tag i {
    font-size: 6px;
}

.chat-sender-text {
    font-size: 12.5px;
    line-height: 1.45;
    color: #475569;
    margin: 0;
}

/* 2. Fixed Trigger Button */
.floating-chat-btn {
    pointer-events: auto;
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.42), 0 3px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease;
    cursor: pointer;
}

.floating-chat-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.52), 0 4px 10px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.floating-chat-btn:active {
    transform: scale(0.96);
}

.chat-icon-main {
    font-size: 26px;
    color: #ffffff;
    transition: transform 0.25s ease;
}

.floating-chat-btn:hover .chat-icon-main {
    transform: rotate(-6deg) scale(1.05);
}

/* Radar pulse animation around button */
.chat-btn-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #2563eb;
    opacity: 0.8;
    animation: chatPulseRing 2.4s infinite cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Unread Badge */
.chat-btn-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: chatBadgeBounce 3s infinite ease-in-out;
}

/* Keyframe animations */
@keyframes chatBubbleEntrance {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(0.88);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes chatPulseRing {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.35);
        opacity: 0;
    }
    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

@keyframes chatBadgeBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* Responsive adjustment for Mobile */
@media (max-width: 560px) {
    .floating-chat-container {
        bottom: 18px;
        right: 18px;
        gap: 10px;
    }

    .floating-chat-bubble {
        max-width: 275px;
        padding: 12px 14px;
        border-radius: 16px;
    }

    .floating-chat-btn {
        width: 52px;
        height: 52px;
    }

    .chat-icon-main {
        font-size: 23px;
    }
}