/* ═══════════════════════════════════════════════════════════════════════════
   محاضر الاجتماعات — تنسيق موبايل أولًا مريح للعين
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bs-body-font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Cairo', system-ui, sans-serif;
  --bs-primary: #0071e3;
  --bs-primary-rgb: 0, 113, 227;

  --nav-h: 64px;              /* ارتفاع الشريط السفلي بتنسيق iOS */
  --topbar-h: 54px;
  --tap: 44px;                /* أصغر هدف لمس مسموح في معايير Apple */
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  --surface: #ffffff;
  --bg: #f2f2f7;              /* خلفية iOS Grouped الافتراضية الناعمة */
  --line: rgba(60, 60, 67, 0.12); /* خطوط وفواصل Apple الدقيقة */
  --muted: #8e8e93;           /* النص الفرعي بنظام Apple */

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px -4px rgba(0, 113, 227, 0.18), 0 4px 12px -2px rgba(0, 0, 0, 0.06);
  --shadow-float: 0 10px 30px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.06);
}

* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

html, body {
  font-family: var(--bs-body-font-family);
  background-color: var(--bg);
  color: #0f172a;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding-bottom: calc(var(--nav-h) + var(--safe-b));
}

/* ───────────────────────────────────────────────────────────────────────────
   مؤشر التحميل العالمي (Global Loader & Top Progress Bar)
   ─────────────────────────────────────────────────────────────────────────── */

.global-progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 100;
  background: rgba(37, 99, 235, 0.12);
  overflow: hidden;
}

.global-progress-bar {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa);
  border-radius: 2px;
  animation: global-progress-anim 1.2s infinite ease-in-out;
}

@keyframes global-progress-anim {
  0% { transform: translateX(-100%); width: 30%; }
  50% { width: 60%; }
  100% { transform: translateX(300%); width: 30%; }
}

.global-loader-badge {
  position: fixed;
  top: calc(var(--topbar-h) + 12px);
  inset-inline-start: 50%;
  transform: translateX(50%);
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 9999px;
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  animation: badge-bounce-in 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badge-bounce-in {
  from { opacity: 0; transform: translate(50%, -10px) scale(0.92); }
  to { opacity: 1; transform: translate(50%, 0) scale(1); }
}

/* ═══ الإدخال — 16px حد أدنى لمنع الزوم في iOS ═══ */

/* ⚠️ `input` العارية بتشمل الـ checkbox والـ radio كمان. من غير الاستثناء
   ده كانوا بياخدوا `min-height: 44px` فيتمطّوا لمستطيل طويل، و
   `border-radius: 12px` فتضيع دايرة الراديو وشكل المفتاح.
   شكلهم كله تحت في قسم «مربعات الاختيار والمفاتيح». */
input:not([type="checkbox"]):not([type="radio"]),
select, textarea, .form-control, .form-select {
  font-size: 16px !important;
  min-height: var(--tap);
  border-color: var(--line);
  border-radius: 12px;
  max-width: 100%;
  box-sizing: border-box;
}
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus, textarea:focus, .form-control:focus, .form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ═══ مربعات الاختيار والمفاتيح ═══
   بوتستراب بيرصّهم بـ float ومارجن سالب، والتطبيق كان بيلفّ حواليه بـ
   `d-flex gap-2` في مكان و `ms-2` في مكان و `scale(1.15)` في تالت — فطلعوا
   بأحجام ومسافات مختلفة في كل شاشة. هنا سطر واحد بيحكم الشكل في كل حتة. */

.form-check,
.form-check.form-switch {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 0;
  min-height: var(--tap);      /* هدف اللمس 44px — الصف كله مش المربع */
  margin-bottom: 0;
}

/* لازم `.form-check .form-check-input` مش `.form-check-input` لوحدها:
   بوتستراب RTL بيرصّ الـ float والمارجن السالب بالتخصيص ده بالظبط، ومارجن
   `-2.5em` بيفضل شغال جوه الفلكس (الفلكس بيلغي الـ float بس) فيسحب المربع
   فوق الليبل. */
.form-check .form-check-input {
  float: none;
  margin: 0;
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-color: #cbd5e1;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.form-check .form-check-input[type="checkbox"] { border-radius: 6px; }
.form-check .form-check-input[type="radio"]    { border-radius: 50%; }

/* المفتاح: مستطيل بأطراف دايرية — العرض لازم يبقى أكبر من الارتفاع */
.form-check.form-switch .form-check-input {
  width: 2.6rem;
  height: 1.45rem;
  border-radius: 2rem;
}

.form-check .form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}
.form-check .form-check-input:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-check .form-check-input:disabled { opacity: .5; cursor: not-allowed; }

.form-check-label {
  margin: 0;
  cursor: pointer;
  line-height: 1.4;
}
.form-check-input:disabled ~ .form-check-label { cursor: not-allowed; }

select.form-select {
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
select.form-select option {
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

input[type="date"].form-control {
  max-width: 100%;
  width: 100%;
}

textarea.form-control { min-height: 96px; resize: none; }

.btn {
  min-height: var(--tap);
  font-weight: 600;
  border-radius: 12px;
  transition: transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover, .btn-primary:active {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}
.btn-sm { min-height: 38px; border-radius: 10px; }

/* أرقام الهواتف والأكواد تتعرض من الشمال لليمين */
.ltr { direction: ltr; text-align: center; letter-spacing: .04em; }

/* ═══ الشريط العلوي بتصميم iOS (Apple Frosted Glass) ═══ */

.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: .5rem;
  padding: 0 1rem;
  background: rgba(246, 246, 248, 0.82);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.15);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.topbar-title {
  flex: 1; margin: 0;
  font-size: 1.12rem; font-weight: 700;
  color: #1c1c1e;
  letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.topbar-btn {
  min-width: var(--tap); min-height: var(--tap);
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; border-radius: 50%;
  font-size: 1.25rem; color: var(--bs-primary);
  transition: background-color 0.15s ease, transform 0.12s ease;
}
.topbar-btn:active { background: rgba(0, 0, 0, 0.05); transform: scale(0.92); }

.topbar-actions { display: flex; align-items: center; gap: .25rem; }

/* ═══ الشاشة ═══ */

.view { padding: 1rem .875rem 1.75rem; max-width: 720px; margin: 0 auto; }

.card-soft {
  background: var(--surface);
  border: 0.5px solid rgba(60, 60, 67, 0.1);
  border-radius: 20px;
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.section-title {
  font-size: .8rem; font-weight: 600; color: #6c6c70;
  margin: 1.4rem .5rem .55rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* صف قابل للنقر — أسلوب قوائم iOS (Inset Grouped Rows) */
.row-tap {
  display: flex; align-items: center; gap: .85rem;
  min-height: 56px; padding: .85rem 1.15rem;
  background: var(--surface);
  border: 0.5px solid rgba(60, 60, 67, 0.1);
  border-radius: 16px;
  margin-bottom: .6rem;
  width: 100%; text-align: start;
  color: inherit; text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.row-tap:active {
  transform: scale(0.985);
  background: #e5e5ea;
}
.row-tap .row-icon { font-size: 1.3rem; color: var(--bs-primary); flex-shrink: 0; }
.row-tap .row-main { flex: 1; min-width: 0; }
.row-tap .row-title { font-weight: 600; color: #1c1c1e; font-size: 0.95rem; }
.row-tap .row-sub { font-size: .82rem; color: var(--muted); margin-top: 1px; }

/* ═══ الشريط السفلي بتصميم iOS (Apple Tab Bar) ═══ */

.bottomnav {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
  display: flex;
  height: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(246, 246, 248, 0.85);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border-top: 0.5px solid rgba(60, 60, 67, 0.18);
  box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.03);
}

.navitem {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  border: 0; background: transparent;
  color: #8e8e93; text-decoration: none;
  font-size: .68rem; font-weight: 500;
  padding: 0;
  transition: color 0.15s ease, transform 0.12s ease;
}
.navitem i { font-size: 1.42rem; line-height: 1; }
.navitem.active { color: var(--bs-primary); font-weight: 700; }
.navitem:active { transform: scale(0.9); }

/* ═══ الدرج السفلي ═══ */

.sheet-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .22s ease;
}
.sheet-backdrop.show { opacity: 1; }

.sheet {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 55;
  display: flex; flex-direction: column;
  max-height: 88vh;
  max-width: 100vw;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  transform: translateY(100%);
  transition: transform .26s cubic-bezier(.32,.72,0,1);
  padding-bottom: var(--safe-b);
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.15);
  box-sizing: border-box;
}
.sheet.show { transform: translateY(0); }

.sheet-head {
  position: relative;
  display: flex; align-items: center; gap: .5rem;
  padding: .75rem 1rem .6rem;
  border-bottom: 1px solid var(--line);
}
.sheet-grip {
  position: absolute; top: 8px; inset-inline-start: 50%;
  transform: translateX(50%);
  width: 42px; height: 5px; border-radius: 3px; background: #cbd5e1;
}
.sheet-title { flex: 1; margin: .4rem 0 0; font-size: 1.05rem; font-weight: 700; color: #0f172a; }
.sheet-body {
  padding: 1.1rem;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  max-height: calc(88vh - 120px);
}
.sheet-footer { padding: .85rem 1.1rem; border-top: 1px solid var(--line); }

/* ═══ تسجيل الحضور ═══ */

/* رقم المركز جنب الاسم — دايرة واضحة من بعيد والراجل واقف في الاجتماع */
.rank-badge {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bs-primary); color: #fff;
  font-weight: 700; font-size: .92rem;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}
.rank-badge.plain { background: #e2e8f0; color: var(--muted); box-shadow: none; }

/* شريط الحفظ — ثابت فوق شريط التنقّل على الموبايل */
.savebar {
  position: fixed; inset-inline: 0; z-index: 35;
  bottom: calc(var(--nav-h) + var(--safe-b));
  padding: .75rem 1rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.05);
}

/* مسافة تحت المحتوى عشان الشريط الثابت مايغطيش آخر عنصر */
.savebar-space { height: 86px; }

/* قائمة اختيار متعدد جوه درج — بتسكرول لوحدها عشان الدرج مايطولش */
.picker-list {
  max-height: 180px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 .5rem;
  background: #f8fafc;
}

/* ═══ دروب داون بالبحث ═══ */

.picker-drop { position: relative; }

.picker-drop-btn {
  width: 100%;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .5rem .85rem;
  font-size: 16px;
  text-align: start;
  background: #fff;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.picker-drop-btn:focus-visible,
.picker-drop-btn[aria-expanded="true"] {
  outline: none;
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* بيطلع فوق الكارت اللي تحته — `.card-soft` مافيهوش overflow:hidden فمابيتقصّش */
.picker-drop-panel {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 6px);
  z-index: 30;
  padding: .55rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.picker-drop-opts {
  max-height: 240px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.picker-drop-opt {
  width: 100%;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .5rem .6rem;
  text-align: start;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: inherit;
}
.picker-drop-opt:hover { background: #f1f5f9; }
.picker-drop-opt.active { background: #eff6ff; color: #1e40af; font-weight: 600; }

.picker-opt-main { min-width: 0; display: flex; flex-direction: column; }
.picker-opt-label {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.picker-opt-hint { font-size: .78rem; color: var(--muted); font-weight: 400; }

/* ═══ عنوان مجموعة (تجميع حسب المكلَّف) ═══ */

.group-head {
  width: 100%;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem .9rem;
  text-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: inherit;
}
.group-head:hover { background: #f8fafc; }
.group-caret { color: var(--muted); flex-shrink: 0; }
.group-main { flex: 1 1 auto; min-width: 0; }
.group-name {
  display: block; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.group-sub { display: block; font-size: .8rem; color: var(--muted); }

/* الكروت بتترسم مزاحة جوه المجموعة عشان الانتماء يبان من غير إطار زيادة */
.group-body {
  padding-inline-start: .6rem;
  margin-top: .5rem;
  border-inline-start: 2px solid var(--line);
}

/* ═══ حالات فاضية وتحميل ═══ */

.empty, .loading { text-align: center; padding: 3rem 1rem; }
.empty-icon { font-size: 2.85rem; color: #cbd5e1; margin-bottom: .5rem; }
.empty-title { font-weight: 700; color: #1e293b; margin-bottom: .25rem; }
.empty-text { color: var(--muted); font-size: .92rem; }
.loading-text { color: var(--muted); font-size: .92rem; margin-top: .75rem; }

/* ═══ الإشعارات ═══ */

.toast-host {
  position: fixed; z-index: 70;
  inset-inline: .75rem;
  bottom: calc(var(--nav-h) + var(--safe-b) + .75rem);
  display: flex; flex-direction: column; gap: .5rem;
  pointer-events: none;
}
.toast-host .toast { pointer-events: auto; width: 100%; border-radius: 14px; box-shadow: var(--shadow-md); }

/* ═══ شاشة الدخول ═══ */

.auth-wrap {
  min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 1.5rem 1.1rem calc(2rem + var(--safe-b));
  max-width: 460px; margin: 0 auto;
}
.auth-logo {
  width: 68px; height: 68px; border-radius: 22px;
  display: grid; place-items: center;
  background: var(--bs-primary); color: #fff; font-size: 2rem;
  margin: 0 auto 1.1rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}
.auth-title { text-align: center; font-weight: 700; color: #0f172a; margin-bottom: .25rem; }
.auth-sub { text-align: center; color: var(--muted); font-size: .92rem; margin-bottom: 1.5rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   من 768px وفوق — الزيادات بس. الموبايل فوق كده كله.
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  body { padding-bottom: 0; }

  .global-loader-badge {
    top: calc(var(--topbar-h) + 16px);
  }

  .bottomnav {
    position: sticky; top: var(--topbar-h); bottom: auto;
    height: var(--topbar-h); padding-bottom: 0;
    border-top: 0; border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    justify-content: center; gap: .5rem;
    box-shadow: none;
  }
  .navitem {
    flex: 0 0 auto; flex-direction: row; gap: .45rem;
    padding: 0 1.1rem; font-size: .9rem; border-radius: 12px;
  }
  .navitem i { font-size: 1.1rem; }

  .view { padding: 1.75rem 1rem 2.5rem; max-width: 860px; }

  .toast-host {
    inset-inline: auto 1rem; bottom: 1rem;
    width: 380px;
  }

  .sheet {
    inset-inline: 50%; bottom: auto; top: 50%;
    transform: translate(50%, -45%) scale(.98);
    width: min(560px, 92vw);
    border-radius: 20px;
    opacity: 0; transition: opacity .18s ease, transform .18s ease;
  }
  .sheet.show { transform: translate(50%, -50%) scale(1); opacity: 1; }
  .sheet-grip { display: none; }

  /* الشريط السفلي بقى فوق — فشريط الحفظ يرجع في تدفق الصفحة عادي */
  .savebar {
    position: static;
    border-top: 0; padding: 1rem 0 0;
    background: transparent;
    max-width: 860px; margin: 0 auto;
    box-shadow: none;
  }
  .savebar-space { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   مكونات واجهة iOS الفاخرة — شريط التثبيت العائم وزر تحميل APK
   ═══════════════════════════════════════════════════════════════════════════ */

/* شريط التثبيت العائم الذكي (Floating iOS Install Banner) */
.ios-install-banner {
  position: fixed;
  bottom: calc(var(--nav-h) + var(--safe-b) + 12px);
  inset-inline: 14px;
  max-width: 520px;
  margin: 0 auto;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  box-shadow: var(--shadow-float);
  animation: banner-slide-up 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes banner-slide-up {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.ios-install-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0071e3, #42a5f5);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 113, 227, 0.25);
}

.ios-install-info {
  flex: 1;
  min-width: 0;
}

.ios-install-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #1c1c1e;
  line-height: 1.25;
}

.ios-install-desc {
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ios-install-btn {
  background: var(--bs-primary);
  color: #fff;
  border: 0;
  border-radius: 20px;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.12s ease, opacity 0.15s ease;
}
.ios-install-btn:active {
  transform: scale(0.94);
  opacity: 0.85;
}

.ios-install-close {
  background: transparent;
  border: 0;
  color: #8e8e93;
  padding: 4px;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
}
.ios-install-close:active { background: rgba(0, 0, 0, 0.06); }

/* بطاقة وخيارات تحميل تطبيق الأندرويد APK */
.apk-download-card {
  margin-top: 1.25rem;
  background: rgba(255, 255, 255, 0.85);
  border: 0.5px solid rgba(60, 60, 67, 0.12);
  border-radius: 18px;
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.btn-apple-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 0.5px solid rgba(60, 60, 67, 0.18);
  border-radius: 16px;
  color: #1c1c1e;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.65rem 1.15rem;
  width: 100%;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-apple-glass:active {
  transform: scale(0.98);
  background: rgba(229, 229, 234, 0.8);
  color: #000;
}

/* خطوات التثبيت المصورة بنمط iOS */
.ios-step-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.08);
}
.ios-step-row:last-child { border-bottom: 0; }
.ios-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 113, 227, 0.12);
  color: var(--bs-primary);
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

