:root {
  --bg-primary: #070708;
  --bg-secondary: #0f0f11;
  --bg-tertiary: #121217;
  --text-primary: rgba(255,255,255,0.95);
  --text-secondary: rgba(160,160,192,0.9);
  --text-muted: rgba(160,160,176,0.65);
  --accent-primary: #9333ea;
  --accent-secondary: #a855f7;
}

.verification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(7,7,8,0.98) 0%, rgba(15,15,17,0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  animation: overlayIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: auto;
}

@keyframes overlayIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(20px);
  }
}

.verification-modal {
  position: relative;
  background: linear-gradient(135deg, rgba(20,20,25,0.8) 0%, rgba(15,15,20,0.6) 100%);
  border: 1px solid rgba(147,51,234,0.15);
  border-radius: 24px;
  padding: 72px 56px;
  max-width: 520px;
  width: 90%;
  text-align: center;
  box-shadow: 
    0 0 60px rgba(147,51,234,0.2),
    0 20px 80px rgba(0,0,0,0.8),
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(147,51,234,0.1);
  animation: modalSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  overflow: hidden;
}

.verification-modal::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 50%, rgba(147,51,234,0.1) 0%, transparent 50%);
  animation: gradientShift 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gradientShift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, 20px); }
}

.verification-modal > * {
  position: relative;
  z-index: 2;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.verification-brand {
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 28px;
  letter-spacing: -0.8px;
  animation: fadeInDown 0.7s ease-out 0.1s both;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.verification-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  animation: fadeInDown 0.7s ease-out 0.2s both;
}

.verification-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-weight: 500;
  animation: fadeInDown 0.7s ease-out 0.3s both;
}

.verification-stages {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 12px;
  animation: fadeInUp 0.7s ease-out 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.verification-stage {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.verification-stage.active {
  background: linear-gradient(90deg, #9333ea, #a855f7);
  box-shadow: 0 0 12px rgba(147,51,234,0.5);
}

.verification-stage.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.verification-stage.completed {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.verification-progress-container {
  margin: 32px 0;
  animation: fadeInUp 0.7s ease-out 0.5s both;
}

.verification-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 12px;
}

.verification-progress-status {
  color: var(--text-muted);
  font-weight: 500;
}

.verification-progress-time {
  color: var(--accent-primary);
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.verification-bar-wrapper {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.04);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(147,51,234,0.1);
}

.verification-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #9333ea 0%, #a855f7 100%);
  width: 0%;
  animation: progressAdvance 3.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  box-shadow: 0 0 16px rgba(147,51,234,0.6), inset 0 0 8px rgba(168,85,247,0.4);
  position: relative;
}

.verification-progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
  filter: blur(6px);
}

@keyframes progressAdvance {
  0% { width: 0%; }
  60% { width: 85%; }
  100% { width: 100%; }
}

.verification-message {
  background: linear-gradient(135deg, rgba(147,51,234,0.12) 0%, rgba(168,85,247,0.06) 100%);
  border: 1px solid rgba(147,51,234,0.2);
  border-radius: 14px;
  padding: 14px 18px;
  margin-top: 28px;
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  opacity: 0;
  animation: messageSlideIn 0.6s ease-out 1.2s both;
  backdrop-filter: blur(4px);
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.verification-success-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: successFadeIn 0.5s ease-out 3.0s both;
}

@keyframes successFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.verification-checkmark {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(34,197,94,0.15) 0%, rgba(22,163,74,0.08) 100%);
  border: 2px solid rgba(34,197,94,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.verification-checkmark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(34,197,94,0.2) 0%, transparent 70%);
  animation: checkGlow 2s ease-in-out infinite;
}

@keyframes checkGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.verification-checkmark svg {
  width: 36px;
  height: 36px;
  color: #22c55e;
  position: relative;
  z-index: 1;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: checkStroke 0.7s ease-out 3.2s forwards;
}

@keyframes checkStroke {
  to {
    stroke-dashoffset: 0;
  }
}

.verification-complete-text {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 600;
}

.verification-redirect-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

.verification-overlay.exiting {
  animation: overlayOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes overlayOut {
  from {
    opacity: 1;
    backdrop-filter: blur(20px);
  }
  to {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
}

@media (max-width: 600px) {
  .verification-modal {
    padding: 56px 32px;
    border-radius: 20px;
  }
  
  .verification-brand {
    font-size: 28px;
    margin-bottom: 20px;
  }
  
  .verification-title {
    font-size: 20px;
  }
  
  .verification-subtitle {
    font-size: 12px;
    margin-bottom: 32px;
  }
}
