.ff-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0 0.25rem;
}

.ff-page-header h2 {
    font-size: 1rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ff-updated {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.ff-period-btns {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.ff-period-btn {
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    letter-spacing: 0.03em;
}

.ff-period-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.4);
}

.ff-period-btn.active {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.5);
}


.ff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ff-section-title {
    grid-column: 1 / -1;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8b5cf6;
    padding: 0.25rem 0 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    margin-bottom: -0.25rem;
}

.ff-chart-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ff-chart-header {
    padding: 1rem 1.25rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ff-chart-header h3 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.ff-chart-unit {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 0.1rem 0.45rem;
    white-space: nowrap;
}

.ff-chart-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.ff-chart-period-btns {
    display: flex;
    justify-content: center;
    gap: 0.18rem;
    padding: 0.35rem 0.75rem 0.75rem;
}

.ff-period-btn--sm {
    padding: 0.12rem 0.45rem;
    font-size: 0.65rem;
}

.ff-chart-container {
    padding: 0 0.75rem 0.75rem;
    height: 240px;
    position: relative;
}

.ff-chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.ff-no-data {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 0.78rem;
}

@media (max-width: 768px) {
    .ff-grid {
        grid-template-columns: 1fr;
    }

    .ff-chart-container {
        height: 200px;
    }
}