/* ============================================================
   Notification centre (bell + panel)
   ------------------------------------------------------------
   One stylesheet for every page that renders the bell from
   buildNavIconGroups() in inc/functions.php.

   Why it exists: the panel used to be styled only in
   assets/css/index/Navigationbar.css, which pages without the
   marketplace navbar (productDetail, serviceDetail, messages,
   faq, …) never load. They fell back to a few partial rules in
   details.css, so the header, toolbar, push strip, list and
   footer of the panel rendered unstyled.

   Rules:
     - px, not rem: product detail pages set html { font-size:
       62.5% }, so rem-based sizing would shrink the panel there
       and only there.
     - scoped to .notif-* so it can be loaded everywhere without
       touching a page's own layout.
     - light + dark via [data-theme="dark"], mobile becomes a
       bottom sheet, tablet a pinned card.
   ============================================================ */

/* ---------- Bell --------------------------------------------------- */
/* The whole notification stack (sheet backdrop → panel → bell) sits ABOVE
   the floating theme pill (`z-index: 12000` in theme.css), so a
   notification can never be hidden behind it — not the dropdown, not the
   mobile bottom sheet, not its backdrop. Keep these four values in that
   order; the theme pill's z-index is the reference point. */
.notif-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  pointer-events: auto;
  z-index: 12120;
}

.notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--brand-orange-500, var(--brand-orange-500));
  cursor: pointer;
  z-index: 12130;
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.notif-bell:hover {
  color: #e56600;
  transform: translateY(-1px);
  background: rgba(255, 127, 17, 0.1);
  box-shadow: 0 4px 14px rgba(255, 127, 17, 0.22);
}

.notif-bell:focus-visible {
  outline: 2px solid rgba(255, 127, 17, 0.65);
  outline-offset: 3px;
}

.notif-bell:active {
  transform: translateY(0) scale(0.96);
}

.notif-bell[aria-expanded="true"] {
  background: rgba(255, 127, 17, 0.18);
  color: #e56600;
  box-shadow: 0 4px 14px rgba(255, 127, 17, 0.2);
}

.notif-bell-icon {
  display: block;
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.notif-bell:hover .notif-bell-icon {
  transform: scale(1.06) rotate(-2deg);
  filter: drop-shadow(0 2px 4px rgba(255, 127, 17, 0.35));
}

.notif-bell[aria-expanded="true"] .notif-bell-icon {
  transform: scale(1.08);
  filter: drop-shadow(0 2px 6px rgba(255, 127, 17, 0.45));
}

/* Unread ping ring — reads at a glance, motion-optional. */
.notif-wrap.has-unread .notif-bell::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 45, 85, 0.35);
  animation: notifPing 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes notifPing {
  0% { transform: scale(0.85); opacity: 0.9; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* Count badge. Absolute so a count appearing never shifts the icons. */
.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff2d55;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(255, 45, 85, 0.45);
  pointer-events: none;
}

.notif-badge[hidden],
.notif-badge:empty {
  display: none !important;
}

/* Same visual language for the messages badge. */
.msg-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff2d55;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(255, 45, 85, 0.45);
}

/* ---------- Panel shell ------------------------------------------- */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  left: auto;
  box-sizing: border-box;
  width: min(392px, calc(100vw - 28px));
  max-height: min(560px, calc(100vh - 120px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(11, 60, 93, 0.1);
  border-radius: 20px;
  box-shadow:
    0 28px 60px -18px rgba(2, 42, 70, 0.32),
    0 2px 8px rgba(2, 42, 70, 0.08);
  z-index: 12110;
  font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: #123651;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.22s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.notif-dropdown.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.notif-dropdown[hidden] {
  display: none !important;
}

.notif-sheet-grab {
  display: none;
}

/* ---------- Header ----------------------------------------------- */
.notif-dropdown-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px 13px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 127, 17, 0.16), transparent 58%),
    linear-gradient(180deg, #f7fafd, var(--white));
  border-bottom: 1px solid rgba(11, 60, 93, 0.08);
}

.notif-head-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--brand-orange-500, var(--brand-orange-500));
  box-shadow: 0 8px 18px -6px rgba(255, 122, 0, 0.7);
}

.notif-head-icon svg {
  width: 21px;
  height: 21px;
}

.notif-dropdown-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.notif-dropdown-title-wrap strong {
  font-size: 16px;
  font-weight: 700;
  color: #0f2742;
  line-height: 1.2;
}

.notif-dropdown-caption {
  color: #5b7186;
  font-size: 12.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notif-dropdown-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.notif-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(11, 60, 93, 0.12);
  background: var(--white);
  color: #4b5f78;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.notif-icon-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 127, 17, 0.1);
  border-color: rgba(255, 127, 17, 0.35);
  color: #d9660a;
}

.notif-icon-btn:focus-visible {
  outline: 2px solid rgba(255, 127, 17, 0.6);
  outline-offset: 2px;
}

.notif-icon-btn svg {
  width: 16px;
  height: 16px;
}

.notif-icon-btn.is-on {
  background: var(--brand-orange-500, var(--brand-orange-500));
  border-color: transparent;
  color: var(--white);
}

.notif-close {
  display: none;
}

/* ---------- Toolbar ---------------------------------------------- */
.notif-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(11, 60, 93, 0.07);
  background: #fbfcfe;
}

.notif-toolbar-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a8b9e;
}

.notif-count-chip {
  display: inline-block;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 127, 17, 0.14);
  color: #c95f00;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0;
  text-transform: none;
}

.notif-count-chip[hidden] {
  display: none;
}

.notif-mark-all {
  background: none;
  border: none;
  color: var(--brand-orange-500, var(--brand-orange-500));
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 8px;
  transition: background 0.18s ease;
}

.notif-mark-all:hover {
  background: rgba(255, 127, 17, 0.1);
}

.notif-mark-all:focus-visible {
  outline: 2px solid rgba(255, 127, 17, 0.6);
  outline-offset: 2px;
}

.notif-mark-all:disabled {
  color: #a9b6c4;
  cursor: default;
  background: none;
}

/* ---------- Push opt-in strip ------------------------------------ */
.notif-push-cta {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 10px 13px 2px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 127, 17, 0.28);
  background: linear-gradient(135deg, rgba(255, 127, 17, 0.1), rgba(255, 127, 17, 0.03));
}

.notif-push-cta[hidden] {
  display: none;
}

.notif-push-cta-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 127, 17, 0.18);
  color: #c95f00;
}

.notif-push-cta-icon svg {
  width: 17px;
  height: 17px;
}

.notif-push-cta-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notif-push-cta-text strong {
  font-size: 13.5px;
  color: #0f2742;
}

.notif-push-cta-text span {
  font-size: 12px;
  color: #5b7186;
  line-height: 1.4;
}

.notif-push-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  background: var(--brand-orange-500, var(--brand-orange-500));
  box-shadow: 0 8px 18px -8px rgba(255, 122, 0, 0.9);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease;
}

.notif-push-btn:hover {
  transform: translateY(-1px);
}

.notif-push-btn:focus-visible {
  outline: 2px solid rgba(255, 127, 17, 0.75);
  outline-offset: 2px;
}

.notif-push-btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.notif-push-off {
  background: transparent;
  color: #b45400;
  border: 1px solid rgba(255, 127, 17, 0.45);
  box-shadow: none;
}

.notif-push-off:hover {
  background: rgba(255, 127, 17, 0.12);
}

/* ---------- List -------------------------------------------------- */
.notif-list-wrap {
  padding: 6px 0 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.notif-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 5px;
  color: #7a8b9e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.notif-list {
  list-style: none;
  margin: 0;
  padding: 0 6px 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.notif-list::-webkit-scrollbar {
  width: 7px;
}

.notif-list::-webkit-scrollbar-thumb {
  background: #c9d6e4;
  border-radius: 999px;
}

.notif-item {
  border-radius: 14px;
}

.notif-item.unread {
  background: linear-gradient(90deg, rgba(255, 127, 17, 0.09), rgba(255, 127, 17, 0.02));
}

.notif-item a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 11px;
  text-decoration: none;
  color: var(--brand-navy-700, var(--brand-navy-700));
  border-radius: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.notif-item a:hover {
  background: rgba(255, 127, 17, 0.09);
  transform: translateX(2px);
}

.notif-item a:focus-visible {
  outline: 2px solid rgba(255, 127, 17, 0.6);
  outline-offset: -2px;
}

.notif-item + .notif-item {
  border-top: 1px solid rgba(11, 60, 93, 0.06);
}

.notif-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  color: var(--brand-orange-500, var(--brand-orange-500));
  background: rgba(255, 127, 17, 0.12);
}

.notif-icon svg {
  width: 17px;
  height: 17px;
}

.notif-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}

.notif-title {
  font-weight: 600;
  font-size: 14px;
  color: #0f2742;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-wrap: anywhere;
}

.notif-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff2d55;
  box-shadow: 0 0 0 3px rgba(255, 45, 85, 0.15);
}

.notif-body {
  color: #5b7186;
  font-size: 13px;
  overflow-wrap: anywhere;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notif-time {
  color: #9aa9b8;
  font-size: 12px;
}

.notif-chev {
  flex-shrink: 0;
  align-self: center;
  color: #b9c4d2;
  display: inline-grid;
  place-items: center;
}

.notif-chev svg {
  width: 15px;
  height: 15px;
}

.notif-item a:hover .notif-chev {
  color: var(--brand-orange-500, var(--brand-orange-500));
}

.notif-empty {
  padding: 28px 16px;
  text-align: center;
  color: #7d8ea0;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.notif-empty strong {
  color: #33506b;
  font-size: 15px;
}

.notif-empty svg {
  width: 30px;
  height: 30px;
  color: var(--brand-orange-200, #ffb463);
}

/* ---------- Footer -----------------------------------------------
   A full-width bar, not a shrunken inline link: it is the last row of a
   flex column, so it has to claim the panel width, keep its label on one
   line and carry the panel's bottom radius. */
.notif-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 13px 16px;
  border-top: 1px solid rgba(11, 60, 93, 0.08);
  border-radius: 0 0 19px 19px;
  color: var(--brand-orange-500, var(--brand-orange-500));
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  background: #fbfcfe;
  transition: background 0.18s ease, color 0.18s ease;
}

.notif-view-all svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  transition: transform 0.18s ease;
}

.notif-view-all:hover {
  background: rgba(255, 127, 17, 0.08);
}

.notif-view-all:hover svg {
  transform: translateX(3px);
}

.notif-view-all:focus-visible {
  outline: 2px solid rgba(255, 127, 17, 0.6);
  outline-offset: -2px;
}

/* ---------- Sheet backdrop --------------------------------------- */
.notif-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 16, 30, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  z-index: 12100;
}

.notif-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.notif-backdrop[hidden] {
  display: none !important;
}

/* ---------- Tablet: pinned card ---------------------------------- */
@media (min-width: 641px) and (max-width: 1024px) {
  .notif-dropdown {
    position: fixed;
    top: 74px;
    right: 16px;
    width: min(430px, calc(100vw - 32px));
    max-height: min(70vh, 620px);
    font-size: 14.5px;
  }

  .notif-close {
    display: inline-grid;
  }
}

/* ---------- Mobile: bottom sheet --------------------------------- */
@media (max-width: 640px) {
  .notif-dropdown {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-width: 100%;
    max-height: 86vh;
    border-radius: 24px 24px 0 0;
    border-bottom: none;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateY(100%);
    transform-origin: bottom center;
    box-shadow: 0 -22px 60px -18px rgba(2, 42, 70, 0.45);
  }

  .notif-dropdown.is-open {
    transform: translateY(0);
  }

  .notif-dropdown.is-dragging {
    transition: none;
  }

  .notif-sheet-grab {
    display: block;
    width: 46px;
    height: 5px;
    margin: 10px auto 2px;
    border-radius: 999px;
    background: rgba(11, 60, 93, 0.18);
    flex-shrink: 0;
    touch-action: none;
    cursor: grab;
  }

  .notif-dropdown-head {
    padding: 11px 15px 12px;
    border-bottom: none;
    background:
      radial-gradient(120% 140% at 0% 0%, rgba(255, 127, 17, 0.18), transparent 60%),
      var(--white);
  }

  .notif-head-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .notif-close {
    display: inline-grid;
  }

  .notif-toolbar {
    padding: 9px 15px;
  }

  .notif-push-cta {
    margin: 9px 11px 2px;
    padding: 10px 11px;
    align-items: flex-start;
  }

  .notif-push-cta-text span {
    font-size: 11.5px;
  }

  .notif-list {
    padding: 0 4px 6px;
  }

  .notif-item a {
    padding: 12px 11px;
    gap: 10px;
  }

  .notif-title {
    font-size: 14px;
  }

  .notif-body {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    line-height: 1.4;
  }

  .notif-view-all {
    padding: 13px 16px;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .notif-dropdown {
    max-height: 90vh;
  }

  .notif-head-icon {
    display: none;
  }

  .notif-push-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .notif-push-btn {
    width: 100%;
  }
}

/* Lock the page behind the sheet so the list scrolls, not the site.
   The :has() guard is a safety net: if the sheet is ever left in a bad
   state without an open panel, the page can still scroll. */
body.notif-sheet-open {
  overflow: hidden;
}

body.notif-sheet-open:not(:has(.notif-dropdown.is-open)) {
  overflow: auto;
}

/* ---------- Dark theme ------------------------------------------- */
[data-theme="dark"] .notif-bell {
  color: var(--brand-orange-200, #ffb463);
}

[data-theme="dark"] .notif-bell:hover {
  color: #ffc98a;
  background: rgba(255, 180, 99, 0.12);
}

[data-theme="dark"] .notif-dropdown {
  background: #101827;
  border-color: rgba(38, 52, 73, 0.75);
  box-shadow: 0 -22px 60px -18px rgba(0, 0, 0, 0.7);
  color: #c5d0dc;
}

[data-theme="dark"] .notif-dropdown-head {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 127, 17, 0.22), transparent 60%),
    linear-gradient(180deg, #16223a, #101827);
  border-bottom-color: rgba(38, 52, 73, 0.6);
}

[data-theme="dark"] .notif-dropdown-title-wrap strong {
  color: #eef4fb;
}

[data-theme="dark"] .notif-dropdown-caption {
  color: #8ea0b8;
}

[data-theme="dark"] .notif-icon-btn {
  background: #182338;
  border-color: rgba(56, 74, 102, 0.8);
  color: #b9c8da;
}

[data-theme="dark"] .notif-icon-btn:hover {
  background: rgba(255, 127, 17, 0.18);
  color: var(--brand-orange-200, #ffb463);
}

[data-theme="dark"] .notif-toolbar {
  background: #131d2f;
  border-bottom-color: rgba(38, 52, 73, 0.55);
}

[data-theme="dark"] .notif-toolbar-label {
  color: #71849c;
}

[data-theme="dark"] .notif-count-chip {
  background: rgba(255, 127, 17, 0.2);
  color: var(--brand-orange-200, #ffb463);
}

[data-theme="dark"] .notif-mark-all {
  color: var(--brand-orange-200, #ffb463);
}

[data-theme="dark"] .notif-mark-all:hover {
  background: rgba(255, 127, 17, 0.14);
}

[data-theme="dark"] .notif-push-cta {
  border-color: rgba(255, 127, 17, 0.35);
  background: linear-gradient(135deg, rgba(255, 127, 17, 0.14), rgba(255, 127, 17, 0.04));
}

[data-theme="dark"] .notif-push-cta-text strong {
  color: #eef4fb;
}

[data-theme="dark"] .notif-push-cta-text span {
  color: #8ea0b8;
}

[data-theme="dark"] .notif-push-off {
  color: var(--brand-orange-200, #ffb463);
  border-color: rgba(255, 180, 99, 0.5);
}

[data-theme="dark"] .notif-item.unread {
  background: linear-gradient(90deg, rgba(255, 127, 17, 0.14), rgba(255, 127, 17, 0.03));
}

[data-theme="dark"] .notif-item + .notif-item {
  border-top-color: rgba(38, 52, 73, 0.5);
}

[data-theme="dark"] .notif-item a {
  color: #c5d0dc;
}

[data-theme="dark"] .notif-item a:hover {
  background: rgba(255, 127, 17, 0.12);
}

[data-theme="dark"] .notif-title {
  color: #eef4fb;
}

[data-theme="dark"] .notif-body {
  color: #8ea0b8;
}

[data-theme="dark"] .notif-time {
  color: #6b7d96;
}

[data-theme="dark"] .notif-icon {
  background: rgba(255, 127, 17, 0.16);
}

[data-theme="dark"] .notif-chev {
  color: #526887;
}

[data-theme="dark"] .notif-empty {
  color: #7d8ea0;
}

[data-theme="dark"] .notif-empty strong {
  color: #dbe6f3;
}

[data-theme="dark"] .notif-view-all {
  border-top-color: rgba(38, 52, 73, 0.55);
  background: #131d2f;
}

[data-theme="dark"] .notif-view-all:hover {
  background: rgba(255, 127, 17, 0.12);
}

[data-theme="dark"] .notif-sheet-grab {
  background: rgba(160, 180, 205, 0.35);
}

[data-theme="dark"] .notif-section-head {
  color: #5a7291;
}

[data-theme="dark"] .notif-list::-webkit-scrollbar-thumb {
  background: #2f4055;
}

/* ---------- Reduced motion --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .notif-wrap.has-unread .notif-bell::after {
    animation: none;
  }

  .notif-dropdown,
  .notif-bell,
  .notif-item a,
  .notif-icon-btn,
  .notif-push-btn,
  .notif-backdrop {
    transition: none;
  }
}

/* ============================================================
   NOTIFICATION PANEL — an opaque, theme-aware surface
   ------------------------------------------------------------
   The panel only had `background: var(--white)`. Any page that does not load
   tokens.css leaves that token undefined, the declaration is dropped, and the
   open panel renders fully transparent: the feed shows through and the text is
   unreadable on whatever sits behind it. Literal colour + the dark override
   below give it a real surface in both themes on every page.
   ============================================================ */
.notif-dropdown {
  background-color: #ffffff;
  color: #14395d;
  border-color: rgba(11, 60, 93, 0.12);
}

[data-theme="dark"] .notif-dropdown {
  background-color: #101827;
  color: #c5d0dc;
  border-color: rgba(56, 74, 102, 0.75);
}

/* The rows sit on the panel, so they must not punch a hole in it. */
.notif-list,
.notif-list-wrap { background-color: transparent; }

/* Bell glyph: the old path carried two stray arcs at 1 o'clock. One clean
   stroke bell, same weight as the other top-bar marks. */
.notif-bell-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
