/**
 * /public_html/muhaffiz/assets/css/muhaffiz.css
 * تنسيقات المُحفِّظ الذاتي
 */

:root {
  --mh-bg: #071f1a;
  --mh-bg-2: #0b2d25;
  --mh-card: rgba(255, 255, 255, 0.06);
  --mh-card-2: rgba(255, 255, 255, 0.09);
  --mh-border: rgba(212, 175, 55, 0.26);
  --mh-gold: #d4af37;
  --mh-gold-2: #f2d778;
  --mh-green: #1f7a5a;
  --mh-green-2: #18a574;
  --mh-text: #f7f2df;
  --mh-muted: #b9c8bd;
  --mh-danger: #e45b5b;
  --mh-radius: 22px;
  --mh-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Alexandria', system-ui, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(212,175,55,.16), transparent 30%),
    radial-gradient(circle at bottom left, rgba(24,165,116,.16), transparent 34%),
    linear-gradient(135deg, var(--mh-bg), var(--mh-bg-2));
  color: var(--mh-text);
  direction: rtl;
}

a {
  color: inherit;
  text-decoration: none;
}

.mh-page {
  min-height: 100vh;
  padding: 20px;
}

.mh-topbar {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid var(--mh-border);
  border-radius: 24px;
  background: rgba(5, 24, 20, 0.72);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--mh-shadow);
}

.mh-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.mh-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--mh-gold), var(--mh-gold-2));
  color: #09221b;
  font-weight: 800;
  font-size: 22px;
}

.mh-brand strong {
  display: block;
  font-size: 16px;
  color: var(--mh-text);
}

.mh-brand small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--mh-muted);
}

.mh-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mh-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--mh-muted);
  font-size: 13px;
  transition: 0.2s ease;
}

.mh-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--mh-text);
}

.mh-nav .mh-nav-main {
  color: #08231b;
  background: linear-gradient(135deg, var(--mh-gold), var(--mh-gold-2));
  font-weight: 700;
}

.mh-hero {
  width: min(1180px, 100%);
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 24px;
  align-items: stretch;
}

.mh-hero-content,
.mh-hero-card {
  border: 1px solid var(--mh-border);
  border-radius: 32px;
  background: rgba(5, 24, 20, 0.62);
  backdrop-filter: blur(14px);
  box-shadow: var(--mh-shadow);
}

.mh-hero-content {
  padding: clamp(28px, 5vw, 56px);
}

.mh-badge {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  background: rgba(212, 175, 55, 0.12);
  color: var(--mh-gold-2);
  font-size: 13px;
  margin-bottom: 22px;
}

.mh-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.35;
  color: var(--mh-text);
  letter-spacing: -1px;
}

.mh-hero p {
  margin: 20px 0 0;
  color: var(--mh-muted);
  font-size: 16px;
  line-height: 2.1;
  max-width: 680px;
}

.mh-welcome {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(24,165,116,.3);
  background: rgba(24,165,116,.11);
  color: #c9f5df;
  width: fit-content;
}

.mh-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.mh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
  transition: 0.22s ease;
}

.mh-btn:hover {
  transform: translateY(-2px);
}

.mh-btn-primary {
  color: #08231b;
  background: linear-gradient(135deg, var(--mh-gold), var(--mh-gold-2));
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.22);
}

.mh-btn-soft {
  color: var(--mh-text);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
}

.mh-note {
  margin-top: 26px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  color: var(--mh-muted);
  line-height: 1.9;
  font-size: 13px;
}

.mh-hero-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  display: grid;
  align-content: center;
  gap: 14px;
}

.mh-card-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.16);
  filter: blur(20px);
  top: -90px;
  left: -80px;
  pointer-events: none;
}

.mh-feature {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.06);
}

.mh-feature span {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,175,55,.12);
  font-size: 22px;
  flex: 0 0 auto;
}

.mh-feature strong {
  display: block;
  color: var(--mh-text);
  font-size: 15px;
}

.mh-feature p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.8;
}

@media (max-width: 820px) {
  .mh-page {
    padding: 12px;
  }

  .mh-topbar {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 20px;
  }

  .mh-nav {
    width: 100%;
  }

  .mh-nav a {
    flex: 1;
    text-align: center;
  }

  .mh-hero {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .mh-hero-content,
  .mh-hero-card {
    border-radius: 24px;
  }

  .mh-actions .mh-btn {
    width: 100%;
  }
}

/* ============================================================
   AUTH PAGES
   ============================================================ */

.mh-auth-wrap {
  width: min(760px, 100%);
  margin: 32px auto 0;
}

.mh-auth-card {
  border: 1px solid var(--mh-border);
  border-radius: 30px;
  background: rgba(5, 24, 20, 0.68);
  backdrop-filter: blur(14px);
  box-shadow: var(--mh-shadow);
  padding: clamp(22px, 4vw, 38px);
}

.mh-auth-head {
  margin-bottom: 24px;
}

.mh-auth-head h1 {
  margin: 0;
  color: var(--mh-text);
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.5;
}

.mh-auth-head p {
  margin: 12px 0 0;
  color: var(--mh-muted);
  font-size: 14px;
  line-height: 2;
}

.mh-form {
  display: grid;
  gap: 16px;
}

.mh-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mh-form-group {
  display: grid;
  gap: 8px;
}

.mh-form-group label {
  color: var(--mh-muted);
  font-size: 13px;
}

.mh-form-group label span {
  color: var(--mh-gold-2);
}

.mh-form-group input,
.mh-form-group select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--mh-text);
  font-family: 'Alexandria', system-ui, sans-serif;
  font-size: 14px;
  padding: 0 14px;
  outline: none;
  transition: 0.2s ease;
}

.mh-form-group select {
  cursor: pointer;
}

.mh-form-group input::placeholder {
  color: rgba(247, 242, 223, 0.42);
}

.mh-form-group input:focus,
.mh-form-group select:focus {
  border-color: var(--mh-gold);
  background: rgba(255, 255, 255, 0.1);
}

.mh-btn-block {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-family: 'Alexandria', system-ui, sans-serif;
  margin-top: 4px;
}

.mh-alert {
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.9;
}

.mh-alert-danger {
  border: 1px solid rgba(228, 91, 91, 0.35);
  background: rgba(228, 91, 91, 0.12);
  color: #ffc5c5;
}

.mh-alert-success {
  border: 1px solid rgba(24, 165, 116, 0.35);
  background: rgba(24, 165, 116, 0.12);
  color: #c9f5df;
}

.mh-auth-foot {
  color: var(--mh-muted);
  font-size: 13px;
  text-align: center;
  margin-top: 4px;
}

.mh-auth-foot a {
  color: var(--mh-gold-2);
  font-weight: 700;
}

@media (max-width: 700px) {
  .mh-auth-wrap {
    margin-top: 18px;
  }

  .mh-form-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   FIX AUTH FORM LAYOUT
   ============================================================ */

.mh-auth-wrap {
  width: min(760px, calc(100% - 24px));
  margin: 34px auto 0;
  display: flex;
  justify-content: center;
}

.mh-auth-card {
  width: 100%;
  border: 1px solid var(--mh-border);
  border-radius: 30px;
  background: rgba(5, 24, 20, 0.74);
  backdrop-filter: blur(14px);
  box-shadow: var(--mh-shadow);
  padding: clamp(22px, 4vw, 40px);
}

.mh-auth-head {
  text-align: center;
  margin-bottom: 26px;
}

.mh-auth-head .mh-badge {
  margin-inline: auto;
}

.mh-auth-head h1 {
  margin: 12px 0 0;
  color: var(--mh-text);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.5;
}

.mh-auth-head p {
  margin: 12px auto 0;
  max-width: 620px;
  color: var(--mh-muted);
  font-size: 14px;
  line-height: 2;
}

.mh-form {
  width: 100%;
  display: grid;
  gap: 16px;
}

.mh-form-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mh-form-group {
  width: 100%;
  display: grid;
  gap: 8px;
}

.mh-form-group label {
  display: block;
  color: var(--mh-muted);
  font-size: 13px;
  font-weight: 500;
}

.mh-form-group label span {
  color: var(--mh-gold-2);
}

.mh-form-group input,
.mh-form-group select {
  width: 100% !important;
  height: 50px;
  min-height: 50px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--mh-text);
  font-family: 'Alexandria', system-ui, sans-serif;
  font-size: 14px;
  padding: 0 15px;
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  transition: 0.2s ease;
}

.mh-form-group select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--mh-gold-2) 50%),
    linear-gradient(135deg, var(--mh-gold-2) 50%, transparent 50%);
  background-position:
    left 18px center,
    left 12px center;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-left: 36px;
}

.mh-form-group input::placeholder {
  color: rgba(247, 242, 223, 0.45);
}

.mh-form-group input:focus,
.mh-form-group select:focus {
  border-color: var(--mh-gold);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.10);
}

.mh-btn-block {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-family: 'Alexandria', system-ui, sans-serif;
  margin-top: 6px;
}

.mh-alert {
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.9;
}

.mh-alert-danger {
  border: 1px solid rgba(228, 91, 91, 0.35);
  background: rgba(228, 91, 91, 0.12);
  color: #ffc5c5;
}

.mh-alert-success {
  border: 1px solid rgba(24, 165, 116, 0.35);
  background: rgba(24, 165, 116, 0.12);
  color: #c9f5df;
}

.mh-auth-foot {
  color: var(--mh-muted);
  font-size: 13px;
  text-align: center;
  margin-top: 4px;
}

.mh-auth-foot a {
  color: var(--mh-gold-2);
  font-weight: 700;
}

@media (max-width: 700px) {
  .mh-auth-wrap {
    width: min(100%, calc(100% - 16px));
    margin-top: 18px;
  }

  .mh-auth-card {
    border-radius: 24px;
    padding: 20px;
  }

  .mh-form-grid {
    grid-template-columns: 1fr;
  }

  .mh-form-group input,
  .mh-form-group select {
    height: 48px;
    min-height: 48px;
  }
}

/* ============================================================
   DASHBOARD
   ============================================================ */

.mh-dashboard {
  width: min(1180px, 100%);
  margin: 32px auto 0;
}

.mh-dash-head {
  border: 1px solid var(--mh-border);
  border-radius: 30px;
  background: rgba(5, 24, 20, 0.68);
  backdrop-filter: blur(14px);
  box-shadow: var(--mh-shadow);
  padding: clamp(22px, 4vw, 38px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.mh-dash-head h1 {
  margin: 12px 0 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.5;
}

.mh-dash-head p {
  margin: 10px 0 0;
  color: var(--mh-muted);
  line-height: 2;
  font-size: 14px;
  max-width: 720px;
}

.mh-stats-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mh-stat-box {
  border: 1px solid var(--mh-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  padding: 20px;
  min-height: 120px;
  display: grid;
  align-content: center;
  gap: 10px;
}

.mh-stat-box span {
  color: var(--mh-muted);
  font-size: 13px;
}

.mh-stat-box strong {
  color: var(--mh-gold-2);
  font-size: 30px;
  line-height: 1;
}

.mh-dash-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.mh-panel {
  border: 1px solid var(--mh-border);
  border-radius: 28px;
  background: rgba(5, 24, 20, 0.64);
  backdrop-filter: blur(14px);
  box-shadow: var(--mh-shadow);
  padding: 22px;
}

.mh-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.mh-panel-head h2 {
  margin: 0;
  font-size: 18px;
  color: var(--mh-text);
}

.mh-panel-head span {
  color: var(--mh-muted);
  font-size: 12px;
}

.mh-empty {
  border: 1px dashed rgba(212, 175, 55, 0.25);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  color: var(--mh-muted);
  line-height: 2;
  background: rgba(255, 255, 255, 0.04);
}

.mh-session-list {
  display: grid;
  gap: 10px;
}

.mh-session-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,.055);
}

.mh-session-item strong {
  display: block;
  color: var(--mh-text);
  font-size: 14px;
}

.mh-session-item small {
  display: block;
  color: var(--mh-muted);
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.8;
}

.mh-session-score {
  width: 74px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  direction: ltr;
}

.mh-session-score.good {
  color: #c9f5df;
  background: rgba(24, 165, 116, 0.15);
  border: 1px solid rgba(24, 165, 116, 0.32);
}

.mh-session-score.mid {
  color: var(--mh-gold-2);
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.32);
}

.mh-session-score.low {
  color: #ffc5c5;
  background: rgba(228, 91, 91, 0.14);
  border: 1px solid rgba(228, 91, 91, 0.32);
}

.mh-mistake-tags {
  display: grid;
  gap: 10px;
}

.mh-mistake-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 13px 14px;
  background: rgba(255,255,255,.055);
}

.mh-mistake-tag strong {
  color: var(--mh-gold-2);
  font-size: 18px;
  font-weight: 600;
}

.mh-mistake-tag span {
  color: var(--mh-muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .mh-dash-head {
    align-items: stretch;
    flex-direction: column;
  }

  .mh-dash-head .mh-btn {
    width: 100%;
  }

  .mh-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mh-dash-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .mh-stats-grid {
    grid-template-columns: 1fr;
  }

  .mh-session-item {
    align-items: stretch;
    flex-direction: column;
  }

  .mh-session-score {
    width: 100%;
  }
}

/* ============================================================
   RECITATION SESSION
   ============================================================ */

.mh-session-wrap {
  width: min(1180px, 100%);
  margin: 32px auto 0;
}

.mh-session-head {
  border: 1px solid var(--mh-border);
  border-radius: 30px;
  background: rgba(5, 24, 20, 0.68);
  backdrop-filter: blur(14px);
  box-shadow: var(--mh-shadow);
  padding: clamp(22px, 4vw, 36px);
  margin-bottom: 18px;
}

.mh-session-head h1 {
  margin: 12px 0 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.5;
}

.mh-session-head p {
  margin: 10px 0 0;
  color: var(--mh-muted);
  line-height: 2;
  max-width: 820px;
}

.mh-session-card,
.mh-recitation-panel,
.mh-report-panel {
  border: 1px solid var(--mh-border);
  border-radius: 30px;
  background: rgba(5, 24, 20, 0.68);
  backdrop-filter: blur(14px);
  box-shadow: var(--mh-shadow);
  padding: clamp(20px, 4vw, 32px);
}

.mh-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.mh-section-title.center {
  display: grid;
  text-align: center;
  justify-content: center;
}

.mh-section-title h2 {
  margin: 0;
  font-size: 22px;
}

.mh-section-title span {
  color: var(--mh-muted);
  font-size: 13px;
}

.mh-progress {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.mh-progress div {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mh-gold), var(--mh-gold-2));
  transition: width 0.35s ease;
}

.mh-live-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.mh-live-stats > div {
  border: 1px solid rgba(212, 175, 55, 0.20);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  padding: 16px;
  text-align: center;
}

.mh-live-stats span {
  display: block;
  color: var(--mh-muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.mh-live-stats strong {
  display: block;
  color: var(--mh-gold-2);
  font-size: 24px;
}

.mh-mushaf-card {
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 26px;
  background:
    radial-gradient(circle at top, rgba(212,175,55,.08), transparent 32%),
    rgba(255, 255, 255, 0.045);
  padding: clamp(18px, 4vw, 32px);
  margin-bottom: 16px;
}

.mh-sura-title {
  text-align: center;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.20);
}

.mh-sura-title h2 {
  margin: 0;
  color: var(--mh-gold-2);
  font-size: 28px;
  font-weight: 700;
}

.mh-sura-title div {
  font-family: 'UthmanicHafs', 'Alexandria', sans-serif;
  font-size: 26px;
  margin-top: 12px;
  line-height: 2;
}

.mh-verses-area {
  font-family: 'UthmanicHafs', 'Alexandria', sans-serif;
  font-size: 30px;
  line-height: 3.2;
  text-align: justify;
  direction: rtl;
}

.mh-aya-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--mh-gold-2);
  font-family: 'Alexandria', sans-serif;
  font-size: 12px;
  margin: 0 6px;
  vertical-align: middle;
}

.mh-word {
  display: inline;
  padding: 0 3px;
  border-radius: 8px;
  transition: 0.25s ease;
}

.mh-word.hidden {
  color: transparent;
  background: rgba(255, 255, 255, 0.06);
  user-select: none;
}

.mh-word.revealed {
  color: var(--mh-text);
  background: transparent;
}

.mh-word.correct {
  color: #8ff0bc;
}

.mh-word.error {
  color: #ff9c9c;
  text-decoration: underline wavy #ff9c9c;
}

.mh-transcript {
  min-height: 50px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 18px;
  background: rgba(212, 175, 55, 0.08);
  color: var(--mh-gold-2);
  font-family: 'UthmanicHafs', 'Alexandria', sans-serif;
  font-size: 22px;
  line-height: 1.8;
  text-align: center;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.mh-error-detail {
  border: 1px solid rgba(228, 91, 91, 0.35);
  border-radius: 22px;
  background: rgba(228, 91, 91, 0.10);
  padding: 18px;
  margin-bottom: 14px;
}

.mh-error-title {
  color: #ffc5c5;
  font-size: 13px;
  margin-bottom: 14px;
}

.mh-error-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.mh-error-compare small {
  display: block;
  color: var(--mh-muted);
  font-size: 11px;
  margin-bottom: 8px;
}

.mh-error-compare strong {
  display: inline-flex;
  min-width: 120px;
  justify-content: center;
  border-radius: 16px;
  padding: 12px 16px;
  background: rgba(255,255,255,.08);
  color: var(--mh-text);
  font-family: 'UthmanicHafs', 'Alexandria', sans-serif;
  font-size: 26px;
  font-weight: 400;
}

.mh-error-detail p {
  margin: 14px 0 6px;
  color: var(--mh-gold-2);
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
}

#edAttempts {
  color: var(--mh-muted);
  text-align: center;
  font-size: 12px;
}

.mh-audio-box {
  border: 1px solid rgba(24, 165, 116, 0.35);
  border-radius: 20px;
  background: rgba(24, 165, 116, 0.10);
  padding: 15px;
  margin-bottom: 14px;
}

.mh-audio-box > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c9f5df;
  margin-bottom: 10px;
}

.mh-audio-progress {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.12);
}

.mh-audio-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: #8ff0bc;
  transition: width 0.25s linear;
}

.mh-status-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  padding: 14px;
  margin-bottom: 14px;
}

.mh-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--mh-muted);
  flex: 0 0 auto;
}

.mh-status-dot.listening {
  background: #8ff0bc;
  box-shadow: 0 0 0 6px rgba(143,240,188,.12);
  animation: mhPulse 1.2s infinite;
}

.mh-status-dot.paused {
  background: var(--mh-gold-2);
}

@keyframes mhPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

.mh-status-bar strong {
  color: var(--mh-muted);
  font-size: 13px;
  font-weight: 500;
}

.mh-session-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mh-btn-danger {
  color: #ffc5c5;
  border: 1px solid rgba(228, 91, 91, 0.35);
  background: rgba(228, 91, 91, 0.12);
}

.mh-score-ring {
  width: 138px;
  height: 138px;
  border-radius: 999px;
  margin: 0 auto 22px;
  border: 4px solid var(--mh-gold);
  background: rgba(212,175,55,.10);
  display: grid;
  place-content: center;
  text-align: center;
}

.mh-score-ring strong {
  font-size: 32px;
  direction: ltr;
}

.mh-score-ring span {
  color: var(--mh-muted);
  font-size: 12px;
}

.mh-score-ring.good {
  border-color: #8ff0bc;
  background: rgba(24,165,116,.14);
}

.mh-score-ring.mid {
  border-color: var(--mh-gold);
}

.mh-score-ring.low {
  border-color: #ff9c9c;
  background: rgba(228,91,91,.12);
}

.mh-mistake-list {
  display: grid;
  gap: 10px;
}

.mh-mistake-row {
  display: grid;
  grid-template-columns: 70px 1fr 24px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  padding: 12px;
}

.mh-mistake-row span,
.mh-mistake-row em {
  color: var(--mh-muted);
  font-style: normal;
  font-size: 12px;
}

.mh-mistake-row strong {
  font-family: 'UthmanicHafs', 'Alexandria', sans-serif;
  color: #ffb0b0;
  font-weight: 400;
  font-size: 22px;
}

.mh-mistake-row strong.right {
  color: #8ff0bc;
}

@media (max-width: 820px) {
  .mh-live-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .mh-section-title {
    display: grid;
  }

  .mh-session-actions {
    display: grid;
  }

  .mh-session-actions .mh-btn {
    width: 100%;
  }

  .mh-verses-area {
    font-size: 25px;
    line-height: 3;
  }

  .mh-error-compare {
    gap: 8px;
  }

  .mh-error-compare strong {
    min-width: 90px;
    font-size: 22px;
  }

  .mh-mistake-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .mh-live-stats {
    grid-template-columns: 1fr;
  }

  .mh-mushaf-card {
    padding: 16px;
  }

  .mh-verses-area {
    font-size: 22px;
  }
}

/* ============================================================
   FIX SELECT DROPDOWN COLORS
   ============================================================ */

.mh-form-group select {
  color: var(--mh-text) !important;
  background-color: rgba(255, 255, 255, 0.075) !important;
}

.mh-form-group select option {
  background-color: #0b2d25 !important;
  color: #f7f2df !important;
  font-family: 'Alexandria', system-ui, sans-serif;
  font-size: 15px;
  padding: 10px;
}

.mh-form-group select option:checked {
  background-color: #d4af37 !important;
  color: #071f1a !important;
}

.mh-form-group select option:hover {
  background-color: #1f7a5a !important;
  color: #ffffff !important;
}

/* إصلاح سهم القائمة حتى لا يظهر بشكل غريب */
.mh-form-group select {
  appearance: auto !important;
  -webkit-appearance: auto !important;
  padding-left: 14px !important;
  padding-right: 15px !important;
  background-image: none !important;
}