
/* GLOBAL_SUCCESS_ANIMATION_V1 */
#rekap-global-success {
  --gs-green: #38e889;
  --gs-green-soft: rgba(56, 232, 137, .18);
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at center, rgba(61, 255, 154, .10), transparent 34%),
    rgba(5, 3, 10, .62);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .20s ease, visibility .20s ease;
}

#rekap-global-success.gs-show {
  opacity: 1;
  visibility: visible;
}

#rekap-global-success .gs-card {
  width: min(360px, calc(100vw - 34px));
  min-height: 278px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 13px;
  padding: 30px 26px 27px;
  border: 1px solid rgba(255,255,255,.095);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(30, 18, 42, .985), rgba(13, 8, 20, .985));
  box-shadow:
    0 35px 110px rgba(0,0,0,.52),
    0 0 55px rgba(56,232,137,.08),
    inset 0 1px 0 rgba(255,255,255,.045);
  transform: translateY(10px) scale(.92);
  opacity: 0;
}

#rekap-global-success.gs-show .gs-card {
  animation: gs-card-in .44s cubic-bezier(.18,.89,.32,1.28) forwards;
}

#rekap-global-success .gs-check-shell {
  position: relative;
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.19), transparent 26%),
    linear-gradient(145deg, rgba(56,232,137,.23), rgba(56,232,137,.07));
  box-shadow:
    0 0 0 1px rgba(56,232,137,.19),
    0 17px 45px rgba(56,232,137,.18);
}

#rekap-global-success .gs-check-shell::before,
#rekap-global-success .gs-check-shell::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(56,232,137,.28);
  border-radius: 50%;
  opacity: 0;
}

#rekap-global-success.gs-show .gs-check-shell::before {
  animation: gs-ring 1.08s .18s ease-out forwards;
}

#rekap-global-success.gs-show .gs-check-shell::after {
  animation: gs-ring 1.08s .40s ease-out forwards;
}

#rekap-global-success svg {
  width: 98px;
  height: 98px;
  overflow: visible;
}

#rekap-global-success .gs-circle {
  fill: rgba(56,232,137,.10);
  stroke: var(--gs-green);
  stroke-width: 4.5;
  stroke-dasharray: 290;
  stroke-dashoffset: 290;
  transform-origin: center;
}

#rekap-global-success.gs-show .gs-circle {
  animation: gs-circle .52s .05s ease-out forwards;
}

#rekap-global-success .gs-tick {
  fill: none;
  stroke: #eafff2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 7;
  stroke-dasharray: 82;
  stroke-dashoffset: 82;
  filter: drop-shadow(0 3px 9px rgba(255,255,255,.18));
}

#rekap-global-success.gs-show .gs-tick {
  animation: gs-tick .34s .42s cubic-bezier(.2,.85,.32,1) forwards;
}

#rekap-global-success .gs-title {
  margin-top: 2px;
  color: #fff;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 1000;
  letter-spacing: .055em;
  line-height: 1;
  text-shadow: 0 8px 24px rgba(0,0,0,.33);
  opacity: 0;
  transform: translateY(7px);
}

#rekap-global-success.gs-show .gs-title {
  animation: gs-copy-in .30s .48s ease-out forwards;
}

#rekap-global-success .gs-subtitle {
  color: #a9f4c6;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .01em;
  opacity: 0;
  transform: translateY(6px);
}

#rekap-global-success.gs-show .gs-subtitle {
  animation: gs-copy-in .30s .58s ease-out forwards;
}

#rekap-global-success .gs-spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gs-green);
  box-shadow: 0 0 13px rgba(56,232,137,.8);
  opacity: 0;
}

#rekap-global-success .gs-spark.s1 { top: 15%; left: 17%; }
#rekap-global-success .gs-spark.s2 { top: 22%; right: 15%; width: 5px; height: 5px; }
#rekap-global-success .gs-spark.s3 { bottom: 30%; left: 11%; width: 4px; height: 4px; }
#rekap-global-success .gs-spark.s4 { bottom: 25%; right: 12%; }

#rekap-global-success.gs-show .gs-spark.s1 { animation: gs-spark .75s .18s ease-out forwards; }
#rekap-global-success.gs-show .gs-spark.s2 { animation: gs-spark .72s .28s ease-out forwards; }
#rekap-global-success.gs-show .gs-spark.s3 { animation: gs-spark .70s .38s ease-out forwards; }
#rekap-global-success.gs-show .gs-spark.s4 { animation: gs-spark .76s .48s ease-out forwards; }

@keyframes gs-card-in {
  0% { transform: translateY(13px) scale(.89); opacity: 0; }
  70% { transform: translateY(-2px) scale(1.025); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes gs-circle {
  0% { stroke-dashoffset: 290; transform: rotate(-90deg) scale(.82); }
  100% { stroke-dashoffset: 0; transform: rotate(-90deg) scale(1); }
}

@keyframes gs-tick {
  from { stroke-dashoffset: 82; }
  to { stroke-dashoffset: 0; }
}

@keyframes gs-ring {
  0% { transform: scale(.78); opacity: .72; }
  100% { transform: scale(1.48); opacity: 0; }
}

@keyframes gs-copy-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gs-spark {
  0% { transform: scale(.3); opacity: 0; }
  45% { opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}

@media (max-width: 600px) {
  #rekap-global-success .gs-card {
    min-height: 250px;
    border-radius: 24px;
  }

  #rekap-global-success .gs-check-shell {
    width: 112px;
    height: 112px;
  }

  #rekap-global-success svg {
    width: 88px;
    height: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #rekap-global-success,
  #rekap-global-success *,
  #rekap-global-success *::before,
  #rekap-global-success *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }
}
