.app-notifications { position: relative; flex: 0 0 auto; margin-right: .75rem; }
.app-notifications--redesign { margin-right: 0; }
.app-notifications__trigger { position: relative; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; background: rgba(255,255,255,.055); color: #e9edf5; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.app-notifications__trigger:hover,.app-notifications__trigger[aria-expanded="true"] { border-color: rgba(244,166,51,.55); background: rgba(244,166,51,.12); color: #f4a633; }
.app-notifications__trigger:active { transform: scale(.96); }
.app-notifications__trigger .bi { font-size: 18px; }
.app-notifications__badge { position: absolute; top: -6px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; border: 2px solid #090c12; border-radius: 10px; background: #ef5b5b; color: #fff; font: 700 10px/15px system-ui,sans-serif; text-align: center; box-shadow: 0 4px 12px rgba(239,91,91,.35); }
.app-notifications__panel { position: absolute; z-index: 1200; top: calc(100% + 10px); right: 0; width: min(390px, calc(100vw - 24px)); overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: #121720; color: #e9edf5; box-shadow: 0 22px 60px rgba(0,0,0,.55); }
.app-notifications__header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 16px 13px; border-bottom: 1px solid rgba(255,255,255,.09); background: linear-gradient(135deg,rgba(244,166,51,.09),transparent 55%); }
.app-notifications__header strong,.app-notifications__header span { display: block; }
.app-notifications__header strong { font-size: 15px; }
.app-notifications__header span { margin-top: 2px; color: #929baa; font-size: 12px; }
.app-notifications__list { max-height: min(480px, 65vh); overflow-y: auto; overscroll-behavior: contain; }
.app-notifications__item { display: grid; grid-template-columns: 36px 1fr auto; gap: 11px; align-items: start; width: 100%; padding: 13px 14px; border: 0; border-bottom: 1px solid rgba(255,255,255,.07); background: transparent; color: inherit; font-family: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: background .15s; }
.app-notifications__item:hover { background: rgba(255,255,255,.045); color: inherit; }
.app-notifications__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(244,166,51,.13); color: #f4a633; }
.app-notifications__content { min-width: 0; }
.app-notifications__meta { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.app-notifications__meta strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.app-notifications__meta time { flex: none; color: #7f8998; font-size: 11px; }
.app-notifications__message { margin: 0; color: #c7ced8; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.app-notifications__arrow { align-self: center; color: #697382; }
.app-notifications__empty { display: grid; justify-items: center; gap: 8px; padding: 36px 20px; color: #87909e; font-size: 13px; text-align: center; }
.app-notifications__empty .bi { font-size: 26px; color: #596372; }
.app-notifications__more { padding: 9px 14px; color: #87909e; font-size: 11px; text-align: center; }
.app-notifications__footer { padding: 11px 14px; border-top: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.025); text-align: center; }
.app-notifications__footer a { display: inline-flex; align-items: center; gap: 7px; color: #f4a633; font-size: 12px; font-weight: 600; text-decoration: none; }
.app-notifications__footer a:hover { color: #ffc66f; }

.app-notification-toasts { position: fixed; z-index: 1300; bottom: 20px; left: 20px; display: flex; flex-direction: column; gap: 10px; width: min(390px, calc(100vw - 40px)); pointer-events: none; }
.app-notification-toast { display: grid; grid-template-columns: 42px minmax(0,1fr) 28px; gap: 12px; align-items: start; padding: 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(18,23,32,.97); color: #e9edf5; box-shadow: 0 18px 48px rgba(0,0,0,.5); opacity: 0; pointer-events: auto; transform: translateX(-24px); transition: opacity .2s ease, transform .2s ease; backdrop-filter: blur(14px); }
.app-notification-toast.is-visible { opacity: 1; transform: translateX(0); }
.app-notification-toast.is-leaving { opacity: 0; transform: translateX(-24px); }
.app-notification-toast__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(244,166,51,.14); color: #f4a633; font-size: 19px; }
.app-notification-toast__body { min-width: 0; }
.app-notification-toast__eyebrow { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; color: #f4a633; font-size: 11px; font-weight: 700; }
.app-notification-toast__eyebrow time { flex: none; color: #7f8998; font-weight: 400; }
.app-notification-toast__body p { margin: 0; color: #d7dce4; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.app-notification-toast__actions { margin-top: 10px; }
.app-notification-toast__actions:empty { display: none; }
.app-notification-toast__action { display: inline-flex; align-items: center; min-height: 30px; padding: 6px 11px; border-radius: 8px; background: #f4a633; color: #15110a; font-size: 12px; font-weight: 700; text-decoration: none; }
.app-notification-toast__action:hover { background: #ffc15d; color: #15110a; }
.app-notification-toast__close { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #7f8998; cursor: pointer; }
.app-notification-toast__close:hover { background: rgba(255,255,255,.07); color: #fff; }

.notifications-page { width: min(1040px, calc(100% - 32px)); margin: 28px auto 60px; color: #e9edf5; }
.notifications-page__hero { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 22px; padding: 26px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: linear-gradient(135deg,rgba(244,166,51,.13),rgba(18,23,32,.94) 55%); }
.notifications-page__kicker { margin-bottom: 7px; color: #f4a633; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.notifications-page__hero h1 { margin: 0 0 7px; font-size: clamp(25px,4vw,38px); }
.notifications-page__hero p { max-width: 620px; margin: 0; color: #aab2bf; }
.notifications-page__count { flex: none; color: #c7ced8; font-size: 13px; }
.notifications-page__list { overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: #121720; }
.notifications-page__item { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 14px; align-items: start; padding: 17px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.notifications-page__item:last-child { border-bottom: 0; }
.notifications-page__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(244,166,51,.13); color: #f4a633; font-size: 19px; }
.notifications-page__meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 6px; }
.notifications-page__meta strong { font-size: 13px; }
.notifications-page__meta time { color: #7f8998; font-size: 12px; }
.notifications-page__status { padding: 3px 7px; border-radius: 999px; background: rgba(255,255,255,.07); color: #929baa; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.notifications-page__status.unread { background: rgba(244,166,51,.14); color: #f4a633; }
.notifications-page__message { margin: 0; color: #cbd2dc; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.notifications-page__action { align-self: center; padding: 8px 12px; border: 1px solid rgba(244,166,51,.35); border-radius: 9px; color: #f4a633; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.notifications-page__action:hover { border-color: #f4a633; background: rgba(244,166,51,.1); color: #ffc15d; }
.notifications-page__empty { padding: 55px 24px; color: #87909e; text-align: center; }
.notifications-page__pagination { margin-top: 22px; }
@media (max-width: 575.98px) { .app-notifications__panel { position: fixed; top: 62px; right: 8px; left: 8px; width: auto; } }
@media (max-width: 575.98px) { .app-notification-toasts { right: 10px; bottom: 10px; left: 10px; width: auto; } .notifications-page { width: min(100% - 20px,1040px); margin-top: 14px; } .notifications-page__hero { display: block; padding: 20px; } .notifications-page__count { margin-top: 14px; } .notifications-page__item { grid-template-columns: 40px minmax(0,1fr); padding: 14px; } .notifications-page__icon { width: 40px; height: 40px; } .notifications-page__action { grid-column: 2; justify-self: start; } }
@media (prefers-reduced-motion: reduce) { .app-notification-toast { transition: none; } }
