.chatbot-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--red, #dc2626);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    box-shadow: 0 4px 20px rgba(220, 38, 38, .35);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
}
.chatbot-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(220, 38, 38, .45);
}
.chatbot-btn.open {
    background: #333;
    transform: rotate(90deg);
}

.chatbot-panel {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 360px;
    max-width: calc(100vw - 48px);
    height: 500px;
    max-height: calc(100vh - 140px);
    background: #111;
    border: 1px solid rgba(200, 169, 81, .2);
    border-radius: 16px;
    display: none;
    flex-direction: column;
    z-index: 998;
    box-shadow: 0 8px 40px rgba(0,0,0,.5);
    overflow: hidden;
}
.chatbot-panel.open { display: flex; }

.chatbot-header {
    background: #1a1a1a;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(200,169,81,.15);
    display: flex;
    align-items: center;
    gap: 12px;
}
.chatbot-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold, #c8a951);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #000;
    font-weight: 700;
}
.chatbot-header h3 {
    font-size: .95rem;
    color: var(--gold, #c8a951);
    font-weight: 700;
}
.chatbot-header p {
    font-size: .75rem;
    color: #888;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--gold, #c8a951); border-radius: 2px; }

.msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: .88rem;
    line-height: 1.5;
    animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.msg-bot {
    align-self: flex-start;
    background: rgba(200, 169, 81, .08);
    border: 1px solid rgba(200, 169, 81, .15);
    color: #ddd;
    border-bottom-left-radius: 4px;
}
.msg-user {
    align-self: flex-end;
    background: var(--red, #dc2626);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chatbot-input-wrap {
    padding: 12px 16px;
    border-top: 1px solid rgba(200,169,81,.1);
    display: flex;
    gap: 8px;
    background: #1a1a1a;
}
.chatbot-input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1.5px solid rgba(200,169,81,.2);
    background: rgba(255,255,255,.04);
    color: #fff;
    font-size: .88rem;
    font-family: inherit;
    outline: none;
    transition: border .2s;
}
.chatbot-input:focus { border-color: var(--gold, #c8a951); }
.chatbot-send {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    background: var(--red, #dc2626);
    color: #fff;
    font-weight: 700;
    font-size: .82rem;
    cursor: pointer;
    transition: background .2s;
}
.chatbot-send:hover { background: #b91c1c; }
.chatbot-send:disabled { opacity: .5; cursor: not-allowed; }

.typing-indicator {
    align-self: flex-start;
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(200,169,81,.08);
    border: 1px solid rgba(200,169,81,.15);
    border-radius: 12px;
    border-bottom-left-radius: 4px;
}
.typing-indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold, #c8a951);
    animation: typing 1s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: .2s; }
.typing-indicator span:nth-child(3) { animation-delay: .4s; }
@keyframes typing {
    0%, 60%, 100% { opacity: .3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}
