/* =============================================
   Fast Link Premium - Lock Styles v2.0
   5 Theme Templates + Animations + Confetti
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- Base Lock Container --- */
.fl-lock-container {
  margin: 24px 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* =============================================
   THEME 1: Default (Purple Gradient)
   ============================================= */
.fl-lock-container .fl-show-shore {
  padding: 36px 30px;
  border: none;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
  color: #fff;
  overflow: hidden;
}

/* =============================================
   THEME 2: Dark Mode
   ============================================= */
.fl-theme-dark .fl-show-shore {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.fl-theme-dark .fl-show-shore::before {
  background: radial-gradient(circle, rgba(79,172,254,0.08) 0%, transparent 60%);
}
.fl-theme-dark .load-i input {
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid #334155;
}
.fl-theme-dark .load-i button.fl-submit {
  background: #3b82f6;
  color: #fff;
}
.fl-theme-dark .load-i button.fl-submit:hover {
  background: #2563eb;
}

/* =============================================
   THEME 3: Glassmorphism
   ============================================= */
.fl-theme-glass .fl-show-shore {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  color: #1a1a2e;
}
.fl-theme-glass .fl-show-shore::before { display: none; }
.fl-theme-glass .fl-note a { color: #667eea; }
.fl-theme-glass .load-i {
  border: 1px solid rgba(255,255,255,0.3);
}
.fl-theme-glass .load-i button.fl-submit {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

/* =============================================
   THEME 4: Neon Glow
   ============================================= */
.fl-theme-neon .fl-show-shore {
  background: #0a0a0a;
  border: 1px solid #39ff14;
  box-shadow: 0 0 30px rgba(57,255,20,0.15), inset 0 0 30px rgba(57,255,20,0.03);
}
.fl-theme-neon .fl-show-shore::before { display: none; }
.fl-theme-neon .fl-lock-icon {
  filter: drop-shadow(0 0 12px rgba(57,255,20,0.6));
}
.fl-theme-neon .fl-title {
  text-shadow: 0 0 20px rgba(57,255,20,0.3);
}
.fl-theme-neon .load-i {
  border: 1px solid #39ff14;
  box-shadow: 0 0 15px rgba(57,255,20,0.2);
}
.fl-theme-neon .load-i input {
  background: #111;
  color: #39ff14;
}
.fl-theme-neon .load-i input::placeholder { color: rgba(57,255,20,0.4); }
.fl-theme-neon .load-i button.fl-submit {
  background: #39ff14;
  color: #0a0a0a;
  font-weight: 700;
}
.fl-theme-neon .load-i button.fl-submit:hover {
  background: #50ff30;
  box-shadow: 0 0 20px rgba(57,255,20,0.5);
}

/* =============================================
   THEME 5: Minimal Clean
   ============================================= */
.fl-theme-minimal .fl-show-shore {
  background: #fff;
  color: #1a1a2e;
  border: 2px solid #e5e7eb;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
.fl-theme-minimal .fl-show-shore::before { display: none; }
.fl-theme-minimal .fl-lock-icon { animation: none; }
.fl-theme-minimal .fl-note { opacity: 0.6; }
.fl-theme-minimal .fl-note a { color: #667eea; }
.fl-theme-minimal .load-i {
  box-shadow: none;
  border: 2px solid #e5e7eb;
}
.fl-theme-minimal .load-i button.fl-submit {
  background: #667eea;
  color: #fff;
}
.fl-theme-minimal .load-i button.fl-submit:hover {
  background: #5a67d8;
}

/* =============================================
   SHARED LOCK STYLES
   ============================================= */

/* Shimmer Animation */
.fl-lock-container .fl-show-shore::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: fl-shimmer 6s ease-in-out infinite;
}

@keyframes fl-shimmer {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 20px); }
}

/* Lock Icon */
.fl-lock-icon {
  font-size: 52px;
  margin-bottom: 14px;
  animation: fl-bounce 2s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes fl-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Title */
.fl-lock-container .fl-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.3px;
}

/* --- Code Lock Input --- */
.fl-lock-container .load-i {
  margin: 20px auto 0;
  max-width: 420px;
  position: relative;
  display: flex;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 1;
}

.fl-lock-container .load-i input {
  flex: 1;
  height: 50px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  padding: 0 18px;
  box-sizing: border-box;
  outline: none;
  color: #333;
  font-family: inherit;
  transition: box-shadow 0.3s;
}

.fl-lock-container .load-i input:focus {
  box-shadow: inset 0 0 0 2px #667eea;
}

.fl-lock-container .load-i button.fl-submit {
  height: 50px;
  border: none;
  padding: 0 28px;
  cursor: pointer;
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.fl-lock-container .load-i button.fl-submit:hover {
  background: rgba(255,255,255,0.4);
  transform: scale(1.02);
}

.fl-lock-container .fl-note {
  margin-top: 18px;
  font-size: 13px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.fl-lock-container .fl-note a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
  text-underline-offset: 2px;
}

/* --- Social Lock --- */
.fl-social-shore {
  background: linear-gradient(135deg, #1877F2 0%, #0d47a1 100%) !important;
}

.fl-social-description {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.fl-social-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.fl-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
  font-family: inherit;
}

.fl-social-btn:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.fl-social-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.fl-social-icon { font-size: 20px; }
.fl-social-facebook { border-color: rgba(255,255,255,0.4); }
.fl-social-twitter { border-color: rgba(29,161,242,0.5); }
.fl-social-telegram { border-color: rgba(0,136,204,0.5); }
.fl-social-zalo { border-color: rgba(0,132,255,0.5); }

.fl-social-status {
  margin-top: 16px;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

/* --- Email Lock --- */
.fl-email-shore {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

.fl-email-description {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.fl-email-input-wrap {
  display: flex;
  max-width: 450px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}

.fl-email-input {
  flex: 1;
  height: 52px;
  border: none;
  font-size: 15px;
  padding: 0 18px;
  outline: none;
  color: #333;
  font-family: inherit;
}

.fl-email-submit {
  height: 52px;
  border: none;
  padding: 0 26px;
  background: rgba(0,0,0,0.2);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  font-family: inherit;
}

.fl-email-submit:hover {
  background: rgba(0,0,0,0.35);
}

.fl-email-privacy {
  margin-top: 12px;
  font-size: 12px;
  opacity: 0.7;
  position: relative;
  z-index: 1;
}

/* --- Countdown Lock --- */
.fl-ad-shore {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

.fl-countdown-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  position: relative;
  z-index: 1;
}

.fl-countdown-circle {
  position: relative;
  width: 110px;
  height: 110px;
}

.fl-countdown-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.fl-countdown-bg {
  fill: none;
  stroke: rgba(255,255,255,0.2);
  stroke-width: 5;
}

.fl-countdown-progress {
  fill: none;
  stroke: #fff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.fl-countdown-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 34px;
  font-weight: 800;
}

.fl-countdown-text {
  font-size: 14px;
  opacity: 0.85;
}

.fl-ad-container {
  margin: 16px auto;
  max-width: 468px;
  position: relative;
  z-index: 1;
}

.fl-ad-unlock-btn {
  padding: 15px 40px;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: not-allowed;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
  font-family: inherit;
}

.fl-ad-unlock-btn:not([disabled]) {
  cursor: pointer;
  background: #fff;
  color: #f5576c;
  border-color: #fff;
  animation: fl-pulse 1.5s ease-in-out infinite;
}

.fl-ad-unlock-btn:not([disabled]):hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

@keyframes fl-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
  50% { box-shadow: 0 0 0 15px rgba(255,255,255,0); }
}

/* --- Blocked Source --- */
.fl-blocked-source {
  margin: 24px 0;
  padding: 24px;
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  border-radius: 16px;
  text-align: center;
  color: #7c4a1c;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

/* --- Help Popup --- */
.fl-lock-container .fl-content-show {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
}

.fl-lock-container .fl-show-data {
  max-width: 700px;
  width: 90%;
  background: #fff;
  margin: 40px auto 0;
  overflow-y: auto;
  max-height: calc(100vh - 80px);
  padding: 28px;
  box-sizing: border-box;
  border-radius: 20px;
  position: relative;
  text-align: left;
  color: #333;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  animation: fl-popup-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fl-popup-in {
  0% { opacity: 0; transform: scale(0.9) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.fl-lock-container .fl-show-data span.close-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s;
  z-index: 1;
}

.fl-lock-container .fl-show-data span.close-x:hover {
  transform: scale(1.1) rotate(90deg);
  background: #dc2626;
}

.fl-lock-container .fl_input-keyword {
  position: relative;
  margin-bottom: 24px;
  background: #f1f5f9;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}

.fl-lock-container .fl_input-keyword input.fl_copy_key {
  width: 100%;
  height: 46px;
  border: 2px solid #e2e8f0;
  font-size: 16px;
  font-weight: 600;
  padding: 0 120px 0 14px;
  box-sizing: border-box;
  border-radius: 10px;
  font-family: 'Inter', monospace;
  background: #fff;
}

.fl-lock-container .fl_input-keyword button.fl_bt_copy_key {
  height: 46px;
  position: absolute;
  right: 18px;
  bottom: 18px;
  border: none;
  padding: 0 18px;
  background: #667eea;
  color: #fff;
  cursor: pointer;
  border-radius: 0 10px 10px 0;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s;
  font-family: inherit;
}

.fl-lock-container .fl_input-keyword button.fl_bt_copy_key:hover {
  background: #5a67d8;
}

/* --- Loading --- */
.fl-lock-container .img-load {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.85);
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  z-index: 10;
  backdrop-filter: blur(3px);
}

/* =============================================
   UNLOCK SUCCESS — Premium Animation + Confetti
   ============================================= */
.fl-unlock-success {
  animation: fl-reveal 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

@keyframes fl-reveal {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Shake animation for wrong code */
@keyframes fl-shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
  20%, 40%, 60%, 80% { transform: translateX(6px); }
}

.fl-shake {
  animation: fl-shake 0.5s ease-in-out;
}

/* Confetti Canvas */
.fl-confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99998;
}

/* Error message style */
.fl-error-msg {
  margin-top: 14px;
  font-size: 13px;
  position: relative;
  z-index: 1;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .fl-lock-container .fl-show-shore {
    padding: 28px 18px;
    border-radius: 16px;
  }

  .fl-lock-container .fl-title {
    font-size: 18px;
  }

  .fl-lock-icon {
    font-size: 44px;
  }

  .fl-social-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .fl-social-btn {
    justify-content: center;
  }

  .fl-email-input-wrap {
    flex-direction: column;
    border-radius: 14px;
  }

  .fl-email-submit {
    border-radius: 0 0 14px 14px;
  }

  .fl-lock-container .load-i {
    flex-direction: column;
    border-radius: 14px;
  }

  .fl-lock-container .load-i button.fl-submit {
    border-radius: 0 0 14px 14px;
    height: 48px;
  }

  .fl-lock-container .fl-show-data {
    padding: 20px;
    border-radius: 16px;
    margin: 20px auto;
  }
}
