/* Voltark Assistant chat-bot panel */
.voltark-bot-panel {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-overlay-high, 9000) + 20);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1rem;
    background: rgba(8, 10, 16, 0.45);
}
.voltark-bot-panel[hidden] { display: none !important; }

body.voltark-bot-open .friends-fab {
    display: none !important;
}

.voltark-bot-card {
    width: min(420px, 100%);
    max-height: min(70vh, 640px);
    display: flex;
    flex-direction: column;
    background: var(--surface-1, #141822);
    border: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(0,0,0,0.45);
    overflow: hidden;
}

.voltark-bot-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
}
.voltark-bot-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}
.voltark-bot-title strong { display: block; font-size: 0.95rem; }
.voltark-bot-sub { display: block; font-size: 0.75rem; }
.voltark-bot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: linear-gradient(135deg, #3d7eff, #1a3a6e);
    color: #fff;
    flex-shrink: 0;
}
.voltark-bot-head-actions { display: flex; gap: 0.35rem; align-items: center; }

.voltark-bot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 180px;
}
.voltark-bot-bubble {
    max-width: 92%;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
}
.voltark-bot-bubble.is-user {
    align-self: flex-end;
    background: rgba(61, 126, 255, 0.22);
    border: 1px solid rgba(61, 126, 255, 0.35);
}
.voltark-bot-bubble.is-assistant {
    align-self: flex-start;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}
.voltark-bot-tool {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}
.voltark-bot-games {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.55rem;
}
.voltark-bot-game-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.4rem 0.5rem;
    border: 1px solid rgba(61, 126, 255, 0.28);
    background: rgba(61, 126, 255, 0.08);
    color: inherit;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    font: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.voltark-bot-game-card:hover {
    background: rgba(61, 126, 255, 0.18);
    border-color: rgba(61, 126, 255, 0.5);
}
.voltark-bot-game-cover {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06) center/cover no-repeat;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.voltark-bot-game-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.voltark-bot-game-title {
    font-weight: 650;
    font-size: 0.88rem;
    color: #7eb6ff;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.voltark-bot-game-subline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}
.voltark-bot-game-price {
    font-size: 0.78rem;
    color: rgba(230, 236, 245, 0.7);
}
.voltark-bot-game-rating {
    font-size: 0.75rem;
    color: rgba(255, 212, 100, 0.92);
    letter-spacing: 0.02em;
}
.voltark-bot-game-btn {
    border: 1px solid rgba(61, 126, 255, 0.4);
    background: rgba(61, 126, 255, 0.12);
    color: inherit;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.78rem;
    cursor: pointer;
}
.voltark-bot-game-btn:hover { background: rgba(61, 126, 255, 0.25); }

.voltark-bot-status {
    padding: 0 0.9rem 0.35rem;
    font-size: 0.78rem;
}
.voltark-bot-compose {
    display: flex;
    gap: 0.45rem;
    padding: 0.65rem 0.75rem 0.85rem;
    border-top: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
}
.voltark-bot-compose .search-input { flex: 1; min-width: 0; }

.dm-ask-voltark {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    margin: 0.35rem 0 0.5rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    border: 1px dashed rgba(61, 126, 255, 0.45);
    background: rgba(61, 126, 255, 0.08);
    color: inherit;
    cursor: pointer;
    text-align: left;
    font: inherit;
}
.dm-ask-voltark:hover { background: rgba(61, 126, 255, 0.16); }
.dm-ask-voltark-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.8rem;
    background: linear-gradient(135deg, #3d7eff, #1a3a6e);
    color: #fff;
    flex-shrink: 0;
}
.dm-ask-voltark-text { display: flex; flex-direction: column; min-width: 0; }
.dm-ask-voltark-text strong { font-size: 0.88rem; }
.dm-ask-voltark-text span { font-size: 0.72rem; opacity: 0.75; }
