/* ── FCM In-App Toast ──────────────────────────────── */
.fcm-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  border: 1px solid #e8dcc8;
  border-right: 4px solid #c9a227;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  min-width: 280px;
  max-width: 360px;
  direction: rtl;
  animation: toastIn 0.3s ease;
  transition: opacity 0.4s, transform 0.4s;
}

.fcm-toast-hide {
  opacity: 0;
  transform: translateY(16px);
}

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

.fcm-toast-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fdf6e3;
  border: 1.5px solid #c9a227;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #c9a227;
  font-size: 18px;
}

.fcm-toast-content { flex: 1; min-width: 0; }

.fcm-toast-title {
  font-family: Amiri, serif;
  font-size: 14px;
  font-weight: 700;
  color: #2c1a0e;
  margin-bottom: 2px;
}

.fcm-toast-body {
  font-size: 12.5px;
  color: #8a6a52;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fcm-toast-close {
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 4px;
  flex-shrink: 0;
  line-height: 1;
}

.fcm-toast-close:hover { color: #555; }

/* Mobile */
@media (max-width: 480px) {
  .fcm-toast {
    left: 12px;
    right: 12px;
    bottom: 16px;
    min-width: unset;
    max-width: unset;
  }
}

/* pulse animation for new message dot in conv list */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
