/* Admin save feedback: visible, calm, and explicit about server synchronization. */
.admin-toast.save-success {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(28, 176, 133, .24) !important;
  background: linear-gradient(135deg, #effdf8 0%, #ffffff 58%, #edf7ff 100%) !important;
  color: #126c56 !important;
  box-shadow: 0 14px 30px rgba(27, 157, 119, .12), inset 0 1px rgba(255,255,255,.9);
  animation: adminSyncToastIn .46s cubic-bezier(.16,1,.3,1) both, adminSyncGlow 2.2s ease .46s both;
}
.admin-toast.save-success::before {
  content: "✓";
  display: grid;
  flex: 0 0 25px;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: linear-gradient(145deg, #16c79a, #0b9b72);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 5px 12px rgba(11,155,114,.22);
  animation: adminSyncCheck .42s .12s cubic-bezier(.16,1,.3,1) both;
}
.admin-toast.save-success::after {
  content: attr(data-sync-label);
  margin-left: auto;
  padding: 5px 8px;
  border: 1px solid rgba(28,176,133,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  color: #178262;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}
.admin-toast.form-error {
  animation: adminSyncToastIn .34s cubic-bezier(.16,1,.3,1) both;
}
@keyframes adminSyncToastIn {
  from { opacity: 0; transform: translateY(-9px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes adminSyncCheck {
  from { opacity: 0; transform: scale(.55) rotate(-18deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes adminSyncGlow {
  0% { box-shadow: 0 14px 30px rgba(27,157,119,.12), inset 0 1px rgba(255,255,255,.9); }
  45% { box-shadow: 0 16px 38px rgba(27,157,119,.22), inset 0 1px rgba(255,255,255,.9); }
  100% { box-shadow: 0 14px 30px rgba(27,157,119,.12), inset 0 1px rgba(255,255,255,.9); }
}
@media (max-width: 560px) {
  .admin-toast.save-success { align-items: flex-start; flex-wrap: wrap; }
  .admin-toast.save-success::after { margin-left: 35px; margin-top: -4px; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-toast.save-success, .admin-toast.save-success::before, .admin-toast.form-error { animation: none !important; }
}
