/**
 * "My Model" Virtual Try-On — Wizard Styles
 *
 * Multi-step onboarding wizard with glassmorphism design system.
 * Steps: Intro → Privacy → Face Capture → Full-Length → Review → Processing/Reveal
 *
 * @package MetalMono
 */

/* ═══════════════════════════════════════════
   OVERLAY
   ═══════════════════════════════════════════ */

.mm-tryon-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mm-tryon-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ═══════════════════════════════════════════
   WIZARD MODAL CONTAINER
   ═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   WIZARD MODAL CONTAINER (Doji Aesthetic)
   ═══════════════════════════════════════════ */

.mm-tryon-modal.mm-wizard-modal {
  position: fixed;
  z-index: 100001;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.16),
    0 8px 28px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

/* Desktop */
@media (min-width: 769px) {
  .mm-tryon-modal.mm-wizard-modal {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%) scale(0.96);
    width: 440px;
    max-height: 90vh;
    border-radius: 32px;
  }
  .mm-tryon-modal.mm-wizard-modal.is-visible {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .mm-tryon-modal.mm-wizard-modal {
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    max-height: 95vh;
    border-radius: 28px 28px 0 0;
  }
  .mm-tryon-modal.mm-wizard-modal.is-visible {
    transform: translateY(0);
  }
}

.mm-tryon-modal.mm-wizard-modal.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ═══ MOBILE GRAB HANDLE ═══ */
.mm-tryon-grab-pill {
  display: none;
}
@media (max-width: 768px) {
  .mm-tryon-grab-pill {
    display: block;
    width: 36px;
    height: 5px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.15);
    margin: 10px auto 4px;
    flex-shrink: 0;
  }
}

/* ═══════════════════════════════════════════
   WIZARD HEADER (Progress + Nav)
   ═══════════════════════════════════════════ */

.mm-wizard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 8px;
  flex-shrink: 0;
}

.mm-wizard-back {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #000;
  flex-shrink: 0;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.mm-wizard-back:hover {
  background: rgba(0, 0, 0, 0.05);
}
.mm-wizard-back svg {
  width: 22px;
  height: 22px;
}

/* Progress Bar (Doji style thin pill) */
.mm-wizard-progress {
  width: 140px;
  height: 3px;
  background: #E5E5E5;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto;
}
.mm-wizard-progress__fill {
  height: 100%;
  background: #000000;
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0%;
}

/* Close Button */
.mm-tryon-close {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #000;
  flex-shrink: 0;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.mm-tryon-close:hover {
  background: rgba(0, 0, 0, 0.05);
}
.mm-tryon-close svg {
  width: 20px;
  height: 20px;
}

/* ═══════════════════════════════════════════
   WIZARD BODY & STEPS
   ═══════════════════════════════════════════ */

.mm-wizard-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.mm-wizard-step {
  display: none;
  animation: mmWizardFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.mm-wizard-step.is-active {
  display: block;
}

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

.mm-wizard-step__content {
  padding: 12px 24px 32px;
}

.mm-wizard-step--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ═══ Typography (Global Website Font) ═══ */

.mm-wizard-title {
  font-family: var(--mm-font-primary, 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: 28px;
  font-weight: 700;
  color: #111111;
  margin: 0 0 10px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
}

.mm-wizard-desc {
  font-family: var(--mm-font-primary, 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: 15px;
  color: #555555;
  line-height: 1.5;
  margin: 0 auto 20px;
  max-width: 320px;
  text-align: center;
}

.mm-wizard-hint {
  font-family: var(--mm-font-primary, 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: 14px;
  color: #666666;
  text-align: center;
  line-height: 1.45;
  margin: 16px auto 24px;
  max-width: 300px;
}

/* ═══ Primary CTA Button (Solid Black Pill) ═══ */

.mm-wizard-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  font-family: var(--mm-font-primary, 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
  letter-spacing: 0.01em;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.mm-wizard-cta:hover {
  background: #222222;
  transform: translateY(-1px);
}
.mm-wizard-cta:active {
  transform: scale(0.98);
}
.mm-wizard-cta:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}
.mm-wizard-cta--link {
  text-decoration: none;
  color: #fff;
}

/* ═══════════════════════════════════════════
   STEP 1: INTRO
   ═══════════════════════════════════════════ */

.mm-wizard-intro-visual {
  position: relative;
  width: 260px;
  height: 200px;
  margin: 24px auto 32px;
}

.mm-wizard-intro-cards {
  display: flex;
  justify-content: center;
  gap: 8px;
  perspective: 600px;
}

.mm-wizard-intro-card {
  width: 100px;
  height: 140px;
  background: linear-gradient(145deg, #f5f5f5, #e8e8e8);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease;
}
.mm-wizard-intro-card--left {
  transform: rotate(-6deg) translateY(8px);
}
.mm-wizard-intro-card--center {
  transform: translateY(-4px);
  z-index: 1;
  background: linear-gradient(145deg, #eee, #ddd);
}
.mm-wizard-intro-card--right {
  transform: rotate(6deg) translateY(8px);
}

.mm-wizard-intro-avatar {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.mm-wizard-intro-avatar svg {
  width: 32px;
  height: 32px;
  color: #999;
}

/* ═══════════════════════════════════════════
   STEP 2: PRIVACY
   ═══════════════════════════════════════════ */

.mm-wizard-privacy-icon {
  width: 64px;
  height: 64px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px auto 24px;
}
.mm-wizard-privacy-icon svg {
  width: 28px;
  height: 28px;
  color: #1a1a1a;
}

.mm-wizard-privacy-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  text-align: left;
  max-width: 320px;
}
.mm-wizard-privacy-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: #444;
  line-height: 1.4;
}
.mm-wizard-privacy-list li svg {
  width: 18px;
  height: 18px;
  color: #22c55e;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ═══════════════════════════════════════════
   STEP 3: FACE CAPTURE (Doji Angles Guide)
   ═══════════════════════════════════════════ */

#mm-step-face .mm-wizard-title {
  text-align: center;
  font-family: var(--mm-font-primary, 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

#mm-step-face .mm-wizard-desc {
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  color: #666;
  max-width: 320px;
  margin: 0 auto 16px;
}

#mm-step-face .mm-wizard-hint {
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  color: #666;
  max-width: 300px;
  margin: 16px auto 24px;
}

/* Face angles guide visual illustration */
.mm-face-guide-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px auto 14px;
  max-width: 280px;
}

.mm-face-guide-img {
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.09);
  display: block;
  object-fit: contain;
}

/* ═══════════════════════════════════════════
   STEP 4: BODY PHOTO (Doji Full-Length Guide)
   ═══════════════════════════════════════════ */

#mm-step-body .mm-wizard-title {
  text-align: center;
  font-family: var(--mm-font-primary, 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

#mm-step-body .mm-wizard-desc {
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  color: #666;
  max-width: 320px;
  margin: 0 auto 16px;
}

/* Full-length body guide visual illustration */
.mm-body-guide-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px auto 16px;
  max-width: 280px;
}

.mm-body-guide-img {
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.09);
  display: block;
  object-fit: contain;
}

.mm-body-tips {
  text-align: center;
  margin: 12px 0 24px;
}
.mm-body-tips__title {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mm-body-tips p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 3px 0;
}

/* ═══════════════════════════════════════════
   STEP 5: REVIEW (Doji Style)
   ═══════════════════════════════════════════ */

#mm-step-review .mm-wizard-title {
  text-align: center;
  font-family: var(--mm-font-primary, 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

#mm-step-review .mm-wizard-desc {
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  color: #666;
  max-width: 320px;
  margin: 0 auto 24px;
}

/* Review photo grids */
.mm-review-photos {
  margin-bottom: 20px;
}

.mm-review-faces {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
  padding: 0 10px;
}

.mm-review-bodies {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 12px;
  padding: 0 10px;
}

.mm-review-photo {
  position: relative;
  overflow: visible;
}

.mm-review-photo--face {
  aspect-ratio: 1;
}

.mm-review-photo--body {
  aspect-ratio: 3 / 4;
}

.mm-review-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.mm-review-photo--face img {
  border-radius: 50%;
}

.mm-review-photo--body img {
  border-radius: 20px;
}

.mm-review-photo__remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.15s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.mm-review-photo__remove:hover {
  transform: scale(1.15);
}

.mm-review-photo__remove svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* ═══ Consent ═══ */
.mm-wizard-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 0;
  margin-bottom: 16px;
}
.mm-wizard-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #1a1a1a;
}
.mm-wizard-consent label {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  cursor: pointer;
}

/* ═══════════════════════════════════════════
   STEP 6: PROCESSING → REVEAL
   ═══════════════════════════════════════════ */

/* Processing State */
.mm-processing-state {
  padding: 40px 0 20px;
}

.mm-processing-visual {
  position: relative;
  width: 160px;
  height: 220px;
  margin: 0 auto 28px;
  overflow: hidden;
  border-radius: 20px;
}
.mm-processing-silhouette {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mm-processing-silhouette svg {
  width: 120px;
  height: 200px;
}

.mm-processing-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
  animation: mmShimmer 2s ease-in-out infinite;
}

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

.mm-processing-spinner {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.mm-tryon-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: mmSpin 0.8s linear infinite;
}

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

.mm-processing-msg {
  font-family: var(--mm-font-primary, 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: 15px;
  color: #1a1a1a;
  font-weight: 500;
  margin: 0 0 6px;
  transition: opacity 0.3s ease;
}

.mm-processing-sub {
  font-size: 13px;
  color: #999;
  margin: 0;
}

/* Reveal State */
.mm-reveal-state {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.mm-reveal-state.is-revealed {
  opacity: 1;
  transform: scale(1);
}

.mm-reveal-img-wrap {
  position: relative;
  max-width: 280px;
  margin: 0 auto 24px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.mm-reveal-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}
.mm-reveal-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.mm-reveal-usage {
  font-size: 13px;
  color: #999;
  margin-top: 16px;
}

/* ═══════════════════════════════════════════
   SPECIAL STATES (Login, Limit, Error)
   ═══════════════════════════════════════════ */

/* Login */
.mm-tryon-login-icon {
  width: 64px;
  height: 64px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px auto 20px;
}
.mm-tryon-login-icon svg {
  width: 28px;
  height: 28px;
  stroke: #1a1a1a;
}

/* Limit */
.mm-tryon-limit-icon {
  font-size: 48px;
  margin: 40px 0 16px;
}
.mm-wizard-limit-timer {
  font-size: 14px;
  color: #999;
  margin-top: 8px;
}

/* Error */
.mm-tryon-error-icon {
  font-size: 48px;
  margin: 40px 0 16px;
}
.mm-error-msg {
  max-width: 300px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE TWEAKS
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
  .mm-wizard-step__content {
    padding: 8px 20px 28px;
  }

  .mm-wizard-title {
    font-size: 24px;
  }

  .mm-wizard-desc {
    font-size: 14px;
  }

  .mm-face-grid {
    max-width: 260px;
    gap: 12px;
  }

  .mm-body-grid {
    max-width: 280px;
  }

  .mm-wizard-cta {
    width: 100%;
    padding: 16px 36px;
  }
}

/* ═══ Secondary CTA ═══ */
.mm-wizard-cta--secondary {
  background: transparent;
  color: #111111;
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  box-shadow: none;
}
.mm-wizard-cta--secondary:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.4);
  color: #000000;
}

/* ═══ Or Divider ═══ */
.mm-wizard-or-divider {
  font-size: 13px;
  color: #aaa;
  margin: 16px 0 12px;
  text-align: center;
}

/* ═══════════════════════════════════════════
   CAMERA OVERLAY (fullscreen dark capture)
   ═══════════════════════════════════════════ */

.mm-camera-overlay {
  position: fixed;
  inset: 0;
  z-index: 100010;
  background: #000;
  display: flex;
  flex-direction: column;
}

/* ── Tips / Ready Screen ── */
.mm-camera-tips {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #fff;
}

.mm-camera-tips__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  flex-shrink: 0;
}
.mm-camera-tips__close {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mm-camera-tips__close svg {
  width: 20px;
  height: 20px;
}
.mm-camera-tips__title {
  font-family: var(--mm-font-primary, 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.mm-camera-tips__counter {
  font-family: var(--mm-font-primary, 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.mm-camera-tips__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 32px 40px;
}
.mm-camera-tips__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}
.mm-camera-tips__item {
  font-family: var(--mm-font-primary, 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: 17px;
  color: #fff;
  margin: 6px 0;
  text-align: center;
}

.mm-camera-ready-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 48px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 9999px;
  font-family: var(--mm-font-primary, 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin: 40px auto;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.mm-camera-ready-btn:hover {
  opacity: 0.9;
}
.mm-camera-ready-btn:active {
  transform: scale(0.97);
}

/* ── Live Camera View ── */
.mm-camera-live {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #fff;
  position: relative;
}

.mm-camera-live__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  flex-shrink: 0;
  z-index: 2;
}
.mm-camera-live__close {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mm-camera-live__close svg {
  width: 20px;
  height: 20px;
}
.mm-camera-live__prompt {
  font-family: var(--mm-font-primary, 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.mm-camera-live__counter {
  font-family: var(--mm-font-primary, 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* Face preview circle at top */
.mm-camera-live__preview {
  display: flex;
  justify-content: center;
  padding: 8px 0 16px;
  z-index: 2;
}
.mm-camera-live__circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease;
  overflow: hidden;
}
.mm-camera-live__circle.has-photo {
  border-color: #fff;
}

.mm-camera-check {
  width: 40px;
  height: 40px;
}

/* Video viewfinder */
.mm-camera-live__viewfinder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.mm-camera-live__viewfinder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror front camera */
}

/* Capture button */
.mm-camera-live__footer {
  display: flex;
  justify-content: center;
  padding: 24px 0 48px;
  flex-shrink: 0;
  z-index: 2;
}
.mm-camera-capture-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.15s ease;
}
.mm-camera-capture-btn:hover {
  transform: scale(1.05);
}
.mm-camera-capture-btn:active {
  transform: scale(0.93);
}
.mm-camera-capture-btn__inner {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  display: block;
}

/* ── Desktop: constrain camera to modal-sized panel ── */
@media (min-width: 769px) {
  .mm-camera-overlay {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    height: 90vh;
    max-height: 90vh;
    border-radius: 28px;
    inset: auto;
  }
}

/* ═══════════════════════════════════════════
   TRY-ON TRIGGER BUTTONS (on product page)
   ═══════════════════════════════════════════ */

/* Buy box "Try It On" / "Update My Model" button (Glassmorphism Frosted Glass) */
.rains-buybox-tryon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  background: rgba(255, 255, 255, 0.75) !important;
  background: -webkit-linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(246, 243, 237, 0.68) 100%) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(246, 243, 237, 0.68) 100%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  color: #111111 !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  border-radius: 9999px !important;
  padding: 1rem 1.5rem !important;
  min-height: 52px !important;
  margin-top: 10px !important;
  font-family: var(--mm-font-primary, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), inset 0 1.5px 1px rgba(255, 255, 255, 0.95), inset 0 -1px 1px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
}
.rains-buybox-tryon:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  background: -webkit-linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 245, 0.9) 100%) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 245, 0.9) 100%) !important;
  color: #000000 !important;
  border-color: rgba(255, 255, 255, 1) !important;
  transform: translateY(-1px) scale(1.008) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), inset 0 1.5px 1.5px rgba(255, 255, 255, 1) !important;
}
.rains-buybox-tryon:active {
  transform: scale(0.98) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}
.rains-buybox-tryon svg {
  width: 18px !important;
  height: 18px !important;
  stroke: #111111 !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease !important;
}
.rains-buybox-tryon:hover svg {
  transform: scale(1.08) !important;
}

/* Mobile bottom bar "Try It On" button (Glassmorphism Frosted Glass) */
.rains-bottom-bar-tryon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: rgba(255, 255, 255, 0.75) !important;
  background: -webkit-linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(246, 243, 237, 0.68) 100%) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(246, 243, 237, 0.68) 100%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  color: #111111 !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  border-radius: 9999px !important;
  padding: 12px 20px !important;
  font-family: var(--mm-font-primary, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.95) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap !important;
}
.rains-bottom-bar-tryon:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #000000 !important;
  border-color: rgba(255, 255, 255, 1) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 1) !important;
}
.rains-bottom-bar-tryon svg {
  width: 15px !important;
  height: 15px !important;
  stroke: #111111 !important;
  flex-shrink: 0 !important;
}

/* ═══════════════════════════════════════════
   DARK MODE SUPPORT (optional — matches OS)
   ═══════════════════════════════════════════ */

@media (prefers-color-scheme: dark) {
  /* Keep light modal for now — dark mode can be added later */
}
