.mfo-send-loading[hidden] {
  display: none !important;
}

.mfo-send-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(19, 32, 25, 0.52);
  backdrop-filter: blur(3px);
}

.mfo-send-loading-card {
  width: min(320px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 28px 24px 24px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #c7d2cb;
  box-shadow: 0 18px 40px rgba(19, 32, 25, 0.22);
  text-align: center;
}

.mfo-send-loading-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
}

.mfo-send-loading-spin {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #d5e0d9;
  border-top-color: #1f6b4a;
  animation: mfo-send-spin 0.85s linear infinite;
}

.mfo-send-loading-text {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #132019;
}

.mfo-send-loading-sub {
  margin: -8px 0 0;
  font-size: 0.88rem;
  color: #5a6a61;
}

@keyframes mfo-send-spin {
  to { transform: rotate(360deg); }
}

/* Success celebration */
.mfo-send-celebrate[hidden] {
  display: none !important;
}

.mfo-send-celebrate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(19, 32, 25, 0.45);
  backdrop-filter: blur(2px);
}

.mfo-send-celebrate-card {
  position: relative;
  z-index: 1;
  width: min(340px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 24px 26px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #c7d2cb;
  box-shadow: 0 20px 48px rgba(19, 32, 25, 0.24);
  text-align: center;
  animation: mfo-celebrate-pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.mfo-send-celebrate-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.mfo-send-check {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #1f6b4a;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(31, 107, 74, 0.35);
  animation: mfo-check-pop 0.5s 0.1s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

.mfo-send-check svg {
  width: 44px;
  height: 44px;
  stroke: #fff;
  stroke-width: 3.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mfo-send-check svg path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: mfo-check-draw 0.55s 0.35s ease forwards;
}

.mfo-send-celebrate-title {
  margin: 4px 0 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #132019;
}

.mfo-send-celebrate-sub {
  margin: 0;
  font-size: 0.95rem;
  color: #5a6a61;
  line-height: 1.35;
}

.mfo-send-celebrate-btn {
  margin-top: 6px;
  border: 0;
  border-radius: 8px;
  padding: 11px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  color: #fff;
  background: #1f6b4a;
}

.mfo-send-celebrate-btn:hover {
  filter: brightness(1.05);
}

.mfo-confetti-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

.mfo-confetti-piece {
  position: absolute;
  top: -12px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  opacity: 0.95;
  animation-name: mfo-confetti-fall;
  animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1);
  animation-fill-mode: forwards;
}

@keyframes mfo-celebrate-pop {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes mfo-check-pop {
  from { transform: scale(0.2); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes mfo-check-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes mfo-confetti-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 1;
  }
  80% { opacity: 1; }
  100% {
    transform: translate3d(var(--drift, 0px), 110vh, 0) rotate(720deg);
    opacity: 0;
  }
}
