#jamal-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;

    min-width: 175px;
    height: 58px;
    padding: 0 18px;

    background: #2d2d2d;
    color: white;

    border-radius: 999px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    font-size: 16px;
    font-weight: 600;

    white-space: nowrap;

    cursor: pointer;
    z-index: 9999;

    box-shadow: 0 8px 25px rgba(0,0,0,0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

#jamal-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.28);
}

.hoila-bubble-icon {
    color: #e58a2f;
    font-size: 22px;
    line-height: 1;
}

.hoila-bubble-text {
    white-space: nowrap;
}

#jamal-chat {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 420px;
    max-width: calc(100vw - 40px);
    height: 620px;
    background: rgba(255,255,255,0.97);
    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.18);
    border: 1px solid rgba(0,0,0,0.06);
}

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

#jamal-header span:first-child {
    color: white;
}

#jamal-close {
    cursor: pointer;
    font-size: 24px;
    color: #e58a2f;
    line-height: 1;
}

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

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

.jamal-message.bot {
    background: white;
    color: #2d2d2d;
    border: 1px solid rgba(0,0,0,0.05);
}

.jamal-message.user {
    background: #f5f5f5;
    border: 1px solid #e58a2f;
    color: #2d2d2d;
    margin-left: auto;
}

.jamal-message a {
    color: #e58a2f;
    font-weight: 600;
    text-decoration: none;
}

.jamal-message a:hover {
    text-decoration: underline;
}

#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;
    color: #2d2d2d;
}

#jamal-input:focus {
    outline: none;
    border-color: #e58a2f;
    box-shadow: 0 0 0 2px rgba(229,138,47,0.12);
}

#jamal-send {
    margin-left: 10px;
    border: none;
    background: #e58a2f;
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s ease, transform 0.2s ease;
}

#jamal-send:hover {
    background: #d57923;
    transform: translateY(-1px);
}

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

.jamal-typing span {
    width: 7px;
    height: 7px;
    background: #e58a2f;
    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;
}

.hoila-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hoila-header-icon {
    color: #e58a2f;
    font-size: 18px;
    line-height: 1;
}

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

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

@media(max-width: 768px) {

    @media(max-width: 768px) {
    #jamal-bubble {
        width: 58px;
        height: 58px;
        padding: 0;
        border-radius: 50%;
    }

    .hoila-bubble-text {
        display: none;
    }
}

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

    #jamal-messages {
        padding: 18px 12px 12px;
    }

    .jamal-message {
        max-width: 90%;
        font-size: 14.5px;
    }

    #jamal-send {
        padding: 12px 14px;
    }
}