#jamal-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 58px;
    height: 58px;
    background: #7c8b66;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

#jamal-chat {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 420px;
    max-width: calc(100vw - 40px);
    height: 620px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 9999;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

#jamal-header {
    background: #7c8b66;
    color: white;
    padding: 18px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#jamal-close {
    cursor: pointer;
    font-size: 24px;
}

#jamal-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f7f7f7;
}

.jamal-message {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    max-width: 88%;
    line-height: 1.45;
    font-size: 15px;
}

.jamal-message.bot {
    background: white;
}

.jamal-message.user {
    background: #dce8d2;
    margin-left: auto;
}

#jamal-input-area {
    display: flex;
    padding: 12px;
    border-top: 1px solid #ddd;
    background: white;
}

#jamal-input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 12px;
    font-size: 15px;
}

#jamal-send {
    margin-left: 10px;
    border: none;
    background: #7c8b66;
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
}

.jamal-typing {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    padding: 4px 2px;
}

.jamal-typing span {
    width: 7px;
    height: 7px;
    background: #7c8b66;
    border-radius: 50%;
    display: inline-block;
    animation: jamalTyping 1.2s infinite ease-in-out;
}

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

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

@keyframes jamalTyping {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    40% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

@media(max-width: 768px) {

    #jamal-chat {
        width: calc(100vw - 20px);
        height: 82vh;
        right: 10px;
        bottom: 90px;
    }