/* =========================================================
   المصحف: عرض الآيات والخطوط والتحديد
   ========================================================= */
.mushaf {
  font-family: var(--font-quran);
  font-size: 25px;
  line-height: 2.5;
  text-align: justify;
  direction: rtl;
}
.ayah {
  cursor: pointer;
  border-radius: 6px;
  padding: 1px 3px;
  transition: background 0.15s;
}
.ayah:hover { background: var(--brand-soft); }
.ayah.memorized { background: color-mix(in srgb, var(--ok) 14%, transparent); }
.ayah.mastered { background: color-mix(in srgb, var(--gold) 20%, transparent); }
.ayah.sel { outline: 2px solid var(--brand); background: var(--brand-soft); }
.ayah-num {
  font-family: var(--font);
  font-size: 13px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 50%;
  padding: 1px 6px;
  margin: 0 3px;
  vertical-align: middle;
  white-space: nowrap;
}
.basmala {
  font-family: var(--font-quran);
  text-align: center;
  font-size: 24px;
  margin: 6px 0 14px;
  color: var(--text-soft);
}

/* شريط تبويبات */
.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  padding-bottom: 0;
}
.tabs button {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-soft);
  cursor: pointer;
  white-space: nowrap;
}
.tabs button:hover { color: var(--text); }
.tabs button.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* خريطة تقدّم السور */
.surah-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 6px;
}
.surah-cell {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 7px 8px;
  font-size: 12.5px;
  cursor: pointer;
  background: var(--card-2);
  position: relative;
  overflow: hidden;
}
.surah-cell:hover { border-color: var(--brand); }
.surah-cell > .fill {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  background: color-mix(in srgb, var(--ok) 22%, transparent);
  z-index: 0;
}
.surah-cell > .lbl { position: relative; z-index: 1; font-weight: 700; }
.surah-cell > .sub { position: relative; z-index: 1; color: var(--text-dim); font-size: 11px; }
