.ai-chat-bubble {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

.ai-chat-panel {
    position: fixed;
    right: 24px;
    bottom: 94px;
    width: min(380px, calc(100% - 32px));
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #111820;
    box-shadow: 0 22px 70px rgba(0,0,0,.45);
    display: none;
    overflow: hidden;
    z-index: 9999;
}

.ai-chat-panel.open {
    display: block;
}

.ai-chat-head {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.ai-chat-head strong {
    display: block;
}

.ai-chat-head span {
    color: var(--muted);
    font-size: 12px;
}

.ai-chat-body {
    height: 320px;
    padding: 16px;
    overflow-y: auto;
}

.ai-msg {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 12px;
    line-height: 1.55;
    font-size: 14px;
}

.ai-msg.user {
    background: rgba(225,29,46,.16);
}

.ai-msg.bot {
    background: rgba(255,255,255,.055);
    color: var(--muted);
}

.ai-chat-form {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border);
}

.ai-chat-form input {
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #0b1118;
    color: #fff;
}

.ai-chat-form button {
    height: 42px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}