/* From Uiverse.io by AlimurtuzaCodes */
body.ak-verification .anti-verify-btn {
  border: none;
  width: 15em;
  height: 5em;
  border-radius: 3em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #304B79 0%, #4B3B70 100%);
  cursor: pointer;
  transition: background 450ms ease-in-out, box-shadow 450ms ease-in-out, transform 450ms ease-in-out;
  box-sizing: border-box;
  padding: 0;
  font-family: inherit;
  line-height: normal;
  box-shadow: none;
  transform: none;
}

body.ak-verification .anti-verify-btn .anti-verify-sparkle {
  fill: #DDE4F4;
  transition: fill 800ms ease, transform 800ms ease;
  flex-shrink: 0;
  pointer-events: none;
}

body.ak-verification .anti-verify-btn .anti-verify-text {
  font-weight: 600;
  color: #DDE4F4;
  font-size: medium;
  white-space: nowrap;
}

body.ak-verification .anti-verify-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

body.ak-verification .anti-verify-icon > svg {
  grid-area: 1 / 1;
  display: block;
}

/* Reuse AntiKidnap's original unfilled SVG ring, without timed success or scaling. */
body.ak-verification .anti-verify-icon > .anti-verify-loader {
  display: none;
  fill: none;
  stroke: #DDE4F4;
  /* About 2 screen pixels when the original ring is rendered in the 24px slot. */
  stroke-width: 6px;
  stroke-linecap: round;
  stroke-dasharray: 183 183;
  stroke-dashoffset: 120;
  transform: rotate(-90deg);
}

body.ak-verification .anti-verify-btn[data-ak-state="verifying"] .anti-verify-sparkle {
  display: none;
}

body.ak-verification .anti-verify-btn[data-ak-state="verifying"] .anti-verify-loader {
  display: block;
  animation: anti-verify-loading 2s ease-in-out infinite;
}

@keyframes anti-verify-loading {
  0% { stroke-dashoffset: 120; transform: rotate(-90deg); }
  50% { stroke-dashoffset: 30; }
  100% { stroke-dashoffset: 120; transform: rotate(270deg); }
}

@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
  body.ak-verification .anti-verify-btn:not(:disabled):hover {
    background: linear-gradient(0deg, #A47CF3, #683FEA);
    box-shadow:
      inset 0px 1px 0px 0px rgba(255, 255, 255, 0.4),
      inset 0px -4px 0px 0px rgba(0, 0, 0, 0.2),
      0px 0px 0px 4px rgba(255, 255, 255, 0.2),
      0px 0px 180px 0px #9917FF;
    transform: translateY(-2px);
  }

  body.ak-verification .anti-verify-btn:not(:disabled):hover .anti-verify-text {
    color: white;
  }

  body.ak-verification .anti-verify-btn:not(:disabled):hover .anti-verify-sparkle {
    fill: white;
    transform: scale(1.2);
  }
}

body.ak-verification .anti-verify-btn:focus-visible {
  outline: 2px solid #A47CF3;
  outline-offset: 4px;
}

body.ak-verification .anti-verify-btn:disabled {
  cursor: wait;
  transition: none;
}

body.ak-verification .anti-verify-btn:disabled .anti-verify-sparkle {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  body.ak-verification .anti-verify-btn,
  body.ak-verification .anti-verify-btn .anti-verify-sparkle,
  body.ak-verification .anti-verify-btn:not(:disabled):hover,
  body.ak-verification .anti-verify-btn:not(:disabled):hover .anti-verify-sparkle {
    transition: none;
    transform: none;
  }

  body.ak-verification .anti-verify-btn[data-ak-state="verifying"] .anti-verify-loader {
    animation: none;
    stroke-dashoffset: 45;
  }
}

