/**
 * Tamagn Bet AI tools — glass panels (dashboard + sell).
 */
.tb-ai-glass {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

html.dark .tb-ai-glass {
    border-color: rgba(51, 65, 85, 0.9);
    background: rgba(15, 23, 42, 0.65);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.tb-ai-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tb-ai-tab {
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 0.4rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    background: rgba(255, 255, 255, 0.5);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

html.dark .tb-ai-tab {
    color: #cbd5e1;
    border-color: #334155;
    background: rgba(30, 41, 59, 0.5);
}

.tb-ai-tab--active {
    border-color: #006aff;
    background: #e8f2ff;
    color: #006aff;
}

html.dark .tb-ai-tab--active {
    background: rgba(0, 106, 255, 0.2);
    color: #93c5fd;
}

.tb-ai-panel {
    display: none;
}

.tb-ai-panel--active {
    display: block;
}

.tb-ai-output {
    max-height: 22rem;
    overflow: auto;
    font-size: 0.875rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.tb-ai-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #006aff;
}

.tb-ai-loading::before {
    content: "";
    width: 1rem;
    height: 1rem;
    border: 2px solid #006aff33;
    border-top-color: #006aff;
    border-radius: 50%;
    animation: tb-ai-spin 0.7s linear infinite;
}

@keyframes tb-ai-spin {
    to {
        transform: rotate(360deg);
    }
}

.tb-ai-landing-preview {
    border: 1px dashed rgba(0, 106, 255, 0.35);
    border-radius: 0.75rem;
    padding: 1rem;
    background: rgba(248, 250, 252, 0.8);
}

html.dark .tb-ai-landing-preview {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(96, 165, 250, 0.35);
}
