/* Page-specific styles extracted from notifications.html for browser caching. */
/* ============================================================
     NOTIFICATIONS — Premium Brand Redesign (teal #7E57C2)
     - Preserves every ID and class consumed by notificationsPage.js
     ============================================================ */
  :root {
    --nx-teal: #7E57C2;
    --nx-teal-2: #B69AF0;
    --nx-teal-strong: #7353C8;
    --nx-teal-soft: #EDE7F6;
    --nx-ink: #0f172a;
    --nx-ink-2: #1e293b;
    --nx-muted: #64748b;
    --nx-border: #e2e8f0;
    --nx-border-soft: #eef2f7;
    --nx-bg: #f8fafc;
    --nx-card: #ffffff;
    --nx-rose: #e11d48;
    --nx-amber: #f59e0b;
    --nx-violet: #7c3aed;
    --nx-blue: #2563eb;
    --nx-green: #16a34a;
    --nx-shadow-sm: 0 2px 8px rgba(15, 23, 42, .04);
    --nx-shadow-md: 0 8px 24px rgba(15, 23, 42, .06);
    --nx-shadow-lg: 0 20px 48px -16px rgba(15, 23, 42, .18);
  }

  .page-notifications-premium { background: var(--nx-bg); }

  .notifications-layout {
    max-width: 860px;
    margin: 0 auto;
    padding: 16px 14px 96px;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  /* ---------- Auth gate ---------- */
  .page-notifications-premium .auth-gate-unified {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border: 1px solid var(--nx-border);
    border-radius: 22px;
    padding: 36px 22px;
    text-align: center;
    box-shadow: var(--nx-shadow-md);
    margin-top: 12px;
  }
  .page-notifications-premium .auth-gate-unified-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    margin: 0 auto 14px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--nx-teal) 0%, var(--nx-teal-2) 100%);
    box-shadow: 0 12px 28px -10px rgba(103, 58, 183, .55);
  }
  .page-notifications-premium .auth-gate-unified-icon svg path { fill: #fff; }
  .page-notifications-premium .auth-gate-unified-icon svg circle { fill: var(--nx-teal-strong); }
  .page-notifications-premium .auth-gate-unified-title {
    font-size: 1.12rem; color: var(--nx-ink); margin: 0 0 6px; font-weight: 800;
  }
  .page-notifications-premium .auth-gate-unified-desc {
    color: var(--nx-muted); font-size: .92rem; margin: 0 0 18px;
  }
  .page-notifications-premium .auth-gate-unified-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--nx-teal) 0%, var(--nx-teal-strong) 100%);
    color: #fff; padding: 11px 26px; border-radius: 12px;
    font-weight: 700; text-decoration: none;
    box-shadow: 0 10px 22px -8px rgba(103, 58, 183, .55);
  }

  /* ---------- Hero header ---------- */
  .notif-shell { display: flex; flex-direction: column; gap: 16px; }

  .notif-page-top {
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(circle at 88% 18%, rgba(156, 107, 230, .25) 0%, transparent 55%),
      radial-gradient(circle at 12% 90%, rgba(103, 58, 183, .35) 0%, transparent 55%),
      linear-gradient(135deg, #0b1320 0%, #0f1d2e 50%, #0c1a2c 100%);
    color: #fff;
    border-radius: 24px;
    padding: 22px 22px 20px;
    box-shadow: var(--nx-shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .notif-page-top::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
      radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .55;
    pointer-events: none;
  }
  .notif-page-title-wrap { position: relative; }
  .notif-page-title-wrap h1 {
    font-size: 1.45rem;
    margin: 0 0 4px;
    font-weight: 800;
    letter-spacing: -.01em;
    display: flex; align-items: center; gap: 10px;
  }
  .notif-page-title-wrap h1::before {
    content: "🔔";
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(20,184,166,.35), rgba(15,118,110,.45));
    border: 1px solid rgba(255,255,255,.12);
    font-size: 1.05rem;
  }
  .notif-page-title-wrap p {
    color: rgba(226, 232, 240, .85);
    font-size: .92rem;
    margin: 0;
    line-height: 1.55;
  }

  .notif-top-counters {
    position: relative;
    display: flex; flex-wrap: wrap; gap: 8px;
  }
  .notif-total-badge,
  .notif-unread-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.14);
  }
  .notif-total-badge {
    background: rgba(255,255,255,.08);
    color: #fff;
  }
  .notif-total-badge::before {
    content: "📬"; font-size: .9rem;
  }
  .notif-unread-badge {
    background: linear-gradient(135deg, rgba(225, 29, 72, .85), rgba(244, 63, 94, .9));
    color: #fff;
    border-color: rgba(255,255,255,.2);
    box-shadow: 0 6px 18px -6px rgba(225, 29, 72, .55);
  }
  .notif-unread-badge::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255,255,255,.6);
    animation: nx-pulse 1.6s infinite;
  }
  @keyframes nx-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
    70%  { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
  }

  /* ---------- Toolbar / actions ---------- */
  .notif-control-panel {
    background: var(--nx-card);
    border: 1px solid var(--nx-border);
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--nx-shadow-sm);
    display: grid;
    /* قيّد عمود الشبكة بـ minmax(0,1fr) وإلا يُقاس العمود الضمني بـ max-content
       فيتمدّد صف الفلاتر ذو التمرير الأفقي (`.notif-filter-tabs`) خارج الشاشة. */
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .notif-filter-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .notif-search {
    position: relative;
    display: block;
    min-width: 0;
  }
  .notif-search input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--nx-border);
    border-radius: 13px;
    background: #f8fafc;
    color: var(--nx-ink);
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    padding: 0 42px 0 14px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  }
  [dir="ltr"] .notif-search input { padding: 0 14px 0 42px; }
  .notif-search input:focus {
    background: #fff;
    border-color: #c4b5fd;
    box-shadow: 0 0 0 4px rgba(103, 58, 183, .10);
  }
  .notif-search input::placeholder {
    color: #94a3b8;
  }
  .notif-search svg {
    position: absolute;
    top: 50%;
    inset-inline-start: 14px;
    width: 16px;
    height: 16px;
    color: #94a3b8;
    transform: translateY(-50%);
    pointer-events: none;
  }
  [dir="ltr"] .notif-search svg {
    inset-inline-start: auto;
    left: 14px;
  }
  .notif-filter-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--nx-border);
    border-radius: 14px;
    background: #f8fafc;
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .notif-filter-tabs::-webkit-scrollbar { display: none; }
  .notif-filter-btn { flex: 0 0 auto; }
  .notif-filter-btn {
    appearance: none;
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--nx-muted);
    cursor: pointer;
    font: inherit;
    font-size: .78rem;
    font-weight: 900;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
  }
  .notif-filter-btn.is-active {
    background: #fff;
    color: var(--nx-teal-strong);
    box-shadow: var(--nx-shadow-sm);
  }
  .notif-actions {
    display: flex; flex-wrap: wrap; gap: 8px;
  }
  .notif-action-btn {
    appearance: none;
    border: 1px solid var(--nx-border);
    background: #fff;
    color: var(--nx-ink-2);
    font-size: .85rem;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 11px;
    cursor: pointer;
    transition: all .18s ease;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
    line-height: 1.2;
  }
  .notif-action-btn:hover {
    border-color: var(--nx-teal);
    color: var(--nx-teal-strong);
    background: #F5F0FB;
    transform: translateY(-1px);
  }
  .notif-action-btn.btn-danger {
    border-color: rgba(225, 29, 72, .25);
    color: var(--nx-rose);
    background: #fff;
  }
  .notif-action-btn.btn-danger:hover {
    background: #fff1f2;
    border-color: var(--nx-rose);
  }
  /* hyperlink action */
  a.notif-action-btn { text-decoration: none; }
  a.notif-action-btn::before {
    content: "⚙"; font-size: .9rem; line-height: 1;
  }
  #btn-mark-all::before { content: "✓"; font-weight: 800; color: var(--nx-teal); }
  #btn-mark-all:hover::before { color: var(--nx-teal-strong); }
  #btn-delete-old::before { content: "🗑"; }

  /* ---------- Error / retry ---------- */
  .notif-error-stack {
    display: flex; flex-direction: column; gap: 10px;
  }
  #notif-error.form-error {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    color: #9f1239;
    border: 1px solid #fecdd3;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: .9rem;
    font-weight: 600;
  }
  .notif-retry-wrap { display: flex; justify-content: center; }
  .notif-retry-btn {
    background: linear-gradient(135deg, var(--nx-teal) 0%, var(--nx-teal-strong) 100%);
    color: #fff;
    border: 0;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px -6px rgba(15,118,110,.55);
  }
  .notif-retry-btn:hover { transform: translateY(-1px); }

  /* ---------- List panel ---------- */
  .notif-list-panel {
    background: transparent;
    display: flex; flex-direction: column; gap: 12px;
    overflow: visible;
    isolation: isolate;
  }
  .notif-list {
    display: flex; flex-direction: column; gap: 10px;
    position: relative;
    overflow: visible;
    isolation: isolate;
  }

  /* ---------- Notification card ---------- */
  /* Use body.page-notifications.page-notifications-premium prefix to outweigh global pages.css */
  body.page-notifications.page-notifications-premium .notif-card,
  .notif-card {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 14px 14px 14px 14px;
    background: var(--nx-card);
    border: 1px solid var(--nx-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all .2s ease;
    z-index: 0;
    overflow: visible;
    isolation: isolate;
    box-shadow: var(--nx-shadow-sm);
  }
  body.page-notifications.page-notifications-premium .notif-card.menu-open,
  body.page-notifications.page-notifications-premium .notif-card.menu-open:hover,
  body.page-notifications.page-notifications-premium .notif-card.menu-open:focus-within,
  .notif-card.menu-open {
    z-index: 2000;
  }
  .notif-card::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0; bottom: 0;
    width: 4px;
    background: var(--nx-border);
    transition: background .2s ease;
  }
  .notif-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--nx-shadow-md);
    border-color: #cbd5e1;
  }
  .notif-card:focus-visible {
    outline: 2px solid var(--nx-teal);
    outline-offset: 2px;
  }
  body.page-notifications.page-notifications-premium .notif-card.unread {
    background: linear-gradient(180deg, #F5F0FB 0%, #ffffff 70%);
    border-color: #D1C4E9;
  }
  body.page-notifications.page-notifications-premium .notif-card.unread::before {
    background: linear-gradient(180deg, var(--nx-teal-2), var(--nx-teal));
  }
  body.page-notifications.page-notifications-premium .notif-card.read { opacity: .92; }

  body.page-notifications.page-notifications-premium .notif-card.urgent {
    background: linear-gradient(180deg, #fff1f2 0%, #ffffff 70%) !important;
    border-color: #fecdd3 !important;
  }
  body.page-notifications.page-notifications-premium .notif-card.urgent::before {
    background: linear-gradient(180deg, #f43f5e, #be123c) !important;
  }
  /* Force readable text on urgent (override global white-text rules) */
  body.page-notifications.page-notifications-premium .notif-card.urgent .notif-title,
  body.page-notifications.page-notifications-premium .notif-card.urgent .notif-text {
    color: var(--nx-ink) !important;
  }
  body.page-notifications.page-notifications-premium .notif-card.urgent .notif-time {
    color: #9f1239 !important;
  }
  body.page-notifications.page-notifications-premium .notif-card.urgent .notif-open-hint {
    color: #be123c !important;
  }
  body.page-notifications.page-notifications-premium .notif-card.urgent .notif-dot {
    background: var(--nx-rose) !important;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, .18) !important;
  }
  body.page-notifications.page-notifications-premium .notif-card.urgent .notif-flag {
    background: #fff !important;
    color: var(--nx-rose) !important;
    border-color: #fecdd3 !important;
  }
  body.page-notifications.page-notifications-premium .notif-card.urgent .notif-menu-btn {
    background: rgba(225, 29, 72, .08) !important;
    border-color: transparent !important;
    color: var(--nx-rose) !important;
  }

  body.page-notifications.page-notifications-premium .notif-card.promo {
    background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 70%);
    border-color: #ddd6fe;
  }
  body.page-notifications.page-notifications-premium .notif-card.promo::before {
    background: linear-gradient(180deg, #a78bfa, #7c3aed);
  }
  body.page-notifications.page-notifications-premium .notif-card.promo-update {
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 70%);
    border-color: #fde68a;
  }
  body.page-notifications.page-notifications-premium .notif-card.promo-update::before {
    background: linear-gradient(180deg, #fbbf24, #d97706);
  }
  body.page-notifications.page-notifications-premium .notif-card.follow-up::before {
    background: linear-gradient(180deg, #60a5fa, #2563eb);
  }
  body.page-notifications.page-notifications-premium .notif-card.pinned {
    border-color: #fcd34d;
    box-shadow: 0 0 0 1px #fde68a, var(--nx-shadow-sm);
  }
  .notif-card.pinned::after {
    content: "📌";
    position: absolute;
    top: 8px;
    inset-inline-end: 10px;
    font-size: .9rem;
    opacity: .7;
  }

  body.page-notifications.page-notifications-premium .notif-icon {
    flex: 0 0 46px;
    width: 46px; height: 46px;
    border-radius: 14px;
    display: grid; place-items: center;
    color: var(--nx-teal);
    box-shadow: inset 0 0 0 1px rgba(15,118,110,.08);
  }
  body.page-notifications.page-notifications-premium .notif-icon svg { width: 22px; height: 22px; }
  body.page-notifications.page-notifications-premium .notif-card.urgent .notif-icon {
    background: linear-gradient(135deg, var(--nx-rose), #be123c) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px -8px rgba(225,29,72,.6) !important;
  }

  .notif-body {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 6px;
  }
  .notif-header-row {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 10px;
  }
  .notif-title-wrap { min-width: 0; flex: 1; }
  .notif-title {
    display: block;
    font-weight: 700;
    color: var(--nx-ink);
    font-size: .98rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .notif-card.unread .notif-title { color: var(--nx-teal-strong); }

  .notif-flags {
    display: flex; align-items: center; gap: 5px;
    flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end;
  }
  .notif-flag {
    font-size: .68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--nx-bg);
    color: var(--nx-muted);
    border: 1px solid var(--nx-border);
    line-height: 1.2;
    white-space: nowrap;
  }
  .notif-flag.platform { background: var(--nx-teal-soft); color: var(--nx-teal-strong); border-color: #D1C4E9; }
  .notif-flag.promo { background: #f5f3ff; color: var(--nx-violet); border-color: #ddd6fe; }
  .notif-flag.promo-update { background: #fffbeb; color: #b45309; border-color: #fde68a; }
  .notif-flag.follow { background: #eff6ff; color: var(--nx-blue); border-color: #bfdbfe; }
  .notif-flag.pin { background: #fffbeb; color: #b45309; border-color: #fde68a; }
  .notif-flag.cat-orders { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
  .notif-flag.cat-offers { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
  .notif-flag.cat-messages { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
  .notif-flag.cat-system { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
  .notif-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--nx-rose);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, .15);
    flex-shrink: 0;
  }

  .notif-text {
    color: var(--nx-ink-2);
    font-size: .88rem;
    line-height: 1.55;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  /* إشعارات متعددة الأسطر (عنوان + نص): احفظ فواصل الأسطر واعرض النص كاملاً
     بدل اقتصاصه إلى سطرين مدموجين. */
  .notif-text.notif-text--multiline {
    display: block;
    overflow: visible;
    text-overflow: clip;
    -webkit-line-clamp: none;
    white-space: pre-line;
    overflow-wrap: anywhere;
  }

  .notif-meta-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; margin-top: 2px;
  }
  .notif-time {
    color: var(--nx-muted);
    font-size: .76rem;
    font-weight: 600;
    display: inline-flex; align-items: center; gap: 5px;
  }
  .notif-time::before {
    content: "🕐"; font-size: .8rem;
  }
  .notif-open-hint {
    color: var(--nx-teal);
    font-size: .78rem;
    font-weight: 700;
    display: inline-flex; align-items: center; gap: 4px;
  }
  .notif-open-hint::after {
    content: "←";
    transition: transform .2s ease;
  }
  [dir="ltr"] .notif-open-hint::after { content: "→"; }
  .notif-card:hover .notif-open-hint::after {
    transform: translateX(3px);
  }
  [dir="rtl"] .notif-card:hover .notif-open-hint::after {
    transform: translateX(-3px);
  }

  /* ---------- Card actions menu ---------- */
  .notif-card-actions {
    position: relative;
    flex: 0 0 auto;
    z-index: 3;
  }
  .notif-menu-btn {
    appearance: none;
    width: 30px; height: 30px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: rgba(15, 23, 42, .04);
    color: var(--nx-muted);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    display: grid; place-items: center;
    transition: all .15s ease;
  }
  .notif-menu-btn:hover {
    background: var(--nx-teal-soft);
    color: var(--nx-teal-strong);
    border-color: rgba(15,118,110,.2);
  }
  .notif-menu {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-end: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--nx-border);
    border-radius: 12px;
    box-shadow: var(--nx-shadow-lg);
    padding: 6px;
    z-index: 2100;
    display: flex; flex-direction: column;
  }
  .notif-menu.hidden { display: none !important; }
  .notif-menu.open { display: flex !important; }
  .notif-menu-item {
    appearance: none;
    background: transparent;
    border: 0;
    text-align: start;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: .87rem;
    font-weight: 600;
    color: var(--nx-ink-2);
    cursor: pointer;
    transition: background .12s ease;
  }
  .notif-menu-item:hover { background: var(--nx-bg); }
  .notif-menu-item.danger { color: var(--nx-rose); }
  .notif-menu-item.danger:hover { background: #fff1f2; }

  /* ---------- Empty / loader / load more ---------- */
  .empty-hint {
    padding: 38px 18px;
    text-align: center;
    background: #fff;
    border: 1px dashed var(--nx-border);
    border-radius: 18px;
    color: var(--nx-muted);
  }
  .empty-hint .empty-icon {
    font-size: 2.4rem;
    margin-bottom: 8px;
    filter: grayscale(.1);
  }
  .empty-hint p {
    margin: 0;
    font-size: .95rem;
    font-weight: 600;
  }

  #notif-loader { padding: 12px 0; text-align: center; }
  .spinner-inline {
    display: inline-block;
    width: 28px; height: 28px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--nx-teal);
    border-radius: 50%;
    animation: nx-spin .8s linear infinite;
  }
  @keyframes nx-spin { to { transform: rotate(360deg); } }
  .notif-skeleton-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
  }
  .notif-skeleton-card {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--nx-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--nx-shadow-sm);
  }
  .notif-skeleton-icon,
  .notif-skeleton-line {
    position: relative;
    overflow: hidden;
    background: #edf2f7;
  }
  .notif-skeleton-icon::after,
  .notif-skeleton-line::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
    animation: nx-skeleton 1.2s infinite;
  }
  [dir="rtl"] .notif-skeleton-icon::after,
  [dir="rtl"] .notif-skeleton-line::after {
    transform: translateX(100%);
    animation-name: nx-skeleton-rtl;
  }
  @keyframes nx-skeleton {
    to { transform: translateX(100%); }
  }
  @keyframes nx-skeleton-rtl {
    to { transform: translateX(-100%); }
  }
  .notif-skeleton-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
  .notif-skeleton-body {
    display: grid;
    gap: 8px;
    align-content: center;
  }
  .notif-skeleton-line {
    height: 12px;
    border-radius: 999px;
  }
  .notif-skeleton-line.is-title { width: 70%; height: 14px; }
  .notif-skeleton-line.is-body { width: 92%; }
  .notif-skeleton-line.is-meta { width: 36%; height: 10px; }

  .notif-load-more-wrap {
    display: flex; justify-content: center; padding: 6px 0 0;
  }
  .notif-load-more-btn {
    background: #fff;
    color: var(--nx-teal-strong);
    border: 1px solid #D1C4E9;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    transition: all .18s ease;
  }
  .notif-load-more-btn:hover {
    background: var(--nx-teal-soft);
    transform: translateY(-1px);
    box-shadow: var(--nx-shadow-sm);
  }

  /* ---------- Promo modal ---------- */
  .notif-promo-modal {
    position: fixed; inset: 0;
    z-index: 1000;
    display: flex; align-items: flex-end; justify-content: center;
  }
  .notif-promo-modal.hidden { display: none; }
  .notif-promo-backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(4px);
    animation: nx-fade .25s ease;
  }
  @keyframes nx-fade { from { opacity: 0; } to { opacity: 1; } }
  .notif-promo-dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 22px 22px 0 0;
    padding: 22px 20px 28px;
    box-shadow: 0 -20px 60px rgba(0,0,0,.25);
    animation: nx-slide-up .3s ease;
  }
  @media (min-width: 640px) {
    .notif-promo-modal { align-items: center; }
    .notif-promo-dialog { border-radius: 22px; }
  }
  @keyframes nx-slide-up {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  .notif-promo-close {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    width: 34px; height: 34px;
    border-radius: 10px;
    border: 1px solid var(--nx-border);
    background: #fff;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--nx-muted);
    cursor: pointer;
  }
  .notif-promo-close:hover { background: var(--nx-bg); color: var(--nx-ink); }

  .notif-promo-head {
    display: flex; flex-direction: column; gap: 6px;
    margin-bottom: 14px;
    padding-inline-end: 40px;
  }
  .notif-promo-badge {
    align-self: flex-start;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: var(--nx-violet);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
  }
  .notif-promo-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--nx-ink);
    line-height: 1.4;
  }
  .notif-promo-time {
    color: var(--nx-muted);
    font-size: .82rem;
    font-weight: 600;
  }
  .notif-promo-message {
    color: var(--nx-ink-2);
    line-height: 1.7;
    font-size: .95rem;
    background: var(--nx-bg);
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--nx-border-soft);
    margin-bottom: 16px;
    white-space: pre-wrap;
  }
  .notif-promo-section-title {
    font-weight: 700;
    color: var(--nx-ink);
    font-size: .9rem;
    margin-bottom: 8px;
  }
  .notif-promo-attachments {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .notif-promo-asset {
    background: #fff;
    border: 1px solid var(--nx-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: all .18s ease;
  }
  .notif-promo-asset:hover {
    border-color: var(--nx-teal);
    transform: translateY(-2px);
    box-shadow: var(--nx-shadow-md);
  }
  .notif-promo-asset-image,
  .notif-promo-asset-video {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: var(--nx-bg);
  }
  .notif-promo-asset-file {
    padding: 22px 12px;
    text-align: center;
    color: var(--nx-teal-strong);
    font-weight: 700;
    background: var(--nx-teal-soft);
    text-decoration: none;
    font-size: .85rem;
  }
  .notif-promo-asset-caption {
    padding: 8px 10px;
    font-size: .78rem;
    color: var(--nx-muted);
    border-top: 1px solid var(--nx-border-soft);
  }
  .notif-promo-asset-open {
    display: block;
    padding: 8px 10px;
    text-align: center;
    color: var(--nx-teal-strong);
    background: #F5F0FB;
    font-weight: 700;
    font-size: .82rem;
    text-decoration: none;
    border-top: 1px solid #EDE7F6;
  }
  .notif-promo-asset-open:hover { background: var(--nx-teal-soft); }
  .notif-promo-loading,
  .notif-promo-empty {
    padding: 24px 12px;
    text-align: center;
    color: var(--nx-muted);
    font-size: .9rem;
    grid-column: 1 / -1;
  }

  /* ---------- Toast ---------- */
  .notif-toast {
    position: fixed;
    bottom: 88px;
    inset-inline-end: 16px;
    z-index: 1100;
    background: #fff;
    border: 1px solid var(--nx-border);
    border-inline-start: 4px solid var(--nx-teal);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: var(--nx-shadow-lg);
    min-width: 240px;
    max-width: calc(100vw - 32px);
    animation: nx-slide-in .3s ease;
  }
  @keyframes nx-slide-in {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  .notif-toast.success { border-inline-start-color: var(--nx-green); }
  .notif-toast.error { border-inline-start-color: var(--nx-rose); }
  .notif-toast.warning { border-inline-start-color: var(--nx-amber); }
  .notif-toast-title {
    font-weight: 800;
    color: var(--nx-ink);
    font-size: .92rem;
    margin-bottom: 2px;
  }
  .notif-toast-body {
    color: var(--nx-muted);
    font-size: .85rem;
    line-height: 1.5;
  }

  [data-theme="dark"] body.page-notifications.page-notifications-premium .notif-control-panel,
  [data-theme="dark"] body.page-notifications.page-notifications-premium .notif-skeleton-card {
    background: rgba(17, 27, 43, .96) !important;
    border-color: rgba(174, 196, 226, .18) !important;
  }
  [data-theme="dark"] body.page-notifications.page-notifications-premium .notif-search input,
  [data-theme="dark"] body.page-notifications.page-notifications-premium .notif-filter-tabs {
    background: rgba(255,255,255,.055) !important;
    border-color: rgba(174, 196, 226, .18) !important;
    color: #f4f7fb !important;
  }
  [data-theme="dark"] body.page-notifications.page-notifications-premium .notif-filter-btn {
    color: #c2cede;
  }
  [data-theme="dark"] body.page-notifications.page-notifications-premium .notif-filter-btn.is-active {
    background: rgba(167, 139, 250, .18);
    color: #f4f7fb;
  }
  [data-theme="dark"] body.page-notifications.page-notifications-premium .notif-skeleton-icon,
  [data-theme="dark"] body.page-notifications.page-notifications-premium .notif-skeleton-line {
    background: rgba(255,255,255,.10);
  }

  /* ---------- Utility ---------- */
  .hidden { display: none !important; }

  /* ---------- Mobile ---------- */
  @media (max-width: 480px) {
    .notifications-layout { padding: 12px 10px 96px; }
    .notif-page-top { padding: 18px 16px; border-radius: 20px; }
    .notif-page-title-wrap h1 { font-size: 1.25rem; }
    .notif-page-title-wrap p { font-size: .86rem; }
    .notif-filter-tabs { width: 100%; }
    .notif-filter-btn { padding: 0 10px; }
    .notif-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .notif-actions > .notif-action-btn:first-child { grid-column: 1 / -1; justify-content: center; }
    .notif-card { padding: 12px; gap: 10px; border-radius: 14px; }
    .notif-icon { flex-basis: 40px; width: 40px; height: 40px; border-radius: 12px; }
    .notif-icon svg { width: 20px; height: 20px; }
    .notif-title { font-size: .92rem; }
    .notif-text { font-size: .84rem; }
    .notif-action-btn { padding: 8px 12px; font-size: .8rem; }
  }
