/* Header notification bell + notification centre. Shared by the public site and the admin shell. */
.notif{position:relative;display:inline-flex;align-items:center}
.notif-toggle{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border-radius:22px;border:1px solid var(--line,#e5e5dd);background:var(--surface,#fff);color:var(--ink,#21251f);font-size:12px;font-weight:500;line-height:1;cursor:pointer}
.notif-toggle:hover{border-color:var(--orange,#eb642c);color:var(--orange,#eb642c);filter:none}
.notif-toggle svg{flex:none}
.notif-label{white-space:nowrap}
.notif-badge{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--orange,#eb642c);color:#2a1508;font-size:10px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;line-height:1}
.notif-badge[hidden]{display:none}
.notif.is-open .notif-toggle{border-color:var(--orange,#eb642c);color:var(--orange,#eb642c)}
.notif-panel{position:absolute;top:calc(100% + 10px);right:0;width:min(370px,calc(100vw - 24px));background:var(--surface,#fff);border:1px solid var(--line,#e5e5dd);border-radius:10px;box-shadow:0 18px 50px var(--shadow,#20251f22);z-index:60;overflow:hidden;text-align:left}
.notif-panel[hidden]{display:none}
.notif-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line,#e5e5dd);background:var(--surface-soft,#f2f3ed)}
.notif-head strong{font-size:12px;letter-spacing:.6px;text-transform:uppercase}
.notif-head .link-button{background:none;border:0;border-bottom:1px solid currentColor;border-radius:0;padding:0;font-size:11px;color:var(--orange,#eb642c);cursor:pointer;display:inline}
.notif-head .link-button[hidden]{display:none}
.notif-list{list-style:none;margin:0;padding:0;max-height:min(60vh,360px);overflow:auto}
.notif-item{display:flex;gap:11px;align-items:flex-start;padding:13px 16px;border-bottom:1px solid var(--line,#e5e5dd);font-size:12px;line-height:1.55;background:var(--surface,#fff)}
.notif-item:last-child{border-bottom:0}
.notif-item:hover{background:var(--surface-soft,#f2f3ed)}
.notif-item>div{min-width:0;flex:1}
.notif-item a,.notif-item span{color:var(--ink,#21251f);display:block;overflow-wrap:anywhere}
.notif-item a:hover{color:var(--orange,#eb642c)}
.notif-item small{display:block;margin-top:4px;font-size:10px;color:var(--muted,#73766d)}
.notif-dot{flex:none;width:7px;height:7px;border-radius:50%;background:var(--orange,#eb642c);margin-top:6px}
.notif-item.is-read .notif-dot{background:#c9cec0}
.notif-item.is-read a,.notif-item.is-read span{color:var(--muted,#73766d)}
.notif-empty{padding:22px 16px;font-size:12px;color:var(--muted,#73766d);text-align:center}
.notif-foot{display:flex;justify-content:space-between;gap:10px;padding:12px 16px;border-top:1px solid var(--line,#e5e5dd);background:var(--surface-soft,#f2f3ed);font-size:11px}
.notif-foot a{color:var(--orange,#eb642c)}
html[data-theme=dark] .notif-item.is-read .notif-dot{background:#4c5548}

/* Notification centre page */
.notif-page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap;margin-bottom:20px}
.notif-page-head h1{margin:6px 0 8px}
.notif-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.notif-tab{padding:8px 15px;border:1px solid var(--line);border-radius:20px;font-size:11px;background:var(--surface)}
.notif-tab.is-active{background:var(--orange);border-color:var(--orange);color:var(--accent-text);font-weight:600}
.notif-tab span{opacity:.7;margin-left:5px}
.notif-row{display:flex;gap:14px;align-items:flex-start;padding:18px 20px;background:var(--surface);border:1px solid var(--line);border-radius:8px;margin-bottom:12px}
.notif-row.is-unread{border-left:3px solid var(--orange)}
.notif-row>div{flex:1;min-width:0}
.notif-row p{margin:0 0 6px;font-size:13px;overflow-wrap:anywhere}
.notif-row small{font-size:10px;color:var(--muted);letter-spacing:.3px}
.notif-row .notif-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:10px}
.notif-row .notif-actions button{font-size:11px}
.notif-row form{margin:0}
@media(max-width:720px){
  .notif-label{display:none}
  .notif-toggle{padding:8px 9px}
  .notif-panel{position:fixed;left:10px;right:10px;top:auto;bottom:10px;width:auto;max-height:70vh;overflow:auto}
}

/* Notification centre additions: no-JS mark-all form, dead links, pagination, remove. */
.notif-readall-form { margin: 0; }
.notif-readall-form .link-button { font-size: 12.5px; }
.notif-gone { font-size: 12px; color: #8a8177; font-style: italic; }
.notif-actions { flex-wrap: wrap; gap: 8px; align-items: center; }
.notif-actions form { margin: 0; display: inline-flex; }
.pagination { display: flex; gap: 14px; align-items: center; justify-content: center; margin: 26px 0 10px; flex-wrap: wrap; }
.notif-row .notif-actions .button.outline.small { padding: 4px 10px; }
