/* =========================================================
   MOON BOOK — USER NOTIFICATIONS (زنگولهٔ اعلان‌های عمومی)
   =========================================================
   سه بخش دارد:
     1) زنگوله و پنل کشویی روی سربرگ دسکتاپ
     2) زنگولهٔ فوتر موبایل (ناوبری پایین) + شیت پایین‌کش‌شو
     3) کارت‌های صفحهٔ /notifications
   رنگ‌ها از variables.css می‌آیند تا با بقیهٔ سایت یکی بمانند.
   ========================================================= */

/* =========================================================
   DESKTOP — زنگوله
   ========================================================= */

.header-notification {
    position: relative;
    display: flex;
    align-items: center;
}

.header-notification-button {
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid #292f39;
    border-radius: 10px;
    background: #11161e;
    color: #b7bcc6;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

    .header-notification-button i {
        font-size: 15px;
        line-height: 1;
    }

    .header-notification-button:hover {
        border-color: var(--purple, #9744f3);
        background: #171d26;
        color: #fff;
    }

    .header-notification-button:active {
        transform: scale(.94);
    }

    .header-notification-button[aria-expanded="true"] {
        border-color: var(--purple, #9744f3);
        background: #1b1426;
        color: var(--purple-light, #aa55ff);
    }

    .header-notification-button:focus-visible,
    .mobile-nav-item--notifications:focus-visible {
        outline: 2px solid rgba(167, 139, 250, .75);
        outline-offset: 2px;
    }

/* شمارندهٔ قرمز؛ با صفر بودن پنهان می‌شود (hidden) */
.header-notification-badge,
.mobile-nav-notifications-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    border-radius: 999px;
    background: #e0455a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 2px #080b10;
    pointer-events: none;
}

    .header-notification-badge[hidden],
    .mobile-nav-notifications-badge[hidden] {
        display: none !important;
    }

/* نقطهٔ تپش ملایم روی زنگولهٔ دارای اعلان خوانده‌نشده */
.header-notification-button.has-unread i,
.mobile-nav-item--notifications.has-unread .mobile-nav-icon--notifications i {
    color: #f3d7ff;
    animation: mb-bell-pulse 2.6s ease-in-out infinite;
}

@keyframes mb-bell-pulse {
    0%, 88%, 100% {
        transform: rotate(0);
    }

    91% {
        transform: rotate(-9deg);
    }

    94% {
        transform: rotate(9deg);
    }

    97% {
        transform: rotate(-4deg);
    }
}

/* =========================================================
   پنل اعلان‌ها (دسکتاپ) و شیت (موبایل) — پوستهٔ مشترک
   ========================================================= */

.user-notifications {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #0d1219;
    border: 1px solid #242a33;
    color: #e9eaee;
    box-sizing: border-box;
}

.user-notifications--panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 400;
    width: 390px;
    max-width: calc(100vw - 24px);
    max-height: min(72vh, 540px);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 22px 48px rgba(0, 0, 0, .55), 0 2px 0 rgba(255, 255, 255, .02) inset;
}

    .user-notifications--panel[hidden],
    .user-notifications-sheet[hidden] {
        display: none !important;
    }

.user-notifications__head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid #20262f;
    background: #0b1017;
}

.user-notifications__title {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

    .user-notifications__title > i {
        color: var(--purple-light, #aa55ff);
        font-size: 14px;
    }

    .user-notifications__title h2 {
        margin: 0;
        color: #f4f4f6;
        font-size: 13px;
        font-weight: 700;
        white-space: nowrap;
    }

.user-notifications__summary {
    color: #8b919b;
    font-size: 10px;
    white-space: nowrap;
}

.user-notifications__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.user-notifications__mark-all {
    height: 30px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #33294a;
    border-radius: 8px;
    background: #1a1426;
    color: #d3b5ff;
    font-family: inherit;
    font-size: 10.5px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

    .user-notifications__mark-all:hover:not(:disabled) {
        background: #241a35;
        border-color: #5b3b86;
        color: #fff;
    }

    .user-notifications__mark-all:disabled {
        opacity: .55;
        cursor: default;
    }

.user-notifications__close {
    width: 30px;
    height: 30px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #9aa0aa;
    font-size: 13px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

    .user-notifications__close:hover {
        background: #1a2029;
        color: #fff;
    }

.user-notifications__list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.user-notifications__foot {
    flex-shrink: 0;
    border-top: 1px solid #20262f;
    background: #0b1017;
}

.user-notifications__all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 12px;
    color: var(--purple-light, #aa55ff);
    font-size: 11px;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

    .user-notifications__all-link:hover {
        background: #141a23;
        color: #d9b6ff;
    }

.user-notifications__loading,
.user-notifications__empty,
.user-notifications__error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 34px 20px;
    color: #8b919b;
    font-size: 11.5px;
    text-align: center;
    line-height: 1.9;
}

    .user-notifications__empty i,
    .user-notifications__error i {
        font-size: 22px;
        color: #4b5361;
    }

    .user-notifications__error i {
        color: #c2606f;
    }

/* =========================================================
   آیتم اعلان
   ========================================================= */

.user-notification-item {
    position: relative;
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid #1a2029;
    transition: background .18s ease;
}

    .user-notification-item:last-child {
        border-bottom: 0;
    }

    .user-notification-item:hover {
        background: #111722;
    }

    .user-notification-item.is-unread {
        background: rgba(151, 68, 243, .055);
    }

        .user-notification-item.is-unread:hover {
            background: rgba(151, 68, 243, .1);
        }

.user-notification-item__main {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 9px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    text-align: right;
    cursor: pointer;
}

.user-notification-item__dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    margin-top: 6px;
    border-radius: 50%;
    background: transparent;
    transition: background .2s ease, box-shadow .2s ease;
}

.user-notification-item.is-unread .user-notification-item__dot {
    background: var(--purple-light, #aa55ff);
    box-shadow: 0 0 8px rgba(170, 85, 255, .7);
}

.user-notification-item__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-notification-item__subject {
    color: #eceef2;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.7;
}

.user-notification-item.is-read .user-notification-item__subject {
    color: #c3c7ce;
    font-weight: 600;
}

.user-notification-item__body {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #9aa0aa;
    font-size: 11px;
    line-height: 1.95;
    white-space: pre-line;
    word-break: break-word;
}

.user-notification-item.is-expanded .user-notification-item__body {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.user-notification-item__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: #6f7681;
    font-size: 9.5px;
}

.user-notification-item__tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border: 1px solid rgba(151, 68, 243, 0.32);
    border-radius: 999px;
    background: rgba(151, 68, 243, 0.14);
    color: #d8b4fe;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.4;
}

    .user-notification-item__tag i {
        font-size: 9px;
    }

.user-notification-item__read {
    flex-shrink: 0;
    align-self: flex-start;
    width: 26px;
    height: 26px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid #2b333f;
    border-radius: 7px;
    background: #141a23;
    color: #8b919b;
    font-size: 10px;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

    .user-notification-item__read:hover {
        border-color: #4f7c5d;
        background: #16241c;
        color: #7ee2a0;
    }

    .user-notification-item__read[hidden] {
        display: none !important;
    }

/* =========================================================
   MOBILE — شیت پایین‌کش‌شو
   زنگوله در فوتر اختصاصی موبایل (ناوبری پایین) است؛ سربرگ موبایل
   حذف شده و استایل‌هایش دیگر لازم نیستند.
   ========================================================= */

@media (max-width: 800px) {

    .user-notifications-sheet {
        position: fixed;
        inset: 0;
        z-index: 10050;
        display: flex;
        align-items: flex-end;
    }

    .user-notifications-sheet__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(3, 5, 8, .66);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        animation: mb-notifications-fade .22s ease;
    }

    .user-notifications--sheet {
        position: relative;
        width: 100%;
        max-height: 85vh;
        height: auto;
        border-width: 1px 0 0;
        border-radius: 20px 20px 0 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        animation: mb-notifications-up .26s cubic-bezier(.2, .8, .25, 1);
        box-shadow: 0 -20px 50px rgba(0, 0, 0, .55);
    }

        .user-notifications--sheet .user-notifications__list {
            max-height: calc(85vh - 118px);
        }

    .user-notifications-sheet__handle {
        flex-shrink: 0;
        width: 44px;
        height: 4px;
        margin: 8px auto 2px;
        border-radius: 999px;
        background: #313947;
    }

    .user-notifications--sheet .user-notifications__head {
        padding: 8px 14px 11px;
        background: transparent;
        border-bottom-color: #1d232c;
    }

    .user-notifications--sheet .user-notifications__title h2 {
        font-size: 14px;
    }

    .user-notifications--sheet .user-notification-item {
        padding: 13px 14px;
    }

    .user-notifications--sheet .user-notification-item__subject {
        font-size: 12.5px;
    }

    .user-notifications--sheet .user-notification-item__body {
        font-size: 11.5px;
    }

    .user-notifications--sheet .user-notification-item__read {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }

    .user-notifications--sheet .user-notifications__all-link {
        min-height: 46px;
        font-size: 12px;
    }
}

body.user-notifications-open {
    overflow: hidden;
}

/* =========================================================
   مودال یک اعلان
   با کلیک روی هر ردیف — در پنل دسکتاپ یا شیت موبایل — باز می‌شود تا متن
   کامل در همهٔ اندازه‌ها خوانده شود. بالاتر از شیت موبایل (z-index 10050)
   می‌نشیند و پنل/شیت زیرش را نمی‌بندد.
   ========================================================= */

.notification-modal {
    position: fixed;
    inset: 0;
    z-index: 10100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    direction: rtl;
    animation: mb-notifications-fade .18s ease;
}

    .notification-modal[hidden] {
        display: none !important;
    }

.notification-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 8, .72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.notification-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: min(78vh, 620px);
    display: flex;
    flex-direction: column;
    min-height: 0;
    border: 1px solid #2a3140;
    border-radius: 16px;
    background: #0e131b;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .6);
    animation: mb-notification-modal-in .2s ease;
    overflow: hidden;
}

.notification-modal__head {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px 10px;
    border-bottom: 1px solid #1e242e;
    background: linear-gradient(180deg, #121826, #0e131b);
}

.notification-modal__title {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
}

    .notification-modal__title h2 {
        margin: 0;
        color: #f2f3f6;
        font-size: 15px;
        font-weight: 800;
        line-height: 1.9;
        word-break: break-word;
    }

.notification-modal__dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 9px;
    border-radius: 50%;
    background: transparent;
}

    .notification-modal.is-unread .notification-modal__dot {
        background: var(--purple-light, #aa55ff);
        box-shadow: 0 0 9px rgba(170, 85, 255, .75);
    }

.notification-modal__close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid #2b333f;
    border-radius: 9px;
    background: #141a23;
    color: #b9bec7;
    font-size: 12px;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

    .notification-modal__close:hover,
    .notification-modal__close:focus-visible {
        border-color: var(--purple, #9744f3);
        background: #1b1426;
        color: #fff;
    }

.notification-modal__meta {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 18px;
    border-bottom: 1px solid #171d26;
    color: #7c838e;
    font-size: 10.5px;
}

    .notification-modal__date {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

.notification-modal__state {
    padding: 3px 9px;
    border: 1px solid #2b333f;
    border-radius: 999px;
    color: #9aa0aa;
    font-size: 9.5px;
    line-height: 1.7;
}

    .notification-modal__state.is-unread {
        border-color: rgba(151, 68, 243, .45);
        background: rgba(151, 68, 243, .1);
        color: var(--purple-light, #aa55ff);
    }

.notification-modal__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 18px 18px;
    color: #b6bbc4;
    font-size: 12.5px;
    line-height: 2.2;
    white-space: pre-line;
    word-break: break-word;
}

.notification-modal__foot {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding: 11px 18px;
    border-top: 1px solid #1e242e;
    background: #0b1017;
}

.notification-modal__read,
.notification-modal__dismiss {
    min-height: 36px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
}

.notification-modal__read {
    border: 1px solid #2f5a3c;
    background: #12211a;
    color: #8fe3ab;
}

    .notification-modal__read:hover {
        border-color: #4f7c5d;
        background: #16241c;
        color: #a9f0c1;
    }

    .notification-modal__read[hidden] {
        display: none !important;
    }

.notification-modal__action {
    min-height: 36px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(151, 68, 243, 0.45);
    border-radius: 9px;
    background: rgba(151, 68, 243, 0.16);
    color: #e9d5ff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

    .notification-modal__action:hover {
        border-color: var(--purple-light, #aa55ff);
        background: rgba(151, 68, 243, 0.28);
        color: #fff;
    }

    .notification-modal__action[hidden] {
        display: none !important;
    }

.notification-modal__all {
    margin-inline-start: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--purple-light, #aa55ff);
    font-size: 11px;
    text-decoration: none;
}

    .notification-modal__all:hover {
        color: #c58af0;
    }

.notification-modal__dismiss {
    border: 1px solid #2b333f;
    background: #141a23;
    color: #d4d7dd;
}

    .notification-modal__dismiss:hover {
        border-color: #3d4654;
        background: #191f29;
    }

html.notification-modal-open,
body.notification-modal-open {
    overflow: hidden;
}

@keyframes mb-notification-modal-in {
    from {
        transform: translateY(14px) scale(.98);
        opacity: .6;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* موبایل: مودال از پایین باز می‌شود و کل عرض را می‌گیرد */
@media (max-width: 800px) {

    .notification-modal {
        align-items: flex-end;
        padding: 0;
    }

    .notification-modal__dialog {
        max-width: none;
        width: 100%;
        max-height: 88vh;
        border-width: 1px 0 0;
        border-radius: 20px 20px 0 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        animation: mb-notifications-up .24s cubic-bezier(.2, .8, .25, 1);
    }

    .notification-modal__head {
        padding: 14px 16px 10px;
    }

    .notification-modal__meta {
        padding: 8px 16px;
    }

    .notification-modal__body {
        padding: 14px 16px 18px;
        font-size: 12px;
    }

    .notification-modal__foot {
        padding: 10px 16px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .notification-modal,
    .notification-modal__dialog {
        animation: none;
    }
}

@keyframes mb-notifications-up {
    from {
        transform: translateY(28px);
        opacity: .55;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes mb-notifications-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =========================================================
   صفحهٔ /notifications
   ========================================================= */

.mb-notifications-page {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 22px 16px calc(100px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    direction: rtl;
}

.mb-notifications-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 20px 22px;
    border: 1px solid var(--border, #272d36);
    border-radius: 16px;
    background: radial-gradient(circle at 12% 0%, rgba(151, 68, 243, .16), transparent 60%), var(--surface, #10151b);
}

.mb-notifications-hero__text h1 {
    margin: 0 0 6px;
    color: var(--text, #f4f4f6);
    font-size: 19px;
    font-weight: 800;
}

.mb-notifications-hero__text p {
    margin: 0;
    color: var(--muted, #858b95);
    font-size: 11.5px;
    line-height: 1.9;
}

.mb-notifications-hero__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mb-notifications-mark-all {
    min-height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--purple, #9744f3);
    border-radius: 10px;
    background: var(--purple, #9744f3);
    color: #fff;
    font-family: inherit;
    font-size: 11.5px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

    .mb-notifications-mark-all:hover {
        background: var(--purple-light, #aa55ff);
    }

    .mb-notifications-mark-all:active {
        transform: translateY(1px);
    }

    .mb-notifications-mark-all:disabled {
        opacity: .6;
        cursor: default;
    }

.mb-notifications-form {
    margin: 0;
    padding: 0;
}

.mb-notifications-flash {
    margin-top: 14px;
    padding: 11px 14px;
    border: 1px solid rgba(126, 226, 160, .3);
    border-radius: 10px;
    background: rgba(126, 226, 160, .08);
    color: #a9f0c1;
    font-size: 11.5px;
    line-height: 1.9;
}

.mb-notifications-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mb-notification-card {
    position: relative;
    padding: 16px 18px;
    border: 1px solid var(--border, #272d36);
    border-radius: 14px;
    background: var(--surface, #10151b);
}

    .mb-notification-card.is-unread {
        border-color: rgba(151, 68, 243, .45);
        background: linear-gradient(180deg, rgba(151, 68, 243, .07), transparent 70%), var(--surface, #10151b);
    }

.mb-notification-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.mb-notification-card__subject {
    margin: 0;
    color: #f2f3f5;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.8;
}

.mb-notification-card__date {
    flex-shrink: 0;
    color: #7d848f;
    font-size: 10px;
    white-space: nowrap;
    padding-top: 3px;
}

.mb-notification-card__body {
    margin: 8px 0 0;
    color: #b6bbc4;
    font-size: 12px;
    line-height: 2.15;
    white-space: pre-line;
    word-break: break-word;
}

.mb-notification-card__foot {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.mb-notification-card__state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #7d848f;
    font-size: 10px;
}

    .mb-notification-card__state.is-unread {
        color: var(--purple-light, #aa55ff);
    }

.mb-notification-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mb-notification-card__action {
    min-height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(151, 68, 243, 0.45);
    border-radius: 9px;
    background: rgba(151, 68, 243, 0.16);
    color: #e9d5ff;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

    .mb-notification-card__action:hover {
        border-color: var(--purple-light, #aa55ff);
        background: rgba(151, 68, 243, 0.28);
        color: #fff;
    }

.mb-notification-card__read {
    min-height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #2b333f;
    border-radius: 9px;
    background: #141a23;
    color: #cfd3da;
    font-family: inherit;
    font-size: 10.5px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

    .mb-notification-card__read:hover {
        border-color: #4f7c5d;
        background: #16241c;
        color: #a9f0c1;
    }

.mb-notifications-empty {
    margin-top: 16px;
    padding: 46px 22px;
    border: 1px dashed var(--border, #272d36);
    border-radius: 14px;
    color: #8b919b;
    font-size: 12px;
    text-align: center;
    line-height: 2;
}

    .mb-notifications-empty i {
        display: block;
        margin-bottom: 10px;
        font-size: 26px;
        color: #4b5361;
    }

.mb-notifications-pagination {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

    .mb-notifications-pagination a,
    .mb-notifications-pagination span {
        min-width: 36px;
        min-height: 36px;
        padding: 0 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--border, #272d36);
        border-radius: 9px;
        background: #0d1219;
        color: #cfd3da;
        font-size: 11px;
        text-decoration: none;
    }

        .mb-notifications-pagination a:hover {
            border-color: var(--purple, #9744f3);
            color: #fff;
        }

    .mb-notifications-pagination .is-current {
        border-color: var(--purple, #9744f3);
        background: #1b1426;
        color: #e9d5ff;
    }

    .mb-notifications-pagination .is-disabled {
        opacity: .45;
    }

@media (max-width: 800px) {

    .mb-notifications-page {
        padding: 14px 12px calc(110px + env(safe-area-inset-bottom, 0px));
    }

    .mb-notifications-hero {
        padding: 16px;
        border-radius: 14px;
    }

    .mb-notifications-hero__text h1 {
        font-size: 17px;
    }

    .mb-notification-card {
        padding: 14px;
        border-radius: 13px;
    }

    .mb-notification-card__subject {
        font-size: 13px;
    }

    .mb-notification-card__body {
        font-size: 11.5px;
        line-height: 2.1;
    }
}

@media (prefers-reduced-motion: reduce) {

    .header-notification-button.has-unread i,
    .mobile-nav-item--notifications.has-unread .mobile-nav-icon--notifications i {
        animation: none;
    }

    .user-notifications--sheet,
    .user-notifications-sheet__backdrop,
    .notification-modal,
    .notification-modal__dialog {
        animation: none;
    }

    .header-notification-button,
    .mobile-nav-item--notifications,
    .user-notification-item,
    .mb-notifications-mark-all {
        transition: none;
    }
}
