.help-widget-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #6C5CE7;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(108,92,231,0.4);
    z-index: 9999;
    transition: transform .2s, box-shadow .2s;
}
.help-widget-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(108,92,231,0.5);
}
.help-widget-btn i {
    font-size: 24px;
}
.help-widget-btn .close-icon {
    display: none;
}
.help-widget-btn.open .chat-icon {
    display: none;
}
.help-widget-btn.open .close-icon {
    display: inline;
}

.help-widget-panel {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 360px;
    height: 520px;
    background: #13131a;
    border: 1px solid #2a2a3e;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.help-widget-panel.open {
    display: flex;
}

.help-widget-header {
    background: #1a1a2e;
    padding: 16px 20px;
    border-bottom: 1px solid #2a2a3e;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.help-widget-header h6 {
    margin: 0;
    font-weight: 700;
    color: #fff;
}
.help-widget-header small {
    color: #8a8a9a;
    font-size: 12px;
}

.help-widget-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.help-widget-messages::-webkit-scrollbar {
    width: 4px;
}
.help-widget-messages::-webkit-scrollbar-track {
    background: transparent;
}
.help-widget-messages::-webkit-scrollbar-thumb {
    background: #2a2a3e;
    border-radius: 2px;
}

.help-widget-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
}
.help-widget-msg.bot {
    background: #1a1a2e;
    color: #d0d0e0;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.help-widget-msg.user {
    background: #6C5CE7;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.help-widget-msg.bot a {
    color: #a29bfe;
    text-decoration: none;
}
.help-widget-msg.bot a:hover {
    text-decoration: underline;
}
.help-widget-msg.bot strong {
    color: #e0e0f0;
}

.help-widget-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: #1a1a2e;
    border-radius: 12px;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.help-widget-typing span {
    width: 6px;
    height: 6px;
    background: #6C5CE7;
    border-radius: 50%;
    animation: helpTyping 1.2s infinite;
}
.help-widget-typing span:nth-child(2) { animation-delay: .2s; }
.help-widget-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes helpTyping {
    0%, 80%, 100% { opacity: .3; transform: scale(.8); }
    40% { opacity: 1; transform: scale(1); }
}

.help-widget-input {
    padding: 12px 16px;
    border-top: 1px solid #2a2a3e;
    display: flex;
    gap: 8px;
    background: #0e0e15;
}
.help-widget-input input {
    flex: 1;
    background: #1a1a2e;
    border: 1px solid #2a2a3e;
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: border-color .2s;
}
.help-widget-input input:focus {
    border-color: #6C5CE7;
}
.help-widget-input input::placeholder {
    color: #5a5a6a;
}
.help-widget-input button {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #6C5CE7;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
}
.help-widget-input button:hover {
    background: #5A4BD1;
}
.help-widget-input button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.help-widget-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 16px 12px;
}
.help-widget-suggestions button {
    background: rgba(108,92,231,0.1);
    border: 1px solid rgba(108,92,231,0.2);
    color: #a29bfe;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: background .2s;
}
.help-widget-suggestions button:hover {
    background: rgba(108,92,231,0.2);
}

@media (max-width: 480px) {
    .help-widget-panel {
        width: calc(100vw - 32px);
        height: 60vh;
        bottom: 80px;
        right: 16px;
    }
}
