/* xenotif1 (Mortimer, 30-11-2026: «el sistema de notificaciones … es horrible, el de bascdao.com es súper profesional»):
   the 🔔 list as one timeline (xenotif.js draws it; header.js still fetches, counts and marks as read).
   Only the list and its two shells (the bell's panel on computers, the sheet on phones); header.css is not changed. */

/* The two shells */
.nav-bell-panel { width: min(430px, calc(100vw - 24px)); padding: 0; overflow: visible; }
.nav-bell-panel .profile-notifications-panel { gap: 0; }
.nav-bell-panel .profile-notifications-head { padding: 14px 16px 10px; }
.nav-bell-panel .profile-notifications-title { font-size: 1.02rem; font-weight: 800; letter-spacing: 0.01em; }
.profile-notifications-action { border-color: rgba(255,255,255,0.14); background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.86); font-size: 0.74rem; padding: 6px 12px; }
.profile-notifications-action:hover:not(:disabled) { border-color: rgba(249,115,22,0.55); background: rgba(249,115,22,0.14); color: #fdba74; }
.profile-notifications-action:disabled { opacity: 0.38; cursor: default; }
.nav-bell-panel .profile-notifications-list { max-height: none; overflow: visible; padding: 0; gap: 0; }
.nav-bell-panel .profile-notifications-list:not(.xn-host) { max-height: min(520px, calc(100dvh - 180px)); overflow-y: auto; padding: 0 12px 12px; gap: 10px; }
.nav-bell-panel .xn-list { max-height: min(560px, calc(100dvh - 210px)); border-radius: 0 0 14px 14px; }
.profile-notifications-empty { padding: 34px 16px; margin: 0 12px 12px; border: 0; background: none; font-size: 0.88rem; color: rgba(255,255,255,0.6); }
.profile-notifications-empty::before { content: ''; display: block; width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%;
    background: rgba(255,255,255,0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='.55' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9a6 6 0 1 1 12 0c0 4.500 1.600 6.300 2.400 7H3.600C4.400 15.300 6 13.500 6 9Z'/%3E%3Cpath d='M10 19.500a2 2 0 0 0 4 0'/%3E%3C/svg%3E") center / 24px no-repeat; }

@media (max-width: 991px) {
    .mobile-notifications-sheet-panel { height: min(86dvh, 760px); max-height: min(86dvh, 760px); padding: 10px 0 0; gap: 6px; }
    .mobile-notifications-head { padding: 2px 16px 4px; }
    .mobile-notifications-title { font-size: 1.12rem; }
    .mobile-notifications-head .profile-notifications-action { font-size: 0.8rem; padding: 7px 12px; }
    .mobile-notifications-list.xn-host { padding: 0; overflow: hidden; display: flex; }
    .mobile-notifications-list.xn-host .xn { flex: 1 1 auto; min-height: 0; }
    .mobile-notifications-list.xn-host .xn-list { flex: 1 1 auto; min-height: 0; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}

/* The timeline */
.xn { display: flex; flex-direction: column; min-width: 0; width: 100%; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --xn-line: rgba(255,255,255,0.08); --xn-muted: rgba(226,232,240,0.62); --kc: #94a3b8; }
.xn-tabs { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--xn-line); overflow-x: auto; scrollbar-width: none; flex: none; }
.xn-tabs::-webkit-scrollbar { display: none; }
.xn-tab { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 10px 11px; border: 0; background: none; cursor: pointer;
    font: inherit; font-size: 0.84rem; font-weight: 700; color: var(--xn-muted); transition: color 0.18s; }
.xn-tab:hover { color: #fff; }
.xn-tab.is-on { color: #fff; }
.xn-tab.is-on::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, #f97316, #fb923c); }
.xn-tab:focus-visible { outline: 2px solid #fb923c; outline-offset: -2px; border-radius: 8px; }
.xn-tab small { min-width: 18px; padding: 1px 5px; border-radius: 999px; font-size: 0.68rem; font-weight: 800; line-height: 1.35; text-align: center; color: #fff; background: #ef4444; }
.xn-list { display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.18) transparent; }
.xn-day { position: sticky; top: 0; z-index: 2; padding: 7px 16px 6px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--xn-muted); background: rgba(9,13,26,0.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--xn-line); }

.xn-row { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; padding: 12px 16px; text-decoration: none; color: #e2e8f0;
    border-bottom: 1px solid var(--xn-line); transition: background 0.18s; }
.xn-row:last-child { border-bottom: 0; }
.xn-row:hover, .xn-row:focus-visible { background: rgba(255,255,255,0.045); outline: none; }
.xn-row:focus-visible { box-shadow: inset 0 0 0 2px rgba(251,146,60,0.7); }
.xn-row.is-unread { background: linear-gradient(90deg, rgba(249,115,22,0.10), rgba(249,115,22,0.02) 60%); }
.xn-row.is-unread::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #f97316; }
.xn-row.is-unread:hover { background: linear-gradient(90deg, rgba(249,115,22,0.16), rgba(249,115,22,0.05) 60%); }

.xn-t-like { --kc: #f43f5e; } .xn-t-reply { --kc: #38bdf8; } .xn-t-post { --kc: #a78bfa; } .xn-t-nexus { --kc: #fb923c; }
.xn-t-live { --kc: #22c55e; } .xn-t-gold { --kc: #facc15; } .xn-t-raffle { --kc: #e879f9; } .xn-t-mod { --kc: #f87171; }

.xn-lead { position: relative; width: 44px; height: 44px; flex: none; }
.xn-face { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
    background: linear-gradient(135deg, #312e81, #7c2d12); border: 1px solid rgba(255,255,255,0.14); }
.xn-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xn-face b { font-size: 1.05rem; font-weight: 800; font-style: normal; color: #fff; line-height: 1; }
.xn-faces { display: flex; align-items: center; margin-bottom: 2px; }
.xn-face--s { width: 26px; height: 26px; margin-left: -7px; border: 2px solid #0b1020; }
.xn-face--s:first-child { margin-left: 0; }
.xn-face--s b { font-size: 0.72rem; }
.xn-more { margin-left: 6px; font-size: 0.72rem; font-weight: 700; color: var(--xn-muted); }
.xn-kind { position: absolute; right: -4px; bottom: -4px; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%;
    background: var(--kc); border: 2px solid #0b1020; }
.xn-kind svg { width: 11px; height: 11px; fill: #fff; display: block; }
.xn-tile { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 13px;
    background: color-mix(in srgb, var(--kc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--kc) 42%, transparent); }
.xn-tile svg { width: 22px; height: 22px; fill: var(--kc); display: block; }

.xn-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.xn-head { font-size: 0.875rem; line-height: 1.35; color: rgba(226,232,240,0.86); overflow-wrap: anywhere; }
.xn-head b { color: #fff; font-weight: 700; }
.xn-sep { color: var(--xn-muted); }
.xn-ctx { display: flex; align-items: center; gap: 8px; min-width: 0; }
.xn-tribe { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; color: #fff;
    --tc: #94a3b8; background: color-mix(in srgb, var(--tc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 46%, transparent); }
.xn-tribe i { width: 6px; height: 6px; border-radius: 50%; background: var(--tc); }
.xn-title { min-width: 0; font-size: 0.8rem; font-weight: 600; color: #93c5fd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xn-quote { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.82rem; line-height: 1.4; color: var(--xn-muted); overflow-wrap: anywhere; }
.xn-thumb { display: block; width: 100%; max-width: 220px; margin-top: 4px; border-radius: 10px; overflow: hidden; border: 1px solid var(--xn-line); aspect-ratio: 16 / 9; background: rgba(255,255,255,0.04); }
.xn-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xn-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding-top: 1px; }
.xn-time { font-size: 0.74rem; font-weight: 600; color: var(--xn-muted); white-space: nowrap; }
.xn-dot { width: 8px; height: 8px; border-radius: 50%; background: #f97316; box-shadow: 0 0 8px rgba(249,115,22,0.7); }

@media (prefers-reduced-motion: reduce) { .xn-row, .xn-tab { transition: none; } }
