/* =========================================================
   Pixel Jujutsu — Kaydırmalı Yapboz & Hayvan Eşleştirme CAPTCHA
   ========================================================= */

/* --- 1. "Ben Robot Değilim" Widget (Google reCAPTCHA Stili) --- */
.jjk-captcha-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d121f;
  border: 1.5px solid #1e293b;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 14px 0;
  max-width: 320px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
  user-select: none;
}

.jjk-captcha-widget:hover {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.12);
}

.jjk-captcha-widget.verified {
  border-color: rgba(16, 185, 129, 0.5);
  background: #091717;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.jjk-captcha-widget.exhausted {
  border-color: rgba(244, 63, 94, 0.4);
  background: #190b10;
  opacity: 0.85;
  cursor: not-allowed;
}

.jjk-captcha-widget.exhausted .jjk-captcha-label {
  color: #f43f5e;
}

.jjk-captcha-left {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

/* Checkbox Kutusu */
.jjk-captcha-checkbox {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  border: 2px solid #475569;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  flex-shrink: 0;
}

.jjk-captcha-widget:hover .jjk-captcha-checkbox {
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.08);
}

/* Dönen Yükleme Spinner - Asla takılı kalmasın */
.jjk-captcha-checkbox.loading {
  border-color: #00f0ff !important;
  background: rgba(0, 240, 255, 0.12) !important;
}

.jjk-captcha-checkbox.loading::after {
  display: none !important;
}

@keyframes jjkCaptchaSpin {
  to { transform: rotate(360deg); }
}

/* Yeşil Onay Tik */
.jjk-captcha-checkbox.checked {
  background: #10b981 !important;
  border-color: #10b981 !important;
  animation: jjkCheckPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.jjk-captcha-checkbox.checked svg {
  display: block !important;
}

.jjk-captcha-checkbox svg {
  display: none;
  width: 17px;
  height: 17px;
  stroke: #ffffff;
  stroke-width: 3.2;
}

@keyframes jjkCheckPop {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Yazı */
.jjk-captcha-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.2px;
}

.jjk-captcha-widget.verified .jjk-captcha-label {
  color: #10b981;
}

/* Sağ Rozet (Logo & Telif) */
.jjk-captcha-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: 0.85;
}

.jjk-captcha-logo {
  width: 26px;
  height: 26px;
}

.jjk-captcha-text {
  font-size: 8px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  text-align: center;
}

.jjk-captcha-text span {
  color: #00f0ff;
  font-weight: 700;
}

/* --- 2. Kaydırmalı Yapboz & Hayvan Eşleştirme Modal (Popup) --- */
.jjk-captcha-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 14, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  animation: jjkFadeIn 0.2s ease-out;
}

.jjk-captcha-modal.active {
  display: flex;
}

@keyframes jjkFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.jjk-captcha-card {
  background: linear-gradient(180deg, #101626 0%, #0a0d18 100%);
  border: 1.5px solid #00f0ff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 240, 255, 0.2), 0 0 0 1px rgba(0, 240, 255, 0.1);
  width: 100%;
  max-width: 400px;
  padding: 20px 22px;
  position: relative;
  box-sizing: border-box;
  user-select: none;
}

.jjk-captcha-card.shake {
  animation: jjkShake 0.4s ease-in-out;
}

@keyframes jjkShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* Header */
.jjk-captcha-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.jjk-captcha-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.jjk-captcha-icon {
  font-size: 18px;
}

.jjk-captcha-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Kalan Hak Rozeti */
.jjk-captcha-attempts-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #10b981;
  letter-spacing: 0.3px;
  transition: all 0.2s;
}

.jjk-captcha-attempts-badge.warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #f59e0b;
}

.jjk-captcha-attempts-badge.danger {
  background: rgba(244, 63, 94, 0.18);
  border-color: #f43f5e;
  color: #f43f5e;
  animation: jjkBadgePulse 1.2s infinite;
}

@keyframes jjkBadgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.85; }
}

.jjk-captcha-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s, transform 0.15s;
}

.jjk-captcha-close-btn:hover {
  color: #f43f5e;
  transform: scale(1.15);
}

/* Yönerge */
.jjk-captcha-instruction {
  font-size: 12.5px;
  color: #cbd5e1;
  margin-bottom: 12px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.jjk-puzzle-animal-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid #00f0ff;
  border-radius: 6px;
  padding: 2px 8px;
  font-weight: 700;
  color: #00f0ff;
}

.jjk-puzzle-instruction-text strong {
  color: #fbbf24;
}

/* Canvas Sarmalayıcı */
.jjk-puzzle-canvas-wrap {
  position: relative;
  width: 100%;
  background: #040812;
  border: 1.5px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.7);
  margin-bottom: 12px;
}

.jjk-puzzle-canvas {
  width: 100%;
  height: 150px;
  display: block;
  touch-action: none;
}

/* Başarı Animasyon Katmanı */
.jjk-puzzle-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: rgba(9, 23, 23, 0.88);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 10;
  animation: jjkSuccessPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes jjkSuccessPop {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

.jjk-puzzle-success-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px #10b981;
}

.jjk-puzzle-success-text {
  font-size: 15px;
  font-weight: 800;
  color: #10b981;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* --- Kaydırma Çubuğu (Slider Track & Thumb) --- */
.jjk-slider-wrap {
  margin: 12px 0 8px 0;
  position: relative;
}

.jjk-slider-track {
  width: 100%;
  height: 46px;
  background: #090e1a;
  border: 1.5px solid #1e293b;
  border-radius: 23px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
  user-select: none;
  touch-action: none;
}

.jjk-slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.15) 0%, rgba(0, 240, 255, 0.45) 100%);
  border-radius: 23px;
  pointer-events: none;
  transition: width 0.04s ease-out;
}

.jjk-slider-hint {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: opacity 0.15s;
}

/* Draggable Slider Thumb */
.jjk-slider-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f0ff 0%, #0088ff 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  touch-action: none;
  z-index: 5;
  transition: transform 0.04s ease-out, background 0.2s, box-shadow 0.2s;
}

.jjk-slider-thumb:active,
.jjk-slider-thumb.dragging {
  cursor: grabbing;
  transform: scale(1.08);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.9);
}

.jjk-slider-thumb.near-target {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.9) !important;
  animation: jjkThumbGlow 0.6s infinite alternate;
}

@keyframes jjkThumbGlow {
  from { transform: scale(1.05); }
  to { transform: scale(1.15); }
}

.jjk-slider-thumb-icon {
  font-size: 19px;
  line-height: 1;
  pointer-events: none;
}

/* Durum / Hata Mesajı */
.jjk-captcha-feedback {
  min-height: 20px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  margin: 4px 0 10px 0;
  color: #94a3b8;
  transition: all 0.2s;
}

.jjk-captcha-feedback.error {
  color: #f43f5e;
  animation: jjkShake 0.3s;
}

.jjk-captcha-feedback.success {
  color: #10b981;
}

/* Footer: Yenile Butonu & Kapatma Uyarısı */
.jjk-captcha-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 8px;
}

.jjk-captcha-refresh-btn {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 7px;
  color: #00f0ff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.jjk-captcha-refresh-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: #00f0ff;
}

.jjk-captcha-penalty-warning {
  font-size: 11px;
  color: #f43f5e;
  font-weight: 600;
  text-align: right;
  line-height: 1.3;
}

.jjk-captcha-penalty-warning strong {
  color: #ff0055;
  text-decoration: underline;
}

/* --- 3. Güvenlik & Hak Bildirim Toast'u --- */
.jjk-captcha-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: linear-gradient(135deg, #161b2e 0%, #0d1222 100%);
  border: 1.5px solid #00f0ff;
  border-radius: 12px;
  padding: 12px 20px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.3);
  z-index: 10000000;
  pointer-events: none;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: 90vw;
  text-align: center;
}

.jjk-captcha-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.jjk-captcha-toast.warning {
  border-color: #f59e0b;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.35);
  color: #fef08a;
}

.jjk-captcha-toast.error {
  border-color: #f43f5e;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(244, 63, 94, 0.45);
  color: #fecdd3;
}

.jjk-captcha-toast.success {
  border-color: #10b981;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
}

/* --- 4. 6 Haneli SMS Kodu Açılış Animasyonu (SMS Gönderildikten Sonra) --- */
.sms-code-revealed {
  display: flex !important;
  animation: jjkSmsReveal 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes jjkSmsReveal {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --- 5. Resmi Google reCAPTCHA v2 Konteynır Stilleri --- */
.g-recaptcha-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px 0;
  min-height: 78px;
  overflow: hidden;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.g-recaptcha-wrap iframe {
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.g-recaptcha-wrap.active {
  display: flex !important;
}

/* --- 6. CAPTCHA Geçiş (Switcher) & Yerel Mod Stilleri --- */
.captcha-fallback-switch {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -4px 0 12px 0;
  width: 100%;
}

.btn-captcha-switch {
  background: rgba(15, 23, 42, 0.75);
  border: 1px dashed rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  line-height: 1.3;
}

.btn-captcha-switch:hover {
  background: rgba(56, 189, 248, 0.14);
  border-color: #00f0ff;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
  transform: translateY(-1px);
}

.btn-captcha-switch:active {
  transform: translateY(0);
}

/* --- 7. 👑 KURUCU / GELİŞTİRİCİ ÖZEL VIP PROTOKOLÜ (GEMINI 4 ULTRA-FAST) --- */
.jjk-captcha-vip-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(217, 119, 6, 0.28));
  border: 1.5px solid #f59e0b;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 12px;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
  animation: jjkVipGlow 2.5s infinite alternate;
}

@keyframes jjkVipGlow {
  0% { box-shadow: 0 0 10px rgba(245, 158, 11, 0.2); }
  100% { box-shadow: 0 0 24px rgba(245, 158, 11, 0.45); }
}

.jjk-vip-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jjk-vip-crown {
  font-size: 22px;
  filter: drop-shadow(0 0 6px #f59e0b);
  animation: jjkCrownBounce 1.8s infinite ease-in-out;
}

@keyframes jjkCrownBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(6deg); }
}

.jjk-vip-text-wrap {
  display: flex;
  flex-direction: column;
}

.jjk-vip-title {
  font-size: 12px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.jjk-vip-sub {
  font-size: 10.5px;
  color: #fef08a;
  opacity: 0.9;
}

.jjk-captcha-vip-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 1px solid #fde047;
  color: #050811;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.jjk-captcha-vip-btn:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.55);
}

.jjk-captcha-vip-btn:active {
  transform: translateY(1px) scale(0.97);
}

/* Mıknatıs Kilitlenme Durumu */
.jjk-slider-thumb.magnet-locked {
  border-color: #10b981 !important;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.8) !important;
  background: #064e3b !important;
  transform: scale(1.1) !important;
}

/* Klavye İpucu */
.jjk-captcha-keyboard-hint {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 2px 6px;
}



/* (25 Ekim) Google kutusu boşken yer kaplamasın: ad/soyad ile robot kutusu arasındaki büyük boşluk */
.g-recaptcha-wrap:empty { display: none !important; min-height: 0; margin: 0; }
