:root {
  --card: #ffffff;
  --primary: #1fae7a;
  --primary-dark: #177f5e;
  --text: #16382f;
  --muted: #6a7d74;
  --line: #e7efe9;
  --shadow: 0 16px 36px rgba(20, 45, 38, 0.08);
  --navbar-height: 56px;
}

html, body {
  direction: rtl;
  text-align: right;
  height: 100%;
  margin: 0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: linear-gradient(180deg, #f1f7f4 0%, #f8faf8 100%);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

/* هيكل #app و.view و.page و.page-content معرَّف في main_layout.php */

.page {
  background: transparent;
}

.page-content {
  padding: 40px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  display: block;
  min-height: calc(100vh - var(--navbar-height));
  padding:
    calc(var(--navbar-height) + 20px) 16px
    calc(72px + env(safe-area-inset-bottom));
}

.login-card {
  width: min(100%, 420px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px 18px 18px;
}

.login-header {
  margin-bottom: 20px;
}

.login-badge {
  display: inline-block;
  background: rgba(31, 174, 122, 0.1);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.login-header h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.2;
  color: var(--text);
}

.login-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-top: 6px;
}

.input-wrap {
  width: 100%;
}

.select-wrap select,
.phone-wrap input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0 36px;
  font-size: 16px;
  color: var(--text);
  outline: none;
}

.phone-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  direction: rtl;
}

.country-code {
  order: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 52px;
  background: #f7fbf8;
  border-right: 1px solid var(--line);
  border-left: none;
  color: var(--text);
  font-weight: 700;
  padding: 0 10px;
}

.phone-wrap input {
  order: 1;
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 14px 0 12px;
  height: 52px;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #5d7269 50%), linear-gradient(135deg, #5d7269 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-message {
  min-height: 20px;
  font-size: 13px;
  font-weight: 600;
  display: none;
  margin-top: 2px;
}

.form-message.error {
  display: block;
  color: #c0392b;
}

.form-message.success {
  display: block;
  color: #1d7d51;
}

.login-btn {
  margin-top: 8px;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(31, 174, 122, 0.22);
}

.login-btn:hover {
  filter: brightness(1.03);
}

.sent-code {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #eaf7f0;
  color: var(--primary-dark);
  font-weight: 800;
  text-align: center;
}

.sent-code[hidden] {
  display: none;
}

@media (max-width: 420px) {
  .login-card {
    margin-top: 18px;
    border-radius: 20px;
  }
}

#customCountryCode {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 16px;
  direction: ltr;
  text-align: left;
}

#customCountryCode[hidden] {
  display: none;
}

.code-entry {
  margin-top: 12px;
}

.code-entry input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 8px;
  text-align: center;
  direction: ltr;
}

.code-entry[hidden] {
  display: none;
}

.landing {
  width: 100%;
  max-width: 1120px;
  flex: 1 1 100%;
  align-self: stretch;
  margin-inline: auto;
  color: #233b35;
}

.landing-hero {
  min-height: 330px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid #e6eee8;
  border-radius: 30px;
  background: linear-gradient(115deg, #f3f8f2 0%, #e8f4ec 54%, #edf0fa 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 570px;
}

.eyebrow {
  display: inline-block;
  color: #54806d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2px;
}

.hero-copy h1 {
  margin: 14px 0 12px;
  color: #1d3d33;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.25;
}

.hero-copy h1 span {
  color: #57977a;
}

.hero-copy p,
.landing-section-heading > p,
.path-card p,
.learning-note p {
  color: #687b72;
  line-height: 1.9;
}

.hero-copy p {
  max-width: 490px;
  margin: 0 0 22px;
  font-size: 16px;
}

.landing-button,
.note-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
}

.landing-button {
  padding: 13px 20px;
  border-radius: 14px;
  background: #347b61;
  color: #fff;
  box-shadow: 0 8px 20px #347b6126;
}

.landing-button:hover {
  background: #28664f;
}

.hero-art {
  position: relative;
  width: 270px;
  height: 230px;
  margin-inline-start: 24px;
  flex: 0 0 270px;
  display: grid;
  place-items: center;
}

.art-orbit {
  position: absolute;
  border: 1px solid #a9cbb7;
  border-radius: 50%;
  transform: rotate(-20deg);
}

.orbit-one {
  width: 220px;
  height: 150px;
}

.orbit-two {
  width: 170px;
  height: 220px;
  border-color: #c5bfe0;
  transform: rotate(35deg);
}

.art-book {
  z-index: 1;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border-radius: 34px;
  background: #fff;
  font-size: 57px;
  box-shadow: 0 18px 44px #354a3c20;
  transform: rotate(-7deg);
}

.art-star {
  position: absolute;
  color: #bd9852;
  font-size: 30px;
}

.star-one { top: 20px; right: 24px; }
.star-two { bottom: 24px; left: 18px; }

.art-dot {
  position: absolute;
  top: 38px;
  left: 38px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #90b8a0;
}

.hero-decoration {
  position: absolute;
  left: 28px;
  bottom: 20px;
  color: #789381;
  font-size: 13px;
  opacity: .8;
}

.landing-section {
  padding: 54px 0 42px;
  scroll-margin-top: 20px;
}

.landing-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}

.landing-section-heading h2,
.learning-note h2 {
  margin: 8px 0 0;
  color: #244238;
  font-size: clamp(22px, 3vw, 30px);
}

.landing-section-heading > p {
  max-width: 330px;
  margin: 0;
  font-size: 14px;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.path-card {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid #e8ece8;
  border-radius: 22px;
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.path-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px #293e3314;
}

.path-mint { background: #f0f7f1; }
.path-lilac { background: #f4f1f8; }
.path-peach { background: #fbf3eb; }
.path-blue { background: #eef4f7; }

.path-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: #ffffffbd;
  font-size: 25px;
}

.path-tag {
  margin-top: 15px;
  color: #71847a;
  font-size: 11px;
  font-weight: 700;
}

.path-card h3 {
  margin: 7px 0 3px;
  color: #29473b;
  font-size: 18px;
}

.path-card p {
  margin: 0 0 14px;
  font-size: 13px;
}

.path-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #39765e;
  font-size: 13px;
  font-weight: 700;
}

.learning-note {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding: 24px 28px;
  border: 1px solid #e9e9df;
  border-radius: 22px;
  background: #f8f7ef;
}

.note-icon {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  border-radius: 17px;
  background: #fff;
  font-size: 25px;
}

.learning-note h2 {
  font-size: 21px;
}

.learning-note p {
  margin: 6px 0 0;
  font-size: 13px;
}

.note-link {
  margin-inline-start: auto;
  white-space: nowrap;
  color: #39765e;
}

@media (max-width: 850px) {
  .path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-art { width: 210px; flex-basis: 210px; }
}

@media (max-width: 600px) {
  .landing-hero {
    min-height: 0;
    padding: 28px 22px;
    border-radius: 24px;
  }

  .hero-art {
    position: absolute;
    left: -75px;
    bottom: -50px;
    opacity: .22;
    pointer-events: none;
  }

  .hero-copy { max-width: 100%; }
  .hero-copy p { font-size: 14px; }
  .hero-decoration { display: none; }

  .landing-section { padding: 38px 0 30px; }
  .landing-section-heading { display: block; }
  .landing-section-heading > p { margin-top: 8px; }

  .path-grid { gap: 10px; }
  .path-card { min-height: 230px; padding: 15px; }
  .path-card h3 { font-size: 16px; }
  .path-card p { font-size: 12px; }

  .learning-note {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 20px;
  }

  .learning-note > div:nth-child(2) { flex: 1; }
  .note-link { margin-inline-start: 74px; }
}

.page-content {
  display: block;
  min-height: calc(100vh - var(--navbar-height));
  padding: calc(var(--navbar-height) + 20px) 16px
    calc(72px + env(safe-area-inset-bottom));
}

.page-content:has(.login-card) {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
}

.page-content:has(.login-card) .login-card {
  margin-block: 0 24px;
}

@media (min-width: 768px) {
  .page-content:has(.login-card) {
    align-items: center;
  }

  .page-content:has(.login-card) .login-card {
    width: min(100%, 460px);
    margin: auto;
  }
}

.profile-card {
  width: min(100%, 680px);
  margin: 0 auto 24px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.profile-header {
  margin-bottom: 24px;
}

.profile-header h1 {
  margin: 8px 0;
  color: var(--text);
  font-size: clamp(24px, 4vw, 32px);
}

.profile-header p,
.profile-note {
  color: var(--muted);
  line-height: 1.7;
}

.profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
}

.profile-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.profile-form input,
.profile-form select {
  width: 100%;
  height: 52px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 400;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.profile-form input:focus,
.profile-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 174, 122, .12);
}

.profile-note {
  margin: 20px 0 0;
  font-size: 13px;
}

.country-select-wrap {
  display: grid;
  gap: 8px;
}

.country-search {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
}

.country-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 174, 122, .12);
}

.profile-submit {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(31, 174, 122, 0.18);
}

.profile-submit:hover {
  filter: brightness(1.04);
}

.profile-alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.profile-alert.success {
  background: #eaf7f0;
  color: #1d7d51;
}

.profile-alert.error {
  background: #fff0ef;
  color: #a93226;
}

.admin-categories {
  width: min(100%, 900px);
  margin: 0 auto 28px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.admin-categories__header h1 {
  margin: 8px 0;
  color: var(--text);
}

.admin-categories__header p,
.category-empty {
  color: var(--muted);
}

.category-create,
.category-list {
  margin-top: 24px;
}

.category-create label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.category-create__controls,
.category-edit,
.category-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-create__controls input,
.category-edit input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.category-create__controls .profile-submit {
  width: auto;
  min-height: 48px;
  margin: 0;
  padding: 0 18px;
}

.category-list h2 {
  color: var(--text);
  font-size: 19px;
}

.category-item {
  justify-content: space-between;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdfb;
}

.category-edit {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.category-edit input {
  width: 100%;
  min-width: 0;
}

.category-button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: #eaf4ee;
  color: var(--primary-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.category-button--delete {
  background: #fff0ef;
  color: #a93226;
}

.category-button--edit {
  background: #fff4cc;
  color: #806000;
}

.category-button--edit:hover {
  background: #ffebad;
}

.category-notice {
  padding: 12px 14px;
  border-radius: 12px;
}

.category-notice.success {
  background: #eaf7f0;
  color: #1d7d51;
}

.category-notice.error {
  background: #fff0ef;
  color: #a93226;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.sheikh-image {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: #f1f7f4;
  color: var(--muted);
  font-size: 12px;
}

.sheikh-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheikh-list .category-edit {
  flex-wrap: wrap;
}

.sheikh-list input[type="file"] {
  max-width: 100%;
}

.sheikh-list .category-edit {
  grid-template-columns: minmax(0, 1fr);
}

.sheikh-list .category-edit > button {
  width: 100%;
}

@media (max-width: 600px) {
  .category-create__controls input {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .category-create__controls,
  .category-item {
    align-items: stretch;
    flex-direction: column;
  }

  .category-create__controls .profile-submit {
    width: 100%;
  }

  .category-item > form:last-child,
  .category-button--delete {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .profile-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .sheikh-image {
    align-self: center;
  }
}

.category-create select,
.category-course-edit select {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.category-course-edit {
  grid-template-columns: minmax(0, 1fr);
}

.category-course-edit select,
.category-course-edit > button {
  grid-column: 1;
  width: 100%;
}

.category-create input[type="number"],
.category-course-edit input[type="number"] {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.course-order-form {
  display: grid;
  gap: 12px;
}

.course-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfb;
}

.course-order-row input {
  width: 100%;
  height: 46px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  text-align: center;
}

.course-order-form .profile-submit {
  margin-top: 8px;
}

@media (max-width: 480px) {
  .course-order-row {
    grid-template-columns: minmax(0, 1fr) 72px;
  }
}

.quiz-question-edit {
  display: grid;
  gap: 14px;
  width: 100%;
}

.quiz-question-edit > form {
  margin: 0;
}

.quiz-question-edit .profile-submit {
  margin-top: 0;
  background: #fff4cc;
  color: #806000;
  box-shadow: none;
}

.quiz-question-edit .profile-submit:hover {
  background: #ffebad;
  filter: none;
}

.quiz-question-edit .category-button--delete {
  min-height: 48px;
}

.daily-dashboard {
  width: min(100%, 980px);
  margin: 0 auto 32px;
  color: var(--text);
}

.daily-welcome {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid #dfece4;
  border-radius: 28px;
  background: linear-gradient(125deg, #eaf6ee, #f1eff9 68%, #faf2e5);
  box-shadow: 0 16px 36px rgba(38, 72, 54, .08);
}

.daily-welcome::after {
  content: "✦";
  position: absolute;
  z-index: -1;
  left: 7%;
  top: 8%;
  color: #d7bd75;
  font-size: clamp(72px, 12vw, 130px);
  opacity: .35;
  transform: rotate(12deg);
}

.daily-welcome h1 {
  margin: 12px 0;
  color: #234537;
  font-size: clamp(30px, 5vw, 46px);
}

.daily-welcome p {
  max-width: 600px;
  margin: 0;
  color: #687b72;
  line-height: 1.9;
}

.daily-card {
  position: relative;
  overflow: hidden;
  margin-top: 26px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid #e1ece5;
  border-radius: 26px;
  background: linear-gradient(145deg, #fff 5%, #f0f8f2 65%, #f4f0fa);
  box-shadow: 0 18px 42px rgba(38, 72, 54, .09);
}

.daily-card::before {
  content: "☼";
  position: absolute;
  left: 20px;
  bottom: -34px;
  color: #e4d59e;
  font-size: 130px;
  opacity: .2;
  pointer-events: none;
}

.daily-card > * {
  position: relative;
}

.daily-card h2 {
  margin: 12px 0 20px;
  color: #29473b;
  font-size: clamp(24px, 4vw, 32px);
}

.daily-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid #d8eadf;
  border-radius: 999px;
  background: #eaf6ee;
  color: #39765e;
  font-size: 13px;
  font-weight: 800;
}

.daily-label::before {
  content: "✦";
  color: #c19b43;
}

.daily-lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.daily-lesson-meta span {
  padding: 9px 13px;
  border: 1px solid rgba(75, 120, 94, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .8);
  color: #536c60;
  font-size: 14px;
}

.daily-audio {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 18px 0 22px;
  accent-color: var(--primary);
}

.daily-complete-button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(115deg, #36a879, #247356);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(36, 115, 86, .2);
  transition: transform .18s ease, box-shadow .18s ease;
}

.daily-complete-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(36, 115, 86, .25);
}

.daily-complete {
  padding: 16px;
  border: 1px solid #d8eadf;
  border-radius: 14px;
  background: #eaf7f0;
  color: #1d7d51;
  font-weight: 700;
  line-height: 1.8;
}

.daily-message {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  line-height: 1.8;
}

.daily-message.success,
.daily-message.info {
  border: 1px solid #d8eadf;
  background: #eaf7f0;
  color: #1d7d51;
}

.daily-message.error {
  border: 1px solid #f0d7d4;
  background: #fff0ef;
  color: #a93226;
}

@media (max-width: 600px) {
  .daily-welcome {
    border-radius: 22px;
  }

  .daily-lesson-meta {
    flex-direction: column;
  }

  .daily-audio {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .daily-complete-button {
    transition: none;
  }
}
/* تنسيقات الاختبار الجديدة */
.quiz-item p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

.quiz-options label:hover {
  background-color: #f9fbf9 !important;
  border-color: var(--primary) !important;
}

.quiz-option-input:checked + span {
  font-weight: 700;
  color: var(--primary-dark);
}

#quizContainer h3 {
  color: var(--text);
  border-right: 4px solid var(--primary);
  padding-right: 10px;
  margin-bottom: 20px;
}

/* خانة وصف الدورة */
.category-create textarea,
.category-course-edit textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 90px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  line-height: 1.7;
  resize: vertical;
  outline: none;
}

.category-create textarea:focus,
.category-course-edit textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 174, 122, .12);
}

.category-course-edit textarea {
  grid-column: 1;
}