.dashboard {
    max-width: 1000px;
    margin: auto;
}

.grid-title {
    grid-column: 1 / -1; /* full width */
    text-align: center;  /* 🔥 center align */
    font-size: 24px;
    font-weight: 600;
    padding: 6px 0 12px;
    color: #6d28d9;
    border-bottom: 1px solid #dbe2ff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 5px;
    padding: 15px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef2f7, #dfe7ff);
}

.card {
    background: #ffffff;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: 0.2s ease;
}
.card:hover {
    transform: translateY(-3px);
}

.metric {
    font-size: 10px;
    color: #666;
}

.value {
    font-size: 20px;
    font-weight: bold;
    margin: 5px 0;
}

.rank {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.invisible {
    visibility: hidden;
}

.highlight {
    color: #0b63f6;
}
.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.rank-top {
    font-size: 11px;
    background: #e8f0ff;
    color: #0b63f6;
    padding: 2px 6px;
    border-radius: 5px;
    font-weight: 600;
    min-width: 26px;
    text-align: center;
}

.rank-top.empty {
    visibility: hidden;
}