/* FAQ chat bot — bottom-left so it never fights the WhatsApp button (right). */
.faq-float {
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 10px 30px rgba(99, 102, 241, .45);
    transition: transform .2s ease, box-shadow .2s ease;
}
.faq-float:hover { transform: scale(1.08); }
.faq-float .faq-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    background: #ef4444;
    font-size: .75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}
.faq-panel {
    position: fixed;
    left: 1.25rem;
    bottom: 5.5rem;
    width: min(380px, calc(100vw - 2.5rem));
    height: min(540px, calc(100vh - 8rem));
    z-index: 9991;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border-color, #404040);
    background: var(--bg-secondary, #1a1a1a);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.faq-panel.open { display: flex; }
.faq-head {
    padding: .9rem 1.1rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    gap: .7rem;
}
.faq-head .faq-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.faq-head h3 { margin: 0; font-size: 1rem; }
.faq-head p { margin: 0; font-size: .8rem; opacity: .85; }
.faq-head .faq-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: .3rem .5rem;
}
.faq-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.faq-msg {
    max-width: 85%;
    padding: .6rem .9rem;
    border-radius: 12px;
    font-size: .92rem;
    line-height: 1.5;
    word-wrap: break-word;
}
.faq-msg a { color: #818cf8; }
.faq-msg.bot {
    align-self: flex-start;
    background: var(--bg-tertiary, #2a2a2a);
    color: var(--text-primary, #fff);
    border-bottom-left-radius: 4px;
}
.faq-msg.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.faq-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: 0 1rem .6rem;
}
.faq-chip {
    border: 1px solid #6366f1;
    background: transparent;
    color: #818cf8;
    border-radius: 20px;
    padding: .35rem .8rem;
    font-size: .82rem;
    cursor: pointer;
    transition: background .2s;
}
.faq-chip:hover { background: rgba(99, 102, 241, .15); }
.faq-input-row {
    display: flex;
    gap: .5rem;
    padding: .7rem;
    border-top: 1px solid var(--border-color, #404040);
}
.faq-input-row input {
    flex: 1;
    padding: .65rem .9rem;
    border-radius: 10px;
    border: 1px solid var(--border-color, #404040);
    background: var(--bg-tertiary, #2a2a2a);
    color: var(--text-primary, #fff);
    font-size: .92rem;
}
.faq-input-row button {
    border: none;
    border-radius: 10px;
    padding: 0 1rem;
    cursor: pointer;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.faq-typing { opacity: .6; font-style: italic; }
@media (max-width: 480px) {
    .faq-float { left: .8rem; bottom: .8rem; width: 54px; height: 54px; }
    .faq-panel { left: .8rem; bottom: 4.8rem; }
}
