/* ============================================================
   سبّاق — أنماط المنصة
   جوال أولًا · RTL بخصائص منطقية فقط
   ============================================================ */

[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: var(--lh-tight); font-weight: 700; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
p  { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }

a { color: var(--orange-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--orange-deep); }

img, svg { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--orange-ink);
  outline-offset: 2px;
  border-radius: 4px;
}

/* الأرقام والحقول اللاتينية */
[dir="ltr"] { unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s4); }
.wrap-wide { max-width: var(--maxw-wide); }

/* ============================================================
   الشريط العلوي
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-block-end: 1px solid var(--line);
  padding-block-start: var(--safe-t);
}
.topbar__in {
  display: flex; align-items: center; gap: var(--s3);
  min-height: 62px;
}
.topbar__logo { display: flex; align-items: center; gap: var(--s2); }
.topbar__logo img { height: 38px; width: auto; display: block; }
.topbar__spacer { flex: 1; }

/* ============================================================
   البطل
   ============================================================ */
.hero {
  position: relative;
  padding-block: var(--s7) var(--s6);
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--sky-tint) 100%);
}
/* المنحنى يمتد خارج viewBox الخاص به، فلا حاجة لتجاوز عرض الصفحة */
.hero__wave {
  position: absolute; inset-inline: 0; top: 42%;
  width: 100%; height: auto; opacity: .55; pointer-events: none;
}
.hero__in { position: relative; text-align: center; }

/* ---- انطلاقة البطل ----
   الموجة تُرسم كأنها خط سباق، ثم يندفع الاسم من جهة البداية (اليمين)
   وتتصاعد الحقائق واحدة تلو الأخرى. تحدث مرة واحدة عند التحميل. */
@media (prefers-reduced-motion: no-preference) {
  .js-launch .hero__wave path {
    stroke-dasharray: 2200; stroke-dashoffset: 2200;
    animation: drawwave 1100ms var(--ease) 120ms forwards;
  }
  @keyframes drawwave { to { stroke-dashoffset: 0; } }

  .js-launch .hero__mark {
    opacity: 0; transform: translateX(56px);
    animation: dashin 760ms var(--ease) 260ms forwards;
  }
  @keyframes dashin {
    60%  { opacity: 1; transform: translateX(-7px); }
    100% { opacity: 1; transform: translateX(0); }
  }

  .js-launch .hero__kicker,
  .js-launch .hero h1,
  .js-launch .hero__lede { opacity: 0; animation: riseup 620ms var(--ease) forwards; }
  .js-launch .hero__kicker { animation-delay: 620ms; }
  .js-launch .hero h1      { animation-delay: 710ms; }
  .js-launch .hero__lede   { animation-delay: 800ms; }
  @keyframes riseup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

  .js-launch .fact {
    opacity: 0;
    animation: riseup 520ms var(--ease) forwards;
    animation-delay: calc(900ms + var(--i, 0) * 90ms);
  }
  .js-launch .hero__cta-wrap { opacity: 0; animation: riseup 560ms var(--ease) 1340ms forwards; }
}
.hero__mark { width: min(230px, 62%); height: auto; margin-inline: auto; display: block; }
.hero__kicker {
  display: inline-block; margin-block-start: var(--s4);
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2);
}
.hero h1 { margin-block: var(--s2) var(--s3); color: var(--ink); }
.hero__lede { font-size: var(--fs-lg); color: var(--ink-2); max-width: 46ch; margin-inline: auto; }

.facts {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--s2); margin-block-start: var(--s5);
}
.fact {
  display: inline-flex; align-items: center; gap: var(--s2);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 8px 14px;
  font-size: var(--fs-sm); font-weight: 500; box-shadow: var(--shadow-1);
}
.fact b { font-weight: 700; }
.fact__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

/* ============================================================
   بطاقتا الرسوم — شرط الخصم مكتوب لا مُستنتَج
   ============================================================ */
.fees {
  display: grid; gap: var(--s3);
  margin-block-start: var(--s5);
  text-align: start;
}
@media (min-width: 620px) { .fees { grid-template-columns: 1fr 1fr; } }

.fees__card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s4) var(--s5);
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: 2px;
}
.fees__card--win { border-color: var(--green); background: var(--green-tint); }

.fees__k {
  font-size: var(--fs-xs); font-weight: 700; color: var(--ink-3);
  margin-block-end: var(--s2);
}
.fees__v {
  font-size: var(--fs-2xl); font-weight: 700; line-height: 1.1;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.fees__v small { font-size: var(--fs-md); font-weight: 600; }
.fees__v.is-off { color: var(--ink-3); text-decoration: line-through; font-size: var(--fs-xl); }
.fees__v2 {
  font-size: var(--fs-xl); font-weight: 700; line-height: 1.2;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.fees__v2 small { font-size: var(--fs-sm); font-weight: 600; }
.fees__v2.is-dim { color: var(--ink-3); }

.fees__c { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.6; }
.fees__c.is-live { color: var(--green-ink); font-weight: 700; }
.fees__c.is-off { color: var(--bad); font-weight: 600; }
.fees__sep {
  height: 1px; background: var(--line);
  margin-block: var(--s3);
}
.fees__note {
  font-size: var(--fs-xs); color: var(--green-ink);
  margin-block-start: var(--s3); padding-block-start: var(--s3);
  border-block-start: 1px dashed var(--green);
}

/* ============================================================
   الأقسام والبطاقات
   ============================================================ */
/* الشريط العلوي لاصق، فلا بد أن يتوقف التمرير أسفله لا تحته */
.section, [id] { scroll-margin-block-start: 78px; }

.section { padding-block: var(--s7); }
.section--tint { background: var(--surface); }
.section__head { margin-block-end: var(--s5); }
.section__eyebrow {
  font-size: var(--fs-xs); font-weight: 700; color: var(--orange-ink);
  margin-block-end: var(--s2);
}
.section__head p { color: var(--ink-2); margin-block-start: var(--s3); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s5);
  box-shadow: var(--shadow-1);
}
.card + .card { margin-block-start: var(--s4); }
.card__head { display: flex; align-items: center; gap: var(--s3); margin-block-end: var(--s4); }
.card__head h3 { flex: 1; }

.grid { display: grid; gap: var(--s4); }
@media (min-width: 760px) { .grid--2 { grid-template-columns: 1fr 1fr; } }

/* بطاقات المزايا */
.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s5);
}
.feature__icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; margin-block-end: var(--s3);
  font-size: 22px;
}
.feature h3 { margin-block-end: var(--s2); font-size: var(--fs-md); }
.feature p { color: var(--ink-2); font-size: var(--fs-sm); }

/* ============================================================
   الأزرار
   ============================================================ */
.btn {
  --btn-bg: var(--orange-ink);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 52px; padding: 12px 24px;
  font-family: inherit; font-size: var(--fs-md); font-weight: 600; line-height: 1.2;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--r-pill);
  cursor: pointer; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast), box-shadow var(--dur-fast);
  box-shadow: var(--shadow-1);
}
.btn:hover { --btn-bg: var(--orange-deep); color: var(--btn-fg); }
.btn:active { transform: translateY(1px) scale(.995); }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .5; cursor: not-allowed; transform: none; box-shadow: none;
}
.btn--block { width: 100%; }
.btn--lg { min-height: 58px; font-size: var(--fs-lg); padding-inline: var(--s6); }
.btn--sm { min-height: 44px; font-size: var(--fs-sm); padding: 8px 16px; }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2);
  box-shadow: none;
}
.btn--ghost:hover { --btn-bg: var(--surface-2); --btn-fg: var(--ink); }

.btn--soft {
  --btn-bg: var(--orange-tint); --btn-fg: var(--orange-deep); --btn-bd: transparent;
  box-shadow: none;
}
.btn--soft:hover { --btn-bg: #ffe2da; --btn-fg: var(--orange-deep); }

.btn--ok    { --btn-bg: var(--ok); }
.btn--ok:hover { --btn-bg: #3d7326; }
.btn--bad   { --btn-bg: var(--bad); }
.btn--bad:hover { --btn-bg: #9d2614; }

.btn--icon { min-height: 44px; min-width: 44px; padding: 0 var(--s3); }

/* ============================================================
   النماذج
   ============================================================ */
.field { margin-block-end: var(--s5); }
.field:last-child { margin-block-end: 0; }

.label {
  display: block; font-size: var(--fs-sm); font-weight: 600;
  margin-block-end: var(--s2); color: var(--ink);
}
.label .req { color: var(--orange-ink); margin-inline-start: 2px; }
.hint { font-size: var(--fs-xs); color: var(--ink-3); margin-block-start: var(--s2); line-height: 1.6; }

.input, .select, .textarea {
  display: block; width: 100%;
  min-height: 52px; padding: 13px 16px;
  font-family: inherit; font-size: var(--fs-md); line-height: 1.5; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--orange-ink);
  box-shadow: 0 0 0 4px rgba(217, 58, 24, .13);
}
.textarea { min-height: 96px; line-height: var(--lh-body); resize: vertical; }

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%235c6467' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  padding-inline-end: 16px; padding-inline-start: 42px;
}

/* حقول لاتينية: الجوال */
.input--ltr { direction: ltr; text-align: left; font-variant-numeric: tabular-nums; }

/* الرقم بيانات لاتينية: مفتاح الدولة أولًا ثم الرقم، فيُقرأ +974 30939000
   لا 30939000 +974. لذلك الصف نفسه LTR رغم أن الصفحة RTL. */
.phone-row { display: flex; gap: var(--s2); align-items: stretch; direction: ltr; }
.phone-row .cc {
  display: flex; align-items: center; gap: 6px; flex: none;
  padding-inline: 14px; font-weight: 600; font-size: var(--fs-md);
  background: var(--surface-2); border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm); color: var(--ink-2);
}
.phone-row .input { flex: 1; }

.invalid .input, .invalid .select, .invalid .textarea, .input.invalid, .select.invalid {
  border-color: var(--bad); background: var(--bad-tint);
}
.err {
  display: none; font-size: var(--fs-xs); font-weight: 600;
  color: var(--bad); margin-block-start: var(--s2);
}
.invalid .err, .err.show { display: block; }

/* اختيارات على شكل بطاقات */
.choice-row { display: flex; gap: var(--s2); flex-wrap: wrap; }
.choice {
  position: relative; flex: 1 1 130px;
}
.choice input {
  position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer;
}
.choice span {
  display: flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 52px; padding: 10px 16px;
  border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); font-weight: 500; text-align: center;
  transition: all var(--dur-fast);
}
.choice input:checked + span {
  border-color: var(--orange-ink); background: var(--orange-tint);
  color: var(--orange-deep); font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--orange-ink);
}
.choice input:focus-visible + span { outline: 3px solid var(--orange-ink); outline-offset: 2px; }

/* شبكة الأعمار */
.age-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
@media (min-width: 480px) { .age-grid { grid-template-columns: repeat(7, 1fr); } }
.age-grid .choice { flex: none; }
.age-grid .choice span { min-height: 54px; font-size: var(--fs-lg); font-weight: 600; padding-inline: 0; }

/* مربعات الاختيار */
.check {
  display: flex; align-items: flex-start; gap: var(--s3);
  padding: var(--s3); border-radius: var(--r-sm);
  cursor: pointer; transition: background var(--dur-fast);
  min-height: 48px;
}
.check:hover { background: var(--surface-2); }
.check input {
  flex: none; width: 24px; height: 24px; margin: 4px 0 0;
  accent-color: var(--orange-ink); cursor: pointer;
}
.check span { font-size: var(--fs-sm); line-height: var(--lh-body); }

/* ============================================================
   بطاقة طالب
   ============================================================ */
.student {
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: var(--s4);
  margin-block-end: var(--s4);
  position: relative;
  animation: pop var(--dur) var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.student__head {
  display: flex; align-items: center; gap: var(--s3);
  margin-block-end: var(--s4); padding-block-end: var(--s3);
  border-block-end: 1px dashed var(--line);
}
.student__n {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sky); color: #14383f; font-weight: 700; font-size: var(--fs-sm);
}
.student__title { flex: 1; font-weight: 700; font-size: var(--fs-md); }
.student__del {
  flex: none; border: 0; background: transparent; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--bad);
  transition: background var(--dur-fast);
}
.student__del:hover { background: var(--bad-tint); }

/* بطاقة مطويّة: الطالب المكتمل يتقلّص لسطر واحد بدل تمرير طويل */
.student.is-done { padding: var(--s3) var(--s4); background: var(--surface-2); }
.student.is-done .student__head { margin-block-end: 0; padding-block-end: 0; border-block-end: 0; }
.student.is-done .student__n { background: var(--green); color: #3d470f; }
.student__body { animation: pop var(--dur) var(--ease); }
.student.is-done .student__body { display: none; }

.student__title { display: block; }
.student__meta {
  display: none; font-size: var(--fs-xs); color: var(--ink-2);
  margin-block-start: 2px; line-height: 1.5;
}
.student.is-done .student__meta { display: block; }
.student__meta .flag { color: var(--bad); font-weight: 700; }

.student__edit {
  flex: none; min-height: 44px; padding-inline: var(--s3);
  border: 1.5px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--surface); cursor: pointer;
  font-family: inherit; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2);
  transition: all var(--dur-fast);
}
.student__edit:hover { border-color: var(--orange-ink); color: var(--orange-ink); }
.student:not(.is-done) .student__edit { display: none; }
.student.is-done .student__del { display: none; }

/* دعوة خصم الإخوة */
.nudge {
  display: flex; align-items: center; gap: var(--s3);
  margin-block-end: var(--s3); padding: var(--s3) var(--s4);
  background: var(--yellow-tint); border: 1px solid var(--yellow);
  border-radius: var(--r-md);
  font-size: var(--fs-sm); line-height: var(--lh-body); color: var(--yellow-ink);
}
.nudge b { color: #6b4e00; }
.nudge__icon { flex: none; font-size: 20px; }

/* ============================================================
   مسار اللقاءات — خط سباق، والاسم نفسه «سبّاق»
   ============================================================ */
.track {
  display: flex; gap: 0; align-items: flex-start;
  overflow-x: auto; padding-block: var(--s5) var(--s3);
  -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
}
.leg {
  flex: 1 0 84px; scroll-snap-align: center;
  position: relative; text-align: center; padding-inline: 2px;
}
/* الخط الواصل بين المحطات */
.leg::before {
  content: ""; position: absolute; top: 15px; inset-inline: -50% 50%;
  height: 3px; background: var(--line-2); border-radius: 2px;
}
.leg:first-child::before { display: none; }
.leg.is-past::before { background: var(--green); }

.leg__dot {
  position: relative; z-index: 1;
  width: 32px; height: 32px; margin-inline: auto;
  border-radius: 50%; background: var(--surface);
  border: 3px solid var(--line-2);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  transition: transform var(--dur) var(--ease);
}
.leg.is-past .leg__dot { background: var(--green); border-color: var(--green); color: #3d470f; }
.leg.is-next .leg__dot {
  background: var(--orange-ink); border-color: var(--orange-ink); color: #fff;
  transform: scale(1.22);
  box-shadow: 0 0 0 6px rgba(217, 58, 24, .16);
}
.leg__d {
  display: block; margin-block-start: var(--s2);
  font-size: 11.5px; font-weight: 600; color: var(--ink-3); line-height: 1.5;
}
.leg.is-next .leg__d { color: var(--orange-ink); font-weight: 700; }
.leg.is-past .leg__d { color: var(--green-ink); }

/* نبضة خفيفة على اللقاء القادم */
@media (prefers-reduced-motion: no-preference) {
  .leg.is-next .leg__dot { animation: legpulse 2.6s var(--ease) infinite; }
  @keyframes legpulse {
    0%, 70%, 100% { box-shadow: 0 0 0 6px rgba(217, 58, 24, .16); }
    35%           { box-shadow: 0 0 0 12px rgba(217, 58, 24, .04); }
  }
}

/* العدّاد */
.countdown {
  margin-block-start: var(--s5); padding: var(--s5);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); text-align: center; box-shadow: var(--shadow-1);
}
.countdown__k { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.countdown__v {
  display: flex; justify-content: center; gap: var(--s3);
  margin-block-start: var(--s3); flex-wrap: wrap;
}
.cd {
  min-width: 66px; padding: var(--s3) var(--s2);
  background: var(--sky-tint); border-radius: var(--r-sm);
}
.cd b {
  display: block; font-size: var(--fs-xl); line-height: 1.1; color: #17505c;
  font-variant-numeric: tabular-nums;
}
.cd i { font-style: normal; font-size: var(--fs-xs); color: var(--ink-2); }

/* ============================================================
   الآراء
   ============================================================ */
.ratebig { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-sm); color: var(--ink-2); }
.ratebig b { font-size: var(--fs-xl); color: var(--ink); }
.stars { color: var(--yellow); letter-spacing: 1px; font-size: var(--fs-md); }

.reviews { display: grid; gap: var(--s4); }
@media (min-width: 760px) { .reviews { grid-template-columns: 1fr 1fr; } }
.review {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s5);
  display: flex; flex-direction: column; gap: var(--s3);
}
.review__top { display: flex; align-items: center; gap: var(--s3); }
.review__av {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--sky-tint-2); color: #17505c; font-weight: 700;
}
.review__who { flex: 1; min-width: 0; }
.review__n { display: block; font-weight: 700; font-size: var(--fs-sm); }
.review__d { display: block; font-size: var(--fs-xs); color: var(--ink-3); }
.review__b { font-size: var(--fs-sm); color: var(--ink-2); line-height: var(--lh-body); }

.ratepick { display: flex; gap: var(--s2); justify-content: center; }
.ratepick button {
  border: 0; background: transparent; cursor: pointer;
  font-size: 32px; line-height: 1; padding: 6px;
  min-width: 48px; min-height: 48px;
  color: var(--line-2); transition: color var(--dur-fast), transform var(--dur-fast);
}
.ratepick button.on { color: var(--yellow); }
.ratepick button:hover { transform: scale(1.12); }

/* خماسية سبّاق */
/* خمسة أعمدة تكفي عناوين قصيرة، لا أوصافًا من ثلاثين كلمة.
   عمودان ثم ثلاثة: يبقى العمود عريضًا بما يكفي لسطر مقروء. */
.pillars { display: grid; gap: var(--s4); }
@media (min-width: 620px)  { .pillars { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s5) var(--s4);
  border-block-start: 4px solid var(--pc);
}
.pillar__k {
  display: inline-block; margin-block-end: var(--s3);
  padding: 5px 14px; border-radius: var(--r-pill);
  background: var(--pt); color: var(--pi);
  font-size: var(--fs-md); font-weight: 700;
}
.pillar p { font-size: var(--fs-sm); color: var(--ink-2); }

/* ألبوم صور الأبناء */
.shots {
  display: grid; gap: var(--s2);
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
}
.shot {
  position: relative; display: block; aspect-ratio: 1;
  border-radius: var(--r-sm); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
  transition: transform var(--dur-fast) var(--ease);
}
.shot:hover, .shot:focus-visible { transform: scale(1.03); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot__tag {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 14px 8px 5px;
  background: linear-gradient(transparent, rgba(20, 40, 46, .82));
  color: #fff; font-size: 11px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* شبكة الصور في اللوحة */
.pgrid {
  display: grid; gap: var(--s3);
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}
.pcard {
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); overflow: hidden; cursor: pointer;
  transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease);
}
.pcard:hover { border-color: var(--orange-ink); transform: translateY(-2px); }
.pcard.is-untagged { border-color: var(--yellow); }
.pcard__img { position: relative; aspect-ratio: 1; background: var(--surface-2); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard__badge {
  position: absolute; inset-block-start: 6px; inset-inline-start: 6px;
  padding: 3px 8px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700;
  background: var(--warn-tint); color: var(--warn);
}
.pcard__badge--ok { background: var(--ok-tint); color: var(--ok); }
.pcard__badge--shared { background: var(--sky-tint-2); color: #1d6f80; }
.pcard__foot {
  padding: 8px 10px; font-size: var(--fs-xs); color: var(--ink-2);
  line-height: 1.5; min-height: 38px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* قائمة وسم الطلاب */
.taglist { max-height: 46vh; overflow-y: auto; display: grid; gap: 2px; padding-inline-end: 4px; }
.tagrow {
  display: flex; align-items: center; gap: var(--s3);
  padding: 10px var(--s3); border-radius: var(--r-sm);
  cursor: pointer; min-height: 48px;
}
.tagrow:hover { background: var(--surface-2); }
.tagrow input { width: 22px; height: 22px; accent-color: var(--orange-ink); flex: none; }
.tagrow__n { flex: 1; font-size: var(--fs-sm); font-weight: 500; }
.tagrow__r { font-size: var(--fs-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* معرض الأفيشات */
.posters {
  display: grid; gap: var(--s4);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.poster {
  display: block; border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-1); background: var(--surface-2);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.poster:hover, .poster:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.poster img { display: block; width: 100%; height: auto; }

/* تلميح الإكمال التلقائي لاسم العائلة */
.autofill {
  display: flex; align-items: flex-start; gap: var(--s2); line-height: 1.6;
  margin-block-start: var(--s2); padding: 8px 12px;
  background: var(--green-tint); border: 1px solid var(--green);
  border-radius: var(--r-sm);
  font-size: var(--fs-xs); color: var(--green-ink); font-weight: 500;
}
.autofill button {
  margin-inline-start: auto; flex: none;
  border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: var(--fs-xs); font-weight: 700;
  color: var(--green-ink); text-decoration: underline;
  min-height: 32px; padding-inline: 4px;
}

.btn-add {
  width: 100%; min-height: 56px;
  display: flex; align-items: center; justify-content: center; gap: var(--s2);
  border: 2px dashed var(--line-2); border-radius: var(--r-md);
  background: transparent; cursor: pointer;
  font-family: inherit; font-size: var(--fs-md); font-weight: 600; color: var(--orange-ink);
  transition: all var(--dur-fast);
}
.btn-add:hover { border-color: var(--orange-ink); background: var(--orange-tint); }

/* ============================================================
   الخطوات
   ============================================================ */
.steps {
  display: flex; align-items: center; gap: var(--s2);
  margin-block-end: var(--s5);
}
.step { flex: 1; text-align: center; }
.step__bar {
  height: 6px; border-radius: var(--r-pill); background: var(--line);
  transition: background var(--dur) var(--ease);
}
.step__label {
  font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3);
  margin-block-start: var(--s2); display: block;
}
.step.is-done .step__bar { background: var(--green); }
.step.is-done .step__label { color: var(--green-ink); }
.step.is-now .step__bar { background: var(--orange-ink); }
.step.is-now .step__label { color: var(--orange-ink); }

/* ============================================================
   التنبيهات
   ============================================================ */
.notice {
  display: flex; gap: var(--s3);
  padding: var(--s4);
  border-radius: var(--r-md);
  background: var(--sky-tint); border: 1px solid var(--sky);
  font-size: var(--fs-sm); line-height: var(--lh-body);
}
.notice__icon { flex: none; font-size: 20px; line-height: 1.4; }
.notice--warn { background: var(--warn-tint); border-color: var(--yellow); }
.notice--bad  { background: var(--bad-tint);  border-color: #f0b3a8; }
.notice--ok   { background: var(--ok-tint);   border-color: #b9dca6; }

/* شروط مرقّمة */
.terms { counter-reset: t; margin: 0; padding: 0; list-style: none; }
.terms li {
  counter-increment: t;
  position: relative;
  padding-inline-start: 40px;
  margin-block-end: var(--s4);
  font-size: var(--fs-sm); line-height: var(--lh-body); color: var(--ink-2);
}
.terms li:last-child { margin-block-end: 0; }
.terms li::before {
  content: counter(t);
  position: absolute; inset-inline-start: 0; top: 2px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sky-tint-2); color: #1d4d58;
  font-size: var(--fs-xs); font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   الدفع ورفع الإيصال
   ============================================================ */
.pay-amount {
  display: flex; align-items: baseline; justify-content: center; gap: var(--s2);
  padding: var(--s5); margin-block-end: var(--s4);
  background: var(--green-tint); border: 1.5px solid var(--green);
  border-radius: var(--r-md); text-align: center;
}
.pay-amount b { font-size: var(--fs-2xl); font-variant-numeric: tabular-nums; color: #46521a; }
.pay-amount span { font-size: var(--fs-md); font-weight: 600; color: var(--green-ink); }

.paydetail {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface-2);
}
.paydetail + .paydetail { margin-block-start: var(--s2); }
.paydetail__k { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; }
.paydetail__v { font-size: var(--fs-md); font-weight: 600; word-break: break-all; }
.paydetail__body { flex: 1; min-width: 0; }
.copy-btn {
  flex: none; border: 1px solid var(--line-2); background: var(--surface);
  border-radius: var(--r-sm); cursor: pointer;
  min-width: 44px; min-height: 44px; display: grid; place-items: center;
  font-family: inherit; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2);
  padding-inline: var(--s3); transition: all var(--dur-fast);
}
.copy-btn:hover { border-color: var(--orange-ink); color: var(--orange-ink); }
.copy-btn.is-done { background: var(--ok-tint); border-color: var(--ok); color: var(--ok); }

.pay-img {
  display: block; width: 100%; border-radius: var(--r-md);
  border: 1px solid var(--line); margin-block-start: var(--s4);
}

.dropzone {
  display: block; position: relative;
  border: 2px dashed var(--line-2); border-radius: var(--r-md);
  background: var(--surface-2);
  padding: var(--s6) var(--s4);
  text-align: center; cursor: pointer;
  transition: all var(--dur-fast);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--orange-ink); background: var(--orange-tint); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone__icon { font-size: 34px; display: block; margin-block-end: var(--s2); }
.dropzone__title { font-weight: 600; }
.dropzone__hint { font-size: var(--fs-xs); color: var(--ink-3); margin-block-start: var(--s1); }

.filepreview {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3); border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--surface);
}
.filepreview img {
  width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-sm); flex: none;
  border: 1px solid var(--line);
}
.filepreview__body { flex: 1; min-width: 0; }
.filepreview__name {
  font-size: var(--fs-sm); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.filepreview__size { font-size: var(--fs-xs); color: var(--ink-3); }

/* ============================================================
   شريط الإجراء السفلي (منطقة الإبهام)
   ============================================================ */
.actionbar {
  position: sticky; bottom: 0; z-index: 30;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border-block-start: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  padding: var(--s3) 0 calc(var(--s3) + var(--safe-b));
  margin-block-start: var(--s5);
}
.actionbar__in { display: flex; gap: var(--s3); align-items: center; }
.actionbar__in .btn { flex: 1; }
.actionbar__in .btn--ghost { flex: 0 0 auto; min-width: 96px; }

/* ============================================================
   زر التسجيل الملازم
   يظهر بعد أن يخرج زر البطل، ويختفي عند النموذج حتى لا يزدحم
   مع شريط الإجراء الخاص به.
   ============================================================ */
.dock {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 35;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border-block-start: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  padding: var(--s3) 0 calc(var(--s3) + var(--safe-b));
  transform: translateY(105%);
  transition: transform var(--dur) var(--ease);
}
.dock.is-on { transform: none; }
.dock__in { display: flex; align-items: center; gap: var(--s3); }
.dock__info {
  flex: 1; min-width: 0; font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-2);
}
.dock__info b { display: block; font-size: var(--fs-sm); color: var(--ink); font-weight: 700; }
.dock .btn { flex: none; min-width: 150px; }

@media (max-width: 380px) {
  .dock__info { display: none; }
  .dock .btn { flex: 1; }
}

/* ============================================================
   الشارات والحالات
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 700; white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--pending  { background: var(--warn-tint); color: var(--warn); }
.badge--approved { background: var(--ok-tint);   color: var(--ok); }
.badge--rejected { background: var(--bad-tint);  color: var(--bad); }
.badge--cancelled{ background: #eef1f2;          color: var(--ink-2); }

/* ============================================================
   شاشة النجاح
   ============================================================ */
.done { text-align: center; padding-block: var(--s6); }
.done__mark {
  width: 88px; height: 88px; margin: 0 auto var(--s5);
  border-radius: 50%; background: var(--green-tint);
  display: grid; place-items: center;
  border: 3px solid var(--green);
  animation: pop-in 400ms var(--ease);
}
@keyframes pop-in { from { transform: scale(.6); opacity: 0; } }
.done__mark svg { width: 44px; height: 44px; color: var(--green-ink); }
.refbox {
  display: inline-flex; flex-direction: column; align-items: center; gap: var(--s1);
  padding: var(--s4) var(--s6); margin-block: var(--s5);
  background: var(--surface); border: 2px dashed var(--line-2);
  border-radius: var(--r-md);
}
.refbox__k { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; }
.refbox__v {
  font-size: var(--fs-2xl); font-weight: 700; letter-spacing: .04em;
  color: var(--orange-ink); font-variant-numeric: tabular-nums; direction: ltr;
}

/* ============================================================
   التذكرة / بطاقة الدخول
   ============================================================ */
.ticket {
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-2);
  overflow: hidden; margin-block-end: var(--s4);
}
.ticket__top {
  background: var(--orange-ink); color: #fff;
  padding: var(--s4) var(--s5);
  display: flex; align-items: center; gap: var(--s3);
}
.ticket__top img { height: 30px; }
.ticket__top .t { flex: 1; font-weight: 600; font-size: var(--fs-sm); }
.ticket__body { padding: var(--s5); display: flex; gap: var(--s5); align-items: center; }
.ticket__info { flex: 1; min-width: 0; }
.ticket__name { font-size: var(--fs-xl); font-weight: 700; line-height: 1.3; }
.ticket__meta { font-size: var(--fs-sm); color: var(--ink-2); margin-block-start: var(--s2); }
.ticket__qr {
  flex: none; width: 110px; height: 110px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px;
}
.ticket__qr svg, .ticket__qr canvas { width: 100%; height: 100%; display: block; }
.ticket__foot {
  border-block-start: 1px dashed var(--line-2);
  padding: var(--s3) var(--s5);
  font-size: var(--fs-xs); color: var(--ink-3);
  display: flex; justify-content: space-between; gap: var(--s3);
}
/* الرقم المرجعي لا يُكسر في منتصفه — الشرطة تنفصل وتربك القراءة */
.ticket__foot b { white-space: nowrap; }

/* ============================================================
   الجداول (الإدارة)
   ============================================================ */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-md); }
table.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 720px; }
.tbl th, .tbl td { padding: 12px 14px; text-align: start; border-block-end: 1px solid var(--line); }
.tbl th {
  background: var(--surface-2); font-weight: 700; font-size: var(--fs-xs);
  color: var(--ink-2); position: sticky; top: 0; z-index: 1;
}
.tbl tbody tr:hover { background: var(--sky-tint); }
.tbl td .num { font-variant-numeric: tabular-nums; }

/* واتساب سريع في صف الطلب */
.wa-quick {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 8px 14px;
  border-radius: var(--r-pill);
  background: #e6f4f1; color: #0b5f54;
  font-size: var(--fs-xs); font-weight: 700; text-decoration: none;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.wa-quick:hover { background: #0f7a6d; color: #fff; }
/* الشكل 38px والهدف 46px — الحبر صغير والإبهام يجد مساحته */
.wa-quick::after { content: ""; position: absolute; inset: -4px; }

/* إحصاءات */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s4);
}
.stat__v {
  font-size: var(--fs-2xl); font-weight: 700; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat__k { font-size: var(--fs-xs); color: var(--ink-2); font-weight: 600; margin-block-start: var(--s1); }
.stat--orange .stat__v { color: var(--orange-ink); }
.stat--green  .stat__v { color: var(--green-ink); }
.stat--warn   .stat__v { color: var(--warn); }
.stat--sky    .stat__v { color: #1d6f80; }

.toolbar {
  display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center;
  margin-block-end: var(--s4);
}
.toolbar .input, .toolbar .select { min-height: 46px; width: auto; flex: 1 1 200px; }

.filterchips { display: flex; gap: var(--s2); overflow-x: auto; padding-block-end: var(--s1); }
.filterchip {
  flex: none; border: 1.5px solid var(--line-2); background: var(--surface);
  border-radius: var(--r-pill); padding: 9px 16px; min-height: 44px;
  font-family: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2);
  cursor: pointer; transition: all var(--dur-fast); white-space: nowrap;
}
.filterchip[aria-pressed="true"] {
  background: var(--ink); border-color: var(--ink); color: #fff;
}

/* ============================================================
   الحالات الفارغة والتحميل
   ============================================================ */
.empty { text-align: center; padding: var(--s8) var(--s4); color: var(--ink-3); }
.empty__icon { font-size: 44px; display: block; margin-block-end: var(--s3); opacity: .5; }
.empty__title { font-weight: 700; color: var(--ink-2); font-size: var(--fs-md); }
.empty p { font-size: var(--fs-sm); margin-block-start: var(--s2); }

.skeleton {
  background: linear-gradient(90deg, var(--line) 25%, #eef4f6 50%, var(--line) 75%);
  background-size: 200% 100%;
  animation: sk 1.3s linear infinite;
  border-radius: var(--r-sm);
}
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.spinner {
  width: 20px; height: 20px; flex: none;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   لوح سفلي ونافذة
   ============================================================ */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(20, 40, 46, .5);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade var(--dur) var(--ease);
}
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: 100%; max-width: 560px; max-height: 88dvh;
  background: var(--surface);
  border-start-start-radius: var(--r-lg); border-start-end-radius: var(--r-lg);
  padding: var(--s3) var(--s5) calc(var(--s5) + var(--safe-b));
  overflow-y: auto;
  animation: rise var(--dur) var(--ease);
}
@keyframes rise { from { transform: translateY(100%); } }
.sheet__grab {
  width: 42px; height: 4px; border-radius: 2px; background: var(--line-2);
  margin: 0 auto var(--s4);
}
.sheet__head { display: flex; align-items: center; gap: var(--s3); margin-block-end: var(--s4); }
.sheet__head h3 { flex: 1; }
@media (min-width: 640px) {
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: var(--r-lg); max-height: 86dvh; }
}

/* ============================================================
   التنبيه العائم
   ============================================================ */
.toast {
  position: fixed; inset-inline: var(--s4); bottom: calc(var(--s5) + var(--safe-b));
  z-index: 90; margin-inline: auto; max-width: 440px;
  background: var(--ink); color: #fff;
  padding: 14px 18px; border-radius: var(--r-md);
  font-size: var(--fs-sm); font-weight: 500;
  box-shadow: var(--shadow-2);
  display: flex; align-items: center; gap: var(--s2);
  animation: rise var(--dur) var(--ease);
}
.toast--ok  { background: #2f6b1c; }
.toast--bad { background: var(--bad); }

/* ============================================================
   شريط التواصل المباشر
   ============================================================ */
.contact {
  background: var(--surface); border-block-start: 1px solid var(--line);
  padding-block: var(--s7);
}
.contact__in { text-align: center; }
.contact h2 { margin-block-end: var(--s3); }
.contact p { color: var(--ink-2); max-width: 44ch; margin-inline: auto; }
.contact__actions {
  display: flex; flex-wrap: wrap; gap: var(--s3);
  justify-content: center; margin-block-start: var(--s5);
}

/* الأخضر الرسمي للواتساب #25D366 يعطي 2.1:1 مع الأبيض ويرسب.
   نستخدم الأخضر الداكن للسطح (5.2:1) مع الاحتفاظ بالأيقونة المعروفة. */
.btn--wa {
  --btn-bg: #0f7a6d; --btn-fg: #fff;
  min-width: 220px;
}
.btn--wa:hover { --btn-bg: #0b6156; }
.btn--wa svg { flex: none; }

.contact__num {
  display: inline-block; margin-block-start: var(--s4);
  font-size: var(--fs-sm); color: var(--ink-3);
}
.contact__num a { font-family: inherit; font-weight: 700; }

/* ============================================================
   التذييل
   ============================================================ */
.footer {
  background: var(--sky); color: #12363d;
  /* الشريط الملازم ثابت أسفل الشاشة، فآخر سطر يحتاج مساحة تُبقيه ظاهرًا */
  padding-block: var(--s7) calc(var(--s6) + var(--safe-b) + 76px);
  margin-block-start: var(--s7);
}
.footer__logo { height: 46px; margin-block-end: var(--s4); }
.footer a { color: #0d4450; font-weight: 600; }
.footer p { font-size: var(--fs-sm); }
.footer__fine { font-size: var(--fs-xs); opacity: .8; margin-block-start: var(--s5); }

/* توقيع المنفّذ — حاضر بلا أن ينافس هوية العميل */
.footer__by {
  font-size: var(--fs-xs);
  opacity: .62;
  margin-block-start: var(--s2);
}
.footer__by a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.footer__by a:hover { opacity: 1; }

/* ============================================================
   موجة الهوية
   ============================================================ */
.wave { display: block; width: 100%; height: auto; color: var(--orange); }

/* ============================================================
   الطباعة (بطاقات الدخول)
   ============================================================ */
@media print {
  .topbar, .actionbar, .no-print, .footer { display: none !important; }
  body { background: #fff; }
  .ticket { box-shadow: none; break-inside: avoid; page-break-inside: avoid; }
}

/* ============================================================
   تقليل الحركة
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ============================================================
   شريط أقسام لوحة الإدارة
   ============================================================ */
.secnav {
  position: sticky; top: 62px; z-index: 35;
  background: var(--surface); border-block-end: 1px solid var(--line);
}
.secnav__in {
  display: flex; gap: var(--s2); overflow-x: auto;
  padding-block: var(--s3); -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.secnav__in::-webkit-scrollbar { display: none; }
.secnav__b {
  flex: none; min-height: 44px; padding: 8px 16px;
  border: 1.5px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--surface); cursor: pointer; white-space: nowrap;
  font-family: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2);
  transition: all var(--dur-fast);
}
.secnav__b:hover { border-color: var(--orange-ink); color: var(--orange-ink); }
.secnav__b.is-on {
  background: var(--ink); border-color: var(--ink); color: #fff;
}

/* ------------------------------------------------------------
   الجوال: شريط الأعلى كان صفًّا واحدًا لا يلتف، فيوسّع المستند
   إلى ~590px فتنزاح الصفحة كلها وتبدو «كأنها كمبيوتر».
   هنا يلتف الشريط سطرين، ويترك الالتصاق ليمر مع الصفحة،
   ويبقى شريط الأقسام ملتصقًا في الأعلى لأنه الأكثر استعمالًا.
   ------------------------------------------------------------ */
@media (max-width: 720px) {
  /* صفّ الحضور: الاسم سطرًا وأزرار التعليم تحته، فلا ينضغط الاسم على الجوال */
  .paydetail { flex-wrap: wrap; row-gap: var(--s2); }
  .paydetail__body { flex-basis: 100%; }
  .paydetail__v { word-break: normal; overflow-wrap: anywhere; }

  .topbar { position: static; }
  .topbar__in {
    flex-wrap: wrap; row-gap: var(--s2);
    min-height: 0; padding-block: var(--s3);
  }
  .topbar__spacer { flex-basis: 100%; height: 0; }   /* كسر السطر قبل الأزرار */
  .secnav { top: 0; }
}
