/* ============================================================
   مبادرة — منظومة القبول والتواصل v1
   مركز القبول (interests) + لوحة قفل الشات
   ============================================================ */

/* ===== بطاقة الاهتمام ===== */
.mb-int {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}
.mb-int__row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mb-int__txt { flex: 1; min-width: 0; }
.mb-int__name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 20px;
  font-weight: var(--weight-semibold);
  color: var(--ink);
}
.mb-int__ok {
  font-size: 10px;
  height: 20px;
  line-height: 20px;
  color: var(--success);
  background: var(--success-bg);
  border-radius: var(--radius-pill);
  padding: 0 8px;
  font-weight: var(--weight-semibold);
}
.mb-int__meta {
  font-size: 11px;
  line-height: 16px;
  color: var(--indigo-600);
  margin-block-start: 2px;
}
.mb-int__crown { flex-shrink: 0; }
.mb-int__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block-start: 12px;
  flex-wrap: wrap;
}
.mb-int__grow { flex: 1; }
.mb-int__state {
  flex: 1;
  font-size: 11px;
  color: var(--muted);
  font-weight: var(--weight-medium);
}
.mb-int__state.is-ok { color: var(--success); font-weight: var(--weight-semibold); }
.mb-int__cancel {
  font-size: 11px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
}
.mb-int__cancel:hover { color: var(--danger); }
.mb-int.is-removing { opacity: 0; transition: opacity var(--duration-slow) var(--ease-out); }

/* التبويبات */
.mb-int__tabs {
  display: flex;
  gap: 4px;
  background: var(--surface-sunk);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-block: 16px 12px;
}
.mb-int__tabs a {
  flex: 1;
  text-align: center;
  height: 36px;
  line-height: 36px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: var(--muted);
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.mb-int__tabs a.is-active {
  background: var(--surface);
  color: var(--accent);
  font-weight: var(--weight-semibold);
  box-shadow: var(--shadow-xs);
}
.mb-int__note {
  font-size: 11px;
  color: var(--indigo-600);
  background: var(--accent-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-block-end: 12px;
  line-height: 1.8;
}

/* ===== شريط القفل المقتضب ===== */
.mb-lkbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 14px 14px;
  padding: 10px 14px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  font-family: var(--font-sans);
}
.mb-lkbar__txt {
  flex: 1;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--indigo-600);
}
.mb-lkbar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding-inline: 16px;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: 9px;
  font-size: 12px;
  font-weight: var(--weight-semibold);
  font-family: var(--font-sans);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--duration-fast) var(--ease-out);
}
.mb-lkbar__btn:hover { background: var(--accent-hover); }
.mb-lkbar__btn--outline {
  background: var(--surface);
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.mb-lkbar__btn--outline:hover { background: var(--accent-subtle); }

/* ===== الجرس الحي ===== */
.nv-bell { position: relative; }
.nv-bell__n {
  position: absolute;
  inset-block-start: -8px;
  inset-inline-start: -12px;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 9px;
  font-weight: var(--weight-bold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}
@keyframes mb-bell-pulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.18) rotate(-4deg); }
  60% { transform: scale(0.96) rotate(3deg); }
  100% { transform: scale(1); }
}
.nv-bell.is-pulse { animation: mb-bell-pulse 0.6s var(--ease-spring); display: inline-block; }

/* ===== النسمة الهادئة: كبسولة ضوء ===== */
.mb-breeze {
  position: fixed;
  inset-inline: 0;
  inset-block-start: 12px;
  margin-inline: auto;
  width: fit-content;
  max-width: min(340px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 0.5px solid var(--indigo-200);
  border-radius: var(--radius-pill);
  padding: 9px 18px 9px 14px;
  box-shadow: 0 10px 30px rgba(60, 52, 137, 0.12);
  z-index: var(--z-toast);
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.mb-breeze.on {
  opacity: 1;
  transform: translateY(0);
}
.mb-breeze__dot { position: relative; width: 9px; height: 9px; flex-shrink: 0; }
.mb-breeze__dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: var(--indigo-400);
}
.mb-breeze__dot i {
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(153, 144, 227, 0.4);
  animation: mb-breeze-halo 1.8s infinite var(--ease-out);
}
@keyframes mb-breeze-halo {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.mb-breeze__txt {
  font-size: 11.5px;
  color: var(--accent);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* الجرس العائم (الصفحات بلا نايف) */
.mb-bellfab {
  position: fixed;
  inset-block-end: 16px;
  inset-inline-end: 16px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 0.5px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  z-index: var(--z-sticky);
}
.mb-bellfab svg { width: 19px; height: 19px; }
.mb-bellfab .nv-bell__n { inset-block-start: -4px; inset-inline-start: -4px; }
.mb-bellfab.is-pulse { animation: mb-bell-pulse 0.6s var(--ease-spring); }

.mb-bellfab--lift { inset-block-end: 78px; }
@media (min-width: 720px) { .mb-bellfab { inset-block-end: 20px; inset-inline-end: 20px; } }

/* ===== مُدرَج من interests.css: الأرشيف ===== */

/* ===== الإخفاء والمخفية ===== */
.mb-int__hide {
  color: var(--body, #57544E);
}


/* ===== مدخل الأرشيف الاحترافي ===== */
.mb-int__archentry {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border, #E9E7E2);
  border-radius: var(--radius-lg, 12px);
  padding: 15px 16px;
  margin-block-start: 16px;
  text-decoration: none;
  transition: border-color var(--duration-base, .15s) var(--ease-out, ease);
}
.mb-int__archentry:hover { border-color: var(--border-strong, #D8D5CE); }
.mb-int__archentry-ic {
  width: 38px; height: 38px;
  border-radius: var(--radius-md, 8px);
  background: var(--surface-sunk, #F5F4F0);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted, #7A766F);
  flex-shrink: 0;
}
.mb-int__archentry-txt { flex: 1; min-width: 0; }
.mb-int__archentry-t { display: block; font-size: 14px; font-weight: var(--weight-semibold, 600); color: var(--ink, #1C1A17); }
.mb-int__archentry-d { display: block; font-size: 11px; color: var(--muted, #A8A5A0); margin-block-start: 1px; }
.mb-int__archentry-n {
  font-size: 13px; color: var(--body, #7A766F); font-weight: var(--weight-bold, 700);
  background: var(--surface-sunk, #F5F4F0);
  min-width: 24px; height: 24px; border-radius: var(--radius-pill, 999px);
  display: flex; align-items: center; justify-content: center; padding: 0 6px;
}
.mb-int__archentry-arrow { color: var(--faint, #B8B4AB); font-size: 18px; }
.mb-int__backhidden {
  display: inline-block; font-size: 13px; color: var(--accent, #2D2A6E);
  text-decoration: none; font-weight: var(--weight-semibold, 600); margin-block-end: 14px;
}
.mb-int__hiddenlist .mb-int { opacity: 0.82; }

/* المحظورون */
.blk-note { font-size: 12px; color: var(--muted, #A8A5A0); margin: 0 0 12px; line-height: 1.7; padding-inline-start: 4px; }
.blk-row.is-removing { opacity: 0; transform: translateX(-10px); transition: all .3s ease; }

/* شارة اطّلعت على الملف */
.mb-int__seen {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: var(--weight-semibold, 600);
  color: var(--body, #7A766F);
  background: var(--surface-sunk, #F5F4F0);
  padding: 3px 8px; border-radius: var(--radius-pill, 999px);
  margin-inline-start: 6px; vertical-align: middle;
}
.mb-int__seen svg { color: var(--body, #7A766F); }
/* حاويات الاهتمامات */
.mb-int__containers { margin-block-start: 20px; display: flex; flex-direction: column; gap: 10px; }
.mb-int__containers .mb-int__archentry { margin-block-start: 0; }

/* ===== بطاقات الحاويات: معايرة دقيقة وفق tokens ===== */

/* الشارة الدلالية — تتماشى مع mb-int__name (gap: space-2, نص متوسط) */
.mb-int__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);                 /* 4px */
  font-size: var(--text-2xs);          /* 11→12 */
  font-weight: var(--weight-semibold);
  line-height: 1;
  padding-block: var(--space-1);       /* 4px */
  padding-inline: var(--space-2);      /* 8px */
  border-radius: var(--radius-pill);
  vertical-align: middle;
  white-space: nowrap;
}
.mb-int__badge svg {
  flex-shrink: 0;
  width: var(--icon-xs);               /* 14px، بدل 10px العشوائي */
  height: var(--icon-xs);
}
.mb-int__badge--ok   { color: var(--success); background: var(--success-bg); }
.mb-int__badge--wait { color: var(--warning); background: var(--warning-bg); }

/* نقطة المتصل الآن — معايرة على صورة 46px */
.mb-mcard__photo--sm { position: relative; }
.mb-int__online {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: var(--space-3);               /* 12px */
  height: var(--space-3);
  border-radius: var(--radius-full);
  background: var(--success);
  border: 2px solid var(--surface);    /* حلقة بيضاء موحّدة */
  box-shadow: var(--shadow-xs);
}

/* زر الإلغاء الهادئ — نفس ارتفاع أزرار البطاقة (control-h-md = 42px) */
.mb-int__undo {
  height: var(--control-h-md);         /* 42px — مطابق mb-btn--sm داخل البطاقة */
  padding-inline: var(--space-4);      /* 16px */
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);     /* 8px */
  font-family: var(--font-sans);
  font-size: var(--text-xs);           /* 12→13 */
  font-weight: var(--weight-semibold);
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
}
.mb-int__undo:hover {
  color: var(--danger);
  border-color: var(--danger);
  background: var(--danger-bg);
}

/* توحيد ارتفاع كل الأزرار داخل بطاقة الحاوية على 42px (control-h-md) */
.mb-int__actions .mb-btn--sm,
.mb-int__actions .mb-int__undo {
  height: var(--control-h-md);         /* 42px موحّد */
}
.mb-int__actions .mb-btn--sm {
  font-size: var(--text-sm);           /* 13→14، أوضح من الافتراضي */
}
/* الأيقونة داخل زر البطاقة — حجم موحّد (mb-btn--sm يضبطها لـ16px تلقائيًا) */

/* إزالة البطاقة بسلاسة — توقيت من tokens */
.mb-int.is-removing {
  opacity: 0;
  transform: translateX(calc(-1 * var(--space-3)));
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}
