/* ── زرار الجرس + الشارة ── */
#notif-bell-btn { position: relative; }
.notif-badge {
  position: absolute; top: 2px; left: 2px;
  min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10px; font-weight: var(--font-weight-bold);
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* ── الخلفية ── */
.notif-backdrop {
  position: fixed; inset: 0;
  z-index: var(--z-overlay);
  background: rgba(15, 23, 42, .25);
  display: none;
}
.notif-backdrop.open { display: block; }

/* ── اللوحة ── */
.notif-panel {
  position: fixed;
  top: calc(var(--topbar-height, 60px) + 8px);
  left: var(--space-4);
  width: min(360px, calc(100vw - var(--space-6)));
  max-height: 70vh;
  background: var(--card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-modal);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.notif-panel.open { display: flex; }

@media (max-width: 640px) {
  .notif-panel { left: var(--space-3); right: var(--space-3); width: auto; }
}

.notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
  flex-shrink: 0;
}
.notif-title { font-weight: var(--font-weight-bold); font-size: var(--text-sm); }
.notif-clear-all {
  background: none; border: none; cursor: pointer;
  color: var(--color-primary); font-size: var(--text-xs); font-weight: var(--font-weight-semi);
}

.notif-list { overflow-y: auto; }

.notif-item {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
}
.notif-item:last-child { border-bottom: none; }

.notif-dot {
  width: 28px; height: 28px; flex-shrink: 0; margin-top: 1px;
  border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
}

.notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.notif-item-title { font-size: var(--text-xs); font-weight: var(--font-weight-semi); color: var(--color-text-muted); }
.notif-item-text  { font-size: var(--text-sm); color: var(--color-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.notif-dismiss {
  flex-shrink: 0; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: none; border: none; color: var(--color-text-subtle); cursor: pointer;
}
.notif-dismiss:hover { background: var(--color-surface-2); color: var(--danger); }

.notif-empty {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  padding: var(--space-8) var(--space-4);
  color: var(--color-text-subtle);
  text-align: center;
}
.notif-empty p { font-size: var(--text-sm); }
