/* Notification center (bell + dropdown) + toast layer. Warm, minimal, consistent with the app.
   Palette scoped locally (not :root) so it can't bleed into global tokens. */
.notif-center, .nt-menu, .nt-toasts {
  --nbg: #1b1410; --nborder: #2c221b; --namber: #c9a36a; --namber-h: #e6d3b0;
  --ntext: #f4ede1; --nmuted: #9a8b76; --ndanger: #c4574a; --nsuccess: #6f9d5f;
}

/* ── bell in the nav ── */
.notif-center { position: relative; display: inline-flex; align-items: center; }
.notif-center.hidden { display: none; }
.notif-bell {
  position: relative; cursor: pointer; font-size: 18px; line-height: 1;
  background: none; border: 0; padding: 6px 8px; border-radius: 10px; color: var(--ntext);
}
.notif-bell:hover { background: rgba(212, 154, 62, .14); }
.notif-badge {
  position: absolute; top: -1px; right: -1px; min-width: 16px; height: 16px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; line-height: 1; color: #211809; border-radius: 999px;
  background: var(--namber); box-shadow: 0 0 0 2px rgba(14, 10, 7, .9);
}
.notif-badge.hidden { display: none; }

/* ── dropdown ── */
.nt-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 40;
  width: min(360px, 92vw); max-height: min(70vh, 520px); display: flex; flex-direction: column;
  background: var(--nbg); border: 1px solid var(--nborder); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55); color: var(--ntext); overflow: hidden;
}
.nt-menu.hidden { display: none; }
.nt-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--nborder); }
.nt-title { font-size: 14px; font-weight: 800; }
.nt-readall { cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; color: var(--namber-h); background: none; border: 0; padding: 2px 4px; }
.nt-readall:hover { text-decoration: underline; }
.nt-list { overflow-y: auto; padding: 6px; }
.nt-empty { color: var(--nmuted); font-size: 13.5px; text-align: center; padding: 22px 8px; margin: 0; }

.nt-item {
  position: relative; display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 10px 10px 12px; border-radius: 10px; cursor: default;
}
.nt-item.unread { background: rgba(212, 154, 62, .08); cursor: pointer; }
.nt-item.unread::before { content: ''; position: absolute; left: 3px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--namber); }
.nt-item + .nt-item { margin-top: 2px; }
.nt-ico { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 16px; background: rgba(255, 255, 255, .05); background-size: cover; background-position: center; }
.nt-ico.has-img { font-size: 0; }
.nt-body { min-width: 0; flex: 1; }
.nt-text { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--ntext); }
.nt-time { font-size: 11px; color: var(--nmuted); }
.nt-actions { display: flex; gap: 6px; margin-top: 8px; }
.nt-btn { cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--nborder); background: rgba(255, 255, 255, .04); color: var(--ntext); }
.nt-btn:hover { border-color: var(--namber); }
.nt-btn.nt-accept { background: linear-gradient(180deg, var(--namber-h), var(--namber)); border-color: transparent; color: #231a0e; }
.nt-btn.nt-decline:hover { border-color: var(--ndanger); color: #fff; }
.nt-x { flex: none; cursor: pointer; background: none; border: 0; color: var(--nmuted); font-size: 13px; line-height: 1; padding: 2px 4px; border-radius: 6px; }
.nt-x:hover { color: var(--ntext); background: rgba(255, 255, 255, .06); }

/* ── toasts ── anchored just BELOW the navbar (near the bell), animating down into view; they
   auto-dismiss and collapse into the bell's badge count. Stack; never block the UI. */
.nt-toasts {
  position: fixed; z-index: 1300; top: 66px; right: 18px;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
  width: min(360px, 92vw);
}
body.dev-banner-on .nt-toasts { top: 96px; }   /* clear the dev banner + nav */
.nt-toast {
  pointer-events: auto; cursor: pointer; display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 14px; border-radius: 14px; background: var(--nbg); border: 1px solid var(--nborder);
  color: var(--ntext); box-shadow: 0 16px 40px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255,255,255,.05);
  opacity: 0; transform: translateY(-14px) scale(.98); transition: opacity .24s ease, transform .24s cubic-bezier(.16,1,.3,1);
}
.nt-toast.show { opacity: 1; transform: translateY(0) scale(1); }
.nt-toast .nt-ico { width: 30px; height: 30px; font-size: 16px; flex: none; }
.nt-toast-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.nt-toast-title { margin: 0; font-size: 13.5px; font-weight: 800; line-height: 1.25; color: var(--ntext); }
.nt-toast-text { margin: 0; font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--nmuted); }
.nt-toast-btn {
  flex: none; align-self: center; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800;
  padding: 8px 14px; border-radius: 10px; border: 0; color: #211809;
  background: linear-gradient(180deg, var(--namber-h), var(--namber));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
.nt-toast-btn:hover { filter: brightness(1.05); }
@media (max-width: 600px) {
  .nt-toasts { right: 50%; transform: translateX(50%); left: auto; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { .nt-toast { transition: opacity .2s ease; transform: none; } }
