/* ============================================================
   مبادرة — Dashboard Styles
   يعتمد على tokens.css + components.css
   ============================================================ */

/* ==================== الحاوية العامة ==================== */
.mb-dash {
  min-height: 100dvh;
  background: var(--bg);
  padding-block-end: calc(var(--nav-mobile) + var(--space-6));
}

.mb-dash-container {
  width: 100%;
  max-width: var(--container-md);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

/* ==================== Top Bar ==================== */
.mb-dash-topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  margin-inline: calc(var(--space-4) * -1);
  padding-inline: var(--space-4);
  padding-block: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-block-end: 1px solid var(--border);
  margin-block-end: var(--space-6);
}

.mb-dash-brand__name {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--accent);
  letter-spacing: var(--tracking-tight);
}

.mb-dash-topbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.mb-dash-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--body);
  border-radius: var(--radius-md);
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.mb-dash-icon-btn:hover {
  background: var(--surface-sunk);
  color: var(--ink);
}

.mb-dash-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--accent-subtle);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
}

/* ============ Theme Switch Button ============ */
.mb-theme-switch {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
}
.mb-theme-switch__dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--surface);
  transition: transform var(--duration-fast) var(--ease-out);
}
/* في الوضع الافتراضي (Nile Indigo): الدائرة الحالية داكنة Indigo، الأخرى بنفسجية Royal */
.mb-theme-switch__dot--current {
  background: #2D2A6E;   /* Nile Indigo */
  top: 8px;
  inset-inline-start: 8px;
  z-index: 2;
}
.mb-theme-switch__dot--other {
  background: #3C3489;   /* Royal Purple */
  bottom: 8px;
  inset-inline-end: 8px;
  z-index: 1;
}
.mb-theme-switch:hover .mb-theme-switch__dot--current { transform: translate(-1px, -1px); }
.mb-theme-switch:hover .mb-theme-switch__dot--other   { transform: translate(1px, 1px); }
[dir="rtl"] .mb-theme-switch:hover .mb-theme-switch__dot--current { transform: translate(1px, -1px); }
[dir="rtl"] .mb-theme-switch:hover .mb-theme-switch__dot--other   { transform: translate(-1px, 1px); }

/* عندما Royal مُفعّل: نُبدّل الترتيب البصري (Royal تصبح "الحالية" فوق) */
html.theme-royal .mb-theme-switch__dot--current { background: #3C3489; }
html.theme-royal .mb-theme-switch__dot--other   { background: #2D2A6E; }

/* ==================== Welcome ==================== */
.mb-dash-welcome {
  margin-block-end: var(--space-6);
}
.mb-dash-welcome__greet {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--ink);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-block-end: var(--space-1);
}
.mb-dash-welcome__sub {
  font-size: var(--text-sm);
  color: var(--body);
  line-height: var(--leading-relaxed);
}

/* ==================== Profile Completion Card ==================== */
.mb-dash-completion {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-block-end: var(--space-6);
}

.mb-dash-completion__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-block-end: var(--space-3);
}
.mb-dash-completion__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--ink);
}
.mb-dash-completion__percent {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-tight);
}

.mb-dash-completion__bar {
  height: 6px;
  background: var(--surface-sunk);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-block-end: var(--space-4);
}
.mb-dash-completion__bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-pill);
  transition: width var(--duration-slower) var(--ease-out);
  animation: mb-progress-sweep var(--duration-slower) var(--ease-out);
}
@keyframes mb-progress-sweep {
  from { width: 0 !important; }
}

.mb-dash-completion__desc {
  font-size: var(--text-sm);
  color: var(--body);
  line-height: var(--leading-relaxed);
  margin-block-end: var(--space-4);
}
.mb-dash-completion__desc strong {
  color: var(--accent);
  font-weight: var(--weight-semibold);
}

/* ==================== Section Common ==================== */
.mb-dash-section {
  margin-block-end: var(--space-7);
}

.mb-dash-section__eyebrow {
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-block-end: var(--space-3);
}

.mb-dash-section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-block-end: var(--space-3);
  gap: var(--space-3);
}

.mb-dash-section__title {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--ink);
  line-height: var(--leading-snug);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.mb-dash-see-all {
  font-size: var(--text-sm);
  white-space: nowrap;
}

/* ==================== Quick Actions Grid ==================== */
.mb-dash-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.mb-dash-action {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  color: inherit;
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}
.mb-dash-action:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.mb-dash-action__icon {
  width: 36px;
  height: 36px;
  background: var(--accent-subtle);
  color: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-end: var(--space-3);
}

.mb-dash-action__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--ink);
  line-height: var(--leading-snug);
  margin-block-end: var(--space-1);
}

.mb-dash-action__desc {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: var(--leading-normal);
}

/* ==================== Photo Requests List ==================== */
.mb-dash-req-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mb-dash-req {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  transition: border-color var(--duration-fast) var(--ease-out);
}
.mb-dash-req:hover {
  border-color: var(--border-strong);
}

.mb-dash-req__avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--surface-sunk);
  color: var(--body);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

.mb-dash-req__info {
  flex: 1;
  min-width: 0;
}
.mb-dash-req__name {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--ink);
  text-decoration: none;
  line-height: var(--leading-snug);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mb-dash-req__name:hover { color: var(--accent); }
.mb-dash-req__meta {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-block-start: 2px;
}

/* ==================== Premium Card (not subscribed) ==================== */
.mb-dash-premium {
  background: linear-gradient(135deg, var(--indigo-900) 0%, var(--accent) 100%);
  color: var(--stone-0);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.mb-dash-premium__inner {
  flex: 1;
  min-width: 0;
}
.mb-dash-premium__label {
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  color: var(--indigo-200);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-block-end: var(--space-1);
}
.mb-dash-premium__title {
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--stone-0);
  line-height: var(--leading-snug);
  margin-block-end: var(--space-2);
  letter-spacing: var(--tracking-tight);
}
.mb-dash-premium__desc {
  font-size: var(--text-xs);
  color: var(--indigo-200);
  line-height: var(--leading-relaxed);
  margin-block-end: var(--space-4);
}
.mb-dash-premium__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--stone-0);
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-out);
}
.mb-dash-premium__btn:hover {
  transform: translateY(-1px);
}
.mb-dash-premium__star {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone-0);
  flex-shrink: 0;
}

/* ==================== Premium Active ==================== */
.mb-dash-premium-active {
  background: var(--surface);
  border: 1px solid var(--success);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.mb-dash-premium-active__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--success);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin-block-end: var(--space-1);
}
.mb-dash-premium-active__note {
  font-size: var(--text-xs);
  color: var(--muted);
}

/* ==================== Bottom Navigation ==================== */
.mb-dash-bottomnav {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: var(--z-sticky);
  background: var(--surface);
  border-block-start: 1px solid var(--border);
  padding: var(--space-2) var(--space-3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  min-height: var(--nav-mobile);
  padding-block-end: max(var(--space-2), env(safe-area-inset-bottom));
}

.mb-dash-navitem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-1) var(--space-3);
  color: var(--muted);
  text-decoration: none;
  font-size: var(--text-2xs);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--ease-out);
  min-width: 56px;
}
.mb-dash-navitem svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}
.mb-dash-navitem:hover { color: var(--body); }
.mb-dash-navitem.is-active {
  color: var(--accent);
}
.mb-dash-navitem.is-active svg {
  stroke-width: 2;
}

/* ==================== Tablet — 768px+ ==================== */
@media (min-width: 768px) {
  .mb-dash-container {
    padding-inline: var(--space-6);
  }

  .mb-dash-actions {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Bottom nav يبقى للجوال — نُخفيه في الديسكتوب */
  .mb-dash-bottomnav {
    display: none;
  }
  .mb-dash {
    padding-block-end: var(--space-8);
  }
}

/* ==================== Desktop — 1024px+ ==================== */
@media (min-width: 1024px) {
  .mb-dash-container {
    max-width: var(--container-lg);
    padding-inline: var(--space-7);
  }

  .mb-dash-welcome__greet {
    font-size: var(--text-3xl);
  }
}
/* ===== الخصوصية والتميز ===== */
.mb-dash-privacy {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 16px;
}
.mb-dash-privacy__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}
.mb-dash-privacy__txt { flex: 1; min-width: 0; }
.mb-dash-privacy__title {
  font-size: 13px;
  font-weight: var(--weight-bold);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mb-dash-premtag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--premium-bg, #FAF3DC);
  color: var(--premium, #8B6F1F);
  font-size: 9px;
  font-weight: var(--weight-semibold);
}
.mb-dash-premtag img { width: 11px; height: 11px; }
.mb-dash-privacy__desc {
  font-size: 10.5px;
  color: var(--indigo-600);
  line-height: 1.8;
  margin-block-start: 3px;
}
.mb-toggle { position: relative; flex-shrink: 0; cursor: pointer; }
.mb-toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.mb-toggle__track {
  display: block;
  width: 40px;
  height: 24px;
  border-radius: var(--radius-pill);
  background: var(--indigo-200);
  position: relative;
  transition: background var(--duration-fast) var(--ease-out);
}
.mb-toggle__track::after {
  content: '';
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform var(--duration-fast) var(--ease-spring);
}
.mb-toggle input:checked + .mb-toggle__track { background: var(--accent); }
.mb-toggle input:checked + .mb-toggle__track::after { transform: translateX(-16px); }
[dir="ltr"] .mb-toggle input:checked + .mb-toggle__track::after { transform: translateX(16px); }
.mb-toggle.is-locked { opacity: 0.55; cursor: not-allowed; }
.mb-toggle.is-locked input { cursor: not-allowed; }

/* ===== صفحة إعدادات التنبيهات ===== */
.nts-wrap { max-width: 560px; margin-inline: auto; padding: 12px 12px 48px; }
.nts-head { display: flex; align-items: center; gap: 10px; padding: 8px 4px 14px; }
.nts-back { font-size: 15px; color: var(--indigo-600); font-weight: var(--weight-semibold); }
.nts-title { font-size: 18px; font-weight: var(--weight-bold); color: var(--ink); margin: 0; }
.nts-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-block-end: 12px;
}
.nts-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-block-start: 0.5px solid var(--divider, #F0EEF8);
  cursor: pointer;
}
.nts-row:first-child { border-block-start: none; }
.nts-row__txt { flex: 1; min-width: 0; }
.nts-row__txt b { display: block; font-size: 13px; font-weight: var(--weight-bold); color: var(--ink); }
.nts-row__txt small { display: block; font-size: 10px; color: var(--indigo-600); line-height: 1.8; margin-block-start: 2px; }
.nts-filter { border-block-start: 0.5px solid var(--divider, #F0EEF8); transition: opacity var(--duration-base) var(--ease-out); }
.nts-filter.is-off { opacity: 0.45; pointer-events: none; }
.nts-f { padding: 12px 16px; border-block-start: 0.5px solid var(--divider, #F0EEF8); }
.nts-f:first-child { border-block-start: none; }
.nts-f__label { font-size: 11px; font-weight: var(--weight-semibold); color: var(--ink); margin-block-end: 8px; }
.nts-f__label small { font-weight: var(--weight-regular); color: var(--muted); font-size: 9.5px; }
.nts-age { display: flex; gap: 8px; }
.nts-age .mb-input { height: 38px; font-size: 13px; }
.nts-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.nts-chip { position: relative; }
.nts-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.nts-chip span {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding-inline: 13px;
  border-radius: var(--radius-pill);
  border: 0.5px solid var(--border-strong, #D8D5E8);
  font-size: 10.5px;
  color: var(--indigo-700);
  transition: all var(--duration-fast) var(--ease-out);
  user-select: none;
}
.nts-chip input:checked + span {
  background: var(--accent-subtle);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: var(--weight-semibold);
}
.nts-row--last { border-block-start: 0.5px solid var(--divider, #F0EEF8); }
.nts-save { margin-block-start: 4px; }
.nts-hint { font-size: 10px; color: var(--muted); line-height: 1.9; text-align: center; margin-block-start: 10px; }

.page-head--row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.page-head--row .mb-srch__title { margin: 0; }
.ntf-gear {
  font-size: 11px;
  color: var(--accent);
  font-weight: var(--weight-semibold);
  background: var(--accent-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  flex-shrink: 0;
}

.mb-dash-privacy__links { border-block-start: 0.5px solid var(--divider, #F0EEF8); }
.mb-dash-setlink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  font-size: 12.5px;
  font-weight: var(--weight-semibold);
  color: var(--ink);
  border-block-start: 0.5px solid var(--divider, #F0EEF8);
}
.mb-dash-setlink:first-child { border-block-start: none; }
.mb-dash-setlink span { color: var(--indigo-400); font-size: 13px; }
.mb-dash-setlink:hover { background: var(--stone-50); }

.mb-dash-privacy__row--link { border-block-start: 0.5px solid var(--divider, #F0EEF8); }
.mb-dash-privacy__row--link:hover { background: var(--stone-50); }
.mb-dash-privacy__arrow { color: var(--indigo-400); font-size: 14px; flex-shrink: 0; }
.nts-eyebrow {
  font-size: 10px;
  font-weight: var(--weight-semibold);
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 4px 4px 8px;
}
.nts-navrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-block-start: 0.5px solid var(--divider, #F0EEF8);
}
.nts-navrow:first-child { border-block-start: none; }
.nts-navrow b { font-size: 13px; font-weight: var(--weight-bold); color: var(--ink); }
.nts-navrow span { color: var(--indigo-400); font-size: 13px; }
.nts-navrow:hover { background: var(--stone-50); }

/* ===== بطاقة الاشتراك الفعّال ===== */
.mb-dash-prem {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--success, #1D9E75);
  border-radius: 16px;
  padding: 14px 16px;
  margin-block-end: 16px;
}
.mb-dash-prem__crown {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.mb-dash-prem__title {
  font-size: 13.5px;
  font-weight: var(--weight-bold);
  color: var(--success, #1D9E75);
}
.mb-dash-prem__desc {
  font-size: 10.5px;
  color: var(--success, #1D9E75);
  opacity: 0.85;
  line-height: 1.8;
  margin-block-start: 2px;
}

.nts-testbtn {
  margin-block-start: 8px;
  height: 30px;
  padding-inline: 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: var(--weight-semibold);
  font-family: inherit;
}
.nts-testbtn:active { transform: scale(0.97); }

.nts-ver { text-align: center; font-size: 9px; color: var(--faint); margin-block-start: 18px; }

/* ===== تعديل بياناتي ===== */
/* ===== تعديل البيانات — تصميم بالتبويبات ===== */
.epf-wrap { max-width: 620px; margin-inline: auto; padding: var(--space-5) var(--space-4) var(--space-10); }
.epf-topbar { display: flex; align-items: center; gap: var(--space-3); margin-block-end: var(--space-5); }
.epf-back {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-md);
  color: var(--body); background: var(--surface); border: 1px solid var(--border);
  transition: background var(--duration-fast) var(--ease-out);
}
.epf-back:hover { background: var(--surface-sunk); }
.epf-title { font-size: var(--text-xl); font-weight: var(--weight-bold); color: var(--ink); letter-spacing: var(--tracking-tight); }

/* التبويبات */
.epf-tabs {
  display: flex; gap: var(--space-2); overflow-x: auto;
  margin-block-end: var(--space-5); padding-block-end: var(--space-1);
  scrollbar-width: none; -ms-overflow-style: none;
}
.epf-tabs::-webkit-scrollbar { display: none; }
.epf-tab {
  flex-shrink: 0; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md); font-family: var(--font-sans);
  font-size: var(--text-sm); font-weight: var(--weight-medium);
  color: var(--muted); background: var(--surface); border: 1px solid var(--border);
  cursor: pointer; white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-out);
}
.epf-tab:hover { border-color: var(--border-strong); color: var(--body); }
.epf-tab.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: var(--weight-semibold); }

/* البطاقة/اللوحة */
.epf-pane { display: none; }
.epf-pane.is-active { display: block; animation: epf-fade var(--duration-base) var(--ease-out); }
@keyframes epf-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.epf-card {
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: var(--radius-xl); padding: var(--space-6);
  box-shadow: var(--shadow-xs);
}
.epf-head { display: flex; align-items: center; gap: var(--space-3); margin-block-end: var(--space-5); }
.epf-hic {
  width: 38px; height: 38px; border-radius: var(--radius-md);
  background: var(--accent-subtle); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.epf-ht { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--ink); letter-spacing: var(--tracking-tight); }

/* الشبكة */
.epf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.epf-f { display: block; }
.epf-f--wide, .epf-f--full { grid-column: span 2; }
.epf-f > span { display: block; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--body); margin-block-end: var(--space-2); }

/* الحقول */
.epf-in {
  width: 100%; height: 46px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); padding-inline: var(--space-4);
  font-family: var(--font-sans); font-size: 16px; color: var(--ink);
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.epf-in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.epf-selwrap { position: relative; }
.epf-selwrap::after {
  content: ''; position: absolute; inset-inline-end: 14px; top: 50%;
  width: 8px; height: 8px; border-inline-end: 1.5px solid var(--muted);
  border-block-end: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.epf-sel { cursor: pointer; appearance: none; -webkit-appearance: none; padding-inline-end: 36px; }
.epf-hint { display: block; font-size: var(--text-xs); color: var(--muted); margin-block-start: var(--space-2); }

/* النبذة */
.epf-mic-wrap { position: relative; }
.epf-ta {
  width: 100%; min-height: 96px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); padding: var(--space-3); padding-inline-end: 46px;
  font-family: var(--font-sans); font-size: 16px; color: var(--ink);
  line-height: var(--leading-relaxed); resize: vertical;
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.epf-ta:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.epf-f--full { margin-block-end: var(--space-4); }

/* زر الحفظ */
.epf-save {
  width: 100%; height: 48px; margin-block-start: var(--space-6);
  background: var(--accent); color: var(--on-accent);
  border: none; border-radius: var(--radius-md);
  font-family: var(--font-sans); font-size: var(--text-md); font-weight: var(--weight-semibold);
  cursor: pointer; transition: background var(--duration-fast) var(--ease-out);
}
.epf-save:hover { background: var(--accent-hover); }
.epf-save:disabled { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 480px) {
  .epf-grid { grid-template-columns: 1fr; }
  .epf-f--wide, .epf-f--full { grid-column: auto; }
  .epf-card { padding: var(--space-5); }
}

/* ===== صورتي ===== */
.myph-card { padding: 16px; text-align: center; }
.myph-frame {
  width: 148px; height: 148px; border-radius: var(--radius-full);
  overflow: hidden; margin-inline: auto; background: var(--accent-subtle);
  display: flex; align-items: center; justify-content: center;
  border: 0.5px solid var(--indigo-200);
}
.myph-frame img { width: 100%; height: 100%; object-fit: cover; }
.myph-empty { font-size: 10.5px; color: var(--indigo-400); }
.myph-actions { display: flex; gap: 8px; justify-content: center; margin-block-start: 14px; }
.myph-up { position: relative; overflow: hidden; }
.myph-hint { font-size: 9.5px; color: var(--muted); margin-block-start: 10px; line-height: 1.8; }
.myph-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-block-start: 0.5px solid var(--divider, #F0EEF8);
}
.myph-row:first-child { border-block-start: none; }
.myph-row b { font-size: 12.5px; color: var(--ink); font-weight: var(--weight-semibold); }
.myph-row__btns { display: flex; gap: 6px; }
.myph-ok, .myph-no {
  height: 30px; padding-inline: 13px; border-radius: var(--radius-pill);
  font-size: 10.5px; font-weight: var(--weight-semibold); font-family: inherit;
}
.myph-ok { background: var(--accent); color: var(--on-accent); }
.myph-no { background: var(--surface); color: var(--danger); border: 0.5px solid var(--border); }
.myph-none { padding: 16px; font-size: 11px; color: var(--muted); text-align: center; }
.myph-grantcard { padding: 14px 16px; }
.myph-grant__d { font-size: 10.5px; color: var(--indigo-600); line-height: 1.9; margin-block-end: 10px; }
.myph-grant { display: flex; gap: 8px; }
.myph-grant .mb-input { flex: 1; height: 40px; font-size: 12.5px; }
.myph-grant .mb-btn { height: 40px; font-size: 12px; flex-shrink: 0; }

/* منع قفزة iOS zoom: أي حقل داخل صفحات الإعدادات 16px فأعلى */

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

/* ===== محدِّد الصورة ===== */
.crop-modal {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(28,26,23,0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.crop-modal[hidden] { display: none; }
.crop-box {
  background: var(--surface); border-radius: 18px; padding: 18px;
  width: 100%; max-width: 340px; box-shadow: var(--shadow-xl);
}
.crop-head { font-size: 13px; font-weight: var(--weight-bold); color: var(--ink); text-align: center; margin-block-end: 14px; }
.crop-stage {
  position: relative; width: 280px; height: 280px; margin-inline: auto;
  border-radius: 12px; overflow: hidden; background: var(--surface-sunk);
  touch-action: none; cursor: grab;
}
.crop-stage:active { cursor: grabbing; }
.crop-stage canvas { display: block; width: 280px; height: 280px; }
.crop-ring {
  position: absolute; inset: 0; pointer-events: none;
  box-shadow: 0 0 0 999px rgba(28,26,23,0.45);
  border-radius: 50%;
}
.crop-zoom { display: flex; align-items: center; gap: 10px; margin-block: 16px 6px; }
.crop-zoom span { font-size: 10.5px; color: var(--indigo-600); flex-shrink: 0; }
.crop-zoom input[type="range"] { flex: 1; accent-color: var(--accent); height: 22px; }
.crop-btns { display: flex; gap: 8px; margin-block-start: 10px; }
.crop-btns .mb-btn { flex: 1; height: 42px; font-size: 12.5px; }

/* أزرار طلب الصورة داخل التنبيهات */
.ntf-phact { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ntf-phdone { font-size: 10px; color: var(--success, #1D9E75); font-weight: var(--weight-semibold); }

/* ===== شريط المتواجدون الآن ===== */
.mb-dash-online {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--accent, #2D2A6E);
  border-radius: var(--radius-lg, 12px);
  padding: 16px 18px;
  margin-block-end: 20px;
  text-decoration: none;
  transition: background var(--duration-base, .15s) var(--ease-out, ease);
}
.mb-dash-online:hover { background: var(--accent-hover, #1A1746); }
.mb-dash-online:active { transform: scale(0.995); }
.mb-dash-online__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mb-dash-online__dot {
  position: relative;
  width: 11px;
  height: 11px;
}
.mb-dash-online__dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #5DCAA5;
}
.mb-dash-online__dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid #5DCAA5;
  opacity: 0.5;
  animation: mb-dash-online-pulse 2s ease-out infinite;
}
@keyframes mb-dash-online-pulse {
  0%   { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}
.mb-dash-online__txt { flex: 1; min-width: 0; }
.mb-dash-online__line {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.mb-dash-online__num {
  font-size: 22px;
  font-weight: var(--weight-bold, 700);
  color: #FFFFFF;
  line-height: 1;
}
.mb-dash-online__label {
  font-size: 14px;
  font-weight: var(--weight-semibold, 600);
  color: #FFFFFF;
}
.mb-dash-online__sub {
  font-size: 11.5px;
  color: var(--indigo-200, #C9C4E5);
  margin-block-start: 4px;
}
.mb-dash-online__arrow {
  color: var(--indigo-200, #C9C4E5);
  flex-shrink: 0;
}
[dir="ltr"] .mb-dash-online__arrow { transform: scaleX(-1); }
@media (prefers-reduced-motion: reduce) {
  .mb-dash-online__dot::after { animation: none; }
}

/* ===== الإملاء الصوتي في تعديل البيانات ===== */
.epf-mic-wrap { position: relative; }
.epf-mic-wrap textarea { padding-inline-end: 44px; }
.epf-mic {
  position: absolute;
  inset-inline-end: 8px;
  inset-block-start: 8px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--surface-sunk);
  color: var(--muted);
  border: none; cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.epf-mic:hover { background: var(--accent-subtle); color: var(--accent); }
.epf-mic.is-rec {
  background: var(--danger);
  color: var(--stone-0);
  animation: epf-mic-pulse 1.2s var(--ease-in-out) infinite;
}
@keyframes epf-mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(178, 58, 72, 0.4); }
  50%      { box-shadow: 0 0 0 6px rgba(178, 58, 72, 0); }
}
