/* ---- 1.8 Notifications: bell + panel (solid, light & night, LTR & RTL) ---- */
.nt-bell {
  --nt-bg: #FFFFFF; --nt-ink: #1A1430; --nt-ink2: #4A4366; --nt-muted: #6E6789; --nt-line: #E7E2F1; --nt-hover: #F5F1FB; --nt-unread: #FFF4F6;
  --nt-acc: #E11D48; --nt-acc2: #7C3AED; --nt-btn: transparent; --nt-btn-ink: currentColor;
  position: relative; display: inline-flex; flex: none;
}
html[data-mode="dark"] .nt-bell { --nt-bg: #1B1636; --nt-ink: #F3F0FF; --nt-ink2: #D3CCEE; --nt-muted: #A79FC8; --nt-line: #2E2752; --nt-hover: #251F47; --nt-unread: #2A1B3E; }
.nt-bell__btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 12px; background: var(--nt-btn); color: var(--nt-btn-ink); cursor: pointer; transition: background .2s, transform .2s; }
.nt-bell__btn:hover, .nt-bell.is-open .nt-bell__btn { background: color-mix(in srgb, currentColor 10%, transparent); }
.nt-bell__btn:focus-visible { outline: 2px solid var(--nt-acc); outline-offset: 2px; }
.nt-bell__btn .ic { width: 21px; height: 21px; }
.nt-bell__n { position: absolute; top: 3px; inset-inline-end: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--nt-acc); color: #fff; font: 800 11px/18px system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 2px var(--nt-ring, #fff); pointer-events: none; }
html[data-mode="dark"] .nt-bell__n { --nt-ring: #120E28; }
.nt-bell__n[hidden] { display: none; }
.nt-bell.has-new .nt-bell__btn .ic { animation: nt-ring 1.2s ease 1; transform-origin: 50% 10%; }
@keyframes nt-ring { 0%,100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } }

.nt-panel { position: absolute; top: calc(100% + 10px); inset-inline-end: -6px; z-index: 300; width: min(380px, calc(100vw - 24px)); display: flex; flex-direction: column; max-height: min(560px, calc(100vh - 90px));
  background: var(--nt-bg); color: var(--nt-ink); border: 1px solid var(--nt-line); border-radius: 18px; box-shadow: 0 24px 60px -18px rgba(20,10,50,.45), 0 2px 6px rgba(20,10,50,.12); overflow: hidden; text-align: start;
  font-size: 14px; line-height: 1.5; letter-spacing: normal; text-transform: none; }
html[data-mode="dark"] .nt-panel { box-shadow: 0 24px 60px -16px rgba(0,0,0,.85), 0 2px 6px rgba(0,0,0,.5); }
.nt-panel[hidden] { display: none; }
.nt-bell.is-open .nt-panel { animation: nt-pop .18s ease-out; }
@keyframes nt-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.nt-panel__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 12px; border-bottom: 1px solid var(--nt-line); background: var(--nt-bg); }
.nt-panel__h strong { font-size: 15.5px; font-weight: 800; color: var(--nt-ink); }
.nt-panel__all { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--nt-acc2); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
html[data-mode="dark"] .nt-panel__all { color: #C4B5FD; }
.nt-panel__all:hover { background: var(--nt-hover); }
.nt-panel__all[disabled] { opacity: .45; cursor: default; }
.nt-panel__all .ic { width: 16px; height: 16px; }
.nt-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; background: var(--nt-bg); }
.nt-list li + li { margin-top: 2px; }
.nt-li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 10px; border-radius: 12px; color: var(--nt-ink); text-decoration: none; position: relative; }
.nt-li:hover, .nt-li:focus-visible { background: var(--nt-hover); outline: none; }
.nt-li.is-unread { background: var(--nt-unread); }
.nt-li.is-unread:hover { background: color-mix(in srgb, var(--nt-unread) 60%, var(--nt-hover)); }
.nt-li__ic, .nt-item__ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #EEE9FA; color: #6D28D9; }
.nt-li__ic .ic, .nt-item__ic .ic { width: 19px; height: 19px; }
.nt-k--event { background: #FFE4EA !important; color: #BE123C !important; }
.nt-k--ticket { background: #DFF5EF !important; color: #0F766E !important; }
.nt-k--promo { background: #FEF0D7 !important; color: #B45309 !important; }
.nt-k--system { background: #E0ECFF !important; color: #1D4ED8 !important; }
html[data-mode="dark"] .nt-li__ic, html[data-mode="dark"] .nt-item__ic { background: #2D2556; color: #C4B5FD; }
html[data-mode="dark"] .nt-k--event { background: #4A1830 !important; color: #FDA4B8 !important; }
html[data-mode="dark"] .nt-k--ticket { background: #123A36 !important; color: #5EEAD4 !important; }
html[data-mode="dark"] .nt-k--promo { background: #43300F !important; color: #FCD34D !important; }
html[data-mode="dark"] .nt-k--system { background: #172B52 !important; color: #93C5FD !important; }
.nt-li__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.nt-li__t strong { font-size: 14px; font-weight: 700; color: var(--nt-ink); overflow-wrap: anywhere; }
.nt-li__t span { font-size: 13px; color: var(--nt-ink2); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nt-li__t small { font-size: 12px; color: var(--nt-muted); }
.nt-li__dot { position: absolute; top: 16px; inset-inline-end: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--nt-acc); }
.nt-li.is-unread .nt-li__t { padding-inline-end: 14px; }
.nt-empty { padding: 28px 16px; text-align: center; color: var(--nt-muted); font-size: 13.5px; }
.nt-panel__more { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border-top: 1px solid var(--nt-line); background: var(--nt-bg); color: var(--nt-acc2); font-weight: 700; font-size: 13.5px; text-decoration: none; }
html[data-mode="dark"] .nt-panel__more { color: #C4B5FD; }
.nt-panel__more:hover { background: var(--nt-hover); }
.nt-panel__more .ic { width: 16px; height: 16px; }
@media (max-width: 560px) {
  /* stays clear of the phone bottom bar */
  .nt-panel { position: fixed; top: 64px; inset-inline: 10px; width: auto; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); }
}

/* ---- "New" badge on the Events menu: bright, moving gradient; still for reduced motion ---- */
.nt-new { display: inline-flex; align-items: center; gap: 3px; flex: none; margin-inline-start: 6px; padding: 2px 7px 2px 7px; border-radius: 99px; vertical-align: middle;
  background: linear-gradient(110deg, #E11D48, #F97316 30%, #EA580C 50%, #C026D3 75%, #E11D48); background-size: 220% 100%; color: #fff;
  font: 800 10.5px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .02em; text-transform: none; text-shadow: 0 1px 1px rgba(120,0,40,.35);
  box-shadow: 0 0 0 0 rgba(255,45,111,.55), 0 4px 12px -4px rgba(255,60,80,.7); animation: nt-flow 2.8s linear infinite, nt-pulse 2.2s ease-out infinite; position: relative; white-space: nowrap; }
.nt-new i { font-style: normal; display: inline-grid; place-items: center; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 99px; background: #fff; color: #E11D48; font-size: 10px; line-height: 1; text-shadow: none; }
.nt-new--foot { font-size: 10px; padding: 1px 6px; }
@keyframes nt-flow { to { background-position: -220% 0; } }
@keyframes nt-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,45,111,.55), 0 4px 12px -4px rgba(255,60,80,.7); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255,45,111,0), 0 4px 12px -4px rgba(255,60,80,.7); } }
.nt-dot { position: absolute; top: 2px; inset-inline-start: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: linear-gradient(135deg, #FF2D6F, #FF8A00); color: #fff;
  font: 800 10.5px/17px system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 2px var(--nt-ring, #fff); animation: nt-pulse 2.2s ease-out infinite; pointer-events: none; }
html[data-mode="dark"] .nt-dot { --nt-ring: #120E28; }
.nt-new.is-gone, .nt-dot.is-gone { animation: nt-out .35s ease forwards; }
@keyframes nt-out { to { opacity: 0; transform: scale(.4); } }
@media (prefers-reduced-motion: reduce) {
  .nt-new, .nt-dot, .nt-bell.has-new .nt-bell__btn .ic, .nt-bell.is-open .nt-panel { animation: none !important; }
  .nt-new { background-position: 30% 0; }
}

/* account header */
.nt-bell--ac .nt-bell__btn { width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--a-line); background: var(--a-card); color: var(--a-ink); }
.nt-bell--ac .nt-bell__btn:hover, .nt-bell--ac.is-open .nt-bell__btn { background: var(--a-sunk); }
.nt-bell--ac .nt-bell__n { --nt-ring: var(--a-card); top: -5px; inset-inline-end: -5px; }
.ac-tabs a { position: relative; }
.ac-side__foot a .nt-new { margin-inline-start: auto; }
.ac-tabs .nt-dot { top: 3px; }

/* Notifications page */
.nt-page .ac-card__h h2 { flex-wrap: wrap; }
.nt-page__n { padding: 2px 9px; border-radius: 99px; background: #FFE4EA; color: #BE123C; font-size: 12px; font-weight: 800; }
html[data-mode="dark"] .nt-page__n { background: #4A1830; color: #FDA4B8; }
.nt-page__lead { margin: -4px 0 14px; font-size: 13.5px; }
.nt-page__lead a { color: var(--a-link, var(--a-violet)); font-weight: 700; }
.nt-full { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nt-item { position: relative; display: flex; align-items: stretch; border-radius: 16px; border: 1px solid var(--a-line); background: var(--a-card); }
.nt-item.is-unread { background: color-mix(in srgb, #E11D48 5%, var(--a-card)); border-color: color-mix(in srgb, #E11D48 22%, var(--a-line)); }
.nt-item__a { flex: 1; display: flex; gap: 14px; align-items: flex-start; padding: 14px; color: var(--a-ink); text-decoration: none; min-width: 0; border-radius: 16px; }
.nt-item__a:hover { background: var(--a-sunk); }
.nt-item__t { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.nt-item__t strong { font-size: 15px; overflow-wrap: anywhere; }
.nt-item__t span { font-size: 14px; color: var(--a-ink2); overflow-wrap: anywhere; }
.nt-item__t small { font-size: 12.5px; color: var(--a-muted); }
.nt-item__dot { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: #E11D48; }
.nt-item__mk { display: flex; align-items: center; padding-inline-end: 10px; }
.nt-item__mk button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--a-line); background: var(--a-card); color: var(--a-muted); cursor: pointer; }
.nt-item__mk button:hover { color: var(--a-ink); background: var(--a-sunk); }
.nt-none { display: grid; justify-items: center; gap: 6px; padding: 40px 16px; text-align: center; }
.nt-none > span { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--a-sunk); color: var(--a-violet); }
.nt-none > span .ic { width: 28px; height: 28px; }
.nt-none p { margin: 0; }
.nt-pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }

/* the phone bottom bar (variant "tab"): the dot sits on the tab's icon */
a:has(> .nt-dot), :has(> .nt-dot) { position: relative; }
.nv > .nt-dot, .ic + .nt-dot { top: -8px; inset-inline-start: auto; inset-inline-end: -12px; }
.nt-new--one i { display: none; }

/* 1.11 · contest-site items in the merged list (gold crown chip) */
.nt-k--contest, .nt-item--contest .nt-item__ic { background: #FBEFD2 !important; color: #9A6B10 !important; }
html[data-mode="dark"] .nt-k--contest, html[data-mode="dark"] .nt-item--contest .nt-item__ic { background: #3F3012 !important; color: #F7D98B !important; }
.nt-li__src { display: inline-block; margin-inline-start: 6px; padding: 1px 6px; border-radius: 99px; background: #FBEFD2; color: #9A6B10; font-size: 10.5px; font-weight: 800; font-style: normal; vertical-align: middle; }
html[data-mode="dark"] .nt-li__src { background: #3F3012; color: #F7D98B; }
