/* CashClaim notification center — account page list + empty animation */
.dd-notify-center__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dd-notify-center__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
}

.dd-notify-center__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 220px;
  max-height: min(420px, 52vh);
  overflow-y: auto;
  margin-top: 4px;
  padding: 4px 2px 2px 0;
}

/* —— Loading —— */
.dd-notify-center__loading {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 200px;
  padding: 24px 16px;
  text-align: center;
}

.dd-notify-center__loading p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.dd-notify-center__loading-anim {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dd-notify-center__loading-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  animation: ddNotifyCenterDot 1.1s ease-in-out infinite;
}

.dd-notify-center__loading-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.dd-notify-center__loading-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes ddNotifyCenterDot {
  0%,
  80%,
  100% {
    transform: translateY(0) scale(0.85);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-8px) scale(1);
    opacity: 1;
  }
}

/* —— Empty state animation —— */
.dd-notify-center__empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 220px;
  padding: 20px 16px 28px;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px dashed #cbd5e1;
}

.dd-notify-center__empty-anim {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 4px;
}

.dd-notify-center__empty-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(13, 148, 136, 0.28);
  animation: ddNotifyCenterRing 2.4s ease-out infinite;
}

.dd-notify-center__empty-ring:nth-child(2) {
  animation-delay: 0.85s;
}

.dd-notify-center__empty-bell {
  position: absolute;
  inset: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  filter: drop-shadow(0 6px 14px rgba(13, 148, 136, 0.28));
  animation: ddNotifyCenterBell 1.35s ease-in-out infinite;
}

@keyframes ddNotifyCenterRing {
  0% {
    transform: scale(0.7);
    opacity: 0.75;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@keyframes ddNotifyCenterBell {
  0%,
  100% {
    transform: rotate(-10deg);
  }
  50% {
    transform: rotate(10deg);
  }
}

.dd-notify-center__empty-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.dd-notify-center__empty-msg {
  margin: 0;
  max-width: 280px;
  font-size: 13px;
  line-height: 1.55;
  color: #64748b;
}

/* —— Notification items —— */
.dd-notify-center__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  animation: ddNotifyCenterItemIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ddNotifyCenterItemIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dd-notify-center__item:hover {
  border-color: #99f6e4;
  background: #f0fdfa;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.08);
}

.dd-notify-center__item.is-unread {
  border-color: #fcd34d;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
  box-shadow: 0 2px 10px rgba(251, 191, 36, 0.12);
}

.dd-notify-center__icon {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1.2;
}

.dd-notify-center__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dd-notify-center__title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.dd-notify-center__msg {
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
}

.dd-notify-center__time {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
}

.dd-notify-center__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.55);
  animation: ddNotifyCenterDotPulse 1.6s ease-in-out infinite;
}

@keyframes ddNotifyCenterDotPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.75;
  }
}

.header-account-teaser,
.bottom-item[data-page="account"] {
  position: relative;
}

.dd-account-notif-badge,
.dd-header-notif-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  color: #fff;
  background: #ef4444;
  border: 2px solid rgba(15, 23, 42, 0.95);
  pointer-events: none;
}

.header-account-teaser .dd-header-notif-badge {
  top: 2px;
  right: -2px;
}

.bottom-item[data-page="account"] .dd-account-notif-badge {
  top: 0;
  right: 2px;
}

.bottom-item[data-page="account"].has-notif-badge .bottom-account-fallback,
.bottom-item[data-page="account"].has-notif-badge .bottom-profile-avatar {
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .dd-notify-center__empty-ring,
  .dd-notify-center__empty-bell,
  .dd-notify-center__loading-dot,
  .dd-notify-center__dot,
  .dd-notify-center__item {
    animation: none !important;
  }
}
