.profile-metrics {
  gap: 30px;
  align-items: center;
}

.period-filter {
  position: relative;
  z-index: 1;
}

.period-filter select {
  min-width: 142px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 9px;
  background: rgba(255, 255, 255, .11);
  color: #fff;
  padding: 8px 28px 8px 10px;
  font: 700 12px Manrope;
}

.period-filter select option {
  color: var(--ink);
  background: #fff;
}

.period-filter select:disabled {
  opacity: .8;
}

.kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dot.green {
  background: var(--green);
}

.zakat-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.scale-note {
  font-size: 11px;
  background: #eef3fb;
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--blue);
  font-weight: 700;
  white-space: nowrap;
}

.chart-panels {
  display: grid;
  gap: 10px;
}

.chart-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 10px 4px;
  min-width: 0;
}

.chart-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.chart-panel-title span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
}

.chart-panel-title small {
  color: var(--muted);
  font-size: 10px;
}

.chart-panels .chart-wrap {
  height: 108px;
}

.chart-card {
  min-height: 500px;
}

@media (max-width: 900px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .profile-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .period-filter select {
    width: 100%;
    min-width: 0;
  }

  .chart-panels .chart-wrap {
    height: 100px;
  }

  .chart-panel-title small {
    display: block;
  }
}

@media (max-width: 380px) {
  .profile-metrics {
    grid-template-columns: 1fr;
  }
}
