
.zenith-notif-container {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  left: 0;
  right: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  pointer-events: none;
  width: 100%;
  box-sizing: border-box;
}

.zenith-notif-card {
  pointer-events: auto;
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  color: #0F172A;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.06);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  overflow: hidden;
  box-sizing: border-box;

  animation: zenithNotifSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, opacity 0.25s ease;
}

.zenith-notif-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -4px rgba(0, 0, 0, 0.16), 0 6px 14px -2px rgba(0, 0, 0, 0.08);
}

.zenith-notif-card:active {
  transform: scale(0.985);
}

.zenith-notif-card.is-hiding {
  animation: zenithNotifSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
  pointer-events: none !important;
}

@keyframes zenithNotifSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-24px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes zenithNotifSlideUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    max-height: 84px;
    margin-bottom: 0;
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(0.96);
    max-height: 0;
    margin-bottom: -8px;
    padding-top: 0;
    padding-bottom: 0;
  }
}

.zenith-notif-avatar-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zenith-notif-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.zenith-notif-avatar-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.zenith-notif-content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding-right: 22px;
}

.zenith-notif-header-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.zenith-notif-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  margin: 0;
}

.zenith-notif-tag {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 9999px;
  background-color: #E0F2FE;
  color: #0284C7;
  line-height: 1.2;
}

.zenith-notif-preview {
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.zenith-notif-preview.is-audio {
  color: #0284C7;
  font-weight: 600;
}

.zenith-notif-preview.is-deleted {
  color: #94A3B8;
  font-style: italic;
}

.zenith-notif-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: #64748B;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  padding: 0;
  margin: 0;
  z-index: 2;
}

.zenith-notif-close-btn:hover {
  background-color: rgba(100, 116, 139, 0.12);
  color: #0F172A;
  transform: scale(1.08);
}

.zenith-notif-close-btn:active {
  transform: scale(0.92);
}

.zenith-notif-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(0, 0, 0, 0.04);
  overflow: hidden;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.zenith-notif-progress-bar {
  width: 100%;
  height: 100%;
  background: #0284C7;
  animation: zenithNotifProgress 10s linear forwards;
}

@keyframes zenithNotifProgress {
  0% {
    width: 100%;
  }
  100% {
    width: 0%;
  }
}

html[data-theme="dark"] .zenith-notif-card,
body.zenith-dark-theme .zenith-notif-card,
.zenith-dark-theme .zenith-notif-card {
  background: #0D0D0D !important;
  color: #FFFFFF !important;
  border-color: #27272A !important;
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.7), 0 4px 16px -2px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .zenith-notif-card:hover,
body.zenith-dark-theme .zenith-notif-card:hover,
.zenith-dark-theme .zenith-notif-card:hover {
  border-color: #3F3F46 !important;
  box-shadow: 0 16px 40px -4px rgba(0, 0, 0, 0.85), 0 6px 18px -2px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .zenith-notif-name,
body.zenith-dark-theme .zenith-notif-name,
.zenith-dark-theme .zenith-notif-name {
  color: #FFFFFF !important;
}

html[data-theme="dark"] .zenith-notif-tag,
body.zenith-dark-theme .zenith-notif-tag,
.zenith-dark-theme .zenith-notif-tag {
  background-color: rgba(2, 132, 199, 0.2) !important;
  color: #38BDF8 !important;
}

html[data-theme="dark"] .zenith-notif-preview,
body.zenith-dark-theme .zenith-notif-preview,
.zenith-dark-theme .zenith-notif-preview {
  color: #A1A1AA !important;
}

html[data-theme="dark"] .zenith-notif-preview.is-audio,
body.zenith-dark-theme .zenith-notif-preview.is-audio,
.zenith-dark-theme .zenith-notif-preview.is-audio {
  color: #38BDF8 !important;
}

html[data-theme="dark"] .zenith-notif-preview.is-deleted,
body.zenith-dark-theme .zenith-notif-preview.is-deleted,
.zenith-dark-theme .zenith-notif-preview.is-deleted {
  color: #71717A !important;
}

html[data-theme="dark"] .zenith-notif-close-btn,
body.zenith-dark-theme .zenith-notif-close-btn,
.zenith-dark-theme .zenith-notif-close-btn {
  color: #A1A1AA !important;
}

html[data-theme="dark"] .zenith-notif-close-btn:hover,
body.zenith-dark-theme .zenith-notif-close-btn:hover,
.zenith-dark-theme .zenith-notif-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #FFFFFF !important;
}

html[data-theme="dark"] .zenith-notif-progress-track,
body.zenith-dark-theme .zenith-notif-progress-track,
.zenith-dark-theme .zenith-notif-progress-track {
  background: rgba(255, 255, 255, 0.05) !important;
}

html[data-theme="dark"] .zenith-notif-progress-bar,
body.zenith-dark-theme .zenith-notif-progress-bar,
.zenith-dark-theme .zenith-notif-progress-bar {
  background: #0284C7 !important;
}

@media (max-width: 480px) {
  .zenith-notif-container {
    top: calc(env(safe-area-inset-top, 0px) + 8px);
    padding: 0 10px;
    gap: 6px;
  }

  .zenith-notif-card {
    padding: 10px 12px;
    border-radius: 14px;
    gap: 10px;
  }

  .zenith-notif-avatar-wrap {
    width: 40px;
    height: 40px;
  }

  .zenith-notif-avatar-initials {
    font-size: 0.95rem;
  }

  .zenith-notif-name {
    font-size: 0.9rem;
  }

  .zenith-notif-preview {
    font-size: 0.8rem;
  }

  .zenith-notif-close-btn {
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    font-size: 1.05rem;
  }
}

.zenith-notif-avatar-wrap.zenith-premium-avatar-frame {
  box-sizing: border-box !important;
  padding: 2px !important;
  background: linear-gradient(135deg, #D97706 0%, #FBBF24 35%, #FDE68A 50%, #D97706 80%, #92400E 100%) !important;
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.25),
              0 3px 10px rgba(245, 158, 11, 0.35),
              0 0 8px rgba(251, 191, 36, 0.25) !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}

.zenith-notif-avatar-wrap.zenith-premium-avatar-frame .zenith-notif-avatar-img,
.zenith-notif-avatar-wrap.zenith-premium-avatar-frame .zenith-notif-avatar-initials {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
}

.zenith-notif-name.zenith-premium-name {
  color: #D97706 !important;
  font-weight: 700 !important;
}

.zenith-dark-theme .zenith-notif-avatar-wrap.zenith-premium-avatar-frame,
[data-bs-theme="dark"] .zenith-notif-avatar-wrap.zenith-premium-avatar-frame {
  background: linear-gradient(135deg, #F59E0B 0%, #FDE68A 35%, #F59E0B 70%, #B45309 100%) !important;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.4),
              0 3px 12px rgba(245, 158, 11, 0.45),
              0 0 10px rgba(251, 191, 36, 0.3) !important;
}

.zenith-dark-theme .zenith-notif-name.zenith-premium-name,
[data-bs-theme="dark"] .zenith-notif-name.zenith-premium-name {
  color: #FBBF24 !important;
}

