/* ============================================================
   MUHEEB — ORDER FLOW
   ============================================================ */
:root {
  --black: #0A0A0A;
  --white: #FFFFFF;
  --gray: #767676;
  --muted: #AAAAAA;
  --light: #F5F5F5;
  --light2: #F7F7F7;
  --border: #E5E5E5;
  --err: #C0392B;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: auto; overflow-x: hidden; overflow-y: auto; font-size: 16px; }
body { font-family: 'IBM Plex Sans Arabic', sans-serif; background: var(--white); color: var(--black); direction: rtl; }
a { text-decoration: none; color: inherit; }
.serif { font-family: 'DM Serif Display', serif; }

/* ---- SCREENS ---- */
.screen { display: none !important; flex-direction: column; min-height: 100vh; background: #FFFFFF; animation: none; }
#screen-2 { background: #FFFFFF; }
.screen.active { display: flex !important; flex-direction: column; animation: screenIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

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

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ---- STEP PROGRESS ---- */
#progress-container {
  width: 100%;
  padding: 0 4px;
  transition: opacity 0.3s;
}

#progress-steps {
  display: flex;
  align-items: flex-start;
  direction: rtl;
  width: 100%;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.step-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #E5E5E5;
  border: 1.5px solid #E5E5E5;
  transition: background 0.3s, border-color 0.3s;
  flex-shrink: 0;
}

.progress-step.active .step-dot {
  background: #0A0A0A;
  border-color: #0A0A0A;
}

.progress-step.completed .step-dot {
  background: #0A0A0A;
  border-color: #0A0A0A;
}

.step-label {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 9px;
  font-weight: 400;
  color: #CCCCCC;
  white-space: nowrap;
  line-height: 1;
  transition: color 0.3s;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
  color: #0A0A0A;
  font-weight: 600;
}

.progress-line {
  flex: 1;
  height: 1px;
  background: #E5E5E5;
  margin-top: 4px;
  transition: background 0.4s ease;
}

.progress-line.filled {
  background: #0A0A0A;
}

.progress-step.clickable { cursor: pointer; }
.progress-step.clickable:hover .step-dot {
  opacity: 0.6;
  transform: scale(1.1);
}
.progress-step.clickable:hover .step-label {
  color: #555555;
}

/* ---- STEP BODY ---- */
.step-body {
  display: flex; flex-direction: column;
  max-width: 560px; margin: 128px auto 0; width: 100%;
  padding: 16px 24px 16px; min-height: calc(100vh - 128px);
}
.step-body-center .step-top { display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; flex: 1; }
.step-top { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overflow-x: visible; }
.step1-body .step-top { overflow: visible; }
.step-bottom { flex-shrink: 0; padding: 8px 0 0; }

/* ---- SCREEN TITLE (serif) ---- */
.screen-title {
  font-size: 2.2rem; font-weight: 400; text-align: center;
  margin-bottom: 40px; margin-top: 12px; color: var(--black);
}

/* ---- SECTION ---- */
.section-block { margin-bottom: 12px; }
.sec-label {
  font-weight: 400; font-size: .68rem; color: var(--muted);
  letter-spacing: .1em; margin-bottom: 8px;
}

/* ---- CARDS (color + collar) ---- */
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  height: 88px; display: flex; align-items: center; padding: 0 14px; gap: 12px;
  cursor: pointer; position: relative; transition: border-color .2s, background .2s;
  user-select: none;
}
.card.bounce { animation: cardBounce .3s ease; }
@keyframes cardBounce { 0%{transform:scale(1)} 30%{transform:scale(.96)} 70%{transform:scale(1.02)} 100%{transform:scale(1)} }
.card.selected { border: 2px solid var(--black); background: #FAFAFA; }

/* Card checkmark */
.card-ck {
  position: absolute; top: 6px; right: 6px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--black);
  display: flex; align-items: center; justify-content: center;
  transform: scale(0); transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.card.selected .card-ck { transform: scale(1); }
.card-ck::after {
  content: ''; display: block; width: 5px; height: 9px;
  border: solid var(--white); border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translate(-0.5px,-0.5px);
}

.card-text { text-align: right; }
.card-label { font-weight: 700; font-size: .85rem; line-height: 1.3; }

/* ---- COLLAR CARDS (compact) ---- */
.collar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  min-height: 110px;
  flex: 1;
  background: #F9F9F9;
  border: 1px solid #E5E5E5;
}
.collar-card.selected {
  background: #FFFFFF;
  border: 1.5px solid #0A0A0A;
}
.collar-card img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  margin-bottom: 4px;
  filter: brightness(0);
}
.collar-card .card-label {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0A0A0A;
  text-align: center;
}

/* ---- STEP 1 HERO LAYOUT ---- */
#screen-2.active {
  display: flex;
  flex-direction: column;
  padding-top: 128px;
}

.step1-hero-image {
  position: relative;
  width: 100%;
  height: 380px;
  background: #F5F5F5;
  overflow: hidden;
}

.step1-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: opacity 0.2s ease;
}

.hero-carousel {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  height: 100%;
  width: 100%;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  scroll-snap-align: start;
  background: #F5F5F5;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 6px 0;
  background: #F5F5F5;
}

.c-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D0D0D0;
  transition: background 0.2s;
}

.c-dot.active {
  background: #0A0A0A;
}

.step1-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 24px 16px;
  min-height: 0;
  background: #FFFFFF;
}

/* ---- COLOR SWATCHES ---- */
.section-micro-label {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: #AAAAAA;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: block;
  direction: rtl;
  text-align: right;
}

.color-swatches {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  direction: rtl;
  overflow: visible !important;
  padding: 6px 8px;
}

.color-swatch {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  cursor: pointer;
  border: 1.5px solid #E0E0E0;
  flex-shrink: 0;
  display: inline-block;
  position: relative;
  transition: outline 0.15s ease;
  outline: 3px solid transparent;
  outline-offset: 3px;
}

.color-swatch.selected {
  outline: 2.5px solid #0A0A0A;
  outline-offset: 3px;
  border-color: transparent;
}

.color-swatch[data-color="white"] {
  background: #FFFFFF;
  border: 1.5px solid #CCCCCC;
}

.color-swatch[data-color="yellow"] {
  background: #FAF3DC;
  border: 1.5px solid #E0D9B8;
}

.selected-color-name {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #0A0A0A;
  margin-top: 8px;
  direction: rtl;
  text-align: right;
  min-height: 16px;
}

/* ---- INFO BUTTON ---- */
.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #E8630A;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-right: 4px;
  vertical-align: middle;
  flex-shrink: 0;
  line-height: 1;
}

/* ---- TOOLTIP SHEET ---- */
.tooltip-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.tooltip-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.tooltip-sheet {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-radius: 20px 20px 0 0;
  padding: 20px 24px 40px;
  z-index: 501;
  transition: bottom 0.3s ease;
  direction: rtl;
}
.tooltip-sheet.active { bottom: 0; }
.tooltip-handle {
  width: 40px;
  height: 4px;
  background: #E0E0E0;
  border-radius: 2px;
  margin: 0 auto 20px;
}
.tooltip-title {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0A0A0A;
  margin: 0 0 12px;
  text-align: right;
}
.tooltip-body {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #555555;
  line-height: 1.8;
  margin: 0 0 28px;
  text-align: right;
}
.tooltip-close {
  width: 100%;
  height: 52px;
  background: #0A0A0A;
  color: #FFFFFF;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* ── SLIDERS ── */
.slider-wrapper {
  width: 100%;
  max-width: 440px;
  margin-bottom: 48px;
}

.slider-row-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  direction: rtl;
}

.slider-label {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #0A0A0A;
}

.slider-value {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #0A0A0A;
}

.slider-track-wrapper {
  width: 100%;
  direction: ltr;
}

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  border-radius: 0;
  outline: none;
  border: none;
  cursor: pointer;
  background: #E5E5E5;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0A0A0A;
  cursor: pointer;
  border: none;
  margin-top: -10px;
}

input[type=range]::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 0;
}

input[type=range]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0A0A0A;
  cursor: pointer;
  border: none;
}

input[type=range]::-moz-range-track {
  height: 2px;
  background: #E5E5E5;
}

/* ---- BODY SHAPE CARDS ---- */
#shape-cards { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 12px; }

.body-shape-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px 16px;
  background: #F5F5F5;
  border: 1.5px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  gap: 10px;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}

.body-shape-card.selected {
  border-color: #0A0A0A;
  background: #FFFFFF;
}

.body-shape-card svg { display: block; }

.body-shape-label {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #0A0A0A;
  text-align: center;
  direction: rtl;
}

.most-common-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #E5E5E5;
  color: #555555;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 9px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
}

/* ---- CITY DISPLAY ---- */
.city-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  direction: rtl;
  padding: 14px 0;
  border-bottom: 1px solid #E5E5E5;
}
.field-label {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0A0A0A;
}
.city-value {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #0A0A0A;
}

/* ---- LINE INPUTS ---- */
.input-row { margin-bottom: 12px; }
.input-row label {
  display: block; font-weight: 600; font-size: .78rem; margin-bottom: 4px;
  color: var(--black); transition: transform .2s, font-size .2s;
}
.input-row label.float { transform: translateY(-2px); font-size: .68rem; color: var(--gray); }

.line-input-wrap { position: relative; display: flex; align-items: center; }
.line-input-wrap input,
.line-input-wrap select {
  width: 100%; height: 44px; border: none; border-radius: 0; padding: 0;
  font-family: 'IBM Plex Sans Arabic', sans-serif; font-weight: 700; font-size: 1rem; color: var(--black);
  background: transparent; outline: none; -webkit-appearance: none; appearance: none;
}
.line-border { position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: var(--border); }
.line-border-fill { position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--black); transition: width .25s ease, left .25s ease; }
.line-input-wrap input:focus ~ .line-border .line-border-fill,
.line-input-wrap select:focus ~ .line-border .line-border-fill { width: 100%; left: 0; }

/* ---- ERROR ---- */
.error-msg { color: var(--err); font-size: .72rem; margin-top: 4px; display: none; }
.error-msg.show { display: block; }

/* ---- NEXT BUTTON ---- */
.btn-next {
  width: 100%; height: 52px; border: none; border-radius: 4px;
  font-family: 'IBM Plex Sans Arabic', sans-serif; font-weight: 700; font-size: .9rem;
  cursor: pointer; transition: background .3s, color .3s;
  background: #CCCCCC; color: var(--white);
}
.btn-next.ready { background: var(--black); }
.btn-next.ready:hover { opacity: .88; }
.btn-submit { font-size: .95rem; }

/* ---- SUMMARY ---- */
.summary-wrap { margin-top: 8px; }
.sum-title { font-weight: 600; font-size: 1rem; margin-bottom: 12px; }

.sum-group {
  border: 1px solid var(--border); border-radius: 6px;
  padding: 14px 16px; margin-bottom: 8px;
}
.sum-group-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.sum-group-head span { font-weight: 600; font-size: .82rem; color: var(--black); }
.sum-edit {
  font-weight: 400; font-size: .75rem; color: var(--gray);
  text-decoration: underline; cursor: pointer;
}
.sum-edit:hover { color: var(--black); }

.sum-row { display: flex; justify-content: space-between; padding: 3px 0; }
.sum-l { font-weight: 400; font-size: .85rem; color: var(--gray); }
.sum-v { font-weight: 700; font-size: .85rem; color: var(--black); }

.sum-price-row {
  display: flex; justify-content: space-between; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.sum-price-row .sum-l { font-weight: 700; font-size: 1rem; color: var(--black); }
.sum-price-row .sum-v { font-weight: 700; font-size: 1rem; color: var(--black); }

/* ---- LANDING SCREEN (mobile-first) ---- */
#screen-1.active {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 128px;
  overflow: hidden;
  background: #FFFFFF;
}

.order-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 10px 24px 12px;
  direction: rtl;
  width: 100%;
  background: #FFFFFF;
  gap: 8px;
}

.logo-img {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: invert(0);
  align-self: flex-start;
}

.landing-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  direction: rtl;
  overflow: hidden;
  min-height: 0;
}

.landing-image {
  width: 100%;
  height: 260px;
  overflow: hidden;
  flex-shrink: 0;
  background: #EBEBEB;
}

.landing-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}

.landing-text {
  width: 100%;
  padding: 32px 24px 40px;
  direction: rtl;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 0;
}
.landing-headline { width: 100%; margin: 0; }
.landing-sub { width: 100%; margin-top: 20px; margin-bottom: 0; }
.landing-cta {
  margin-top: 28px;
  align-self: stretch;
  width: 100%;
}

.landing-headline {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0A0A0A;
  margin: 0;
  direction: rtl;
  text-align: right;
}
.landing-headline .line1,
.landing-headline .line2 { display: block; }
.landing-headline .line1 { margin-bottom: 4px; }

.landing-sub {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 300;
  font-size: .95rem;
  color: #767676;
  margin-top: 20px;
  line-height: 1.7;
}

.landing-cta {
  width: 100%;
  height: 52px;
  background: #0A0A0A;
  color: #FFFFFF;
  border-radius: 2px;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 28px;
  border: none;
  cursor: pointer;
  transition: opacity .18s;
}
.landing-cta:hover { opacity: .85; }

/* ---- DESKTOP LANDING ---- */
@media (min-width: 768px) {
  #screen-1.active {
    height: 100vh;
    padding-top: 128px;
  }

  .landing-main {
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
    direction: rtl;
  }

  .landing-image {
    width: 50%;
    height: 100%;
  }

  .landing-hero-img {
    object-position: center 60%;
  }

  .landing-text {
    width: 50%;
    padding: 0 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
    direction: rtl;
    gap: 0;
  }

  .landing-headline {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    margin: 0;
  }

  .landing-sub {
    margin-top: 20px;
    margin-bottom: 0;
  }

  .landing-cta {
    width: auto;
    padding: 14px 40px;
    height: auto;
    margin-top: 28px;
    align-self: flex-start;
  }
}

/* ---- STICKY FOOTER (step 4) ---- */
.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-top: 1px solid #F0F0F0;
  padding: 12px 20px 32px;
  z-index: 999;
  display: none;
}
.sticky-footer.visible { display: block; }

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  direction: rtl;
  margin-bottom: 10px;
  padding: 0 4px;
}
.price-label {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 12px;
  color: #888888;
}
.price-amount {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0A0A0A;
}
.payment-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  direction: rtl;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: #F9F9F9;
  border-radius: 6px;
  border: 1px solid #F0F0F0;
}
.payment-note span {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #888888;
  text-align: right;
}

#screen-5 { height: auto !important; min-height: 100vh; }
#screen-5 .step-body { height: auto !important; min-height: 0; padding-bottom: 160px; }
#screen-5 .step-top { flex: none !important; overflow: visible !important; }

/* ---- CONFIRMATION ---- */
.confirm-wrap {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 24px; max-width: 480px; margin: 0 auto;
}
.confirm-title { font-size: 4rem; font-weight: 400; margin-bottom: 16px; }
.confirm-sub { font-weight: 300; font-size: 1rem; color: var(--gray); line-height: 1.6; max-width: 340px; }
.confirm-line { width: 200px; height: 1px; background: var(--border); margin: 32px auto; }
.ref-label { font-weight: 300; font-size: .72rem; color: var(--muted); letter-spacing: .08em; margin-bottom: 6px; }
.ref-num { font-weight: 700; font-size: 1.4rem; letter-spacing: .12em; direction: ltr; margin-bottom: 0; }

.btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; max-width: 360px; height: 52px; background: var(--black);
  color: var(--white); border-radius: 4px; font-weight: 600; font-size: .9rem;
  margin-top: 40px; transition: opacity .2s;
}
.btn-wa:hover { opacity: .88; }
.btn-wa.pulse { animation: waPulse .4s ease; }
@keyframes waPulse { 0%{transform:scale(1)} 50%{transform:scale(1.03)} 100%{transform:scale(1)} }

/* ---- MOBILE ---- */
@media (max-width: 390px) {
  .tab span { font-size: .62rem; }
  .screen-title { font-size: 1.8rem; margin-bottom: 28px; }
  .card.card-color { min-height: 180px; }
  .color-thob-img { max-height: 130px; }
  .confirm-title { font-size: 3rem; }
}

/* ---- LOADER ---- */
#loader-screen {
  position: fixed;
  inset: 0;
  background: #FFFFFF;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

#loader-screen.visible {
  display: flex;
}

#loader-screen.hide {
  opacity: 0;
  pointer-events: none;
}

#loader-bar {
  width: 120px;
  height: 1.5px;
  background: #E5E5E5;
  position: relative;
  overflow: hidden;
}

#loader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #0A0A0A;
  animation: loadFill 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loadFill {
  from { left: -100%; }
  to { left: 0%; }
}

/* ---- PROCESSING SCREEN ---- */
#screen-processing {
  display: none;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #fff;
}

#screen-processing.active {
  display: flex !important;
}

.processing-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.processing-bar-wrap {
  width: 140px;
  height: 1.5px;
  background: #E5E5E5;
  position: relative;
  overflow: hidden;
}

.processing-bar {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #0A0A0A;
}

.processing-bar.animate {
  animation: processFill 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes processFill {
  0%   { left: -100%; }
  100% { left: 0%; }
}

.processing-text {
  font-size: 0.95rem;
  color: #888;
  font-family: inherit;
}

/* ---- FIT PREFERENCE STEP ---- */
#screen-4b .step-body {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 128px);
  padding: 16px 24px;
  overflow: hidden;
}

#screen-4b .screen-title {
  margin-bottom: 4px;
  margin-top: 0;
}

#screen-4b .step-top {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  overflow: hidden !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  min-height: 0;
  gap: 4px;
}

.fit-preview-wrap {
  flex: 1;
  min-height: 0;
  max-height: calc(100vh - 320px);
  position: relative;
  margin: 4px 0;
}

.fit-img-stack {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.fit-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.fit-img.visible {
  opacity: 1;
  transform: scale(1);
}

.fit-desc-text {
  text-align: center;
  font-size: 0.95rem;
  color: #888;
  min-height: 20px;
  transition: opacity 0.3s ease;
  margin: 0;
  opacity: 0;
}

.fit-options-row {
  position: relative;
  margin-top: -80px;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.fit-opt-btn {
  padding: 12px 32px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #BBBBBB;
  cursor: pointer;
  transition: color 0.25s ease;
}

.fit-opt-btn.selected {
  color: #0A0A0A;
}
