/* تحدّي قصور الجنة */

.page-head { padding: 136px 0 30px; display: grid; gap: 16px; }
.page-head h1 { font-size: clamp(44px, 6vw, 76px); }
.section__head { display: grid; gap: 14px; margin: 90px 0 34px; max-width: 760px; }
.section__head h2 { font-size: clamp(30px, 4vw, 48px); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { border-radius: var(--r-lg); padding: 22px; display: grid; justify-items: center; gap: 4px; text-align: center; }
.stat__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--sand) 28%, transparent); color: var(--gold); }
.stat__icon svg { width: 24px; height: 24px; }
.stat img { width: 46px; height: 46px; object-fit: contain; }
.stat b { font-family: var(--f-display); font-size: clamp(28px, 3vw, 38px); font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat span:last-child { font-size: 16px; color: var(--ink-2); }

.challenge { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.ikhlas {
  border-radius: 32px;
  padding: clamp(22px, 3vw, 36px);
  display: grid;
  gap: 16px;
  justify-items: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s var(--ease), box-shadow 0.4s var(--ease);
}
.ikhlas:hover { box-shadow: var(--shadow-lift); }
.ikhlas:active { transform: scale(0.985); }
.ikhlas__page { width: 100%; background: var(--paper); border-radius: 20px; padding: 18px 16px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sand) 45%, transparent); }
.ikhlas__page .qpage { width: 100%; height: auto; }
.qpage__ink text { fill: var(--quran-ink); }
.qpage__ink text.qpage__basmala { fill: var(--basmala); }
.qpage__ink text.qpage__surah { fill: #F0DCAC; }
.beads { display: flex; gap: clamp(6px, 1.4vw, 12px); justify-content: center; flex-wrap: wrap; }
.bead { width: clamp(22px, 3vw, 30px); aspect-ratio: 1; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--sand) 70%, transparent); transition: background 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s; }
.bead.is-on { background: radial-gradient(circle at 35% 30%, #F6E2BC, var(--sand) 55%, #9A7244); border-color: transparent; box-shadow: 0 4px 10px -3px rgba(154, 114, 68, 0.6); }
.bead.pop { animation: pop 0.45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.35); } }
.ikhlas__count { margin: 0; font-size: 18px; color: var(--ink-2); }
.ikhlas__count b { font-family: var(--f-display); font-size: 28px; color: var(--gold); font-variant-numeric: tabular-nums; }
.ikhlas__hint { margin: 0; font-size: 17.5px; color: var(--muted); }

.side { display: grid; gap: 16px; }
.card { border-radius: var(--r-lg); padding: 22px 24px; display: grid; gap: 12px; }
.card__title { margin: 0; font-size: 19px; font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card__title small { font-size: 16px; color: var(--gold); font-weight: 600; }
.hadith { margin: 0; font-family: var(--f-naskh); font-size: 21px; line-height: 2; color: var(--ink); }
.hadith span { color: var(--gold); font-weight: 600; }
.hadith__src { margin: 0; font-size: 17px; line-height: 1.8; color: var(--muted); }
.next { margin: 0; font-size: 17px; color: var(--ink-2); }
.next b { color: var(--ink); }
.bar { display: block; height: 7px; border-radius: 7px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--gold); transition: width 0.6s var(--ease); }
.add-btn { justify-self: start; margin-top: 4px; }
.add-btn [data-icon] svg { width: 18px; height: 18px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 150px; }
.week__day { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 6px; height: 100%; font-size: 15.5px; color: var(--muted); }
.week__day b { font-size: 16px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.week__col { width: 100%; max-width: 30px; align-self: end; border-radius: 8px 8px 4px 4px; background: linear-gradient(to top, var(--gold), var(--sand)); min-height: 4px; transition: height 0.6s var(--ease); }
.week__day.is-today span { color: var(--gold); font-weight: 700; }

.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.tier { border-radius: var(--r-lg); padding: 22px 16px; display: grid; justify-items: center; gap: 8px; text-align: center; }
.tier img { width: 104px; height: 104px; object-fit: contain; transition: transform 0.5s var(--ease); }
.tier:hover img { transform: translateY(-4px) scale(1.04); }
.tier b { font-family: var(--f-display); font-weight: 600; font-size: 20px; }
.tier span { font-size: 17px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tier.is-locked img { filter: grayscale(1) opacity(0.45); }
.tier.is-current { box-shadow: var(--shadow-lift), 0 0 0 2px var(--sand); }

.add { border: 0; padding: 0; border-radius: var(--r-lg); width: min(460px, 100vw - 32px); color: var(--ink); background: var(--glass-strong); }
.add::backdrop { background: rgba(8, 17, 30, 0.4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.add form { padding: 24px; display: grid; gap: 14px; }
.add h2 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 26px; }
.add p { margin: 0; color: var(--ink-2); font-size: 16.5px; }
.stepper { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.stepper input { font: inherit; font-size: 22px; text-align: center; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); color: var(--ink); font-variant-numeric: tabular-nums; }
.quick { display: flex; gap: 8px; justify-content: center; }
.quick button { border: 1px solid var(--line); background: var(--glass); border-radius: 999px; padding: 6px 16px; font-weight: 600; cursor: pointer; }
.pledge { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 16px; line-height: 1.8; cursor: pointer; }
.pledge input { width: 20px; height: 20px; margin-top: 5px; accent-color: var(--range); }
.add__actions { display: flex; gap: 10px; justify-content: flex-end; }
.add__actions .btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.celebrate { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: rgba(8, 17, 30, 0.35); opacity: 0; pointer-events: none; transition: opacity 0.35s; }
.celebrate.is-on { opacity: 1; pointer-events: auto; }
.celebrate__card { border-radius: 32px; padding: 30px 40px; display: grid; justify-items: center; gap: 8px; text-align: center; background: var(--glass-strong); transform: translateY(24px) scale(0.94); transition: transform 0.55s var(--ease); }
.celebrate.is-on .celebrate__card { transform: none; }
.celebrate__card img { width: 150px; height: 150px; object-fit: contain; }
.celebrate__card h2 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 34px; }
.celebrate__card p { margin: 0; font-size: 18px; color: var(--ink-2); }

@media (max-width: 900px) { .challenge { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .page-head { padding-top: 108px; }
  .stats { gap: 8px; }
  .stat { padding: 14px 8px; }
  .stat span:last-child { font-size: 16px; }
  .stat b { font-size: 22px; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .tier img { width: 84px; height: 84px; }
}
