.notification-stack {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(420px, calc(100% - 32px));
  pointer-events: none;
}

.private-layout .notification-stack {
  top: 94px;
}

.flash-notification {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  margin: 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px #18342e18;
  pointer-events: auto;
  animation: notification-enter .25s ease-out;
  transition: transform .2s ease-in, opacity .2s ease-in;
}

.notification-message {
  flex: 1;
  font-size: .9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.notification-close {
  flex-shrink: 0;
  margin-top: 3px;
}

.flash-notification.is-closing {
  opacity: 0;
  transform: translateX(calc(100% + 32px));
  pointer-events: none;
}

@keyframes notification-enter {
  from { opacity: 0; transform: translateX(calc(100% + 32px)); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 767px) {
  .notification-stack {
    right: 16px;
    top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flash-notification {
    animation: none;
    transition: none;
  }
}
.notification-inbox { position: relative; margin-left: auto; margin-right: 20px; }
.inbox-bell { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #dce7df; border-radius: 14px; background: #fff; color: #285d4b; cursor: pointer; list-style: none; }
.inbox-bell::-webkit-details-marker { display: none; }
.inbox-bell:hover, .notification-inbox[open] .inbox-bell { background: #eaf6ef; border-color: #a8ceba; }
.inbox-bell:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.inbox-count { position: absolute; right: -7px; top: -6px; min-width: 21px; height: 21px; padding: 0 5px; border: 2px solid #fff; border-radius: 20px; background: #e56a46; color: #fff; font-size: 10px; font-weight: 750; display: grid; place-items: center; }
.inbox-count[hidden] { display: none; }
.inbox-panel { position: absolute; z-index: 1040; top: 54px; right: 0; width: 380px; max-width: calc(100vw - 24px); border: 1px solid #dce7df; border-radius: 19px; background: #fff; box-shadow: 0 18px 60px #173f2f24; overflow: hidden; text-align: left; }
.inbox-heading { display: flex; align-items: center; justify-content: space-between; padding: 18px; background: #f5faf6; border-bottom: 1px solid #e7eee8; gap: 12px; }
.inbox-heading strong { display: block; font-size: 15px; color: #214e3e; }
.inbox-heading small { color: #75897c; font-size: 12px; }
.inbox-heading button { border: 0; background: transparent; color: #24664c; font-size: 11px; font-weight: 650; }
.inbox-list { max-height: min(440px, 60vh); overflow-y: auto; }
.inbox-entry { display: flex; gap: 12px; align-items: flex-start; border: 0; border-bottom: 1px solid #edf1ec; background: #fff; width: 100%; padding: 16px 18px; text-align: left; color: #294a3c; }
.inbox-entry:hover, .inbox-entry:focus-visible { background: #edf6f0; }
.inbox-entry.is-unread { background: #f5faf7; box-shadow: inset 3px 0 #22a47c; }
.inbox-type { width: 35px; height: 35px; display: grid; place-items: center; background: #e7f0fc; border-radius: 11px; flex-shrink: 0; }
.inbox-type.is-raffle { background: #fff2ce; }
.inbox-copy { display: grid; gap: 4px; min-width: 0; }
.inbox-copy strong { font-size: 13px; }
.inbox-copy > span { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.inbox-copy small { color: #75897c; font-size: 10px; }
.inbox-arrow { margin-left: auto; color: #7a9a88; }
.inbox-empty { padding: 36px 24px; text-align: center; color: #496958; }
.inbox-empty p, .inbox-footnote { font-size: 12px; color: #849287; }
.inbox-empty p { margin: 8px 0 0; }
.inbox-footnote { padding: 12px 18px; margin: 0; border-top: 1px solid #edf1ec; font-size: 10px; }
@media (max-width: 575px) { .notification-inbox { margin-right: 13px; } .inbox-panel { position: fixed; top: 76px; right: 12px; left: 12px; width: auto; max-width: none; } }
.account-header .notification-inbox + .connected-user { margin-left: 0; }
