:root { --ufx-gold: #B88A44; }

#ufx-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.88);
}
html.ufx-loading #ufx-loader { display: flex; }
.ufx-ripple { position: relative; width: 64px; height: 64px; }
.ufx-ripple span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--ufx-gold);
  animation: ufx-ripple 1.4s ease-out infinite;
}
.ufx-ripple span:nth-child(2) { animation-delay: .7s; }
@keyframes ufx-ripple {
  from { transform: scale(0); opacity: 1; }
  to { transform: scale(1); opacity: 0; }
}

#ufx-success-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,0.35);
}
#ufx-success-backdrop[hidden] { display: none; }
.ufx-success-card {
  box-sizing: border-box;
  width: max-content;
  max-width: 90vw;
  padding: 28px 36px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(0,0,0,0.18);
  color: #333;
  font: inherit;
  font-size: 16px;
  text-align: center;
  overflow-wrap: anywhere;
}
.ufx-success-card svg { display: block; width: 72px; height: 72px; margin: 0 auto 12px; color: var(--ufx-gold); }
.ufx-circle { animation: ufx-draw .6s ease-out forwards; }
.ufx-tick { animation: ufx-tickdraw .4s ease-out .5s forwards; }
@keyframes ufx-draw { to { stroke-dashoffset: 0; } }
@keyframes ufx-tickdraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ufx-ripple span { animation: none; }
  .ufx-success-card .ufx-circle, .ufx-success-card .ufx-tick { animation: none; stroke-dashoffset: 0; }
}
@media (max-width: 420px) {
  .ufx-success-card { padding: 24px 20px; }
}
