/* ═══════════ 살롱 매출 시뮬레이터 (라이트 배경 전용 입력 UI) ═══════════ */

/* ── 탭 ── */
.rv-tabbar {
  display: flex;
  justify-content: center;
}
.rv-tabbar .seg-btn {
  padding: 11px 26px;
}

.rv-panel .calc {
  margin-top: 28px;
}

/* ── 입력 그룹 ── */
.rv-group + .rv-group {
  margin-top: 28px;
}

.rv-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 800;
  margin-bottom: 10px;
}

/* ── 금액 인풋 ── */
.rv-money {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  padding: 6px 18px;
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease,
    background var(--duration-fast) ease;
}
.rv-money:focus-within {
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-100);
}
.rv-money input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: right;
  padding: 9px 0;
}
.rv-money input:focus {
  outline: none;
}
.rv-money input::placeholder {
  color: var(--ink-mute);
}
.rv-unit {
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--ink-mute);
  flex-shrink: 0;
}

.rv-hint {
  margin-top: 8px;
  min-height: 1.25em;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-mute);
}

/* ── 빠른 조절 칩 ── */
.rv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.rv-chip {
  border: 0;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: var(--text-xs);
  font-weight: 800;
  padding: 9px 15px;
  border-radius: 999px;
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease,
    transform var(--duration-fast) ease;
}
.rv-chip:hover {
  background: var(--brand-100);
}
.rv-chip:active {
  transform: scale(0.93);
}
.rv-chip.is-on {
  background: var(--brand);
  color: #fff;
}
.rv-chip-clear {
  background: var(--bg);
  color: var(--ink-mute);
}
.rv-chip-clear:hover {
  background: var(--line);
  color: var(--ink-sub);
}

/* ── 스테퍼 행 ── */
.rv-rows {
  display: grid;
  gap: 8px;
}

/* ── 노쇼율 슬라이더 ── */
.rv-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.rv-slider-head .rv-label {
  margin-bottom: 0;
}
.rv-slider-value {
  font-size: 1.375rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--up);
}
.rv-slider-value.is-zero {
  color: var(--brand-600);
}

.rv-range {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
}
.rv-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface);
  border: 2.5px solid var(--brand);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-fast) ease;
}
.rv-range::-webkit-slider-thumb:active {
  transform: scale(1.12);
}
.rv-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 2.5px solid var(--brand);
  box-shadow: var(--shadow-card);
}
.rv-range:focus-visible {
  outline: 3px solid var(--brand-300);
  outline-offset: 4px;
}

/* ── 결과 카드 ── */
.rv-summary h3 {
  margin-bottom: 4px;
}
.rv-summary h3 + .rv-big {
  margin-top: 2px;
}

.rv-big {
  font-size: clamp(1.875rem, 1.4rem + 2vw, 2.5rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.rv-loss {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: #fdeef0;
}
.rv-loss svg {
  width: 20px;
  height: 20px;
  color: var(--up);
  flex-shrink: 0;
  margin-top: 3px;
}
.rv-loss b {
  display: block;
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--up);
}
.rv-loss-amount {
  display: inline-block;
  margin-top: 2px;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--up);
}
.rv-loss small {
  display: block;
  margin-top: 2px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-sub);
}

.rv-lines {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.rv-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--text-sm);
}
.rv-lines span {
  color: var(--ink-sub);
  font-weight: 500;
}
.rv-lines b {
  font-weight: 800;
}

.rv-insight {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.5;
}

/* ── 객단가 인상 비교 ── */
.rv-priceup {
  margin-top: 16px;
}
.rv-priceup-title {
  margin-bottom: 8px;
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--ink-mute);
}
.rv-priceup ul {
  display: grid;
  gap: 6px;
}
.rv-priceup li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 13px;
  border-radius: 10px;
  background: var(--bg);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-sub);
}
.rv-priceup li b {
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}
.rv-priceup li b em {
  font-style: normal;
  color: var(--brand-600);
}

/* ── 복사 버튼 아이콘 ── */
.rv-btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── 값 갱신 팝 모션 (transform만 사용) ── */
@keyframes rv-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.is-pop {
  display: inline-block;
  transform-origin: left center;
  animation: rv-pop 240ms var(--ease-out-expo);
}
.rv-lines b.is-pop,
.rv-priceup li b.is-pop {
  transform-origin: right center;
}

/* ── 패널 전환 모션 ── */
@keyframes rv-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.rv-panel:not([hidden]) {
  animation: rv-fade 320ms var(--ease-out-expo);
}

@media (prefers-reduced-motion: reduce) {
  .rv-panel:not([hidden]),
  .is-pop {
    animation: none;
  }
}

/* ── 반응형 ── */
@media (max-width: 480px) {
  .rv-money {
    padding: 4px 14px;
  }
  .rv-chip {
    flex: 1;
    padding-inline: 0;
    text-align: center;
  }
  .rv-tabbar .seg-btn {
    padding: 11px 0;
  }
}
