/* Zikr Reminder — Phase 2 (Intelligent & Emotional) styles
   Calm & night care · Reverse-Scroll feed · Rewards · Personality · Palettes */

/* =========================================================================
 * EMOTION-BASED PALETTES — overlay on top of light/dark via [data-palette]
 * Only re-tints the primary/accent tokens so every component follows along.
 * ========================================================================= */
:root[data-palette="calm"] {
  --c-primary: #0ea5b7; --c-primary-dark: #0e7490; --c-primary-glow: rgba(14, 165, 183, 0.28);
  --grad-primary: linear-gradient(135deg, #22d3ee 0%, #0ea5b7 50%, #0e7490 100%);
  --c-accent: #38bdf8; --c-primary-soft: #cffafe;
}
:root[data-palette="warm"] {
  --c-primary: #f59e0b; --c-primary-dark: #d97706; --c-primary-glow: rgba(245, 158, 11, 0.28);
  --grad-primary: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);
  --c-accent: #fb7185; --c-primary-soft: #fef3c7;
}
:root[data-palette="rose"] {
  --c-primary: #ec4899; --c-primary-dark: #be185d; --c-primary-glow: rgba(236, 72, 153, 0.28);
  --grad-primary: linear-gradient(135deg, #fb7185 0%, #ec4899 55%, #be185d 100%);
  --c-accent: #f59e0b; --c-primary-soft: #fce7f3;
}
:root[data-palette="forest"] {
  --c-primary: #16a34a; --c-primary-dark: #166534; --c-primary-glow: rgba(22, 163, 74, 0.28);
  --grad-primary: linear-gradient(135deg, #4ade80 0%, #16a34a 55%, #166534 100%);
  --c-accent: #ca8a04; --c-primary-soft: #dcfce7;
}
:root[data-palette="night"] {
  --c-primary: #6366f1; --c-primary-dark: #4338ca; --c-primary-glow: rgba(99, 102, 241, 0.3);
  --grad-primary: linear-gradient(135deg, #818cf8 0%, #6366f1 55%, #4338ca 100%);
  --c-accent: #22d3ee; --c-primary-soft: #e0e7ff;
}
:root[data-palette="ocean"] {
  --c-primary: #0ea5e9; --c-primary-dark: #0284c7; --c-primary-glow: rgba(14, 165, 233, 0.28);
  --grad-primary: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 55%, #0284c7 100%);
  --c-accent: #2dd4bf; --c-primary-soft: #e0f2fe;
}

/* =========================================================================
 * DASHBOARD PROMO ROWS (peace / feed / reflection)
 * ========================================================================= */
.peace-promo, .feed-promo, .reflect-promo {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.85rem 1rem; margin-top: 0.85rem;
  border-radius: var(--r-lg);
  background: var(--c-bg-elev);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  text-decoration: none; color: var(--c-text);
  cursor: pointer; transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.peace-promo:active, .feed-promo:active, .reflect-promo:active { transform: scale(0.985); }
.peace-promo { background: linear-gradient(135deg, rgba(20,184,166,0.12), rgba(56,189,248,0.06)); }
.feed-promo  { background: linear-gradient(135deg, var(--c-primary-glow), transparent 75%); }
.reflect-promo.done { opacity: 0.78; }
.peace-promo-icon, .feed-promo-icon, .reflect-promo-icon { font-size: 1.7rem; line-height: 1; flex-shrink: 0; }
.peace-promo-text, .feed-promo-text, .reflect-promo-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.peace-promo-text strong, .feed-promo-text strong, .reflect-promo-text strong { font-size: 0.98rem; }
.peace-promo-text em, .feed-promo-text em, .reflect-promo-text em { font-style: normal; font-size: 0.78rem; color: var(--c-text-muted); line-height: 1.4; }
.peace-promo-arrow, .feed-promo-arrow, .reflect-promo-arrow { font-size: 1.2rem; color: var(--c-primary); flex-shrink: 0; }
[dir="rtl"] .peace-promo-arrow, [dir="rtl"] .feed-promo-arrow, [dir="rtl"] .reflect-promo-arrow, [dir="rtl"] .rewards-promo-arrow { transform: scaleX(-1); }

/* =========================================================================
 * DAILY MICRO-CHALLENGE
 * ========================================================================= */
.challenge-card { display: flex; align-items: center; gap: 0.85rem; }
.challenge-emoji { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.challenge-body { flex: 1; min-width: 0; }
.challenge-title { display: block; font-size: 1rem; }
.challenge-desc { font-size: 0.8rem; color: var(--c-text-muted); line-height: 1.45; margin-top: 0.15rem; }
.challenge-btn {
  flex-shrink: 0; border: 0; border-radius: var(--r-pill);
  padding: 0.5rem 0.9rem; font-size: 0.8rem; font-weight: 700; cursor: pointer;
  background: var(--grad-primary); color: #fff; box-shadow: 0 4px 12px var(--c-primary-glow);
}
.challenge-btn.is-done { background: var(--c-bg-soft); color: var(--c-success); box-shadow: none; }
.challenge-card.done { opacity: 0.82; }

/* Streak recovery */
.recover-card { display: flex; align-items: center; gap: 0.85rem; border: 1px dashed var(--c-primary); }
.recover-emoji { font-size: 1.9rem; }
.recover-body { flex: 1; min-width: 0; }

/* =========================================================================
 * REVERSE-SCROLL HEALING FEED  (#feed)
 * ========================================================================= */
.feed-wrap { display: flex; flex-direction: column; gap: 0.75rem; }
.feed-meta { display: flex; gap: 0.6rem; }
.feed-meta-stat {
  flex: 1; text-align: center; padding: 0.7rem 0.4rem;
  background: var(--c-bg-elev); border: 1px solid var(--c-border);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
}
.feed-meta-stat strong { display: block; font-size: 1.5rem; color: var(--c-primary); line-height: 1; }
.feed-meta-stat span { font-size: 0.72rem; color: var(--c-text-muted); }
.feed-intro { font-size: 0.82rem; color: var(--c-text-muted); line-height: 1.55; text-align: center; padding: 0 0.5rem; }

.feed-stream {
  height: calc(100vh - var(--header-height) - var(--nav-height) - 150px);
  min-height: 360px;
  overflow-y: auto; scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-lg); border: 1px solid var(--c-border);
  background: var(--c-bg-soft);
}
@media (min-width: 1024px) { .feed-stream { height: calc(100vh - 230px); } }
.feed-card {
  scroll-snap-align: start; min-height: 46%;
  display: flex; flex-direction: column; justify-content: center; gap: 0.85rem;
  padding: 1.6rem 1.4rem; margin: 0.55rem;
  border-radius: var(--r-lg); background: var(--c-bg-elev);
  border: 1px solid var(--c-border); box-shadow: var(--shadow-sm);
}
.feed-kicker {
  align-self: flex-start; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--c-primary);
  background: var(--c-primary-soft); padding: 0.25rem 0.7rem; border-radius: var(--r-pill);
}
.feed-text { font-size: 1.18rem; line-height: 1.6; font-weight: 600; color: var(--c-text); }
.feed-source { font-size: 0.82rem; color: var(--c-text-muted); }
.feed-dua .feed-text { font-size: 1.05rem; }
.feed-sentinel { height: 1px; }

/* =========================================================================
 * "I NEED PEACE" OVERLAY
 * ========================================================================= */
.peace-overlay {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem;
  padding: 2rem 1.5rem; text-align: center;
  background: radial-gradient(120% 120% at 50% 0%, #0b3b3a 0%, #07120f 55%, #050a08 100%);
  color: #eafaf3; overscroll-behavior: contain;
}
.peace-close {
  position: absolute; top: calc(1rem + var(--safe-top)); inset-inline-end: 1.2rem;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.1); color: #eafaf3; font-size: 1.1rem; cursor: pointer;
}
.peace-eyebrow { font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.65; }
.peace-breath {
  width: 168px; height: 168px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(45,212,191,0.5), rgba(45,212,191,0.06) 70%);
  border: 1px solid rgba(125,239,219,0.35);
  transform: scale(0.75); transition: transform 0.4s ease;
}
.peace-breath.inhale { animation: peace-in 4s ease forwards; }
.peace-breath.hold   { transform: scale(1.12); }
.peace-breath.exhale { animation: peace-out 6s ease forwards; }
@keyframes peace-in  { from { transform: scale(0.75);} to { transform: scale(1.12);} }
@keyframes peace-out { from { transform: scale(1.12);} to { transform: scale(0.75);} }
.peace-breath-label { font-size: 0.95rem; font-weight: 600; opacity: 0.9; }
.peace-dhikr { font-family: var(--font-arabic); font-size: 2rem; margin: 0; }
.peace-dhikr-translit { font-size: 0.85rem; opacity: 0.7; margin: 0; }
.peace-tap {
  border: 1px solid rgba(125,239,219,0.4); background: rgba(255,255,255,0.06);
  color: #eafaf3; border-radius: var(--r-pill); padding: 0.6rem 1.2rem; font-size: 0.85rem; cursor: pointer;
}
.peace-ayah { max-width: 30ch; }
.peace-ayah-text { font-size: 1.05rem; line-height: 1.6; }
.peace-ayah-src { font-size: 0.8rem; opacity: 0.6; margin-top: 0.3rem; }

/* =========================================================================
 * REFLECTION BOTTOM SHEET
 * ========================================================================= */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 1150;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(8, 12, 16, 0); transition: background var(--t-base);
}
.sheet-overlay.open { background: rgba(8, 12, 16, 0.55); }
.sheet {
  width: 100%; max-width: 560px;
  background: var(--c-bg-elev); border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 0.75rem 1.25rem calc(1.5rem + var(--safe-bot));
  box-shadow: var(--shadow-lg);
  transform: translateY(100%); transition: transform var(--t-base);
}
.sheet-overlay.open .sheet { transform: translateY(0); }
.sheet-handle { width: 40px; height: 4px; border-radius: 999px; background: var(--c-border-strong); margin: 0.4rem auto 0.9rem; }
.sheet-title { font-size: 1.15rem; margin: 0 0 0.25rem; }
.sheet-sub { font-size: 0.82rem; color: var(--c-text-muted); margin: 0 0 0.9rem; line-height: 1.5; }
.reflect-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.9rem; }
.reflect-tag {
  border: 1px solid var(--c-border-strong); background: transparent; color: var(--c-text);
  border-radius: var(--r-pill); padding: 0.4rem 0.85rem; font-size: 0.8rem; cursor: pointer;
  transition: all var(--t-fast);
}
.reflect-tag.on { background: var(--grad-primary); color: #fff; border-color: transparent; }
.reflect-note {
  width: 100%; border: 1px solid var(--c-border-strong); border-radius: var(--r-md);
  padding: 0.7rem 0.85rem; font-family: inherit; font-size: 0.9rem; color: var(--c-text);
  background: var(--c-bg-soft); resize: none;
}
.sheet-actions { display: flex; gap: 0.6rem; margin-top: 1rem; }
.sheet-actions .btn { flex: 1; }

/* =========================================================================
 * REMINDER PERSONALITY (tones)
 * ========================================================================= */
.tone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.tone-chip {
  display: flex; flex-direction: column; gap: 0.15rem; text-align: start;
  padding: 0.7rem 0.8rem; border-radius: var(--r-md);
  border: 1px solid var(--c-border-strong); background: var(--c-bg-soft); color: var(--c-text);
  cursor: pointer; transition: all var(--t-fast);
}
.tone-chip.selected { border-color: var(--c-primary); box-shadow: var(--shadow-glow); background: var(--c-primary-soft); }
.tone-emoji { font-size: 1.3rem; }
.tone-label { font-weight: 700; font-size: 0.88rem; }
.tone-desc { font-size: 0.72rem; color: var(--c-text-muted); line-height: 1.35; }

/* =========================================================================
 * PALETTE PICKER (Profile)
 * ========================================================================= */
.palette-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.palette-dot {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; display: grid; place-items: center;
  color: #fff; font-size: 0.9rem; font-weight: 800;
  box-shadow: var(--shadow-sm); transition: transform var(--t-fast);
}
.palette-dot:active { transform: scale(0.92); }
.palette-dot.active { border-color: var(--c-text); }
.palette-dot.locked { opacity: 0.55; }
.palette-default { background: linear-gradient(135deg, #10b981, #059669); }
.palette-calm    { background: linear-gradient(135deg, #22d3ee, #0e7490); }
.palette-warm    { background: linear-gradient(135deg, #fbbf24, #d97706); }
.palette-rose    { background: linear-gradient(135deg, #fb7185, #be185d); }
.palette-forest  { background: linear-gradient(135deg, #4ade80, #166534); }
.palette-night   { background: linear-gradient(135deg, #818cf8, #4338ca); }
.palette-ocean   { background: linear-gradient(135deg, #38bdf8, #0284c7); }

/* =========================================================================
 * REWARD STORE  (#rewards)
 * ========================================================================= */
.rewards-balance { display: flex; align-items: center; gap: 1rem; }
.rewards-coin { font-size: 2.4rem; line-height: 1; }
.rewards-points { font-size: 2rem; font-weight: 800; line-height: 1; }
.rewards-points-label { font-size: 0.78rem; color: var(--c-text-muted); }
.reward-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.reward-tile {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem; text-align: center;
  padding: 0.9rem 0.5rem; border-radius: var(--r-md);
  background: var(--c-bg-elev); border: 1px solid var(--c-border); cursor: pointer;
  transition: all var(--t-fast);
}
.reward-tile:active { transform: scale(0.96); }
.reward-tile.active { border-color: var(--c-primary); box-shadow: var(--shadow-glow); }
.reward-tile.owned:not(.active) { border-color: var(--c-border-strong); }
.reward-emoji { font-size: 1.7rem; line-height: 1; }
.reward-name { font-size: 0.78rem; font-weight: 600; }
.reward-cost { font-size: 0.72rem; color: var(--c-text-muted); }
.reward-tile.active .reward-cost { color: var(--c-primary); font-weight: 700; }
.rewards-promo { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--c-text); }
.rewards-promo-coin { font-size: 1.8rem; }
.rewards-promo-arrow { font-size: 1.2rem; color: var(--c-primary); }

/* =========================================================================
 * HABIT HEATMAP (Progress)
 * ========================================================================= */
.heat-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.heat-cell { aspect-ratio: 1; border-radius: 4px; background: var(--c-bg-soft); }
.heat-0 { background: var(--c-bg-soft); }
.heat-1 { background: color-mix(in srgb, var(--c-primary) 25%, transparent); }
.heat-2 { background: color-mix(in srgb, var(--c-primary) 50%, transparent); }
.heat-3 { background: color-mix(in srgb, var(--c-primary) 75%, transparent); }
.heat-4 { background: var(--c-primary); }
.heat-legend { display: flex; align-items: center; gap: 5px; margin-top: 0.7rem; font-size: 0.72rem; color: var(--c-text-muted); }
.heat-legend .heat-cell { width: 14px; height: 14px; aspect-ratio: auto; }

/* =========================================================================
 * PHASE 2/3 — late-night UI · journal · qada · timer · pause · recovery
 * ========================================================================= */

/* Adaptive late-night dimming — subtle, calming, lowers stimulation */
body.late-night #view { filter: brightness(0.94) saturate(0.9); transition: filter var(--t-slow); }
.latenight-banner {
  display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1rem; margin-bottom: 0.85rem;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(99,102,241,0.16), rgba(15,23,42,0.05));
  border: 1px solid var(--c-border);
}
.latenight-icon { font-size: 1.5rem; }
.latenight-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.latenight-text strong { font-size: 0.92rem; }
.latenight-text em { font-style: normal; font-size: 0.76rem; color: var(--c-text-muted); line-height: 1.4; }
.latenight-btn {
  flex-shrink: 0; border: 0; border-radius: var(--r-pill); padding: 0.45rem 0.85rem;
  font-size: 0.78rem; font-weight: 700; cursor: pointer;
  background: rgba(129,140,248,0.25); color: var(--c-text);
}

/* Reflection journal timeline */
.timeline { position: relative; margin-top: 1rem; padding-inline-start: 1.1rem; }
.timeline::before { content: ''; position: absolute; inset-inline-start: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--c-border-strong); }
.timeline-item { position: relative; margin-bottom: 0.9rem; }
.timeline-dot { position: absolute; inset-inline-start: -1.1rem; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-glow); }
.timeline-card { background: var(--c-bg-elev); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 0.75rem 0.9rem; box-shadow: var(--shadow-sm); }
.timeline-date { font-size: 0.72rem; color: var(--c-text-muted); font-weight: 600; margin-bottom: 0.25rem; }
.timeline-note { font-size: 0.9rem; line-height: 1.5; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.4rem; }
.journal-link { font-size: 0.78rem; color: var(--c-primary); text-decoration: none; font-weight: 600; }
.journal-empty { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--c-text); font-size: 0.85rem; }

/* Prayer recovery (qada) */
.recovery-prayer-head { display: flex; align-items: center; gap: 0.7rem; }
.qada-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.45rem; margin-bottom: 0.9rem; }
.qada-btn {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  padding: 0.6rem 0.2rem; border-radius: var(--r-md); cursor: pointer;
  border: 1px solid var(--c-border-strong); background: var(--c-bg-soft); color: var(--c-text);
  font-size: 0.7rem; font-weight: 600;
}
.qada-btn span { font-size: 1.3rem; }
.qada-btn:active { transform: scale(0.94); }

/* Focus / Detox timer overlay */
.timer-overlay {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem;
  padding: 2rem 1.5rem; text-align: center; color: #eaf2ff;
  background: radial-gradient(120% 120% at 50% 0%, #10233f 0%, #0a1424 55%, #060b14 100%);
}
.timer-overlay.detox { background: radial-gradient(120% 120% at 50% 0%, #08322b 0%, #07140f 55%, #050a08 100%); }
.timer-close { position: absolute; top: calc(1rem + var(--safe-top)); inset-inline-end: 1.2rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.1); color: #fff; font-size: 1.1rem; cursor: pointer; }
.timer-eyebrow { font-size: 0.95rem; letter-spacing: 0.05em; opacity: 0.85; font-weight: 600; }
.timer-ring {
  width: 200px; height: 200px; border-radius: 50%; display: grid; place-items: center;
  border: 3px solid rgba(255,255,255,0.15);
  background: radial-gradient(circle, rgba(56,189,248,0.18), transparent 70%);
}
.timer-overlay.detox .timer-ring { background: radial-gradient(circle, rgba(45,212,191,0.18), transparent 70%); }
.timer-overlay.running .timer-ring { animation: timer-pulse 4s ease-in-out infinite; }
@keyframes timer-pulse { 0%,100% { transform: scale(1);} 50% { transform: scale(1.04);} }
#timer-display { font-size: 3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.timer-intro { font-size: 0.85rem; line-height: 1.55; opacity: 0.8; max-width: 30ch; }
.timer-presets { display: flex; gap: 0.5rem; }
.timer-preset { border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); color: #fff; border-radius: var(--r-pill); padding: 0.5rem 1rem; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.timer-preset.sel { background: #fff; color: #0a1424; border-color: #fff; }
.timer-actions .btn { min-width: 160px; }

/* Pause before you scroll */
.pause-overlay {
  position: fixed; inset: 0; z-index: 1250; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; background: rgba(6,11,20,0); transition: background var(--t-base);
}
.pause-overlay.open { background: rgba(6,11,20,0.7); backdrop-filter: blur(4px); }
.pause-card {
  width: 100%; max-width: 380px; text-align: center;
  background: var(--c-bg-elev); border: 1px solid var(--c-border); border-radius: var(--r-xl);
  padding: 1.6rem 1.4rem; box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(0.98); opacity: 0; transition: all var(--t-base);
}
.pause-overlay.open .pause-card { transform: none; opacity: 1; }
.pause-icon { font-size: 2.2rem; }
.pause-title { font-size: 1.2rem; margin: 0.5rem 0 0.3rem; }
.pause-sub { font-size: 0.85rem; color: var(--c-text-muted); line-height: 1.5; margin-bottom: 1rem; }
.pause-reasons { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; margin-bottom: 0.9rem; }
.pause-reason { border: 1px solid var(--c-border-strong); background: var(--c-bg-soft); color: var(--c-text); border-radius: var(--r-pill); padding: 0.5rem 0.95rem; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all var(--t-fast); }
.pause-reason:active { transform: scale(0.95); }
.pause-reason:hover { border-color: var(--c-primary); }
.pause-foot { font-size: 0.76rem; color: var(--c-text-muted); line-height: 1.5; margin-bottom: 0.8rem; }

/* =========================================================================
 * UX polish — smooth route transitions, consistent press feedback,
 * prominent color accents (v2.6.23)
 * ========================================================================= */
#view.view-enter { animation: view-in 0.3s cubic-bezier(.16,1,.3,1); }
@keyframes view-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.tap { transition: transform var(--t-fast); }
.tap:active { transform: scale(0.97); }
.btn { transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-base), color var(--t-base); }
.btn:active { transform: scale(0.96); }
.nav-item:active, .desktop-nav-item:active { transform: scale(0.92); }
.prayer-tile { transition: transform var(--t-fast), border-color var(--t-base), background var(--t-base), box-shadow var(--t-base); }
.prayer-tile:active { transform: scale(0.94); }
.prayer-tile.done .prayer-emoji { animation: pray-pop 0.35s cubic-bezier(.16,1,.3,1); }
@keyframes pray-pop { 0% { transform: scale(0.7); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
/* Prominent gradient accent under every section heading */
.section-head h2 { position: relative; }
.section-head h2::after {
  content: ''; position: absolute; inset-inline-start: 0; bottom: -5px;
  width: 26px; height: 3px; border-radius: 2px;
  background: var(--grad-primary); opacity: 0.9;
}
@media (prefers-reduced-motion: reduce) {
  #view.view-enter { animation: none; }
  .prayer-tile.done .prayer-emoji { animation: none; }
}

/* Friday: Dhuhr tile becomes Jumu'ah — golden highlight */
.prayer-tile.jumuah-tile {
  border: 1px solid var(--c-accent);
  background: linear-gradient(135deg, rgba(245,158,11,0.16), rgba(251,191,36,0.05));
  box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
}
.prayer-tile.jumuah-tile .prayer-name { color: var(--c-accent); font-weight: 700; }
.prayer-tile.jumuah-tile.done { border-color: var(--c-primary); box-shadow: none; }

/* Prayer-recovery insights (missed prayers per date) */
.qada-insights { margin-top: 0.9rem; border-top: 1px solid var(--c-border); padding-top: 0.8rem; }
.qada-insights-head { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-text-muted); margin-bottom: 0.2rem; }
.qada-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0; border-bottom: 1px dashed var(--c-border); }
.qada-row:last-child { border-bottom: 0; }
.qada-date { font-size: 0.74rem; color: var(--c-text-muted); min-width: 86px; flex-shrink: 0; line-height: 1.3; }
.qada-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.qada-chip {
  border: 1px solid var(--c-border-strong); background: var(--c-bg-soft); color: var(--c-text);
  border-radius: var(--r-pill); padding: 0.3rem 0.7rem; font-size: 0.74rem; font-weight: 600; cursor: pointer;
  transition: all var(--t-fast);
}
.qada-chip:active { transform: scale(0.94); }
.qada-chip:hover { border-color: var(--c-primary); }

/* Recovery analytics grid */
.recovery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.55rem; }
.recovery-cell { text-align: center; padding: 0.6rem 0.2rem; background: var(--c-bg-soft); border-radius: var(--r-md); }
.recovery-emoji { font-size: 1.2rem; line-height: 1; }
.recovery-cell strong { display: block; font-size: 1.15rem; margin-top: 0.15rem; }
.recovery-cell span { font-size: 0.62rem; color: var(--c-text-muted); line-height: 1.2; display: block; }
.recovery-actions { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.recovery-actions .btn { flex: 1; }
.recovery-prayer { margin-top: 0.85rem; }
@media (max-width: 380px) { .recovery-grid { grid-template-columns: repeat(3, 1fr); } .qada-grid { grid-template-columns: repeat(5, 1fr); } }
