/* ============================================================
   دفتر المركز — الصفحة الرئيسية
   Daftar Al-Markaz — Home Page
   ------------------------------------------------------------
   يُحمَّل بعد style.css. الترتيب نفسه في النموذج المعتمد،
   لأن تغيير ترتيب القواعد قد يغيّر الشكل.
   ============================================================ */

/* ============================================================
   1. الصفحة والرأس · Page & Header
   ============================================================ */
html {
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 76px);   /* حتى لا يغطي الرأس الثابت العنوان عند القفز */
  background: var(--surface);
  scroll-behavior: smooth;
}
body { background: var(--surface); overflow-x: hidden; }

/* شريط تقدّم القراءة أعلى الصفحة */
#bar { position: fixed; top: 0; inset-inline-start: 0; height: 3px; z-index: 60; background: var(--primary); width: 0; }

header {
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  display: flex; align-items: center; gap: 22px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) clamp(16px, 4vw, 56px) 10px;
  background: rgba(246, 248, 252, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(27, 42, 107, .07);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.lmark { height: 44px; width: auto; overflow: visible; }
.lword { height: 28px; width: auto; }

nav { display: flex; gap: 4px; margin-inline-start: auto; }
nav a { color: var(--primary-deep); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
nav a:hover { background: rgba(27, 42, 107, .06); }

/* ============================================================
   2. الأزرار · Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 12px;
  font: 700 15px/1 "Cairo", sans-serif; text-decoration: none;
  transition: transform .2s, background .2s;
}
.btn:focus-visible, nav a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.btn-p { background: var(--primary-deep); color: #fff; }
.btn-p:hover { background: var(--primary-deep-hover); transform: translateY(-1px); }
.btn-g { color: var(--primary-deep); background: #fff; box-shadow: inset 0 0 0 1px rgba(27, 42, 107, .2); }
/* أيقونة واتساب داخل الزر: مربّع 18px كالرسم الأصلي حتى لا يتغيّر عرض الزر */
.btn i { width: 18px; height: 18px; display: inline-grid; place-items: center; font-size: 14px; }
header .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* ============================================================
   3. الأقسام · Sections
   ============================================================ */
.sec { position: relative; padding: clamp(72px, 10vw, 120px) clamp(20px, 5vw, 64px); max-width: 1120px; margin: 0 auto; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--primary-dark); margin-bottom: 10px; }
.h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 900; line-height: 1.35; text-wrap: balance; }
.lead { font-size: clamp(16px, 1.7vw, 19px); line-height: 1.85; color: var(--text-muted); margin-top: 12px; max-width: 52ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* الظهور عند التمرير: يبدأ مخفياً وينزلق للأعلى */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.rv.in { opacity: 1; transform: none; }

/* نقاط قسم المعلّم */
.pts { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.pt { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.7; font-weight: 600; }
.pt i {
  width: 28px; height: 28px; flex: none; border-radius: 9px; background: var(--info-bg);
  display: grid; place-items: center; margin-top: 1px;
  font-size: 10px; color: var(--primary-dark);
}

/* ============================================================
   4. إطار الهاتف · Phone Frame
   رسم الهاتف (الحيّ والثابت) يبقى كما في النموذج
   ============================================================ */
.dev {
  position: relative; width: 300px; height: 620px; flex: none; border-radius: 52px; padding: 11px;
  background: linear-gradient(150deg, #4A5272 0%, #161B33 32%, #0B0F22 60%, #3A4263 100%);
  box-shadow: 0 60px 100px -45px rgba(27, 42, 107, .65), 0 0 0 1.5px #5A6386 inset, 0 0 0 3px #0B0F22 inset;
}
.dev .sb { position: absolute; width: 3px; border-radius: 2px; background: #2B3150; }
.dev .s1 { inset-inline-end: -3px; top: 118px; height: 30px; }
.dev .s2 { inset-inline-end: -3px; top: 166px; height: 56px; }
.dev .s3 { inset-inline-end: -3px; top: 232px; height: 56px; }
.dev .s4 { inset-inline-start: -3px; top: 190px; height: 88px; }
.glass { position: relative; height: 100%; border-radius: 42px; overflow: hidden; background: var(--bg-app); display: flex; flex-direction: column; }
.island { position: absolute; top: 11px; left: 50%; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #05070F; z-index: 5; }
.sbar {
  direction: ltr; display: flex; justify-content: space-between; align-items: center;
  height: 48px; padding: 6px 26px 0 30px; background: var(--primary-deep); color: #fff;
  font: 700 13.5px/1 -apple-system, "Cairo", sans-serif;
}
.sbar .sic { display: flex; align-items: center; gap: 5px; }
.sbar svg { height: 10px; width: auto; fill: #fff; }
.bat { position: relative; width: 22px; height: 11px; border-radius: 3.5px; border: 1.2px solid rgba(255, 255, 255, .55); padding: 1.3px; }
.bat i { display: block; height: 100%; width: 78%; border-radius: 1.5px; background: #fff; }
.bat::after { content: ""; position: absolute; right: -3.5px; top: 3px; width: 1.6px; height: 4px; border-radius: 1px; background: rgba(255, 255, 255, .55); }
.ahead { background: var(--primary-deep); color: #fff; padding: 6px 14px 14px; display: flex; align-items: center; gap: 10px; }
.ahead b { display: block; font-size: 14.5px; font-weight: 800; }
.ahead small { font-size: 10.5px; opacity: .7; }
.ahead .rg { width: 38px; height: 38px; flex: none; margin-inline-start: auto; }
.rgf { transition: stroke-dashoffset .35s; }

/* جدول الهاتف الثابت (قسم المعلّم) */
.ptbl { margin: 8px 7px 0; background: #fff; border-radius: 12px; overflow: hidden; font-size: 10px; border: 1px solid #DFE5EE; flex: 1; }
.prow { display: grid; grid-template-columns: 82px 1fr 1fr; align-items: stretch; border-bottom: 1px solid var(--border); min-height: 56px; }
.prow > span { display: flex; flex-direction: column; justify-content: center; border-inline-start: 1px solid var(--border); }
.prow > span:first-child { border-inline-start: 0; }
.prow.h { background: var(--primary-deep); color: #fff; font-weight: 700; font-size: 10.5px; min-height: 32px; border-bottom: 0; }
.prow.h > span { align-items: center; border-inline-start-color: rgba(255, 255, 255, .16); }
.prow.h > span:first-child { align-items: flex-start; padding-inline-start: 8px; }
.pn { padding-inline-start: 8px; font-weight: 700; font-size: 10.5px; line-height: 1.4; }
.pc { text-align: center; align-items: center; }
.pc b { display: block; font-size: 9.5px; color: var(--primary-dark); margin-top: 3px; white-space: nowrap; }
.pc small { display: block; font-size: 8.5px; color: var(--text-light); }
.pc .ps { font-size: 9.5px; color: #B4BBCE; }
.prow.off .pc { opacity: .35; }
.pfoot { margin: 8px 7px 0; background: var(--primary-deep); color: #fff; border-radius: 12px; padding: 9px 12px; display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; }
.pfoot b { color: #7FD6E0; }
.home { height: 22px; display: grid; place-items: center; }
.home::before { content: ""; width: 110px; height: 4.5px; border-radius: 3px; background: var(--primary-deep); opacity: .85; }

/* ============================================================
   5. الشاشة الأولى · Hero
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px);
  max-width: 1220px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 96px) clamp(20px, 5vw, 64px) 56px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(45% 50% at 25% 50%, rgba(26, 157, 184, .14), transparent 70%),
              radial-gradient(50% 60% at 85% 20%, rgba(27, 42, 107, .07), transparent 70%);
}
/* العنوان في سطر واحد على الحاسوب */
@media (min-width: 901px) { .hero .txt h1 { white-space: nowrap; text-wrap: nowrap; } }
.hero h1 { font-size: clamp(32px, 3.5vw, 52px); font-weight: 900; line-height: 1.3; text-wrap: balance; }
.hero h1 span { color: var(--primary); }
.hero .lead { font-size: clamp(17px, 1.7vw, 21px); margin-top: 16px; }
.hero .actions { justify-content: flex-start; margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips span {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700;
  color: var(--text-muted); background: #fff; padding: 6px 12px; border-radius: 99px;
  box-shadow: 0 0 0 1px rgba(27, 42, 107, .08);
}
.chips i { width: 14px; height: 14px; display: inline-grid; place-items: center; font-size: 11px; color: var(--primary); }
.stagev { position: relative; display: grid; place-items: center; min-height: 640px; }
.hero-dev { transform: perspective(1600px) rotateY(10deg) rotateX(2deg); }

/* بطاقة «لوحة المدير» العائمة بجانب الهاتف */
.fcard {
  position: absolute; background: #fff; border-radius: 18px; padding: 14px 16px;
  box-shadow: 0 30px 60px -28px rgba(27, 42, 107, .5), 0 0 0 1px rgba(27, 42, 107, .06);
  text-align: start; transition: opacity .5s, transform .6s cubic-bezier(.2, .8, .2, 1);
}
.fcard h4 { font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.fc-ring { inset-inline-end: -10%; top: 20%; display: flex; align-items: center; gap: 12px; }
.fc-ring .num { font-size: 26px; font-weight: 900; line-height: 1; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 8px; padding-top: calc(env(safe-area-inset-top, 0px) + 84px); min-height: auto; }
  .hero .txt { text-align: center; }
  .hero .actions, .chips { justify-content: center; }
  .hero .lead { margin-inline: auto; }
  /* الهاتف يُقصّ من الأسفل ويتلاشى حتى لا يطول القسم على الجوال */
  .stagev {
    min-height: auto; height: 500px; overflow: hidden; align-items: start;
    -webkit-mask-image: linear-gradient(#000 90%, transparent); mask-image: linear-gradient(#000 90%, transparent);
  }
  .hero-dev { transform: scale(.8); transform-origin: 50% 0; }
  .fc-ring { inset-inline-end: 2%; top: 6%; transform: scale(.85); transform-origin: left top; }
}

/* ============================================================
   6. العرض الحيّ ورمز QR · Live Demo
   ============================================================ */
.demo {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 56px); align-items: center;
  background: var(--primary-deep); color: #fff; border-radius: 32px; padding: clamp(28px, 5vw, 56px);
  overflow: hidden; position: relative;
}
.demo::after { content: ""; position: absolute; inset-inline-end: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 26px solid rgba(26, 157, 184, .18); }
.demo .h2 { color: #fff; }
.demo .lead { color: rgba(225, 232, 250, .72); }
/* رمز QR يبقى رسماً مدمجاً: يفتح daftaralmarkaz.com/demo/ */
.qr { width: 168px; height: 168px; background: #fff; border-radius: 22px; padding: 16px; position: relative; z-index: 1; }
.qr svg { width: 100%; height: 100%; display: block; }
.demo .actions { justify-content: flex-start; position: relative; z-index: 1; }
.btn-t { background: var(--primary-dark); color: #fff; }
.btn-t:hover { transform: translateY(-1px); }
.btn-w { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }

/* ============================================================
   7. الأسعار · Pricing
   ============================================================ */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 40px; align-items: stretch; }
.plan {
  position: relative; background: #fff; border-radius: 26px; padding: 30px;
  box-shadow: 0 24px 50px -32px rgba(27, 42, 107, .45), 0 0 0 1px rgba(27, 42, 107, .06);
  display: flex; flex-direction: column;
}
.plan.main { box-shadow: 0 0 0 2px var(--primary), 0 30px 60px -30px rgba(26, 157, 184, .55); }
.badge { position: absolute; top: -13px; inset-inline-start: 24px; background: var(--primary-dark); color: #fff; font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 99px; }
.plan h3 { font-size: 22px; font-weight: 900; }
.plan .for { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.plan ul { list-style: none; margin: 18px 0 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15px; line-height: 1.6; }
.plan li i { width: 18px; height: 18px; flex: none; margin-top: 3px; display: grid; place-items: center; font-size: 12px; color: var(--primary-dark); }
.plan .btn { width: 100%; }

/* ============================================================
   8. الأسئلة الشائعة · FAQ
   ============================================================ */
.faq { max-width: 760px; margin: 36px auto 0; display: flex; flex-direction: column; gap: 10px; }
details { background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px rgba(27, 42, 107, .07); }
summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-size: 16.5px; font-weight: 800;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
summary::-webkit-details-marker { display: none; }
/* السهم مرسوم بحدّين ويدور عند الفتح */
summary::after {
  content: ""; width: 10px; height: 10px; flex: none;
  border-inline-end: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(45deg); transition: transform .2s;
}
details[open] summary::after { transform: rotate(-135deg); }
details p { padding: 0 22px 20px; font-size: 15px; line-height: 1.85; color: var(--text-muted); }

/* ============================================================
   9. الخاتمة والتذييل · Closing & Footer
   ============================================================ */
.closing { text-align: center; background: var(--band-deep); color: #fff; padding-bottom: clamp(48px, 7vw, 80px); }
.closing .h2 { font-size: clamp(30px, 4.6vw, 54px); max-width: 18ch; margin: 0 auto; color: #fff; }
footer {
  padding: 28px clamp(20px, 5vw, 64px) calc(env(safe-area-inset-bottom, 0px) + 28px);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  max-width: 1120px; margin: 0 auto; font-size: 14px;
  color: rgba(225, 232, 250, .6); background: var(--band-deep);
  box-shadow: 0 0 0 100vmax var(--band-deep); clip-path: inset(0 -100vmax);   /* اللون يمتدّ لعرض الشاشة والمحتوى في الوسط */
  border-top: 1px solid rgba(255, 255, 255, .08);
}
footer img { height: 26px; filter: brightness(0) invert(1); opacity: .9; }   /* الشعار أبيض على الخلفية الداكنة */
footer a { color: rgba(225, 232, 250, .6); text-decoration: none; direction: ltr; display: inline-block; }

@media (max-width: 760px) {
  .plans { grid-template-columns: 1fr; }
  .demo { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .demo .actions { justify-content: center; }
  .demo .lead { margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 400px) { .hero h1 { font-size: 28px; } }

.fc-ring small { display: block; font-size: 11px; font-weight: 700; color: var(--text-muted); margin-top: 2px; }
.trust { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14.5px; font-weight: 700; color: var(--text-muted); }
.trust i { width: 18px; height: 18px; flex: none; display: grid; place-items: center; font-size: 12px; color: var(--primary-dark); }

/* ============================================================
   10. الهاتف الحيّ · Live Phone
   جدول يتحرّك وحده: إصبع يضغط، وأعمدة تنزلق، وقوائم تنفتح
   ============================================================ */
.tview { position: relative; flex: 1; margin: 8px 7px 0; border: 1px solid #DFE5EE; border-radius: 12px; overflow: hidden; background: #fff; }
.thd { display: flex; height: 32px; background: var(--primary-deep); color: #fff; font-size: 10.5px; font-weight: 700; }
.thd .nh { width: 84px; flex: none; display: flex; align-items: center; padding-inline-start: 8px; border-inline-end: 1px solid rgba(255, 255, 255, .16); }
.thd .ch { flex: 1; overflow: hidden; position: relative; }
.chm { display: flex; width: 358px; height: 100%; transition: transform .6s cubic-bezier(.3, .8, .3, 1); }
.chm span { width: 100px; flex: none; display: grid; place-items: center; border-inline-start: 1px solid rgba(255, 255, 255, .16); }
.chm span:first-child { border-inline-start: 0; }
.chm .sm { width: 58px; }
.tbd { position: absolute; top: 32px; bottom: 0; inset-inline: 0; overflow: hidden; }
.vm { display: flex; transition: transform .6s cubic-bezier(.3, .8, .3, 1); }
.ncol { width: 84px; flex: none; background: #fff; border-inline-end: 1px solid #D9DFEA; position: relative; z-index: 1; }
.nr { height: 56px; display: flex; align-items: center; padding-inline-start: 8px; font-size: 10.5px; font-weight: 700; line-height: 1.4; border-bottom: 1px solid var(--border); transition: opacity .3s; }
.ccol { flex: 1; overflow: hidden; }
.cm { width: 358px; transition: transform .6s cubic-bezier(.3, .8, .3, 1); }
.cr { display: flex; height: 56px; border-bottom: 1px solid var(--border); transition: background .3s; }
.cr > span { width: 100px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-inline-start: 1px solid var(--border); position: relative; transition: opacity .3s; }
.cr > span:first-child { border-inline-start: 0; }
.cr .pa { width: 58px; }
.cr.off > span:not(.pa) { opacity: .32; }
.nr.off { opacity: .45; }

/* زر التسجيل في الهاتفين: رمادي، ثم فيروزي عند الضغط */
.pc .tp {
  width: 24px; height: 24px; margin: 0 auto; border-radius: 8px; background: var(--soft);
  box-shadow: inset 0 0 0 1px #E3E8F1; display: grid; place-items: center;
  transition: background .2s, box-shadow .2s, transform .2s;
}
.pc .tp svg { width: 11px; height: 11px; }
.pc .tp svg path { stroke: #C3CADB; }
.pc .tp.on { background: var(--primary); box-shadow: 0 4px 10px -4px rgba(26, 157, 184, .9); }
.pc .tp.on svg path { stroke: #fff; }
.pc .tp.pop { transform: scale(1.2); }
.pc .rng { display: block; font-size: 9px; color: var(--primary-dark); margin-top: 3px; white-space: nowrap; transition: background .4s; border-radius: 4px; padding: 0 3px; }
.pc .rng.flash { background: #DDF3F6; }
.pc .amt { display: block; font-size: 8.5px; color: var(--text-light); }
/* شارة التقدير (ممتاز، جيد جداً) */
.pc .gr {
  position: absolute; top: 3px; inset-inline-start: 4px; font-style: normal; font-size: 8px; font-weight: 700;
  color: #fff; background: var(--success); border-radius: 6px; padding: 0 5px;
  opacity: 0; transform: scale(.6); transition: opacity .25s, transform .25s;
}
.pc .gr.on { opacity: 1; transform: none; }
.pc.ps span { font-size: 9.5px; color: #B4BBCE; }
/* زر الغياب، وعلامة «!» عند الغياب بعذر */
.pa .ab { width: 24px; height: 24px; border-radius: 8px; background: #F7F8FB; box-shadow: inset 0 0 0 1px #EBEEF4; display: grid; place-items: center; transition: background .2s; }
.pa .ab.on { background: var(--warning-bg); box-shadow: inset 0 0 0 1px #F5D9A8; }
.pa .ab.on::after { content: "!"; font-weight: 900; font-size: 12px; color: var(--warning); }
.pa .abl { font-style: normal; font-size: 8px; font-weight: 700; color: var(--warning); margin-top: 3px; opacity: 0; transition: opacity .25s; }
.pa .abl.on { opacity: 1; }

/* القائمة المنبثقة من أسفل الهاتف */
.pveil { position: absolute; inset: 0; background: rgba(10, 16, 45, .35); opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 6; }
.pveil.on { opacity: 1; }
.psheet { position: absolute; inset-inline: 0; bottom: 0; z-index: 7; background: #fff; border-radius: 22px 22px 0 0; padding: 10px 14px 26px; transform: translateY(105%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.psheet.on { transform: none; }
.psheet .gb { width: 36px; height: 4px; border-radius: 3px; background: #D9DEEA; margin: 0 auto 10px; }
.psheet h6 { font-size: 12.5px; font-weight: 800; margin-bottom: 10px; }
.psheet .og { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.psheet .ol { display: flex; flex-direction: column; gap: 6px; }
.psheet .o { min-height: 36px; border-radius: 10px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; transition: background .2s, color .2s, border-color .2s; }
.psheet .ol .o { justify-content: flex-start; padding-inline-start: 12px; }
.psheet .o.sel { background: var(--primary); border-color: var(--primary); color: #fff; }
.psheet .o.ex { color: var(--warning); }
.psheet .o.nx { color: var(--danger); }
.psheet .o.ex.sel { background: var(--warning); border-color: var(--warning); color: #fff; }

/* الإصبع الذي يضغط وحده */
.fing {
  position: absolute; z-index: 9; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  box-shadow: 0 0 0 2px rgba(27, 42, 107, .45), 0 6px 16px rgba(27, 42, 107, .25);
  left: 60%; top: 70%; opacity: 0; pointer-events: none;
  transition: left .5s cubic-bezier(.4, 0, .2, 1), top .5s cubic-bezier(.4, 0, .2, 1), opacity .3s, transform .15s;
}
.fing.on { opacity: 1; }
.fing.tap { transform: scale(.72); background: rgba(26, 157, 184, .45); }

/* ============================================================
   11. صفوف المزايا · Feature Rows
   ============================================================ */
.frow { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(56px, 8vw, 96px); }
.frow.rev .ftxt { order: 2; }
.frow.rev .fvis { order: 1; }
.h3 { font-size: clamp(24px, 3vw, 36px); font-weight: 900; line-height: 1.4; text-wrap: balance; }
.fvis { display: grid; place-items: center; }
.mock { position: relative; width: min(520px, 100%); }
.win { background: #fff; border-radius: 20px; box-shadow: 0 40px 80px -40px rgba(27, 42, 107, .45), 0 0 0 1px rgba(27, 42, 107, .06); overflow: hidden; }
.wbar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--primary-deep); color: #fff; font-size: 13px; font-weight: 700; }
.wbar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.wbar span { margin-inline-start: 8px; }

/* لوحة المدير */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 16px; }
.tiles div { background: #F5F7FB; border-radius: 14px; padding: 10px 12px; }
.tiles small { display: block; font-size: 11.5px; color: var(--text-muted); font-weight: 600; }
.tiles b { font-size: 22px; font-weight: 900; }
.tiles b.t { color: var(--primary); }
.circ { padding: 0 16px 18px; }
h5 { font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.cl, .lv { display: grid; grid-template-columns: 150px 1fr 40px; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; margin-top: 9px; }
.cl i, .lv i { display: block; height: 8px; border-radius: 5px; background: #EEF1F6; overflow: hidden; }
.cl u, .lv u { display: block; height: 100%; border-radius: 5px; background: var(--primary); }
.lv u { background: var(--primary-deep); }
.lv u.t { background: var(--primary); }
.cl b, .lv b { font-size: 12.5px; text-align: end; }
.cl.warn u { background: var(--warning); }
.cl.warn b { color: var(--warning); }
.lvl { position: absolute; width: 250px; padding: 14px 16px 16px; inset-inline-end: -26px; bottom: -46px; }
.lvl .lv { grid-template-columns: 62px 1fr 26px; font-size: 11.5px; margin-top: 7px; }

/* صفحة الطالب: موضعه في المصحف */
.pg { padding: 0; }
.pgh { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #EEF1F6; }
.pgh b { display: block; font-size: 15px; font-weight: 800; }
.pgh small { font-size: 12px; color: var(--text-muted); }
.tabs { display: flex; gap: 4px; background: var(--soft); border-radius: 10px; padding: 3px; }
.tabs em { font-style: normal; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 8px; color: var(--text-muted); }
.tabs em.on { background: #fff; color: var(--primary-deep); box-shadow: 0 1px 3px rgba(27, 42, 107, .12); }
.mus { margin: 16px; border: 1.5px solid #E4D9B8; border-radius: 14px; background: #FFFCF4; padding: 12px 14px 16px; }
.mh { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 800; color: #8A6D2B; margin-bottom: 8px; }
.mh span { color: #A99263; }
.ml { display: flex; flex-direction: column; gap: 6px; }
.ml i { display: block; height: 8px; border-radius: 4px; background: #ECE4CC; }
.ml i.d { background: rgba(26, 157, 184, .55); }
.ml i.n { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(27, 42, 107, .25); }
.ml i:nth-child(odd) { width: 96%; }
.pgf { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 16px; }
.pgf span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 99px; }
.pgf i { width: 14px; height: 14px; display: inline-grid; place-items: center; font-size: 9.5px; }
.pgf .done { background: var(--primary-dark); color: #fff; }
.pgf .next { box-shadow: inset 0 0 0 1.5px var(--primary-deep); }

/* التقويم الهجري والفصول */
.cal { padding: 16px; }
.calh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.calh b { font-size: 17px; font-weight: 900; }
.calh span { font-size: 12.5px; color: var(--text-muted); }
.cg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; }
.cg span { font-size: 12.5px; font-weight: 700; padding: 6px 0; border-radius: 9px; }
.cg.wd span { font-size: 11.5px; color: var(--text-muted); padding: 0 0 4px; }
.cg span.off { color: #B4BBCE; }
.cg span.today { background: var(--primary-deep); color: #fff; }
.terms { margin-top: 16px; border-top: 1px solid #EEF1F6; padding-top: 14px; }
.tb { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tb i { display: block; height: 10px; border-radius: 6px; background: #EEF1F6; overflow: hidden; }
.tb i.past { background: var(--primary-deep); }
.tb i.cur u { display: block; height: 100%; background: var(--primary); }
.tl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; font-size: 11.5px; color: var(--text-muted); font-weight: 600; text-align: center; }

/* شريط الأزرار السفلي على الجوال: يظهر بعد الشاشة الأولى ويختفي عند الخاتمة */
.mcta {
  position: fixed; z-index: 45; inset-inline: 0; bottom: 0; display: none; gap: 10px;
  padding: 10px 14px calc(env(safe-area-inset-bottom, 0px) + 10px);
  background: rgba(246, 248, 252, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -1px 0 rgba(27, 42, 107, .08); transform: translateY(110%); transition: transform .3s;
}
.mcta .btn { flex: 1; }
.mcta.on { transform: none; }

@media (max-width: 900px) {
  nav { display: none; }
  header { justify-content: space-between; }
  .lmark { height: 38px; }
  .lword { height: 24px; }
  .frow, .frow.rev { grid-template-columns: 1fr; }
  .frow.rev .ftxt, .frow .ftxt { order: 1; }
  .frow .fvis, .frow.rev .fvis { order: 2; }
  .frow .ftxt { text-align: center; }
  .frow .ftxt .lead { margin-inline: auto; }
  .frow .pts { align-items: center; }
  .lvl { position: relative; inset: auto; width: auto; margin: -18px 18px 0; }
  .cl { grid-template-columns: 118px 1fr 36px; font-size: 11.5px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .trust { justify-content: center; }
  .mcta { display: flex; }
}

/* ============================================================
   12. الألوان: صفحة بيضاء، وشريط هادئ للأسعار، وخاتمة داكنة
   الشريط يمتدّ لعرض الشاشة بظلّ واسع، والقصّ يمنعه من الطول
   ============================================================ */
.band-tint, .band-deep { clip-path: inset(0 -100vmax); }
.band-tint { background: var(--band-tint); box-shadow: 0 0 0 100vmax var(--band-tint); }
.band-deep { background: var(--band-deep); box-shadow: 0 0 0 100vmax var(--band-deep); }
.closing .btn-p { background: var(--primary-dark); color: #fff; }
.closing .btn-g { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }

/* ============================================================
   13. الأسعار: زرّ العملة · Currency Switch
   المبلغ كتلة لاتينية معزولة حتى لا ينقلب داخل السطر العربي
   ============================================================ */
.currency { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; }
.currency > span { font-size: 13.5px; font-weight: 700; color: var(--text-muted); }
.seg { display: inline-flex; background: #fff; border-radius: 12px; padding: 4px; box-shadow: 0 0 0 1px rgba(27, 42, 107, .08); }
.seg button { font: 700 14px/1 "Cairo", sans-serif; border: 0; background: none; color: var(--text-muted); padding: 9px 16px; border-radius: 9px; cursor: pointer; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--primary-deep); color: #fff; }
.seg button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.pr { display: none; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pr-amt { font-size: 46px; font-weight: 900; line-height: 1; unicode-bidi: isolate; direction: ltr; white-space: nowrap; }
.pr-amt small { font-size: 20px; font-weight: 800; margin-inline-start: 4px; }
.pr-per { font-size: 15px; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.pr-alt { display: none; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 14.5px; font-weight: 700; }
.pr-alt bdi { unicode-bidi: isolate; direction: ltr; font-weight: 900; }
.pr-free { font-size: 12.5px; font-weight: 800; color: var(--primary-darker); background: #E6F5F8; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.pr-note { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; margin-top: 8px; }
.pr-note[data-c] { display: none; }
/* يظهر سعر العملة المختارة فقط */
.plans[data-cur="birr"] .pr[data-c="birr"],
.plans[data-cur="usd"] .pr[data-c="usd"],
.plans[data-cur="birr"] .pr-alt[data-c="birr"],
.plans[data-cur="usd"] .pr-alt[data-c="usd"] { display: flex; }
.plans[data-cur="usd"] .pr-note[data-c="usd"] { display: block; }
.plan ul { border-top: 1px solid #EEF1F6; padding-top: 18px; }
@media (max-width: 760px) { .pr-amt { font-size: 40px; } }
