.bot-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--accent, #5b8def);
    background: color-mix(in srgb, var(--accent, #5b8def) 15%, transparent);
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 4px;
    vertical-align: middle;
    text-transform: uppercase;
    line-height: 1.5;
}

.bot-keyboard {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bot-keyboard-row {
    display: flex;
    gap: 4px;
}

.bot-keyboard-btn {
    flex: 1;
    padding: 7px 10px;
    font-size: 13px;
    font-family: inherit;
    border: 1px solid var(--border, rgba(255,255,255,.12));
    border-radius: 8px;
    background: var(--surface, rgba(255,255,255,.06));
    color: var(--text, #fff);
    cursor: pointer;
    text-align: center;
    transition: background .15s, opacity .1s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bot-keyboard-btn:hover {
    background: var(--surface-hover, rgba(255,255,255,.12));
}

.bot-keyboard-btn:active {
    opacity: .7;
}

.bot-keyboard-btn.url-btn {
    color: var(--accent, #5b8def);
}

.via-bot {
    font-size: 11px;
    color: var(--text-muted, rgba(255,255,255,.45));
    margin-top: 2px;
}

.via-bot a {
    color: var(--accent, #5b8def);
    text-decoration: none;
}

.bot-commands-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted, rgba(255,255,255,.5));
    transition: color .15s, background .15s;
    flex-shrink: 0;
}

.bot-commands-btn:hover {
    color: var(--accent, #5b8def);
    background: color-mix(in srgb, var(--accent, #5b8def) 12%, transparent);
}

.bot-commands-popup {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--panel, #1e1e2a);
    border: 1px solid var(--border, rgba(255,255,255,.1));
    border-radius: 10px;
    overflow: hidden;
    z-index: 50;
    box-shadow: 0 4px 24px rgba(0,0,0,.4);
    max-height: 260px;
    overflow-y: auto;
}

.bot-command-item {
    padding: 10px 14px;
    cursor: pointer;
    transition: background .12s;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.bot-command-item:hover {
    background: var(--surface-hover, rgba(255,255,255,.07));
}

.bot-command-name {
    font-weight: 500;
    color: var(--accent, #5b8def);
    font-size: 13px;
}

.bot-command-desc {
    font-size: 12px;
    color: var(--text-muted, rgba(255,255,255,.5));
}
