body:has(.screen--home) .topbar__notifications {
  position: absolute;
  z-index: 2;
  top: calc(12px + var(--safe-top));
  left: 16px;
  display: grid;
}

.topbar__notifications {
  display: none;
}

.topbar__notifications svg {
  width: 21px;
  height: 21px;
}

.notifications-badge[hidden] {
  display: none;
}

.notifications-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  place-items: center;
  border: 2px solid #08090d;
  border-radius: 999px;
  background: #f01831;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.notifications-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: var(--safe-top);
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  transition: opacity 180ms ease, visibility 180ms ease;
  visibility: hidden;
}

.notifications-backdrop[hidden] {
  display: none;
}

.notifications-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.notification-panel {
  display: flex;
  width: min(100%, 600px);
  max-height: min(76dvh, 680px);
  padding: 10px 16px calc(18px + var(--safe-bottom));
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(circle at 88% 0%, rgba(210, 10, 31, 0.12), transparent 35%),
    #101115;
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.46);
  transform: translateY(22px);
  transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1);
}

.notifications-backdrop.is-open .notification-panel {
  transform: translateY(0);
}

.notification-panel__handle {
  width: 38px;
  height: 4px;
  margin: 0 auto 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.notification-panel__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 38px;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notification-panel__header h2,
.notification-panel__header p {
  margin: 0;
}

.notification-panel__header h2 {
  font-size: 20px;
  font-weight: 780;
  letter-spacing: -0.03em;
}

.notification-panel__header p {
  margin-top: 4px;
  color: #9298a6;
  font-size: 12px;
}

.notification-panel__clear {
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: #ff5269;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.notification-panel__close {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #f6f6f8;
  cursor: pointer;
}

.notification-panel__close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.notification-panel__list {
  display: grid;
  min-height: 120px;
  padding-top: 12px;
  gap: 8px;
  overflow: auto;
  overscroll-behavior: contain;
}

.notification-item {
  display: grid;
  width: 100%;
  padding: 12px;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
  color: #f8f8fb;
  font: inherit;
  text-align: left;
}

button.notification-item {
  cursor: pointer;
}

.notification-item.is-unread {
  border-color: rgba(240, 24, 49, 0.34);
  background: linear-gradient(110deg, rgba(174, 7, 27, 0.12), transparent 60%), rgba(255, 255, 255, 0.025);
}

.notification-item__icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(240, 24, 49, 0.35);
  border-radius: 12px;
  background: rgba(240, 24, 49, 0.1);
  color: #ff5269;
  font-size: 19px;
  font-weight: 780;
}

.notification-item__icon--topup {
  border-color: rgba(102, 227, 164, 0.28);
  background: rgba(102, 227, 164, 0.08);
  color: #66e3a4;
}

.notification-item__copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.notification-item__copy strong {
  font-size: 13px;
  font-weight: 700;
}

.notification-item__copy > span {
  color: #b7bbc5;
  font-size: 12px;
  line-height: 1.35;
}

.notification-item__copy time {
  color: #777e8b;
  font-size: 10px;
}

.notification-item__chevron {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #858c9a;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-empty {
  display: grid;
  min-height: 190px;
  padding: 24px 16px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  color: #aeb4c0;
  text-align: center;
}

.notification-empty > span {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
  place-items: center;
  border: 1px solid rgba(240, 24, 49, 0.28);
  border-radius: 17px;
  background: rgba(240, 24, 49, 0.09);
  color: #f01831;
  font-size: 26px;
}

.notification-empty strong {
  color: #f8f8fb;
  font-size: 14px;
}

.notification-empty p {
  max-width: 260px;
  margin: 0;
  color: #8d94a1;
  font-size: 12px;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .notifications-backdrop,
  .notification-panel {
    transition: none;
  }
}


.notification-item__icon--mail {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #f5f6fa;
}

.notification-item__media {
  display: block;
  width: min(100%, 260px);
  max-height: 220px;
  margin-top: 6px;
  border-radius: 12px;
  object-fit: contain;
  background: #08090d;
}

.notification-item__audio {
  display: block;
  width: min(100%, 260px);
  margin-top: 6px;
}

.notification-item__attachment {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #f5f6fa;
  font: inherit;
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
}
