/**
 * Vanta Turnstile - Ultra-Clean Cloudflare-style Anti-Bot Box
 * Minimal, zero extra text or badges.
 */

.vanta-turnstile-wrap {
  margin: 12px 0;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
}

.vanta-turnstile-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 8px 16px;
  background: #110e1b;
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
  direction: rtl;
  box-sizing: border-box;
}

.vanta-turnstile-box:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.18);
}

.vanta-turnstile-action {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  width: 100%;
}

.vanta-turnstile-box.state-verified .vanta-turnstile-action {
  cursor: default;
}

/* Checkbox */
.vanta-turnstile-check {
  position: relative;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 2px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.vanta-turnstile-action:hover .vanta-turnstile-check {
  border-color: #a855f7;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.35);
}

/* Spinner */
.vanta-turnstile-spinner {
  display: none;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(168, 85, 247, 0.2);
  border-top-color: #ec4899;
  border-right-color: #8b5cf6;
  border-radius: 50%;
  animation: vanta-turnstile-spin 0.75s linear infinite;
}

.vanta-turnstile-box.state-verifying .vanta-turnstile-check {
  border-color: transparent;
  background: transparent;
}
.vanta-turnstile-box.state-verifying .vanta-turnstile-spinner {
  display: block;
}

/* State: Verified */
.vanta-turnstile-box.state-verified {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, #110e1b 100%);
}
.vanta-turnstile-box.state-verified .vanta-turnstile-check {
  border-color: #10b981;
  background: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}
.vanta-turnstile-icon-check {
  display: none;
  width: 15px;
  height: 15px;
  stroke: #ffffff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: vanta-turnstile-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.vanta-turnstile-box.state-verified .vanta-turnstile-icon-check {
  display: block;
}

/* State: Expired */
.vanta-turnstile-box.state-expired {
  border-color: rgba(245, 158, 11, 0.4);
}
.vanta-turnstile-box.state-expired .vanta-turnstile-check {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
}
.vanta-turnstile-icon-expired {
  display: none;
  width: 15px;
  height: 15px;
  stroke: #f59e0b;
  stroke-width: 2.5;
}
.vanta-turnstile-box.state-expired .vanta-turnstile-icon-expired {
  display: block;
}

/* State: Error */
.vanta-turnstile-box.state-error,
.vanta-turnstile-box.vanta-turnstile-shake {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
  animation: vanta-turnstile-shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
.vanta-turnstile-box.state-error .vanta-turnstile-check {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}
.vanta-turnstile-icon-error {
  display: none;
  width: 15px;
  height: 15px;
  stroke: #ef4444;
  stroke-width: 2.5;
}
.vanta-turnstile-box.state-error .vanta-turnstile-icon-error {
  display: block;
}

/* Clean label */
.vanta-turnstile-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #e2e8f0;
  transition: color 0.2s ease;
}
.vanta-turnstile-box.state-verified .vanta-turnstile-text {
  color: #34d399;
}
.vanta-turnstile-box.state-expired .vanta-turnstile-text {
  color: #fbbf24;
}
.vanta-turnstile-box.state-error .vanta-turnstile-text {
  color: #f87171;
}

/* Expiration timer bar */
.vanta-turnstile-timer-wrap {
  display: none;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}
.vanta-turnstile-box.state-verified .vanta-turnstile-timer-wrap {
  display: block;
}
.vanta-turnstile-timer-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  transform-origin: right center;
  transition: width 1s linear;
}

@keyframes vanta-turnstile-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes vanta-turnstile-pop {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes vanta-turnstile-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}
