/* ==============================================
   Validador de Clics — Frontend CSS v1.0.0
   ============================================== */

/* ── OVERLAY DE VERIFICACIÓN ─────────────────── */

#vc-verify-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(5, 7, 15, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.vc-overlay-card {
  background: #0e1120;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 20px;
  padding: 36px 40px 30px;
  text-align: center;
  max-width: 360px;
  width: 90vw;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 24px 60px rgba(0,0,0,.7),
    0 0 60px rgba(59,130,246,.08);
  animation: overlayCardIn .4s cubic-bezier(.16,1,.3,1) both;
}

@keyframes overlayCardIn {
  from { opacity: 0; transform: scale(.92) translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* Shield + ring */
.vc-shield-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
}

.vc-shield-wrap svg.vc-shield-ring {
  width: 96px;
  height: 96px;
  position: absolute;
  inset: 0;
  animation: rotateSpin 2s linear infinite;
}

@keyframes rotateSpin {
  from { transform: rotate(-90deg); }
  to   { transform: rotate(270deg); }
}

/* Override: keep ring at correct orientation while spinning */
.vc-shield-wrap svg.vc-shield-ring circle:nth-child(2) {
  transform-origin: center;
  transform-box: fill-box;
}

.vc-shield-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vc-overlay-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #f1f5f9;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}

.vc-overlay-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 20px;
  line-height: 1.5;
}

/* Progress bar */
.vc-verify-bar-wrap {
  background: rgba(255,255,255,.07);
  border-radius: 99px;
  height: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

#vc-verify-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  border-radius: 99px;
  transition: width .2s linear;
  box-shadow: 0 0 8px rgba(59,130,246,.5);
}

.vc-verify-counter {
  font-size: 12px;
  color: #3b82f6;
  font-weight: 600;
  letter-spacing: .03em;
}

.vc-overlay-watermark {
  margin-top: 20px;
  font-size: 10px;
  color: rgba(255,255,255,.15);
  letter-spacing: .05em;
}

/* ── ADS SECTION ──────────────────────────────── */

.vc-ads-section {
  font-family: 'Inter', system-ui, sans-serif;
  margin: 0 0 32px;
}

/* Instruction banner */
.vc-instruction-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, #7c2d12, #9a3412);
  border: 1px solid rgba(251,146,60,.3);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  color: #fed7aa;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(234,88,12,.15);
}

.vc-banner-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Click counter panel */
.vc-clicks-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 20px;
  text-align: center;
}

.vc-clicks-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Click circles */
.vc-circles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.vc-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1e293b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  border: 2px solid transparent;
  transition: background .3s, border-color .3s, transform .3s;
  position: relative;
}

.vc-circle.vc-circle-done {
  background: #22c55e;
  border-color: #16a34a;
  transform: scale(1.08);
}

.vc-circle.vc-circle-done::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}

.vc-circle.vc-circle-done { color: transparent; }

.vc-circle.vc-circle-active {
  background: #3b82f6;
  border-color: #2563eb;
  animation: circlePulse 1.5s ease-in-out infinite;
}

@keyframes circlePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,.4); }
  50%       { box-shadow: 0 0 0 8px rgba(59,130,246,0); }
}

/* Status box */
.vc-status-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
}

.vc-status-box p {
  margin: 0;
  font-size: 13.5px;
  color: #475569;
  font-weight: 500;
}

.vc-click-counter-text {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

/* ── SLOT WRAPPER ─────────────────────────────── */

.vc-slot-wrapper {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
}

.vc-slot-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  color: #475569;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
}

/* Clickable overlay button above the ad */
.vc-slot-overlay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #1d4ed8, #0e7490);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 12px;
  transition: transform .15s, opacity .15s;
  letter-spacing: .02em;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(59,130,246,.3);
}

.vc-slot-overlay-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(59,130,246,.4);
}

.vc-slot-overlay-btn:active:not(:disabled) {
  transform: translateY(0);
}

.vc-slot-overlay-btn:disabled {
  cursor: default;
  opacity: .5;
}

.vc-slot-overlay-btn.vc-slot-btn-done {
  background: linear-gradient(135deg, #15803d, #166534);
  box-shadow: 0 4px 14px rgba(34,197,94,.2);
}

/* Slot ad content area */
.vc-slot-content {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: center;
  min-height: 60px;
}

/* Slot timer */
.vc-slot-timer {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: 8px;
  font-size: 13px;
  color: #3b82f6;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .6; }
}

/* ── SUCCESS MESSAGE ──────────────────────────── */

.vc-success-msg {
  background: linear-gradient(135deg, #14532d, #166534);
  border: 1px solid rgba(34,197,94,.3);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  color: #bbf7d0;
  font-size: 14px;
  font-weight: 600;
  align-items: center;
  gap: 12px;
  transition: opacity .6s;
  box-shadow: 0 4px 20px rgba(34,197,94,.15);
}

.vc-success-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vc-success-icon {
  width: 32px;
  height: 32px;
  background: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(34,197,94,.4);
}

/* ── LOCKED / UNLOCKED CONTENT ────────────────── */

.vc-locked-content {
  opacity: 0;
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
  transition: opacity .6s, filter .6s;
  min-height: 40px;
}

.vc-unlocked-content {
  opacity: 1 !important;
  filter: none !important;
  pointer-events: auto !important;
  user-select: auto !important;
  animation: unlockReveal .6s cubic-bezier(.16,1,.3,1) both;
}

@keyframes unlockReveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ── RESPONSIVE ───────────────────────────────── */

@media (max-width: 600px) {
  .vc-overlay-card {
    padding: 28px 20px 22px;
  }
  .vc-clicks-panel {
    padding: 16px 14px;
  }
  .vc-slot-wrapper {
    padding: 12px;
  }
  .vc-instruction-banner {
    font-size: 12.5px;
    padding: 12px 14px;
  }
  .vc-slot-content {
    justify-content: center;
  }
  .vc-slot-content > div,
  .vc-slot-content > * {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vc-shield-wrap svg.vc-shield-ring,
  .vc-circle.vc-circle-active,
  .vc-slot-timer,
  .vc-overlay-card,
  .vc-unlocked-content {
    animation: none !important;
  }
}
