.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--brand), #638ef1);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
    z-index: 9999;
    transition: transform .2s ease, box-shadow .2s ease;
}

.chatbot-toggle:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .3);
}

.chatbot {
    position: fixed;
    bottom: 92px;
    right: 20px;
    width: 340px;
    max-height: 520px;
    background: var(--card);
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: Inter, system-ui, sans-serif;
    z-index: 1001;
    animation: chatbot-in .25s ease;
}

@keyframes chatbot-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chatbot.hidden {
    display: none;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--brand), #638ef1);
    color: #fff;
    padding: 14px 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header .close {
    background: rgba(255, 255, 255, .15);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
}

.chatbot-body {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg);
}

.bot-message,
.user-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.45;
}

.bot-message {
    background: #e5e7eb;
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 6px;
}

.user-message {
    background: linear-gradient(135deg, var(--brand), #638ef1);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 6px;
}

.chatbot-options {
    padding: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #fff;
}

.chatbot-options button {
    flex: 1 1 48%;
    padding: 8px 12px;
    border-radius: 1rem;
    border: 1px solid var(--brand);
    background: #fff;
    color: var(--brand);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s ease;
}

.chatbot-options button:hover {
    background: var(--brand);
    color: #fff;
}

@media (max-width: 480px) {
    .chatbot {
        right: 10px;
        left: 10px;
        width: auto;
        bottom: 84px;
    }
}

.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #4676e5, #638ef1);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
    z-index: 9999;
}

.chatbot.hidden {
    display: none;
}

.chatbot-header {
    background: linear-gradient(135deg, #4676e5, #638ef1);
    color: #fff;
    padding: 14px 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header .close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.chatbot-body {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bot-message,
.user-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
}

.bot-message {
    background: #f1f5f9;
    align-self: flex-start;
}

.user-message {
    background: #4676e5;
    color: #fff;
    align-self: flex-end;
}

.chatbot-options {
    padding: 12px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chatbot-options button {
    flex: 1 1 45%;
    padding: 8px 10px;
    border-radius: 1rem;
    border: 1px solid #4676e5;
    background: #fff;
    color: #4676e5;
    font-size: 13px;
    cursor: pointer;
}

.chatbot-options button:hover {
    background: #4676e5;
    color: #fff;
}

@media (max-width: 480px) {
    .chatbot {
        right: 10px;
        left: 10px;
        width: auto;
    }
}