.dashboard-page { max-width: 1440px; margin: 0 auto; padding: .5rem 0 2rem; }
.dashboard-hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.25rem; padding: 2rem; color: #fff; background: linear-gradient(125deg, #171d4b 0%, #30366e 58%, #165d8f 100%); border-radius: 1.25rem; box-shadow: 0 18px 45px rgba(30, 41, 89, .18); }
.dashboard-hero::after { content: ''; position: absolute; width: 18rem; height: 18rem; right: -5rem; top: -8rem; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 3rem rgba(255,255,255,.035), 0 0 0 6rem rgba(255,255,255,.025); }
.dashboard-hero h1 { position: relative; margin: .25rem 0 .45rem; color: #fff; font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -.035em; }
.dashboard-hero p { position: relative; max-width: 38rem; margin: 0; color: rgba(255,255,255,.72); }
.dashboard-eyebrow { position: relative; color: #8bddff; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.dashboard-period { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .55rem; flex: 0 0 auto; padding: .7rem .9rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: .75rem; backdrop-filter: blur(8px); font-size: .82rem; font-weight: 700; }
.metrics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.metric-card { display: flex; align-items: center; gap: 1rem; min-width: 0; padding: 1.15rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; box-shadow: 0 10px 28px rgba(15,23,42,.055); }
.metric-icon { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; flex: 0 0 auto; border-radius: .85rem; font-size: 1.15rem; }
.metric-income .metric-icon { color: #047857; background: #ecfdf5; }
.metric-expense .metric-icon { color: #b91c1c; background: #fef2f2; }
.metric-balance .metric-icon { color: #1d4ed8; background: #eff6ff; }
.metric-card small { display: block; margin-bottom: .18rem; color: #64748b; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .045em; }
.metric-card strong { display: block; overflow: hidden; color: #172033; font-size: 1.4rem; letter-spacing: -.025em; text-overflow: ellipsis; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(20rem, .75fr); gap: 1rem; align-items: stretch; }
.chart-card { min-width: 0; padding: 1.35rem; background: rgba(255,255,255,.96); border: 1px solid #e2e8f0; border-radius: 1rem; box-shadow: 0 12px 32px rgba(15,23,42,.06); }
.chart-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.chart-card-header span { color: #64748b; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.chart-card-header h2 { margin: .25rem 0 0; color: #1e293b; font-size: 1.05rem; }
.chart-card-header > i { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; color: #30366e; background: #eef2ff; border-radius: .7rem; }
.chart-card-wide .chart-wrapper { height: 390px; }
.chart-wrapper { min-height: 320px; background: linear-gradient(180deg, #fbfdff, #f8fafc); border-radius: .85rem; padding: 1.1rem; border: 1px solid #edf2f7; position: relative; }
.chart-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background-color: rgba(255,255,255,.88); color: #64748b; font-size: .9rem; padding: 1rem; border-radius: .85rem; }
.pie-chart-wrapper { min-height: 320px; display: flex; align-items: center; justify-content: center; }
.saldo-chart-canvas { width: min(100%, 310px); height: min(100%, 310px); max-width: 340px; max-height: 340px; margin: 0 auto; display: block; }

@media (max-width: 1050px) { .dashboard-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
    .dashboard-hero { align-items: flex-start; flex-direction: column; padding: 1.5rem; }
    .metrics-grid { grid-template-columns: 1fr; }
    .chart-card-wide .chart-wrapper { height: 330px; }
}
@media (max-width: 480px) {
    .dashboard-period { width: 100%; justify-content: center; }
    .chart-card { padding: 1rem; }
    .chart-wrapper { padding: .65rem; }
}
