/* Khatma plans + progress */
.kh-builder-wrap { position: relative; z-index: 3; margin-top: -48px; }
.kh-builder { padding: clamp(20px, 3vw, 34px); box-shadow: var(--shadow-lg); }
.kh-rem { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.kh-rem small { flex: 1 1 100%; }
.kh-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.kh-calc div { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(230,207,156,.2); }
.kh-calc b { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--nq-gold-300); line-height: 1.2; }
.kh-calc span { font-size: .85rem; color: rgba(237,228,204,.75); }
.kh-calc .kh-wide { grid-column: 1 / -1; }
.kh-cur { padding: 16px; border-radius: 16px; border: 1px dashed rgba(230,207,156,.35); color: rgba(237,228,204,.85); font-size: .95rem; }
.kh-table td, .kh-table th { white-space: nowrap; }
.kh-table tr.is-today td { background: var(--accent-soft); font-weight: 700; }
.kh-table tr.is-past td { color: var(--muted); }
.kh-table .kh-surah { font-family: var(--font-head); font-weight: 700; color: var(--heading); }
.kh-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--accent); box-shadow: var(--shadow); margin: 18px 0 0; position: relative; z-index: 4; flex-wrap: wrap; }
.kh-banner i.bi-bell { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); font-size: 1.2rem; }
.kh-banner p { margin: 0; flex: 1 1 220px; }
.kp-summary { padding: clamp(20px, 3vw, 34px); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 40px); align-items: center; }
@media (max-width: 767.98px) { .kp-summary { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.kp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 991.98px) { .kp-stats { grid-template-columns: repeat(2, 1fr); } }
.kp-stats div { padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.kp-stats b { display: block; font-family: var(--font-head); font-size: 1.45rem; color: var(--accent-strong); line-height: 1.2; }
.kp-stats span { font-size: .82rem; color: var(--muted); }
.kp-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-family: var(--font-head); font-size: .88rem; }
.kp-status.ahead { background: rgba(45,138,95,.12); color: var(--success); }
.kp-status.behind { background: rgba(180,72,60,.1); color: var(--danger); }
.kp-status.on { background: var(--accent-soft); color: var(--accent-strong); }
.juz-card { cursor: pointer; text-align: start; width: 100%; font-family: inherit; }
.juz-card .jz-read { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: .78rem; font-weight: 700; color: var(--link); }
.juz-card.is-next { box-shadow: 0 0 0 2px var(--accent); }
.juz-wrap { position: relative; }
.juz-wrap .jz-read-link { position: absolute; bottom: 12px; inset-inline-end: 12px; z-index: 2; font-size: .78rem; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.kp-celebrate { text-align: center; padding: clamp(28px, 5vw, 56px); }
.kp-celebrate .quran-text { text-align: center; font-size: 1.6rem; }
.hifz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.hifz-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; text-align: start; color: var(--text); transition: all .2s; width: 100%; }
.hifz-chip:hover { border-color: var(--accent); }
.hifz-chip .hc-n { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); font-size: .8rem; font-weight: 800; color: var(--muted); flex: none; }
.hifz-chip b { font-family: var(--font-head); font-size: .92rem; display: block; color: var(--heading); }
.hifz-chip small { color: var(--muted); font-size: .75rem; }
.hifz-chip.is-on { border-color: var(--success); background: color-mix(in srgb, var(--surface) 86%, var(--success)); }
.hifz-chip.is-on .hc-n { background: var(--success); color: #fff; }
@media print { .site-header, .site-footer, .mini-player, .to-top, .kh-builder-wrap, .section-alt, .page-hero, #khMore, .section-head button { display: none !important; } .reveal { opacity: 1 !important; transform: none !important; } }
.juz-wrap .juz-card { padding-bottom: 40px; height: 100%; }
