/* ═══ جعلك — تنسيقٌ محصورٌ في صفحته وحده (v1330) ═══
   كلُّ قاعدةٍ هنا تبدأ بـ .jaalak-page، ولا توجد قاعدةٌ واحدة على body أو html.
   وهذا مقصود: الملفُّ الأصلُ المُصدَّر كان يضع الخلفيةَ والخطَّ واللونَ على body،
   فيبتلعُ هويةَ نوزلين كلَّها في كلّ صفحةٍ من صفحاته. الخلفيةُ هنا تملأ الشاشة
   عبر .jaalak-page نفسِها (min-height: 100vh) فتُعطي النتيجةَ ذاتَها بلا تسرّب.

   ويُحمَّل الملفُّ من <HeadContent> داخل Jaalak.razor — أي على هذه الصفحة فقط،
   لأن عزلَ CSS في Blazor غيرُ مفعَّلٍ في المشروع (لا رابطَ لـ Nozzleen.styles.css). */

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

.jaalak-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: #ededed;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  color: #1c2b27;
}

.jaalak-page a {
  color: #2f5d8a;
}

.jaalak-page a:hover {
  color: #1f4468;
}

.jaalak-page .landing {
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 560px;
  padding: 28px 24px 32px;
  gap: 40px;
}

/* ── الترويسة ── */
.jaalak-page .landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.jaalak-page .landing-brand {
  font-size: 24px;
  font-weight: 700;
  color: #2f5d8a;
}

.jaalak-page .landing-login {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid #dad5ca;
  border-radius: 999px;
  background: #fff;
  min-height: 44px;              /* هدفُ لمسٍ مريحٌ على الجوال */
  display: inline-flex;
  align-items: center;
}

/* ── الواجهة ── */
.jaalak-page .landing-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
}

.jaalak-page .landing-title {
  margin: 0;
  font-size: 38px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-wrap: pretty;
}

.jaalak-page .landing-lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  color: #33413c;
  text-wrap: pretty;
}

.jaalak-page .landing-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.jaalak-page .landing-cta-button {
  height: 56px;
  border-radius: 16px;
  background: #2f5d8a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.jaalak-page .landing-cta-button:hover {
  background: #1f4468;
  color: #fff;
}

.jaalak-page .landing-cta-note {
  font-size: 14px;
  color: #5e6b66;
  text-align: center;
  line-height: 1.7;
}

/* ── الخطوات ── */
.jaalak-page .landing-steps {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 20px;
  overflow: hidden;
}

.jaalak-page .landing-step {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
}

.jaalak-page .landing-step + .landing-step {
  border-top: 1px solid #eeebe4;
}

.jaalak-page .landing-step-num {
  font-size: 15px;
  font-weight: 700;
  color: #2f5d8a;
  width: 20px;
  flex-shrink: 0;
}

.jaalak-page .landing-step-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.jaalak-page .landing-step-title {
  font-size: 16px;
  font-weight: 700;
}

.jaalak-page .landing-step-text {
  font-size: 15px;
  line-height: 1.7;
  color: #33413c;
}

/* ── الخصوصية ── */
.jaalak-page .landing-privacy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 4px;
}

.jaalak-page .landing-privacy-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.jaalak-page .landing-privacy-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #33413c;
}

/* ── التذييل ── */
.jaalak-page .landing-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #5e6b66;
  border-top: 1px solid #dad5ca;
  padding-top: 16px;
}

.jaalak-page .landing-footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.jaalak-page .landing-footer-links a {
  text-decoration: none;
  font-weight: 600;
}

/* ── الشاشاتُ الضيّقة ── */
@media (max-width: 420px) {
  .jaalak-page .landing {
    padding: 20px 18px 26px;
    gap: 32px;
  }

  .jaalak-page .landing-title {
    font-size: 31px;
  }

  .jaalak-page .landing-lead {
    font-size: 17px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   صفحاتُ جعلك الداخلية (v1331): الدخول، وما بعده، والدليل، والشروط.
   كلُّها تحت .jaalak-page كسابقتها — لا قاعدةَ واحدةً تخرج عن الصفحة.
   ══════════════════════════════════════════════════════════════════ */

.jaalak-page .jaalak-shell {
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 560px;
  width: 100%;
  padding: 28px 24px 32px;
  gap: 28px;
}

/* ── الشريطُ العلوي ── */
.jaalak-page .jaalak-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.jaalak-page .jaalak-back {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: #2f5d8a;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.jaalak-page .jaalak-linkbtn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* ── شريطُ وضع التجربة ── */
.jaalak-page .jaalak-notice {
  margin: 0;
  background: #fdf4e3;
  border: 1px solid #e8d9b5;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #6b4f1d;
}

.jaalak-page .jaalak-notice code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  background: #f6e8cc;
  border-radius: 5px;
  padding: 1px 5px;
  direction: ltr;
  display: inline-block;
}

/* ── النموذج ── */
.jaalak-page .jaalak-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}

.jaalak-page .jaalak-h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.3px;
}

.jaalak-page .jaalak-sub {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.8;
  color: #33413c;
  text-wrap: pretty;
}

.jaalak-page .jaalak-label {
  font-size: 14px;
  font-weight: 700;
}

.jaalak-page .jaalak-input {
  height: 56px;
  border-radius: 16px;
  border: 1.5px solid #dad5ca;
  background: #fff;
  padding: 0 18px;
  font-family: inherit;
  font-size: 19px;
  letter-spacing: 1px;
  color: #1c2b27;
}

.jaalak-page .jaalak-input:focus {
  outline: 3px solid rgba(47, 93, 138, 0.35);
  outline-offset: 1px;
  border-color: #2f5d8a;
}

.jaalak-page .jaalak-input.is-invalid {
  border-color: #9b2226;
}

.jaalak-page .jaalak-input::placeholder {
  color: #9aa5a1;
  letter-spacing: normal;
}

.jaalak-page .jaalak-help {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #5e6b66;
  min-height: 24px;
}

.jaalak-page .jaalak-ok {
  color: #14532d;
  font-weight: 600;
}

.jaalak-page .jaalak-error {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 600;
  color: #9b2226;
}

.jaalak-page .jaalak-submit {
  margin-top: 8px;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.jaalak-page .jaalak-submit:disabled {
  background: #7b8a99;
  cursor: not-allowed;
}

/* ── بطاقاتُ الأفعال (ما بعد الدخول) ── */
.jaalak-page .jaalak-actions .landing-step {
  align-items: center;
}

.jaalak-page .jaalak-actions .landing-step-body {
  flex: 1;
}

.jaalak-page .jaalak-soon {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #5e6b66;
  background: #eeebe4;
  border-radius: 999px;
  padding: 5px 12px;
}

.jaalak-page .is-soon .landing-step-title,
.jaalak-page .is-soon .landing-step-text {
  opacity: 0.72;
}

/* ── صفحاتُ المحتوى: الدليل والشروط ── */
.jaalak-page .jaalak-doc {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.jaalak-page .jaalak-doc h2 {
  margin: 26px 0 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
}

.jaalak-page .jaalak-doc p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.95;
  color: #33413c;
  text-wrap: pretty;
}

.jaalak-page .jaalak-doc ul {
  margin: 10px 0 0;
  padding-inline-start: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  line-height: 1.9;
  color: #33413c;
}

.jaalak-page .jaalak-doc strong {
  color: #1c2b27;
}

.jaalak-page .jaalak-cta-row {
  margin-top: 32px;
}

@media (max-width: 420px) {
  .jaalak-page .jaalak-shell {
    padding: 20px 18px 26px;
    gap: 22px;
  }

  .jaalak-page .jaalak-h1 {
    font-size: 26px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   دفترُ الحسابات (v1332): الدائرة، تسجيلُ المصروف، الفاتورة، السدادات.
   ══════════════════════════════════════════════════════════════════ */

.jaalak-page .jaalak-h2 {
  margin: 26px 0 2px;
  font-size: 17px;
  font-weight: 700;
}

/* ── صفوفٌ أفقية ── */
.jaalak-page .jaalak-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.jaalak-page .jaalak-grow { flex: 1; min-width: 0; }

.jaalak-page .jaalak-mini {
  flex: 0 0 110px;
  height: 46px;
  font-size: 16px;
  letter-spacing: normal;
  padding: 0 12px;
}

/* ── القوائم ── */
.jaalak-page .jaalak-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 20px;
  overflow: hidden;
}

.jaalak-page .jaalak-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  min-height: 64px;
}

.jaalak-page .jaalak-list-row + .jaalak-list-row {
  border-top: 1px solid #eeebe4;
}

.jaalak-page .jaalak-list-row.is-me {
  background: #eef4fa;
  box-shadow: inset 3px 0 0 #2f5d8a;
}

.jaalak-page .jaalak-list-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.jaalak-page .jaalak-list-name {
  font-size: 16px;
  font-weight: 700;
}

.jaalak-page .jaalak-list-sub {
  font-size: 13px;
  color: #5e6b66;
}

/* ── المبالغ: اللونُ يساند النصّ ولا يحمل المعنى وحده ── */
.jaalak-page .jaalak-amt-pos {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  color: #14532d;
}

.jaalak-page .jaalak-amt-neg {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  color: #9a3412;
}

.jaalak-page .jaalak-amt-plain {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1c2b27;
}

/* ── أزرارٌ صغيرة ── */
.jaalak-page .jaalak-remove,
.jaalak-page .jaalak-send,
.jaalak-page .jaalak-cancel {
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid #dad5ca;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 0 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  color: #2f5d8a;
}

.jaalak-page .jaalak-remove { color: #9a3412; }

.jaalak-page .jaalak-send {
  background: #2f5d8a;
  border-color: #2f5d8a;
  color: #fff;
}

.jaalak-page .jaalak-send:hover { color: #fff; background: #1f4468; }

/* ── اختيارُ المشاركين ── */
.jaalak-page .jaalak-check {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.jaalak-page .jaalak-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  accent-color: #2f5d8a;
}

/* ── مُبدّلٌ مجزّأ ── */
.jaalak-page .jaalak-seg {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.jaalak-page .jaalak-seg-btn {
  flex: 1;
  min-height: 48px;
  border-radius: 14px;
  border: 1.5px solid #dad5ca;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #33413c;
  cursor: pointer;
}

.jaalak-page .jaalak-seg-btn.on {
  background: #2f5d8a;
  border-color: #2f5d8a;
  color: #fff;
}

/* ── لوحةُ السداد ── */
.jaalak-page .jaalak-panel {
  margin-top: 18px;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jaalak-page .jaalak-panel .jaalak-h2 { margin-top: 0; }

/* ── بطاقاتُ الأفعال الفاعلة ── */
.jaalak-page .jaalak-action-link {
  text-decoration: none;
  color: #2f5d8a;
}

.jaalak-page .jaalak-action-link:hover { color: #1f4468; }

/* ══════════════════════════════════════════════════════════════════
   السجلّ والمرفقات والأوزان (v1333)
   ══════════════════════════════════════════════════════════════════ */

/* حقلُ الوزن: أضيقُ من حقل المبلغ لأنه رقمٌ واحدٌ غالباً */
.jaalak-page .jaalak-tiny {
  flex: 0 0 62px;
  height: 46px;
  font-size: 16px;
  letter-spacing: normal;
  padding: 0 10px;
  text-align: center;
}

/* اختيارُ ملف */
.jaalak-page .jaalak-file {
  font-family: inherit;
  font-size: 14px;
  color: #33413c;
  background: #fff;
  border: 1.5px dashed #dad5ca;
  border-radius: 14px;
  padding: 14px;
  width: 100%;
}

.jaalak-page .jaalak-file::file-selector-button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #2f5d8a;
  background: #eef4fa;
  border: 1px solid #cddcec;
  border-radius: 999px;
  padding: 8px 14px;
  margin-inline-end: 12px;
  cursor: pointer;
}

/* شارةُ نوع العملية في السجلّ — الحرفُ يساند اللون ولا يعتمد عليه */
.jaalak-page .jaalak-kind {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.jaalak-page .k-exp { background: #e3ecf6; color: #1f4468; }
.jaalak-page .k-set { background: #dcefe2; color: #14532d; }

/* ══════════════════════════════════════════════════════════════════
   الصفحةُ التعريفية (v1338) — تصميمٌ للحاسوب والجوال معاً.
   بادئةٌ خاصة (jl-) لأن صفحات التطبيق ما زالت تستعمل landing-* المشتركة.
   ══════════════════════════════════════════════════════════════════ */

.jl {
  --jl-wrap: 1120px;
  --jl-deep: #1b3a5c;
  --jl-blue: #2f5d8a;
  --jl-on-deep: #cfe0ef;
  background: #ededed;
  color: #1c2b27;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  min-height: 100vh;
}

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

.jl-wrap { max-width: var(--jl-wrap); margin: 0 auto; padding: 0 32px; }

/* ── الترويسة ── */
.jl-top { background: var(--jl-deep); color: #fff; }

.jl-top .jl-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 84px;
}

.jl-brand {
  font-family: 'Reem Kufi', sans-serif;
  font-size: 30px; font-weight: 700; color: #fff; letter-spacing: .5px;
}

.jl-login {
  color: #fff; text-decoration: none; font-size: 15px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.4); border-radius: 999px;
  padding: 0 20px; min-height: 44px;
  display: inline-flex; align-items: center;
}

.jl-login:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ── البطل ── */
.jl-hero { background: var(--jl-deep); color: #fff; padding-bottom: 84px; }

.jl-hero .jl-wrap {
  display: grid; grid-template-columns: 1fr 400px; gap: 72px;
  align-items: center; padding-top: 40px;
}

/* عنصرُ شبكةٍ افتراضُه min-width:auto فيطفح النصُّ الطويل بدل أن يلتفّ */
.jl-pitch { min-width: 0; }

.jl-h1 {
  font-family: 'Reem Kufi', sans-serif;
  margin: 0; font-size: 54px; line-height: 1.32; font-weight: 700;
  letter-spacing: -.5px; max-width: 19ch; text-wrap: balance;
}

.jl-lead {
  margin: 24px 0 0; font-size: 19px; line-height: 1.95;
  color: var(--jl-on-deep); max-width: 46ch;
}

.jl-cta {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 34px; height: 60px; padding: 0 40px; border-radius: 16px;
  background: #fff; color: var(--jl-deep);
  text-decoration: none; font-size: 18px; font-weight: 700;
}

.jl-cta:hover { background: var(--jl-on-deep); color: var(--jl-deep); }

.jl-note {
  margin: 16px 0 0; font-size: 14.5px; line-height: 1.8;
  color: var(--jl-on-deep); opacity: .85; max-width: 44ch;
}

/* ── القسيمة: بطلُ الصفحة ── */
.jl-slip {
  background: #fff; color: #1c2b27; border-radius: 6px;
  padding: 30px 30px 0; box-shadow: 0 24px 60px rgba(10,30,50,.34);
  position: relative;
}

.jl-slip-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; padding-bottom: 20px;
}

.jl-slip-what { font-size: 19px; font-weight: 700; }
.jl-slip-sub  { font-size: 13px; color: #5e6b66; margin-top: 4px; }

.jl-slip-total {
  font-size: 26px; font-weight: 700;
  font-variant-numeric: tabular-nums; direction: ltr;
}

/* خطُّ القطع، بثقبيه على الحافتين */
.jl-tear { border-top: 2px dashed #dad5ca; margin: 0 -30px; position: relative; }

.jl-tear::before, .jl-tear::after {
  content: ""; position: absolute; top: -11px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--jl-deep);
}

.jl-tear::before { right: -10px; }
.jl-tear::after  { left: -10px; }

.jl-slip-rows { padding: 18px 0 4px; }

.jl-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; padding: 11px 0; font-size: 16px;
}

.jl-row + .jl-row { border-top: 1px solid #f0eee9; }

.jl-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.jl-who b { font-weight: 600; }

.jl-amt {
  font-variant-numeric: tabular-nums; direction: ltr;
  font-weight: 700; flex-shrink: 0;
}

.jl-chip {
  font-size: 11.5px; font-weight: 600; font-style: normal;
  border-radius: 999px; padding: 3px 9px; white-space: nowrap;
  background: #e9f1ec; color: #1d6f4f;
}

.jl-chip.is-payer { background: #e7edf5; color: #2f5d8a; }

/* الحافةُ المسنّنة أسفل القسيمة */
.jl-zig {
  height: 14px; margin: 0 -30px;
  background:
    linear-gradient(45deg, transparent 50%, var(--jl-deep) 51%) 0 0/14px 14px repeat-x,
    linear-gradient(-45deg, transparent 50%, var(--jl-deep) 51%) 0 0/14px 14px repeat-x;
}

/* ── الخطوات على خيطٍ منقّط ── */
.jl-flow { padding: 84px 0 76px; }

.jl-h2 {
  font-family: 'Reem Kufi', sans-serif;
  font-size: 30px; margin: 0 0 48px; font-weight: 600;
}

.jl-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
  position: relative;
}

.jl-steps::before {
  content: ""; position: absolute; top: 17px; right: 12%; left: 12%;
  border-top: 2px dashed #cfcbc3;
}

.jl-step { position: relative; padding-top: 60px; }

.jl-dot {
  position: absolute; top: 0; right: 0; width: 36px; height: 36px;
  border-radius: 50%; background: var(--jl-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; box-shadow: 0 0 0 7px #ededed;
}

.jl-step h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }

.jl-step p {
  margin: 0; font-size: 16px; line-height: 1.9; color: #33413c; max-width: 30ch;
}

/* ── الخصوصية ── */
.jl-safe { background: #fff; border-top: 1px solid #e4e1db; border-bottom: 1px solid #e4e1db; }

.jl-safe .jl-wrap {
  padding-top: 56px; padding-bottom: 56px;
  display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start;
}

.jl-h3 { font-family: 'Reem Kufi', sans-serif; margin: 0; font-size: 25px; font-weight: 600; }

.jl-safe p { margin: 0; font-size: 17px; line-height: 2; color: #33413c; max-width: 62ch; }
.jl-safe strong { font-weight: 700; color: #1c2b27; }

/* ── التذييل ── */
.jl-foot { padding: 36px 0 56px; }

.jl-foot .jl-wrap {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 14px; color: #5e6b66;
}

.jl-foot a {
  color: var(--jl-blue); text-decoration: none; font-weight: 600;
  margin-inline-start: 22px;
}

.jl-foot a:hover { color: #1f4468; }

/* ── الجوال ── */
@media (max-width: 900px) {
  .jl-wrap { padding: 0 20px; }
  .jl-top .jl-wrap { height: 68px; }
  .jl-brand { font-size: 25px; }

  .jl-hero { padding-bottom: 64px; }
  .jl-hero .jl-wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 28px; }

  .jl-h1   { font-size: 34px; max-width: none; }
  .jl-lead { font-size: 17px; margin-top: 18px; }
  .jl-cta  { width: 100%; margin-top: 26px; height: 56px; padding: 0 20px; font-size: 17px; }

  .jl-slip { padding: 24px 24px 0; }
  .jl-tear { margin: 0 -24px; }
  .jl-zig  { margin: 0 -24px; }

  .jl-flow { padding: 56px 0 48px; }
  .jl-h2   { font-size: 25px; margin-bottom: 34px; }

  .jl-steps { grid-template-columns: 1fr; gap: 30px; }

  .jl-steps::before {
    top: 8px; bottom: 8px; right: 17px; left: auto;
    border-top: none; border-right: 2px dashed #cfcbc3;
  }

  .jl-step { padding-top: 2px; padding-inline-start: 56px; }
  .jl-dot  { width: 34px; height: 34px; }
  .jl-step p { max-width: none; }

  .jl-safe .jl-wrap {
    grid-template-columns: 1fr; gap: 16px;
    padding-top: 40px; padding-bottom: 40px;
  }

  .jl-safe p { font-size: 16px; }
}

/* ── صفحاتُ المحتوى على الشاشات الواسعة ──
   الدليلُ والشروطُ نصٌّ يُقرأ، فلا يُمدّ عرضُه بلا حدّ — لكن 560 بكسل
   على شاشةِ حاسوبٍ شريطٌ ضيّق. 720 يبقي السطرَ تحت ثمانين حرفاً ويملأ العين. */
@media (min-width: 901px) {
  .jaalak-page .jaalak-shell { max-width: 720px; }
}
/* ══════════════════════════════════════════════════════════════════
   قشرةُ تطبيق «جعلك» وشاشاتُه (v1339)
   كانت الشاشاتُ مستنداتٍ لا تطبيقاً: بلا تنقّل، وبلا هويةِ مكان،
   وبفعلٍ رئيسيٍّ مدفونٍ في قائمة. هذه قشرةٌ واحدة تحملها كلَّها.
   ══════════════════════════════════════════════════════════════════ */

.jk {
  --jk-wrap: 980px;
  --jk-deep: #1b3a5c;
  --jk-blue: #2f5d8a;
  --jk-ink: #1c2b27;
  --jk-mut: #5e6b66;
  --jk-line: #e2e0da;
  --jk-pos: #14532d;
  --jk-neg: #9a3412;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ededed;
  color: var(--jk-ink);
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

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

.jk-wrap { width: 100%; max-width: var(--jk-wrap); margin: 0 auto; padding: 0 24px; }

/* ── الشريط العلوي ── */
.jk-bar {
  background: #fff;
  border-bottom: 1px solid var(--jk-line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.jk-bar .jk-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}

.jk-logo {
  font-family: 'Reem Kufi', sans-serif;
  font-size: 23px;
  font-weight: 700;
  color: var(--jk-blue);
  text-decoration: none;
  flex-shrink: 0;
}

.jk-nav { display: flex; gap: 4px; flex: 1; min-width: 0; }

.jk-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #44524d;
  text-decoration: none;
  white-space: nowrap;
}

.jk-nav a:hover { background: #f2f1ed; color: var(--jk-ink); }

.jk-nav a.on {
  background: #e8eff6;
  color: var(--jk-blue);
  box-shadow: inset 0 -2px 0 var(--jk-blue);
}

.jk-me {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-size: 13.5px;
  color: var(--jk-mut);
}

.jk-me span { direction: ltr; font-variant-numeric: tabular-nums; }

.jk-out {
  background: none;
  border: 1px solid var(--jk-line);
  border-radius: 999px;
  padding: 0 14px;
  min-height: 40px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #44524d;
  cursor: pointer;
}

.jk-out:hover { background: #f2f1ed; color: var(--jk-ink); }

/* ── جسمُ الصفحة ── */
.jk-body { flex: 1; padding: 28px 0 56px; }

.jk-h1 { margin: 0 0 20px; font-size: 25px; font-weight: 700; }

/* ── شريطُ الحصيلة: أول ما تقع عليه العين ── */
.jk-sum {
  background: var(--jk-deep);
  color: #fff;
  border-radius: 20px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.jk-figs { display: flex; gap: 44px; flex-wrap: wrap; }

.jk-fig-k { font-size: 13.5px; color: #b8cde0; margin-bottom: 4px; }

.jk-fig-v {
  font-size: 32px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}

.jk-fig-v small { font-size: 16px; font-weight: 600; margin-inline-start: 4px; }

.jk-fig.pos .jk-fig-v { color: #9ee6bf; }
.jk-fig.neg .jk-fig-v { color: #ffc0a0; }

.jk-add {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  color: var(--jk-deep);
  border: none;
  border-radius: 14px;
  min-height: 54px;
  padding: 0 26px;
  font: inherit;
  font-size: 16.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

.jk-add:hover { background: #d7e6f2; color: var(--jk-deep); }
.jk-add svg { width: 19px; height: 19px; }

/* ── الشبكة: الأرصدة ثم السجلّ الجانبي ── */
.jk-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.jk-card {
  background: #fff;
  border: 1px solid var(--jk-line);
  border-radius: 18px;
  overflow: hidden;
}

.jk-card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #f0eee9;
}

.jk-card-h h2 { margin: 0; font-size: 16px; font-weight: 700; }

.jk-card-h a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--jk-blue);
  text-decoration: none;
}

/* ── صفوفٌ عامة ── */
.jk-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  min-height: 68px;
}

.jk-row + .jk-row { border-top: 1px solid #f0eee9; }

.jk-row-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.jk-name { font-size: 16px; font-weight: 700; }
.jk-sub  { font-size: 13px; color: var(--jk-mut); }

.jk-amt {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.jk-amt.num { direction: ltr; }

.jk-amt.pos { color: var(--jk-pos); }
.jk-amt.neg { color: var(--jk-neg); }

.jk-mini {
  flex-shrink: 0;
  border: 1px solid var(--jk-line);
  background: #fff;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 15px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--jk-blue);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.jk-mini:hover { background: #eef4fa; color: var(--jk-blue); }

/* الحرفُ يسبق اللون في الدلالة */
.jk-kind {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.jk-kind.exp { background: #e6edf5; color: #1f4468; }
.jk-kind.set { background: #e1efe7; color: #14532d; }

/* ── حالةُ الفراغ: دعوةٌ لا اعتذار ── */
.jk-empty { padding: 44px 28px 48px; text-align: center; }

.jk-empty-art {
  width: 108px; height: 76px;
  margin: 0 auto 20px;
  border: 2px dashed #cfcbc3;
  border-radius: 8px;
  position: relative;
  background: #fafaf8;
}

.jk-empty-art::before,
.jk-empty-art::after {
  content: "";
  position: absolute;
  right: 16px; left: 16px;
  height: 7px;
  border-radius: 3px;
  background: #e2e0da;
}

.jk-empty-art::before { top: 20px; }
.jk-empty-art::after  { top: 38px; right: 16px; left: 48px; }

.jk-empty h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }

/* داخل بطاقةٍ بيضاء يختفي زرٌّ أبيض — هنا يكون أزرقَ مصمتاً */
.jk-empty .jk-add { background: var(--jk-blue); color: #fff; }
.jk-empty .jk-add:hover { background: #1f4468; color: #fff; }

.jk-empty p {
  margin: 0 auto 22px;
  font-size: 15px;
  line-height: 1.85;
  color: #33413c;
  max-width: 42ch;
}

/* ── لوحةُ السداد ── */
.jk-panel { padding: 20px; display: flex; flex-direction: column; gap: 12px; }

.jk-lab { font-size: 13.5px; font-weight: 700; }

.jk-in {
  height: 52px;
  border-radius: 13px;
  border: 1.5px solid #dad5ca;
  background: #fff;
  padding: 0 16px;
  font: inherit;
  font-size: 17px;
  color: var(--jk-ink);
  width: 100%;
}

.jk-in:focus {
  outline: 3px solid rgba(47,93,138,.32);
  outline-offset: 1px;
  border-color: var(--jk-blue);
}

.jk-seg { display: flex; gap: 8px; }

.jk-seg button {
  flex: 1;
  min-height: 46px;
  border-radius: 12px;
  border: 1.5px solid #dad5ca;
  background: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: #33413c;
  cursor: pointer;
}

.jk-seg button.on { background: var(--jk-blue); border-color: var(--jk-blue); color: #fff; }

.jk-acts { display: flex; gap: 10px; }

.jk-go {
  flex: 1;
  min-height: 52px;
  border: none;
  border-radius: 13px;
  background: var(--jk-blue);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.jk-go:hover:not(:disabled) { background: #1f4468; }
.jk-go:disabled { background: #7b8a99; cursor: not-allowed; }

.jk-err { margin: 0; font-size: 14px; font-weight: 600; color: var(--jk-neg); }
.jk-ok  { margin: 0; font-size: 14px; font-weight: 600; color: var(--jk-pos); }
.jk-hint { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--jk-mut); }

/* ── التذييل ── */
.jk-foot {
  border-top: 1px solid var(--jk-line);
  padding: 22px 0 34px;
  font-size: 13.5px;
  color: var(--jk-mut);
}

.jk-foot .jk-wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.jk-foot a { color: var(--jk-blue); text-decoration: none; font-weight: 600; margin-inline-start: 20px; }

/* ── الجوال ── */
@media (max-width: 860px) {
  .jk-wrap { padding: 0 16px; }
  .jk-bar .jk-wrap { height: auto; flex-wrap: wrap; gap: 10px; padding-top: 12px; padding-bottom: 10px; }
  .jk-nav { overflow-x: auto; gap: 2px; -webkit-overflow-scrolling: touch; }
  .jk-nav a { padding: 0 12px; font-size: 14.5px; }
  .jk-me { gap: 8px; }
  .jk-me span { display: none; }

  .jk-body { padding: 18px 0 40px; }

  .jk-sum { border-radius: 16px; padding: 20px; gap: 18px; }
  .jk-figs { gap: 28px; width: 100%; }
  .jk-fig-v { font-size: 27px; }
  .jk-add { width: 100%; justify-content: center; }

  .jk-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
  .jk-row { padding: 14px 16px; }
  .jk-card-h { padding: 14px 16px; }
}

/* ── توابعُ القشرة (v1339) ── */

/* صفحاتُ النماذج: قياسٌ مريحٌ للقراءة والملء، لا عرضُ الشاشة كلِّه */
.jk .jk-narrow { max-width: 640px; }

/* بطاقةٌ تلي أختها */
.jk .jk-stack { margin-top: 18px; }

/* مفتاحُ الإشارات أسفل السجلّ */
.jk .jk-legend { margin-top: 18px; text-align: center; }
.jk .jk-legend .jk-amt { font-size: 15px; }

/* صفُّ اختيارِ مشارك */
.jk .jk-check {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
}

.jk .jk-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 22px; height: 22px;
  accent-color: var(--jk-blue);
}

/* حقلانِ ضيّقان داخل الصفوف: مبلغٌ محدّد، ووزنٌ في التقسيم */
.jk .jk-mid  { flex: 0 0 118px; width: 118px; height: 46px; font-size: 16px; padding: 0 12px; }
.jk .jk-tiny { flex: 0 0 64px;  width: 64px;  height: 46px; font-size: 16px; padding: 0 8px; text-align: center; }

@media (max-width: 860px) {
  .jk .jk-mid  { flex-basis: 96px; width: 96px; }
  .jk .jk-tiny { flex-basis: 56px; width: 56px; }
}

/* نصٌّ لاتينيُّ الاتجاه (رقمُ جوال) داخل صفٍّ عربي: تبقى أرقامُه بترتيبها
   ويلتصق الصندوقُ ببداية السطر — وإلا انزاح إلى الطرف الآخر وحده */
.jk .jk-row-b [dir="ltr"] { text-align: right; }

/* صفُّ الدافع بلا مربّع اختيار: يُزاح بعرض المربّع وفجوته ليحاذي من تحته */
.jk .jk-row-pay { padding-inline-start: 34px; }

/* على الجوال يتزاحم الرقمان في سطرٍ واحد فينفصل «ر.س» عن رقمه.
   حجمٌ أصغر وفجوةٌ أضيق ومنعُ الانكماش تُبقي كلَّ حصيلةٍ كتلةً واحدة. */
@media (max-width: 860px) {
  .jk .jk-figs { gap: 20px; }
  .jk .jk-fig  { flex: 0 0 auto; }
  .jk .jk-fig-v { font-size: 25px; }
  .jk .jk-fig-v small { font-size: 14px; }
}

/* دون 440 بكسل لا يتّسع الصفُّ لحصيلتين جنباً إلى جنب، فتُكدَّسان.
   رقمان كبيران فوق بعضهما أوضحُ من رقمين مضغوطين. */
@media (max-width: 440px) {
  .jk .jk-figs { flex-direction: column; gap: 14px; width: 100%; }
  .jk .jk-fig-v { font-size: 28px; }
}
