/* Greek ID Verification -- Analyzing / Processing Screen */

.analyzing-wrap {
  max-width: 640px;
  margin: 80px auto;
  text-align: center;
  padding: 0 20px;
}

.analyzing-spinner {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  position: relative;
}

.analyzing-spinner::before,
.analyzing-spinner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
}

.analyzing-spinner::before {
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}

.analyzing-spinner::after {
  border-bottom-color: var(--accent);
  animation: spin 1.5s linear infinite reverse;
  inset: 6px;
}

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

.analyzing-wrap h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }

.analyzing-wrap > p {
  color: var(--text-2);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* Image previews with scan effect */
.analyzing-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}
.analyzing-images.has-selfie {
  grid-template-columns: 1fr 1fr auto;
  max-width: 520px;
}
.analyzing-selfie-preview {
  aspect-ratio: 1 !important;
  width: 100px;
}

.analyzing-img-preview {
  aspect-ratio: 1.586;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.analyzing-img-preview .label-sm {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 2px 6px;
  background: white;
  border-radius: 3px;
  font-size: 0.6rem;
  font-weight: 600;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: scanline 2s ease-in-out infinite;
}

@keyframes scanline {
  0% { top: 10%; }
  50% { top: 90%; }
  100% { top: 10%; }
}

/* Pipeline stage list */
.stage-list { text-align: left; max-width: 400px; margin: 0 auto; }

.stage-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 4px;
  transition: all 0.3s;
  background: var(--surface);
  border: 1px solid var(--border);
}
.stage-item.done { opacity: 0.55; border-color: transparent; background: var(--surface-2); }
.stage-item.active { background: var(--accent-bg); border-color: var(--accent); }
.stage-item.pending { opacity: 0.35; border-color: transparent; background: var(--surface-2); }

.stage-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}
.stage-icon.done { background: var(--green-bg); color: var(--green); }
.stage-icon.active { background: var(--accent); color: white; animation: pulse-glow 1.5s infinite; }
.stage-icon.pending { background: var(--surface-2); color: var(--text-3); }

@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(9,105,218,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 12px 4px rgba(9,105,218,0.2); }
}

.stage-name { font-size: 0.82rem; font-weight: 500; }

.stage-desc {
  font-size: 0.68rem;
  color: var(--text-3);
  margin-top: 1px;
}

.stage-time {
  font-size: 0.7rem;
  font-family: 'Geist Mono', monospace;
  color: var(--text-3);
}

/* Progress bar */
.stage-progress {
  width: 100%;
  height: 8px;
  background: var(--surface-2);
  border-radius: 4px;
  margin-top: 20px;
  overflow: hidden;
}

.stage-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  border-radius: 4px;
  width: 0;
  transition: width 0.8s ease-out;
}

/* Countdown estimate */
.analyzing-estimate {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 24px;
  font-family: 'Geist Mono', monospace;
}

/* Rotating tips */
.analyzing-tip {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 16px;
  min-height: 2em;
  transition: opacity 0.3s;
}
