/* ==========================================================================
   MTS Age & Identity Verification Modular Widget Styles
   ========================================================================== */

.age-verify-card {
  border: 1px solid var(--mts-gold-subtle, rgba(197, 155, 39, 0.3));
  border-radius: 12px;
  background: #ffffff;
  transition: all 0.3s ease;
}

.age-verify-card.verified {
  border-color: #198754 !important;
  background: #f8fff9 !important;
}

/* Modal Viewfinder Wrapper */
.av-viewfinder-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  background: #000000;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.av-video-stream {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.av-preview-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111111;
}

/* Step 1: ID Card Rectangular Guide Overlay */
.av-overlay-guide-id {
  position: absolute;
  top: 10%;
  left: 8%;
  right: 8%;
  bottom: 10%;
  border: 2px dashed rgba(197, 155, 39, 0.85);
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
}

/* Corner Brackets for ID Guide */
.av-overlay-guide-id::before,
.av-overlay-guide-id::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: #c59b27;
  border-style: solid;
  pointer-events: none;
}

.av-overlay-guide-id::before {
  top: -2px;
  left: -2px;
  border-width: 4px 0 0 4px;
  border-top-left-radius: 10px;
}

.av-overlay-guide-id::after {
  bottom: -2px;
  right: -2px;
  border-width: 0 4px 4px 0;
  border-bottom-right-radius: 10px;
}

/* Step 2: Selfie Oval Face Guide Overlay */
.av-overlay-guide-selfie {
  position: absolute;
  width: 60%;
  height: 78%;
  border: 3px solid #c59b27;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  animation: pulseOval 2.5s infinite ease-in-out;
}

@keyframes pulseOval {
  0% { border-color: rgba(197, 155, 39, 0.6); }
  50% { border-color: rgba(197, 155, 39, 1); box-shadow: 0 0 15px rgba(197, 155, 39, 0.4), 0 0 0 9999px rgba(0, 0, 0, 0.6); }
  100% { border-color: rgba(197, 155, 39, 0.6); }
}

/* AI Scanning Animation */
.av-scanning-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #c59b27, #ffffff, #c59b27, transparent);
  box-shadow: 0 0 12px #c59b27;
  animation: scanSweep 2s infinite ease-in-out;
}

@keyframes scanSweep {
  0% { top: 12%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 88%; opacity: 0; }
}

/* Step Progress Indicator */
.av-steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.av-step-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.av-step-pill.active {
  background: #c59b27;
  color: #000000;
}

.av-step-pill.completed {
  background: #198754;
  color: #ffffff;
}

.av-step-pill.pending {
  background: #e9ecef;
  color: #6c757d;
}
