.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.dash-card {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: 16px;
    padding: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.dash-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dash-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border-color: var(--accent-primary);
}

.dash-card:hover::before {
    opacity: 1;
}

.dash-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.dash-header i {
    font-size: 1.6rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-primary);
}

.dash-card.negative .dash-header i {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.dash-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.metric {
    margin-bottom: 1.8rem;
    position: relative;
    z-index: 1;
}

.metric span {
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.metric small {
    opacity: 0.6;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.4rem;
}

.bar {
    background: rgba(255, 255, 255, 0.08);
    height: 12px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bar div {
    height: 100%;
    background: linear-gradient(90deg, var(--success), #34d399);
    border-radius: 20px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.bar.danger div {
    background: linear-gradient(90deg, var(--danger), #f87171);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.dash-card.positive {
    border-left: 4px solid var(--success);
}

.dash-card.negative {
    border-left: 4px solid var(--danger);
}

.dash-footer {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .dash-card {
        padding: 1.8rem;
    }

    .dash-header {
        margin-bottom: 1.5rem;
    }

    .metric {
        margin-bottom: 1.2rem;
    }
}