/* رسائل لحظية داخل التطبيق */
.edu-moment {
  position: relative;
  overflow: hidden;
  margin: 0 0 16px;
  padding: 20px 16px 18px;
  border-radius: 24px;
  border: 1px solid transparent;
  box-shadow: 0 18px 44px rgba(11, 20, 38, 0.14);
}

.edu-moment__glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 70%);
  pointer-events: none;
}

.edu-moment--payment_pending {
  background: linear-gradient(145deg, #ecfdf5 0%, #fff 45%, #f0fdf4 100%);
  border-color: #86efac;
  color: #064e3b;
}

.edu-moment--payment_success {
  background: linear-gradient(145deg, #F3F2EF 0%, #fff 50%, #F3F2EF 100%);
  border-color: #C7C7C7;
  color: #070D18;
}

.edu-moment--welcome {
  background: linear-gradient(135deg, #070D18, #0B1426 50%, #7c2cff 100%);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 20px 48px rgba(11, 20, 38, 0.32);
}

.edu-moment--info {
  background: linear-gradient(160deg, #fff, #faf7ff);
  border-color: #D8DEE8;
  color: #070D18;
}

.edu-moment__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.edu-moment--welcome .edu-moment__icon {
  background: rgba(255, 255, 255, 0.2);
}

.edu-moment__badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: rgba(11, 20, 38, 0.1);
  color: #0B1426;
}

.edu-moment--payment_pending .edu-moment__badge {
  background: #d1fae5;
  color: #047857;
}

.edu-moment--welcome .edu-moment__badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.edu-moment__title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.35;
}

.edu-moment__text {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.65;
  opacity: 0.92;
}

.edu-moment__quote {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.55);
}

.edu-moment--welcome .edu-moment__quote {
  background: rgba(255, 255, 255, 0.12);
}

.edu-moment__steps {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.edu-moment__steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.edu-moment--welcome .edu-moment__steps li {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.edu-moment__step-n {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #0B1426, #1A2942);
}

.edu-moment--payment_pending .edu-moment__step-n {
  background: linear-gradient(135deg, #059669, #10b981);
}

.edu-moment__steps strong {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 2px;
}

.edu-moment__steps span {
  font-size: 0.74rem;
  line-height: 1.45;
  opacity: 0.9;
}

.edu-moment__actions {
  display: grid;
  gap: 8px;
}

.edu-moment__cta,
.edu-moment__cta2 {
  width: 100%;
  text-align: center;
  min-height: 46px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toast عائم */
.edu-moment-toast {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 0px));
  left: max(12px, env(safe-area-inset-left, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 9990;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #C7C7C7;
  box-shadow: 0 16px 40px rgba(11, 20, 38, 0.22);
  animation: eduMomentIn 0.45s ease;
  max-width: 540px;
  margin-inline: auto;
}

.edu-moment-toast--payment_pending {
  border-color: #86efac;
  background: linear-gradient(135deg, #ecfdf5, #fff);
}

.edu-moment-toast__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: #F3F2EF;
}

.edu-moment-toast--payment_pending .edu-moment-toast__icon {
  background: #d1fae5;
}

.edu-moment-toast__text {
  flex: 1;
  min-width: 0;
}

.edu-moment-toast__text strong {
  display: block;
  font-size: 0.88rem;
  color: #070D18;
  margin-bottom: 2px;
}

.edu-moment-toast__text p {
  margin: 0;
  font-size: 0.76rem;
  color: #6b5b7b;
  line-height: 1.45;
}

.edu-moment-toast__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: #F3F2EF;
  color: #0B1426;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.edu-moment-toast.is-out {
  animation: eduMomentOut 0.32s ease forwards;
}

@keyframes eduMomentIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes eduMomentOut {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* إشعارات — نوع الدفع */
.notification-item--payment .notification-icon {
  background: linear-gradient(135deg, #d1fae5, #ecfdf5);
  border: 1px solid #86efac;
  font-size: 1.2rem;
}

.notification-item--payment.unread {
  border-color: #6ee7b7;
  background: linear-gradient(180deg, #ecfdf5, #fff);
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.12);
}

.notification-item--payment .notification-content p {
  color: #047857;
}

.notification-item--welcome .notification-icon {
  background: linear-gradient(135deg, #F3F2EF, #F3F2EF);
}

@media (max-width: 480px) {
  .edu-moment {
    padding: 18px 14px 16px;
    border-radius: 20px;
  }

  .edu-moment__title {
    font-size: 1.1rem;
  }
}
