

.fx-notify-root {
  --fx-n-accent: #5ec8ff;
  --fx-n-warn: #f0b429;
  --fx-n-danger: #ff6b6b;
  --fx-n-ok: #3dd68c;
  --fx-n-panel: rgba(8, 18, 36, 0.92);
  --fx-n-border: rgba(140, 190, 230, 0.22);
  --fx-n-text: #e8f2ff;
  --fx-n-muted: rgba(200, 220, 240, 0.62);
  font-family: "Vazirmatn", "Vazir", Tahoma, "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif;
}

.shell-end .fx-notify-root {
  display: inline-flex;
  align-items: center;
  flex: none;
  order: 2;
}

.fx-notify-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  border: 1px solid var(--fx-n-border);
  border-radius: 12px;
  background: rgba(12, 28, 48, 0.55);
  color: var(--fx-n-text);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  flex-shrink: 0;
  z-index: 3;
}

.fx-notify-bell:hover {
  transform: translateY(-1px);
  border-color: rgba(94, 200, 255, 0.45);
  background: rgba(18, 40, 68, 0.75);
}

.fx-notify-bell svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fx-notify-badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(145deg, #ff7a59, #e23d5a);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(226, 61, 90, 0.45);
  transform: scale(0.85);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s cubic-bezier(0.22, 1.4, 0.36, 1), opacity 0.18s ease;
}

.fx-notify-badge.is-on {
  opacity: 1;
  transform: scale(1);
}

.fx-notify-badge.is-bump {
  animation: fx-notify-bump 0.45s cubic-bezier(0.22, 1.4, 0.36, 1);
}

@keyframes fx-notify-bump {
  0% { transform: scale(0.7); }
  55% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.fx-notify-scrim {
  position: fixed;
  inset: 0;
  z-index: 9200;
  background: rgba(2, 8, 18, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.fx-notify-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

.fx-notify-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  z-index: 9210;
  width: min(380px, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--fx-n-panel);
  border-inline-start: 1px solid var(--fx-n-border);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
  color: var(--fx-n-text);
  transform: translateX(105%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

html[dir="rtl"] .fx-notify-drawer,
[dir="rtl"] .fx-notify-drawer {
  transform: translateX(-105%);
}

.fx-notify-drawer.is-open {
  transform: translateX(0) !important;
}

.fx-notify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 10px;
  border-bottom: 1px solid var(--fx-n-border);
}

.fx-notify-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.fx-notify-head-actions {
  display: flex;
  gap: 6px;
}

.fx-notify-head-actions button {
  border: 1px solid var(--fx-n-border);
  background: transparent;
  color: var(--fx-n-muted);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 11px;
  cursor: pointer;
}

.fx-notify-head-actions button:hover {
  color: var(--fx-n-text);
  border-color: rgba(94, 200, 255, 0.4);
}

.fx-notify-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
}

.fx-notify-filters button {
  border: 1px solid var(--fx-n-border);
  background: transparent;
  color: var(--fx-n-muted);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
}

.fx-notify-filters button.is-active {
  color: #061018;
  background: var(--fx-n-accent);
  border-color: transparent;
  font-weight: 600;
}

.fx-notify-list {
  flex: 1;
  overflow: auto;
  padding: 4px 10px 24px;
}

.fx-notify-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--fx-n-muted);
  font-size: 13px;
  line-height: 1.7;
}

.fx-notify-item {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 12px 12px 12px 14px;
  margin: 6px 0;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.fx-notify-item:hover {
  background: rgba(94, 200, 255, 0.08);
  border-color: var(--fx-n-border);
}

.fx-notify-item.is-unread {
  background: rgba(94, 200, 255, 0.1);
}

.fx-notify-item.is-unread::before {
  content: "";
  position: absolute;
  inset-inline-start: 5px;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fx-n-accent);
}

.fx-notify-item.is-pinned {
  border-color: rgba(240, 180, 41, 0.35);
}

.fx-notify-item .t {
  font-size: 13px;
  font-weight: 650;
}

.fx-notify-item .b {
  font-size: 12px;
  color: var(--fx-n-muted);
  line-height: 1.5;
}

.fx-notify-item .m {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: var(--fx-n-muted);
  margin-top: 2px;
}

.fx-notify-item .sev-critical { color: var(--fx-n-danger); }
.fx-notify-item .sev-warn { color: var(--fx-n-warn); }
.fx-notify-item .sev-success { color: var(--fx-n-ok); }

.fx-notify-item-actions {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.fx-notify-item:hover .fx-notify-item-actions {
  opacity: 1;
}

.fx-notify-item-actions button {
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: var(--fx-n-muted);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

.fx-notify-toasts {
  position: fixed;
  z-index: 9300;
  inset-inline-end: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  width: min(340px, calc(100vw - 24px));
  pointer-events: none;
}

.fx-notify-toast {
  pointer-events: auto;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--fx-n-border);
  background: linear-gradient(160deg, rgba(14, 32, 56, 0.96), rgba(8, 18, 34, 0.94));
  color: var(--fx-n-text);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(94, 200, 255, 0.08);
  transform: translateY(12px);
  opacity: 0;
  animation: fx-toast-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fx-notify-toast.is-out {
  animation: fx-toast-out 0.25s ease forwards;
}

.fx-notify-toast .t {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.fx-notify-toast .b {
  font-size: 12px;
  color: var(--fx-n-muted);
  line-height: 1.45;
}

.fx-notify-toast.sev-critical {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 24px rgba(255, 107, 107, 0.18);
  border-color: rgba(255, 107, 107, 0.35);
}

.fx-notify-toast.sev-success {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 20px rgba(61, 214, 140, 0.12);
}


.fx-notify-toast {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.fx-notify-toast .tx {
  flex: 1;
  min-width: 0;
}

.fx-notify-toast .fx-toast-ic {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #5ec8ff;
  background: linear-gradient(160deg, rgba(94, 200, 255, 0.16), rgba(47, 125, 255, 0.10));
  border: 1px solid rgba(94, 200, 255, 0.35);
}

.fx-notify-toast .fx-toast-ic .ic {
  width: 18px;
  height: 18px;
}

.fx-notify-toast.sev-social {
  border-color: rgba(94, 200, 255, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 24px rgba(94, 200, 255, 0.16);
}

@keyframes fx-toast-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fx-toast-out {
  to { opacity: 0; transform: translateY(10px); }
}

@media (max-width: 640px) {
  .fx-notify-drawer {
    width: 100vw;
  }
}
