.notification-center { position: relative; display: flex; align-items: center; }
.notification-bell {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--border-color, rgba(255,255,255,.12)); border-radius: 50%;
  background: var(--surface-raised, rgba(255,255,255,.06)); color: var(--text-primary, #f8fafc);
  cursor: pointer; touch-action: manipulation; transition: background .16s ease, transform .16s ease;
}
.notification-bell:hover { background: rgba(255,255,255,.13); }
.notification-bell:active { transform: scale(.96); }
.notification-bell svg { width: 21px; height: 21px; }
.notification-count { position: absolute; top: -3px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border-radius: 999px; border: 2px solid var(--surface, #171717); background: #dc2626; color: white; font: 750 10px/1 system-ui,sans-serif; }
.notification-count[hidden] { display: none; }
.notification-panel { position: absolute; z-index: 1100; top: calc(100% + 10px); right: 0; width: min(370px, calc(100vw - 28px)); max-height: min(560px, calc(100vh - 100px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 15px; background: var(--surface, #17191d); color: var(--text-primary, #f8fafc); box-shadow: 0 20px 55px rgba(0,0,0,.42); }
.notification-panel[hidden] { display: none; }
.notification-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.notification-panel-head h2 { margin: 2px 0 0; font-size: 1rem; line-height: 1.2; }
.notification-kicker { color: #e9b45c; font-size: .63rem; font-weight: 800; letter-spacing: .12em; }
.notification-read-all { border: 0; background: none; color: #f1c46d; font-size: .72rem; font-weight: 650; line-height: 1.3; cursor: pointer; }
.notification-sound-setting { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.07); color: var(--text-muted, #b2bac3); font-size: .78rem; }
.notification-sound-setting input { accent-color: #e8ad45; width: 16px; height: 16px; }
.notification-list { overflow-y: auto; overscroll-behavior: contain; padding: 4px 8px 8px; }
.notification-empty { margin: 0; padding: 30px 12px; color: var(--text-muted, #aab2bc); text-align: center; font-size: .82rem; }
.notification-row { display: grid; grid-template-columns: 9px minmax(0,1fr) 30px; align-items: start; gap: 10px; padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.06); border-radius: 8px; cursor: pointer; }
.notification-row:hover { background: rgba(255,255,255,.05); }
.notification-row.is-unread { background: rgba(231,177,78,.055); }
.notification-state-dot { width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: transparent; }
.notification-row.is-unread .notification-state-dot { background: #42a5ff; box-shadow: 0 0 0 3px rgba(66,165,255,.14); }
.notification-row-copy { display: grid; gap: 3px; min-width: 0; }
.notification-row-copy strong { font-size: .81rem; line-height: 1.25; overflow-wrap: anywhere; }
.notification-row-copy > span { color: #e5bb6b; font-size: .7rem; }
.notification-row-copy small { color: var(--text-muted, #aeb6bf); font-size: .7rem; line-height: 1.35; }
.notification-mark-read { align-self: center; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; background: transparent; color: #85d5a1; cursor: pointer; }
.notification-toast { position: fixed; z-index: 12000; top: max(16px, env(safe-area-inset-top)); right: 18px; display: grid; grid-template-columns: minmax(0,1fr) auto 30px; align-items: center; gap: 10px; width: min(430px, calc(100vw - 32px)); padding: 13px 12px 13px 15px; border: 1px solid rgba(232,173,69,.35); border-left: 3px solid #e7ac47; border-radius: 12px; background: #202226; color: #f8fafc; box-shadow: 0 14px 38px rgba(0,0,0,.38); animation: notification-toast-in .2s ease-out; }
.notification-toast.is-urgent { border-color: rgba(239,68,68,.5); border-left-color: #ef4444; }
.notification-toast-copy { display: grid; gap: 4px; min-width: 0; }
.notification-toast-copy strong { font-size: .83rem; }
.notification-toast-copy span,.notification-toast-copy small { color: #c0c6cd; font-size: .72rem; line-height: 1.35; overflow-wrap: anywhere; }
.notification-toast-action { min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: #d99732; color: #1b160f; font-size: .72rem; font-weight: 750; cursor: pointer; }
.notification-toast-close { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: #bdc3ca; font-size: 1.2rem; cursor: pointer; }
@keyframes notification-toast-in { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 640px) {
  .notification-bell { width: 38px; height: 38px; }
  .notification-panel { position: fixed; z-index: 1100; inset: auto 0 0; width: 100%; max-height: min(78dvh, 680px); padding-bottom: env(safe-area-inset-bottom); border: 1px solid rgba(255,255,255,.13); border-bottom: 0; border-radius: 19px 19px 0 0; box-shadow: 0 -16px 50px rgba(0,0,0,.46); animation: notification-sheet-up .2s ease-out; }
  .notification-panel-head { padding: 19px 17px 13px; }
  .notification-row { min-height: 67px; padding: 13px 9px; }
  .notification-mark-read { width: 34px; height: 34px; }
  .notification-toast { top: auto; right: 10px; bottom: calc(12px + env(safe-area-inset-bottom)); width: calc(100vw - 20px); }
}
@keyframes notification-sheet-up { from { opacity: .6; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .notification-toast,.notification-panel { animation: none; } }
