/* ═══════════ 점판 커미션 계산기 (라이트 배경 전용 입력 UI) ═══════════ */

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

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

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

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

/* ── 금액 인풋 ── */
.rt-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;
}
.rt-money:focus-within {
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-100);
}
.rt-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;
}
.rt-money input:focus {
  outline: none;
}
.rt-money input::placeholder {
  color: var(--ink-mute);
}
.rt-unit {
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--ink-mute);
  flex-shrink: 0;
}

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

/* ── 빠른 조절 칩 ── */
.rt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.rt-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;
}
.rt-chip:hover {
  background: var(--brand-100);
}
.rt-chip:active {
  transform: scale(0.93);
}
.rt-chip.is-on {
  background: var(--brand);
  color: #fff;
}
.rt-chip-clear {
  background: var(--bg);
  color: var(--ink-mute);
}
.rt-chip-clear:hover {
  background: var(--line);
  color: var(--ink-sub);
}

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

.rt-range {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
}
.rt-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;
}
.rt-range::-webkit-slider-thumb:active {
  transform: scale(1.12);
}
.rt-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);
}
.rt-range:focus-visible {
  outline: 3px solid var(--brand-300);
  outline-offset: 4px;
}

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

.rt-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);
}
.rt-big-accent {
  color: var(--brand-600);
}

/* 강조 노트: "시술 시간 0분" (노쇼 손실 박스와 같은 문법, 브랜드 컬러) */
.rt-note {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--brand-50);
}
.rt-note svg {
  width: 20px;
  height: 20px;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 3px;
}
.rt-note b {
  display: block;
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--brand-700);
}
.rt-note span {
  display: block;
  margin-top: 2px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-sub);
}

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

.rt-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;
}

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

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

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

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

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