/* ============================================
   Verification Modal — Chamet-level Glassmorphism
   Deep purple dark theme, gradients, large radii
   ============================================ */

/* --- Modal Overlay --- */
.verify-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 500;
  background: rgba(10, 5, 20, 0.65);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  backdrop-filter: blur(30px) saturate(1.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 20px;
}

.verify-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- Modal Panel --- */
.verify-panel {
  width: 100%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(48px) saturate(1.8);
  backdrop-filter: blur(48px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 32px 24px 24px;
  position: relative;
  transform: scale(0.88) translateY(24px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.verify-overlay.active .verify-panel {
  transform: scale(1) translateY(0);
}

/* drag handle -- hidden in centered mode */
.verify-handle { display: none; }

/* --- Close Button (X) --- */
.verify-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  z-index: 10;
}
.verify-close:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.15);
}
.verify-close svg {
  width: 15px; height: 15px;
  fill: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Step: Age Gate
   ============================================ */

/* Lock icon */
.verify-age-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 45, 85, 0.2));
  border: 1px solid rgba(255, 107, 53, 0.12);
}
.verify-age-icon svg {
  width: 24px; height: 24px;
  fill: rgba(255, 255, 255, 0.7);
}

/* Title */
.verify-title {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  margin-bottom: 6px;
  line-height: 26px;
}

/* Subtitle */
.verify-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  margin-bottom: 20px;
  line-height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.wa-inline-icon {
  flex-shrink: 0;
  vertical-align: middle;
}

/* Social proof */
.verify-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: #4caf50;
  margin-bottom: 6px;
  font-weight: 500;
}
.verify-social-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Urgency countdown */
.verify-urgency {
  text-align: center;
  font-size: 12px;
  color: #ff8c33;
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Button container */
.verify-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

/* WhatsApp button */
.btn-whatsapp {
  width: 100%;
  height: 52px;
  border-radius: 20px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
}
.btn-whatsapp:hover {
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:active {
  transform: scale(0.97);
}
.btn-whatsapp svg {
  width: 22px; height: 22px; fill: #fff;
}

/* Disclaimer */
.verify-disclaimer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  line-height: 16px;
  padding: 0 8px;
  margin-top: 14px;
}

/* ============================================
   Step: Phone Input
   ============================================ */
.phone-input-wrap {
  margin-bottom: 16px;
}

.phone-input {
  width: 100%;
  height: 50px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 16px;
  padding: 0 16px;
  outline: none;
  -webkit-user-select: text;
  user-select: text;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.phone-input:focus {
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15),
              0 0 20px rgba(255, 107, 53, 0.08);
}

.phone-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* intlTelInput dark theme overrides */
.iti { width: 100%; }
.iti__flag-container {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding-right: 6px;
}
.iti__selected-flag {
  background: transparent !important;
  border-radius: 16px 0 0 16px;
}
.iti__selected-dial-code {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}
.iti__arrow {
  border-top-color: rgba(255, 255, 255, 0.4);
  border-width: 6px 5px 0;
  margin-left: 4px;
}

/* intlTelInput v17 renders dropdown in body as .iti--container */
.iti--container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 99999 !important;
  background: rgba(0, 0, 0, 0.6);
}
.iti--separate-dial-code .iti__selected-flag {
  background: transparent !important;
}

/* Country dropdown — full-screen centered dark panel (Myloveday style) */
.iti__country-list {
  background: #1a1025 !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  width: 90vw !important;
  max-width: 400px !important;
  min-width: 280px !important;
  position: fixed !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  top: 60px !important;
  bottom: 60px !important;
  max-height: calc(100vh - 120px) !important;
  height: auto !important;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.8),
              0 0 0 1px rgba(255, 255, 255, 0.06) inset !important;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.iti__country {
  display: flex !important;
  align-items: center !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  transition: background 0.15s !important;
}
.iti__country:hover,
.iti__country.iti__highlight {
  background: rgba(255, 107, 53, 0.12) !important;
}
.iti__country-name {
  color: #fff !important;
  font-size: 14px !important;
}
.iti__dial-code {
  color: #ff8c33 !important;
  font-size: 13px !important;
  margin-left: auto;
  font-weight: 600;
}

/* Country search wrapper (injected by verify.js — Myloveday approach) */
.iti__search-wrapper {
  background: #1a1025;
  padding: 10px;
  position: sticky;
  top: 0;
  z-index: 9999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.iti__search-field {
  width: 100% !important;
  height: 40px !important;
  background: #14101f !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 0 14px !important;
  box-sizing: border-box !important;
  font-size: 14px !important;
  outline: none !important;
  transition: border-color 0.2s !important;
}
.iti__search-field::placeholder { color: rgba(255, 255, 255, 0.35); }
.iti__search-field:focus {
  border-color: #ff6b35 !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15) !important;
}

/* Phone validation states */
.phone-input.invalid {
  border-color: #ff4444 !important;
  box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.15) !important;
}
.phone-input.valid {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15) !important;
}
.phone-error {
  font-size: 12px;
  color: #ff4444;
  margin-top: 6px;
  display: none;
  padding-left: 2px;
}

/* Send button */
.btn-send {
  width: 100%;
  height: 52px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff6b35, #ff2d55);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.25);
}
.btn-send:hover {
  box-shadow: 0 6px 28px rgba(255, 107, 53, 0.35);
}
.btn-send:active {
  transform: scale(0.97);
}
.btn-send:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

/* ============================================
   Step: Pairing Code Display
   ============================================ */
.pairing-code {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 6px;
  text-align: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 2px dashed rgba(255, 107, 53, 0.35);
  border-image: linear-gradient(135deg, rgba(255, 107, 53, 0.4), rgba(255, 45, 85, 0.4)) 1;
  border-style: dashed;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
}

/* Guide steps */
.guide-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.guide-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 18px;
}

.guide-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 45, 85, 0.2));
  color: #ff8c33;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 107, 53, 0.1);
}

/* Tips visual guide (GIF from Myloveday) */
.verify-tips {
  text-align: center;
  margin-bottom: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}
.verify-tips-img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}
.verify-tips-text {
  font-size: 12px;
  font-weight: 600;
  color: #ff8c33;
  margin: 0;
  line-height: 16px;
}

/* Countdown timer */
.countdown-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: #ff8c33;
  margin-bottom: 10px;
}

.countdown-timer {
  font-weight: 700;
  font-family: 'SF Mono', 'Fira Code', monospace;
  letter-spacing: 0.5px;
}

/* ============================================
   Step: Waiting / Verifying Spinner
   ============================================ */
.verify-spinner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 0;
}

.verify-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.06);
  border-top: 3px solid transparent;
  border-image: none;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  position: relative;
}
.verify-spinner::before {
  content: '';
  position: absolute;
  top: -3px; left: -3px; right: -3px; bottom: -3px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #ff6b35;
  animation: spin 0.9s linear infinite;
}

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

/* ============================================
   Step: Success
   ============================================ */
.verify-success-icon {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 14px;
  color: #fff;
  background: linear-gradient(135deg, #4caf50, #2dd573);
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 28px rgba(76, 175, 80, 0.3),
              0 0 0 6px rgba(76, 175, 80, 0.08);
}

.verify-success-title {
  font-size: 20px;
  font-weight: 700;
  color: #4ee294;
  text-align: center;
  margin-bottom: 8px;
}

/* ============================================
   Blur Overlay (watch page video)
   ============================================ */
.blur-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 10;
  background: rgba(10, 5, 20, 0.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  backdrop-filter: blur(24px) saturate(1.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
}

.blur-overlay .lock-icon {
  font-size: 40px;
}

.lock-icon-svg {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.18), rgba(255, 45, 85, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
}
.lock-icon-svg svg { opacity: 0.9; }

.blur-overlay .unlock-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ============================================
   Step Visibility
   ============================================ */
.verify-step { display: none; }
.verify-step.active { display: block; }
