:root {
--litecaptcha-bg: #ffffff;
  --litecaptcha-border: #d0d3d9;
  --litecaptcha-text: #1b1f24;
  --litecaptcha-accent: #2ecc71;
  --litecaptcha-pulse: rgba(46, 204, 113, 0.4);
}

.litecaptcha {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--litecaptcha-bg);
  border: 2px solid var(--litecaptcha-border);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.litecaptcha.is-active {
  border-color: var(--litecaptcha-accent);
}

.litecaptcha.is-verified {
  border-color: var(--litecaptcha-accent);
  background: #e8f5e9;
}

.litecaptcha__circle {
  position: relative;
  width: 28px;
  height: 28px;
  border: 2px solid var(--litecaptcha-border);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease;
}

.litecaptcha.is-active .litecaptcha__circle,
.litecaptcha.is-verified .litecaptcha__circle {
  border-color: var(--litecaptcha-accent);
}

/* Пульсация — плавно расходящееся кольцо */
.litecaptcha__pulse {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--litecaptcha-accent);
  opacity: 0;
  transform: scale(1);
  pointer-events: none;
}

.litecaptcha.is-active .litecaptcha__pulse {
  animation: pulse 1.6s ease-out infinite;
}

@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  70%  { transform: scale(2.4); opacity: 0;    }
  100% { transform: scale(2.4); opacity: 0;    }
}

/* Кольцо прогресса — чёткий SVG, без пикселей */
.litecaptcha__ring {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  transform: rotate(-90deg);
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.litecaptcha.is-active .litecaptcha__ring,
.litecaptcha.is-verified .litecaptcha__ring {
  opacity: 1;
}

.litecaptcha__ring-track {
  fill: none;
  stroke: var(--litecaptcha-border);
  stroke-width: 2;
}

.litecaptcha__ring-fill {
  fill: none;
  stroke: var(--litecaptcha-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100.5; /* 2 * pi * r(16) */
  stroke-dashoffset: 100.5;
  transition: stroke-dashoffset 0.1s linear;
}

.litecaptcha__check {
  width: 16px;
  height: 16px;
  color: var(--litecaptcha-accent);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
  position: relative;
  z-index: 1;
}

.litecaptcha.is-verified .litecaptcha__check {
  opacity: 1;
  transform: scale(1);
}

.litecaptcha__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.litecaptcha__label {
  font-size: 15px;
  color: var(--litecaptcha-text);
  line-height: 1;
}

.litecaptcha__description {
  font-size: 12px;
  color: #6b7280;
  line-height: 1;
}
