/* progress.css — dashboard rekap misi 40 hari, ibadah, dan riwayat 7 hari */

.progress-page { gap: 14px; }

/* ---------- kartu utama (gelap) ---------- */
.rk-hero {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--r-card);
  color: var(--surface);
  background:
    radial-gradient(circle at 84% 2%, rgba(240, 203, 132, .2), transparent 44%),
    linear-gradient(150deg, var(--deep) 0%, var(--deep-2) 58%, var(--emerald) 100%);
  box-shadow: var(--shadow-deep);
}

.rk-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.rk-hero-copy { min-width: 0; }

.rk-hero-eyebrow {
  display: block;
  color: var(--on-dark);
  font-size: var(--fs-10);
  font-weight: 700;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.rk-hero-score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 5px;
}

.rk-hero-score strong {
  font-size: var(--fs-36);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}

.rk-hero-score span {
  color: var(--on-dark-3);
  font-size: var(--fs-12);
  font-weight: 600;
}

.rk-hero-copy p {
  max-width: 190px;
  margin-top: 7px;
  color: var(--on-dark-3);
  font-size: var(--fs-11);
  line-height: 1.45;
}

.rk-ring {
  position: relative;
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
}

.rk-ring-track { stroke: rgba(255, 255, 255, .16); }
.rk-ring-fill { stroke: var(--gold); }

.rk-ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--surface);
  font-size: var(--fs-13);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.rk-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.rk-hero-stats div { min-width: 0; }
.rk-hero-stats span {
  display: block;
  color: var(--on-dark-3);
  font-size: var(--fs-10);
  font-weight: 600;
  line-height: 1.2;
}
.rk-hero-stats strong {
  display: block;
  margin-top: 3px;
  font-size: var(--fs-22);
  line-height: 1.05;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.rk-hero-stats .is-good strong { color: var(--on-dark-4); }
.rk-hero-stats .is-bad strong { color: var(--gold); }
.rk-hero-stats .is-streak strong { color: var(--surface); }

/* ---------- rekap ibadah ---------- */
.rk-ibadah {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rk-stat {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  padding: 14px 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-16);
  background: var(--surface-4);
  text-align: center;
}

.rk-stat-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
  border-radius: 11px;
}
.rk-stat.is-quran .rk-stat-icon {
  background: var(--mint-soft-2);
  color: var(--emerald-2);
}
.rk-stat.is-buku .rk-stat-icon {
  background: var(--gold-soft);
  color: var(--amber-ink);
}
.rk-stat.is-azan .rk-stat-icon {
  background: var(--surface-3);
  color: var(--deep-2);
}
.rk-stat.is-sunnah .rk-stat-icon {
  background: var(--mint-soft);
  color: var(--deep);
}

.rk-stat strong {
  max-width: 100%;
  font-size: clamp(22px, 7.2vw, 31px);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -.6px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.rk-stat-label {
  color: var(--muted);
  font-size: var(--fs-10);
  font-weight: 650;
  line-height: 1.25;
}

/* ---------- riwayat 7 hari ---------- */
.rk-history { display: grid; }

.rk-day {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.rk-day:first-child { padding-top: 2px; border-top: 0; }
.rk-day:last-child { padding-bottom: 0; }

.rk-day-date b {
  display: block;
  font-size: var(--fs-12);
  font-weight: 750;
  line-height: 1.25;
}
.rk-day-date small {
  display: block;
  margin-top: 2px;
  color: var(--muted-3);
  font-size: var(--fs-10);
  line-height: 1.25;
}

.rk-day-main { min-width: 0; }

.rk-day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rk-day-status {
  padding: 4px 9px;
  border-radius: var(--r-pill);
  font-size: var(--fs-10);
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
}
.rk-day-status.is-sempurna { background: var(--mint-soft-2); color: var(--emerald-2); }
.rk-day-status.is-gagal { background: var(--danger-soft); color: var(--danger); }
.rk-day-status.is-empty { background: var(--surface-2); color: var(--muted-3); }

.rk-day-azan {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--amber-ink);
  font-size: var(--fs-10);
  font-weight: 700;
  white-space: nowrap;
}
.rk-day.is-empty .rk-day-azan { color: var(--muted-3); }

.rk-day-surah {
  margin-top: 5px;
  color: var(--ink-2);
  font-size: var(--fs-11);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.rk-day.is-empty .rk-day-surah { color: var(--muted-3); }

@media (max-width: 360px) {
  .rk-hero { padding: 17px; }
  .rk-hero-copy p { max-width: 160px; }
  .rk-day { grid-template-columns: 82px minmax(0, 1fr); gap: 10px; }
}
