/* ============ Ring Sizer Modal ============ */
/* Buton mic, discret — „Află-ți mărimea" */
.fmRsGuideRow {
  display: flex;
  justify-content: flex-end;
  margin: 6px 0 12px;
}
.fmRsGuideBtn {
  background: #1c1713;
  color: #f6efde;
  border: 1px solid #1c1713;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.4px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fmRsGuideBtn:hover { background: #2c2520; border-color: #b8903d; color: #f5dc8a; }
.fmRsGuideBtn:active { transform: scale(0.97); }

.fmRsBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 14, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.fmRsBackdrop.is-open { opacity: 1; pointer-events: auto; }

.fmRsModal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  background: #faf7f0;
  color: #1c1713;
  font-family: inherit;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
}
.fmRsModal.is-open { transform: translateY(0); }

@media (min-width: 768px) {
  .fmRsModal {
    inset: auto;
    width: 540px;
    max-width: 96vw;
    height: 92vh;
    max-height: 760px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, calc(-50% + 40px));
    opacity: 0;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  }
  .fmRsModal.is-open {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

.fmRsHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
  border-bottom: 1px solid #ece6d8;
  flex-shrink: 0;
}
.fmRsTitle { font-size: 16px; font-weight: 600; margin: 0; letter-spacing: 0.3px; }
.fmRsTitle-sub { font-size: 11px; color: #6e6557; font-weight: 400; display: block; margin-top: 2px; letter-spacing: 0.5px; text-transform: uppercase; }
.fmRsClose {
  background: none;
  border: 1px solid #ece6d8;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 18px;
  line-height: 1;
  color: #1c1713;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fmRsClose:hover { background: #1c1713; color: #fff; border-color: #1c1713; }

.fmRsTabs {
  display: flex;
  gap: 6px;
  padding: 14px 20px;
  border-bottom: 1px solid #ece6d8;
  background: #fdfaf2;
}
.fmRsTab {
  flex: 1;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid #d8cfae;
  border-radius: 8px;
  color: #1c1713;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.fmRsTab-label { font-size: 12px; opacity: 0.7; }
.fmRsTab-value { font-size: 15px; font-weight: 600; }
.fmRsTab:hover { border-color: #1c1713; }
.fmRsTab.is-active {
  background: #1c1713;
  color: #fff;
  border-color: #1c1713;
  box-shadow: 0 3px 10px rgba(28, 23, 19, 0.2);
}
.fmRsTab.is-active .fmRsTab-label { opacity: 0.85; }

.fmRsBody {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  position: relative;
}

.fmRsStage {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 220px;
}

.fmRsRingWrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.35s cubic-bezier(0.32, 0.72, 0, 1), height 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.fmRsRing {
  display: block;
  width: 100%;
  height: 100%;
}
.fmRsRing-gloss {
  animation: fmRsShimmer 3s ease-in-out infinite;
  transform-origin: center;
}
@keyframes fmRsShimmer {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}

.fmRsRingBadge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #f5dc8a;
  letter-spacing: 0.3px;
  text-align: center;
  pointer-events: none;
  background: rgba(28, 23, 19, 0.88);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
  line-height: 1.1;
}
.fmRsRingArrow { font-size: 10px; opacity: 0.65; }
.fmRsRingMm { font-variant-numeric: tabular-nums; font-size: 13px; }
.fmRsRingMm-unit { font-size: 9px; opacity: 0.7; margin-left: 1px; letter-spacing: 0.5px; }

.fmRsValueRow {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 4px;
}
.fmRsValueNumber {
  font-size: 38px;
  font-weight: 600;
  color: #1c1713;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.fmRsValueUnit { font-size: 18px; color: #6e6557; font-weight: 400; }

.fmRsHint {
  text-align: center;
  font-size: 12px;
  color: #6e6557;
  margin: 0 0 14px;
  letter-spacing: 0.3px;
}

.fmRsControls {
  padding: 14px 20px 18px;
  background: #fff;
  border-top: 1px solid #ece6d8;
  flex-shrink: 0;
}
.fmRsRangeRow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 8px;
}
.fmRsStepBtn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #faf7f0;
  border: 1px solid #d8cfae;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: #1c1713;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fmRsStepBtn:hover { background: #1c1713; color: #fff; border-color: #1c1713; }
.fmRsStepBtn:active { transform: scale(0.92); }
.fmRsRange {
  flex: 1;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: #ece6d8;
  border-radius: 3px;
  outline: none;
  margin: 0;
}
.fmRsRange::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #e8c878 0%, #b8903d 100%);
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(184, 144, 64, 0.5);
}
.fmRsRange::-moz-range-thumb {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #e8c878 0%, #b8903d 100%);
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(184, 144, 64, 0.5);
}
.fmRsRangeTicks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #6e6557;
  margin-top: 2px;
  padding: 0 4px;
}

.fmRsActions {
  display: flex;
  gap: 8px;
  padding: 12px 20px 16px;
  background: #fff;
  border-top: 1px solid #ece6d8;
  flex-shrink: 0;
}
.fmRsBtn {
  flex: 1;
  padding: 13px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid;
}
.fmRsBtn-secondary { background: #fff; color: #1c1713; border-color: #d8cfae; }
.fmRsBtn-secondary:hover { background: #fdfaf2; border-color: #1c1713; }
.fmRsBtn-primary { background: #1c1713; color: #fff; border-color: #1c1713; }
.fmRsBtn-primary:hover { background: #2c2520; }

.fmRsCalibLink {
  display: block;
  text-align: center;
  font-size: 12px;
  color: #6e6557;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  margin: 0 auto;
}
.fmRsCalibLink:hover { color: #1c1713; }
.fmRsCalibLink.is-done { color: #2c7a3f; }
.fmRsCalibLink.is-done::before { content: '✓ '; }

/* ============ Calibration sub-modal ============ */
.fmRsCalib {
  position: absolute;
  inset: 0;
  background: #faf7f0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.fmRsCalib.is-open { transform: translateY(0); }

.fmRsCalibBody {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  overflow-y: auto;
}
.fmRsCalibIntro {
  font-size: 13px;
  color: #1c1713;
  text-align: center;
  margin: 0 0 18px;
  line-height: 1.5;
  max-width: 360px;
}
.fmRsCalibCard {
  position: relative;
  background: linear-gradient(135deg, #d4af55 0%, #b8903d 60%, #8a6a26 100%);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  margin: 12px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: width 0.05s linear, height 0.05s linear;
  overflow: hidden;
}
.fmRsCalibCard::after {
  content: '';
  position: absolute;
  top: 14%;
  left: 8%;
  width: 32px;
  height: 22px;
  background: linear-gradient(135deg, #ffe9a3 0%, #c8a14a 100%);
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.fmRsCalibScale {
  width: 100%;
  max-width: 360px;
  margin: 20px auto 0;
}
.fmRsCalibScaleLabel {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #6e6557;
  margin-bottom: 4px;
}
