.finance-bot-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 18px;
    border: 1px solid rgba(184, 255, 32, 0.6);
    border-radius: 999px;
    color: #07101f;
    background: #b8ff20;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.38), 0 0 24px rgba(184, 255, 32, 0.12);
    font: 700 14px/1 Inter, sans-serif;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease;
}

.finance-bot-launcher:hover {
    transform: translateY(-2px);
    background: #c4ff46;
}

.finance-bot-launcher__icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #b8ff20;
    background: #07101f;
    font-size: 17px;
}

.finance-bot-panel {
    position: fixed;
    right: 24px;
    bottom: 92px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    width: min(390px, calc(100vw - 32px));
    height: min(610px, calc(100vh - 124px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: #f8fafc;
    background: #0b1322;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    font-family: Inter, sans-serif;
    transform-origin: bottom right;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.finance-bot-panel[hidden] {
    display: flex;
    visibility: hidden;
    opacity: 0;
    transform: translateY(12px) scale(0.97);
    pointer-events: none;
}

.finance-bot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #07101f;
}

.finance-bot-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.finance-bot-status {
    margin: 5px 0 0;
    color: #9ca3af;
    font-size: 12px;
}

.finance-bot-status::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: #b8ff20;
}

.finance-bot-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.06);
    font-size: 24px;
    cursor: pointer;
}

.finance-bot-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding: 18px;
}

.finance-bot-message {
    max-width: 88%;
    padding: 11px 13px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.finance-bot-message--bot {
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom-left-radius: 4px;
    color: #e5e7eb;
    background: #111c2f;
}

.finance-bot-message--user {
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    color: #07101f;
    background: #b8ff20;
}

.finance-bot-message--error {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.35);
}

.finance-bot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 18px 12px;
}

.finance-bot-suggestion {
    padding: 7px 10px;
    border: 1px solid rgba(184, 255, 32, 0.38);
    border-radius: 999px;
    color: #d9f99d;
    background: transparent;
    font: 500 12px/1 Inter, sans-serif;
    cursor: pointer;
}

.finance-bot-form {
    display: flex;
    gap: 8px;
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #07101f;
}

.finance-bot-input {
    min-width: 0;
    flex: 1;
    height: 44px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 11px;
    outline: none;
    color: #fff;
    background: #0b1322;
    font: 400 14px/1 Inter, sans-serif;
}

.finance-bot-input:focus {
    border-color: #b8ff20;
    box-shadow: 0 0 0 3px rgba(184, 255, 32, 0.1);
}

.finance-bot-submit {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 11px;
    color: #07101f;
    background: #b8ff20;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

.finance-bot-submit:disabled,
.finance-bot-input:disabled {
    cursor: wait;
    opacity: 0.55;
}

.finance-bot-note {
    margin: 0;
    padding: 0 16px 12px;
    color: #6b7280;
    background: #07101f;
    font-size: 10px;
    text-align: center;
}

@media (max-width: 640px) {
    .finance-bot-launcher {
        right: 16px;
        bottom: 16px;
    }

    .finance-bot-launcher__label {
        display: none;
    }

    .finance-bot-launcher {
        width: 56px;
        padding: 0;
        justify-content: center;
    }

    .finance-bot-panel {
        right: 8px;
        bottom: 82px;
        width: calc(100vw - 16px);
        height: min(620px, calc(100vh - 96px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .finance-bot-launcher,
    .finance-bot-panel {
        transition: none;
    }
}

