.notification-center { position: relative; margin-left: auto; }
.notification-center__trigger { position: relative; display: block; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; line-height: 0; cursor: pointer; }
.notification-center__trigger > svg { position: absolute; top: 50%; left: 50%; display: block; width: 22px; height: 22px; margin: 0; transform: translate(-50%, -50%); }
.notification-center__trigger:hover { background: rgba(255,255,255,.2); }
.notification-center__badge { position: absolute; top: -3px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border: 2px solid var(--primary); border-radius: 99px; background: #dc2626; color: #fff; font-size: 10px; font-weight: 700; line-height: 14px; }
.notification-center__panel { position: absolute; z-index: 1200; top: calc(100% + 12px); right: 0; display: flex; flex-direction: column; width: min(410px, calc(100vw - 24px)); max-height: calc(100dvh - 98px); overflow: hidden; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; color: #1f2937; box-shadow: 0 18px 50px rgba(15,23,42,.24); }
.notification-center__panel[hidden] { display: none; }
.notification-center__header { position: static; height: auto; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: #fff; color: #111827; box-shadow: none; border-bottom: 1px solid #e5e7eb; }
.notification-center__header div { display: flex; flex-direction: column; gap: 2px; }
.notification-center__header span { color: #6b7280; font-size: 12px; font-weight: 400; }
.notification-center__header button, .notification-center__footer button { padding: 0; border: 0; background: none; color: #2563eb; font-size: 12px; cursor: pointer; }
.notification-center__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.notification-center__state { padding: 32px 18px; text-align: center; color: #6b7280; font-size: 13px; }
.notification-center__state--error { color: #b91c1c; }
.notification-section__label { position: sticky; z-index: 1; top: 0; margin: 0; padding: 8px 16px; border-bottom: 1px solid #e5e7eb; background: #f8fafc; color: #6b7280; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.notification-section__empty { padding: 18px 16px; border-bottom: 1px solid #eef0f3; color: #9ca3af; font-size: 12px; text-align: center; }
.notification-item { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 9px; align-items: start; padding: 13px 16px; border-bottom: 1px solid #f0f2f5; color: inherit; }
.notification-item:hover { background: #f8fafc; }
.notification-item.is-unread { background: #eff6ff; }
.notification-item__link { min-width: 0; color: inherit; text-decoration: none; }
.notification-item__dot { width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: transparent; }
.notification-item.is-unread .notification-item__dot { background: #2563eb; }
.notification-item__content { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.notification-item__content strong { font-size: 13px; }
.notification-item__content span { color: #4b5563; font-size: 12px; line-height: 1.45; }
.notification-item__content time { margin-top: 2px; color: #9ca3af; font-size: 10px; }
.notification-item__read { align-self: center; padding: 5px 7px; border: 0; border-radius: 5px; background: transparent; color: #2563eb; font-size: 10px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.notification-item__read:hover { background: #dbeafe; }
.notification-item__read:disabled { cursor: wait; opacity: .55; }
.notification-center__load-more { display: block; width: calc(100% - 32px); margin: 12px 16px; padding: 8px; border: 1px solid #dbe3ee; border-radius: 7px; background: #fff; color: #2563eb; font-size: 12px; font-weight: 700; cursor: pointer; }
.notification-center__load-more:hover { background: #f8fafc; }
.notification-center__footer { padding: 11px 16px; text-align: center; background: #f8fafc; }

.notification-settings { display: flex; flex-direction: column; gap: 16px; }
.notification-settings__state { padding: 24px 0; color: #6b7280; text-align: center; }
.notification-settings__state--error, .notification-settings__actions .is-error { color: #b91c1c; }
.notification-settings__contact { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.notification-settings__contact label { display: flex; flex-direction: column; gap: 5px; color: #4b5563; font-size: 12px; text-align: left; }
.notification-settings__contact input { min-width: 0; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; }
.notification-settings__contact input:disabled { background: #f3f4f6; color: #6b7280; }
.notification-settings__groups { display: flex; flex-direction: column; gap: 14px; }
.notification-settings__group { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 12px; align-items: start; }
.notification-settings__category { display: flex; flex-direction: column; gap: 16px; padding: 14px 13px; border: 1px solid #e5e7eb; border-radius: 8px; background: #f8fafc; }
.notification-settings__category span { color: #7b8494; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.notification-settings__category strong { color: #374151; font-size: 13px; }
.notification-settings__table { min-width: 0; overflow: hidden; border: 1px solid #e5e7eb; border-radius: 8px; }
.notification-settings__row { display: grid; grid-template-columns: minmax(130px, 1fr) repeat(3, 65px); align-items: center; gap: 6px; min-height: 48px; padding: 7px 10px; border-top: 1px solid #eef0f3; }
.notification-settings__row:first-child { border-top: 0; }
.notification-settings__row--head { min-height: 32px; background: #f8fafc; color: #6b7280; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.notification-settings__row > span:not(:first-child), .notification-settings__row > label { justify-self: center; text-align: center; }
.notification-settings__row strong { font-size: 12px; }
.notification-toggle { display: inline-flex; cursor: pointer; }
.notification-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.notification-toggle span { position: relative; width: 34px; height: 20px; border-radius: 99px; background: #cbd5e1; transition: background .15s; }
.notification-toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.notification-toggle input:checked + span { background: #2563eb; }
.notification-toggle input:checked + span::after { transform: translateX(14px); }
.notification-toggle input:focus-visible + span { outline: 2px solid #60a5fa; outline-offset: 2px; }
.notification-settings__actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; min-height: 34px; font-size: 12px; }

@media (max-width: 640px) {
    .notification-center__panel { position: fixed; top: 68px; right: 12px; max-height: calc(100dvh - 80px); }
    .notification-settings__contact { grid-template-columns: 1fr; }
    .notification-settings__group { grid-template-columns: 1fr; }
    .notification-settings__category { gap: 5px; }
    .notification-settings__row { grid-template-columns: minmax(105px, 1fr) repeat(3, 52px); padding-inline: 7px; }
}
