.pp-captcha {
  max-width: 420px;
  margin: 14px 0;
  user-select: none;
}
.pp-captcha-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
  margin-bottom: 8px;
}
.pp-captcha-title i { color: #2563eb; }

.pp-captcha-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg,#eef4ff,#dbe8fb);
  border: 2px solid #7fb3ff;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 4px 10px rgba(37,99,235,.12);
  cursor: pointer;
  outline: none;
  transition: box-shadow .2s ease;
}
.pp-captcha-box:focus { box-shadow: 0 0 0 3px rgba(37,99,235,.35); }

.pp-captcha-icon-left {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4b5b70, #1c2735 70%);
  border: 3px solid #cfe0f7;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
  box-shadow: inset 0 0 6px rgba(0,0,0,.4);
  transition: transform .15s ease;
}
.pp-captcha-box:active .pp-captcha-icon-left { transform: scale(0.92); }

.pp-captcha-icon-right {
  display: none;
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4ade80, #16a34a 75%);
  border: 3px solid #d9f7e3;
  align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
}

.pp-captcha-track {
  position: relative;
  flex: 1 1 auto;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg,#4b5b70,#2a3646);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.4);
}
.pp-captcha-fill {
  position: absolute; inset: 0;
  width: 0%;
  background: linear-gradient(180deg,#5b7fb8,#2f4a76);
  transition: width .05s linear;
}
.pp-captcha-label {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2px;
}

/* verified state */
.pp-captcha-box.is-verified {
  background: linear-gradient(180deg,#eafff1,#d7fbe3);
  border-color: #57cf83;
}
.pp-captcha-box.is-verified .pp-captcha-icon-left { display: none; }
.pp-captcha-box.is-verified .pp-captcha-icon-right { display: flex; }
.pp-captcha-box.is-verified .pp-captcha-fill {
  width: 100% !important;
  background: linear-gradient(180deg,#4fda7d,#22a852);
}
.pp-captcha-box.is-verified .pp-captcha-track { box-shadow: inset 0 2px 4px rgba(0,0,0,.15); }

.pp-captcha-box.is-error { border-color: #ef4444; animation: pp-shake .35s; }
@keyframes pp-shake {
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
