/* ============================================================
   BOT PERFORMANCE DASHBOARD — Modal & Components
   ============================================================ */

.bot-perf-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
}
.bot-perf-modal.show { display: flex; align-items: center; justify-content: center; }

.bot-perf-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.bot-perf-content {
    position: relative;
    width: 90vw;
    max-width: 1100px;
    max-height: 90vh;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bot-perf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

/* Stats Grid */
.perf-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.perf-stat-card {
    background: var(--bg-3);
    border: 1px solid var(--bg-4);
    border-radius: 6px;
    padding: 8px 10px;
}
.perf-stat-card.big {
    grid-column: span 2;
}

.perf-stat-label {
    font-size: 9px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.perf-stat-value {
    font-size: 16px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.perf-stat-card:not(.big) .perf-stat-value {
    font-size: 13px;
}

/* Chart Sections */
.perf-chart-section {
    background: var(--bg-3);
    border: 1px solid var(--bg-4);
    border-radius: 6px;
    padding: 8px 10px;
}

.perf-chart-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

/* Bottom Row */
.perf-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.perf-section {
    background: var(--bg-3);
    border: 1px solid var(--bg-4);
    border-radius: 6px;
    padding: 8px 10px;
}

/* Loading State */
.perf-loading {
    padding: 30px;
    text-align: center;
    color: var(--text-3);
    font-size: 11px;
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 768px) {
    .bot-perf-content { width: 98vw; padding: 10px; }
    .perf-stats-grid { grid-template-columns: repeat(3, 1fr); }
    .perf-bottom-row { grid-template-columns: 1fr; }
}
