/* MODI Hair Plant — graft calculator */

:root {
  --modi-green: #1d6b3a;
  --modi-green-dark: #14512b;
  --modi-green-light: #e7f1ea;
  --modi-green-tint: #eef3ea;

  /* Warm cream system */
  --bg: #f6f1e8;
  --surface: #fffdf7;
  --ink: #2a2a26;
  --muted: #8a8478;
  --border: #e5dfd1;
}

* { box-sizing: border-box; }

html, body, #root {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Pretendard', 'Noto Sans TC', -apple-system, system-ui, sans-serif;
  font-feature-settings: 'ss01' on, 'ss02' on, 'cv11' on;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
}

body {
  background: #efeae0;
}

[data-style] { /* compatibility with old tweak attr */ }

.app {
  height: 100%;
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  flex: 1;
}

/* Desktop / tablet: tighter top spacing (no notch to clear) */
@media (min-width: 768px) {
  .app .topbar { padding: 20px 24px 8px; }
  .app .scroll { padding: 0 28px 28px; }
  .app .footer { padding: 14px 28px 24px; }
  .app .intro-logo-wrap { padding-top: 40px; }
}

/* ────────── Top bar ────────── */
.topbar {
  display: grid;
  grid-template-columns: 36px 1fr 56px;
  align-items: center;
  padding: calc(env(safe-area-inset-top) + 8px) 16px 8px;
  flex-shrink: 0;
  gap: 8px;
}

/* Intro 화면 우상단 언어 스위처 */
.lang-switcher {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 12px);
  right: 16px;
  display: flex;
  gap: 4px;
  z-index: 10;
}
.lang-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lang-btn.on {
  background: var(--modi-green);
  color: white;
  border-color: var(--modi-green);
  font-weight: 600;
}
.lang-btn:hover:not(.on) {
  background: var(--modi-green-tint);
  color: var(--modi-green);
}

.topbar-back {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s;
}
.topbar-back:hover { background: var(--modi-green-tint); }
.topbar-back:active { transform: scale(0.94); }

.topbar-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  justify-self: center;
}

.topbar-step { justify-self: end; }

.topbar-step {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ────────── Progress ────────── */
.progress {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 20px 8px;
  flex-shrink: 0;
}
.progress-fill {
  height: 100%;
  background: var(--modi-green);
  border-radius: 2px;
  transition: width 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

/* ────────── Scroll body ────────── */
.scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0 20px 24px;
}
.scroll::-webkit-scrollbar { display: none; }

/* ────────── Step heading ────────── */
.step-eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--modi-green);
  text-transform: uppercase;
  font-weight: 600;
  margin: 4px 0 12px;
}
.step-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 10px;
  text-wrap: balance;
}
.step-sub {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 24px;
  text-wrap: pretty;
}

/* ────────── Inputs ────────── */
.field { margin-bottom: 16px; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.field-label .req { color: var(--modi-green); margin-left: 2px; }

.input, .textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.input:focus, .textarea:focus {
  border-color: var(--modi-green);
  box-shadow: 0 0 0 4px rgba(29, 107, 58, 0.1);
}
.input::placeholder { color: #b9b6ac; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.field-row.two {
  grid-template-columns: 1fr 1fr;
}

/* ────────── Buttons ────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s, box-shadow 0.15s;
  text-decoration: none;
  width: 100%;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--modi-green);
  color: white;
  box-shadow: 0 4px 14px rgba(29, 107, 58, 0.25);
}
.btn-primary:hover { background: var(--modi-green-dark); }
.btn-primary:disabled {
  background: #c9d2cc;
  color: #fff;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--bg); }

.btn-kakao {
  background: #fee500;
  color: #181600;
}
.btn-kakao:hover { background: #ffd900; }

/* ────────── Footer (sticky CTA) ────────── */
.footer {
  flex-shrink: 0;
  padding: 12px 20px 20px;
  background: linear-gradient(to top, var(--bg) 75%, transparent);
}
.footer-stack { display: flex; flex-direction: column; gap: 8px; }

/* ────────── Pattern cards (Norwood) ────────── */
.pattern-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pattern-card {
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  padding: 14px 12px 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  font-family: inherit;
  position: relative;
}
.pattern-card:hover { border-color: #b8d2c0; }
.pattern-card.selected {
  border-color: var(--modi-green);
  background: var(--modi-green-tint);
  box-shadow: 0 0 0 3px rgba(29, 107, 58, 0.08);
}
.pattern-card-svg {
  width: 100%;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.pattern-card-svg img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.pattern-card-label {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 2px;
}
.pattern-card-desc {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}
.pattern-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--modi-green);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.pattern-card.selected .pattern-check { opacity: 1; }

/* ────────── Photo upload ────────── */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.photo-slot {
  aspect-ratio: 1;
  border: 1.5px dashed #c9cdc6;
  border-radius: 16px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.15s;
}
.photo-slot.full {
  border-style: solid;
  border-color: var(--modi-green);
}
.photo-slot:hover { border-color: var(--modi-green); background: var(--modi-green-tint); }
.photo-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-slot-icon {
  width: 28px;
  height: 28px;
  color: var(--modi-green);
}
.photo-slot-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.photo-slot-hint {
  font-size: 10.5px;
  color: var(--muted);
}
.photo-overlay-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 11px;
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
}

/* ────────── Chips ────────── */
.chip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.chip {
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 14px 14px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chip:hover { border-color: #b8d2c0; }
.chip.selected {
  border-color: var(--modi-green);
  background: var(--modi-green-tint);
  color: var(--modi-green-dark);
  font-weight: 600;
}
.chip-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  color: var(--modi-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ────────── AI analysis card ────────── */
.ai-card {
  margin: 16px 0 4px;
  padding: 18px 18px 16px;
  background: var(--surface);
  border: 1.5px solid var(--modi-green);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.ai-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--modi-green), #4fb27a, var(--modi-green));
}
.ai-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ai-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--modi-green-dark);
}
.ai-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--modi-green);
  color: white;
  margin-left: 4px;
  vertical-align: middle;
}
.ai-card-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 12px;
}
.ai-card-btn {
  width: 100%;
}
.ai-card-foot {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0 0;
  text-align: center;
}
.ai-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--modi-green-tint);
  border-top-color: var(--modi-green);
  border-radius: 50%;
  animation: ai-spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes ai-spin {
  to { transform: rotate(360deg); }
}
.ai-card-delta {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.ai-delta-up {
  color: #b54040;
  background: #fbecec;
  padding: 6px 12px;
  border-radius: 999px;
}
.ai-delta-down {
  color: #2a7a3a;
  background: var(--modi-green-tint);
  padding: 6px 12px;
  border-radius: 999px;
}
.ai-delta-zero {
  color: var(--muted);
  background: var(--bg);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ────────── Crown treatment tip ────────── */
.crown-tip {
  margin-top: 14px;
  padding: 16px 16px;
  background: var(--modi-green-tint);
  border: 1px solid #c8dccc;
  border-radius: 16px;
}
.crown-tip-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--modi-green-dark);
}
.crown-tip-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

/* ────────── Result ────────── */
.result-hero {
  background: linear-gradient(160deg, var(--modi-green) 0%, var(--modi-green-dark) 100%);
  border-radius: 24px;
  padding: 28px 24px;
  color: white;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}
.result-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.result-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.result-eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 8px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.result-greeting {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 18px;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}
.result-number {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
}
.result-number .unit {
  font-size: 22px;
  font-weight: 500;
  margin-left: 4px;
  opacity: 0.9;
}
.result-range {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

/* AI 상태 pill — 결과 카드 안에 직접 표시 */
.result-ai-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 7px 12px 7px 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: white;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.result-ai-pill-done {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
  animation: pillPop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.result-ai-pill-error {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  opacity: 0.85;
}
.result-ai-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: ai-spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes pillPop {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 18px;
  margin-bottom: 12px;
}
.result-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.breakdown-row:last-child { border-bottom: none; }
.breakdown-row .label { color: var(--ink); font-weight: 500; }
.breakdown-row .val {
  color: var(--modi-green-dark);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.note-box {
  background: var(--modi-green-tint);
  border-left: none;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
}
.note-box-icon {
  color: var(--modi-green);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ────────── Intro screen ────────── */
.intro {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 24px 28px;
  text-align: center;
  align-items: center;
  justify-content: space-between;
}
.intro-logo-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 80px;
}
.intro-logo {
  width: 130px;
  height: auto;
}
.intro-mark {
  width: 88px;
  height: 88px;
  border-radius: 50%;
}
.intro-headline {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin: 0;
  text-wrap: balance;
}
.intro-sub {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: 280px;
  text-wrap: pretty;
}
.intro-meta {
  display: flex;
  gap: 18px;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.intro-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.intro-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background: var(--modi-green);
}
.intro-cta { width: 100%; }
.intro-tos {
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.5;
}
.intro-tos a {
  color: var(--modi-green);
  text-decoration: underline;
}

/* ────────── Misc ────────── */
.section-label {
  font-size: 13px;
  font-weight: 600;
  margin: 18px 0 10px;
  color: var(--ink);
}

.fade-in {
  animation: fadeIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.toggle-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
  background: var(--bg);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.toggle-btn {
  border: none;
  background: transparent;
  padding: 12px 8px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.toggle-btn.on {
  background: var(--surface);
  color: var(--modi-green-dark);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* iOS frame body — ensures the app fills the iOS viewport */
.ios-app-host {
  height: 100%;
  width: 100%;
}

/* ────────── 결과 화면의 수가 안내 CTA 카드 ────────── */
.price-cta-card {
  margin: 22px 0 4px;
  padding: 18px;
  background: linear-gradient(135deg, #f3f8f0 0%, #ebf2e8 100%);
  border: 1.5px solid var(--modi-green-tint);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.price-cta-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.price-cta-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--modi-green-dark);
  margin-bottom: 2px;
}
.price-cta-sub {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ────────── 수가 동의 게이트 ────────── */
.gate-preview {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.gate-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.gate-preview-row:last-of-type { border-bottom: none; }
.gate-preview-row .gate-mk {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}
.gate-preview-row b {
  font-size: 16px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.gate-preview-row.gate-blur b {
  color: var(--modi-green-dark);
}
.gate-preview-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--muted);
}
.blurred {
  filter: blur(5px);
  -webkit-filter: blur(5px);
  letter-spacing: 0.06em;
  user-select: none;
}

.disclaimer-box {
  background: #fdf4e7;
  border: 1px solid #e8d4a8;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: #5a4115;
  margin-bottom: 16px;
}
.disclaimer-box b { color: #3d2c0e; }

/* ────────── 체크박스 (커스텀) ────────── */
.chk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
  user-select: none;
}
.chk input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chk-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid #c9cdc6;
  border-radius: 6px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.15s;
  margin-top: 1px;
}
.chk-box svg { opacity: 0; transition: opacity 0.1s; }
.chk input:checked ~ .chk-box,
.chk.on .chk-box,
.consent-master.on .chk-box {
  background: var(--modi-green);
  border-color: var(--modi-green);
}
.chk input:checked ~ .chk-box svg,
.chk.on .chk-box svg,
.consent-master.on .chk-box svg { opacity: 1; }
.chk-label {
  flex: 1;
  display: block;
  line-height: 1.45;
  min-width: 0;
}
.chk-sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.req-tag, .opt-tag {
  display: inline-block;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: 1px;
}
.req-tag { background: var(--modi-green); color: white; }
.opt-tag { background: #e5dfd1; color: #6a634f; }

/* ────────── 동의 마스터 (전체 동의) ────────── */
.consent-master {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--modi-green-tint);
  border: 1.5px solid var(--modi-green-tint);
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 12px;
  transition: all 0.15s;
}
.consent-master.on {
  border-color: var(--modi-green);
  background: #e1ecdb;
}
.consent-master b {
  font-size: 15px;
  color: var(--modi-green-dark);
  font-weight: 700;
}

/* ────────── 동의 항목 (개별) ────────── */
.consent-list {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}
.consent-item {
  position: relative;
  padding: 14px 56px 14px 16px;
  border-bottom: 1px solid var(--border);
}
.consent-item:last-child { border-bottom: none; }
.consent-detail-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.12s;
}
.consent-detail-btn:hover { color: var(--modi-green); border-color: var(--modi-green); }
.consent-detail {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.consent-detail b {
  display: inline-block;
  min-width: 88px;
  color: var(--modi-green-dark);
  font-weight: 600;
  margin-right: 8px;
}
.consent-detail > div span { color: var(--muted); white-space: pre-line; }

.privacy-link {
  text-align: center;
  font-size: 12.5px;
  margin: 14px 0 0;
}
.privacy-link a {
  color: var(--modi-green);
  text-decoration: underline;
}

.cta-hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 8px 0 0;
}

/* ────────── 수가 상세 페이지 ────────── */
.price-hero {
  background: linear-gradient(160deg, var(--modi-green) 0%, var(--modi-green-dark) 100%);
  border-radius: 18px;
  padding: 18px 20px;
  color: white;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.price-hero::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.price-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  position: relative;
  z-index: 1;
}
.price-hero-row .ph-mk {
  font-size: 12.5px;
  opacity: 0.85;
}
.price-hero-row b {
  font-size: 15px;
  font-weight: 600;
}
.price-hero-row.price-hero-total {
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.price-hero-row.price-hero-total b {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.price-discount-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 4px 4px 10px;
}

.price-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
}
.price-section-head {
  margin-bottom: 14px;
}
.price-section-head h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink);
}
.price-section-head .optional {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px;
}
.price-section-head p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
.price-section-foot {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}

/* 시술 방식 — 리스트 형태 */
.method-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.method-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.12s;
  width: 100%;
}
.method-row:hover { border-color: #b8d2c0; }
.method-row.on {
  border-color: var(--modi-green);
  background: var(--modi-green-tint);
  box-shadow: 0 0 0 3px rgba(29, 107, 58, 0.07);
}
.radio {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #c9cdc6;
  background: white;
  margin-top: 2px;
  position: relative;
  transition: all 0.12s;
}
.method-row.on .radio {
  border-color: var(--modi-green);
}
.method-row.on .radio::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--modi-green);
}
.method-row-mid {
  flex: 1;
  min-width: 0;
}
.method-row-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.method-row-sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.method-row-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}
.method-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.method-row-price {
  text-align: right;
  flex-shrink: 0;
}
.mrp-amount {
  font-size: 14px;
  font-weight: 700;
  color: var(--modi-green-dark);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mrp-per {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
}
.tag-recommend {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  background: var(--modi-green);
  color: white;
  border-radius: 4px;
}
.tag-small {
  display: inline-block;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-weight: 500;
}

/* 모낭줄기세포 — 카드 그리드 */
.stem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.stem-card {
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.12s;
}
.stem-card:hover { border-color: #b8d2c0; }
.stem-card.on {
  border-color: var(--modi-green);
  background: var(--modi-green-tint);
}
.stem-card-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.stem-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.stem-rounds {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--modi-green-tint);
  color: var(--modi-green-dark);
  font-weight: 600;
}
.stem-card.on .stem-rounds {
  background: var(--modi-green);
  color: white;
}
.stem-card-body { display: flex; flex-direction: column; gap: 2px; }
.stem-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--modi-green-dark);
  font-variant-numeric: tabular-nums;
}
.stem-sub {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.stem-save {
  font-size: 10.5px;
  color: #b54040;
  font-weight: 600;
}

/* 비용 명세 */
.bd-rows {
  display: flex;
  flex-direction: column;
}
.bd-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.bd-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.bd-mk {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.45;
}
.bd-save { color: var(--modi-green); font-weight: 600; }
.bd-amt {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--modi-green-dark);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}
.bd-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  margin-top: 4px;
}
.bd-total span {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}
.bd-total strong {
  font-size: 24px;
  font-weight: 700;
  color: var(--modi-green-dark);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* "곧 연락드릴게요" callout */
.price-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--modi-green-tint);
  border: 1px solid #c8dccc;
  border-radius: 14px;
  margin-bottom: 14px;
}
.pc-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--modi-green-dark);
  margin-bottom: 4px;
}
.pc-body {
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.55;
}

/* ────────── 완료 화면 ────────── */
.price-done {
  padding-top: 32px;
  text-align: center;
}
.done-check {
  display: flex;
  justify-content: center;
  color: var(--modi-green);
  margin-bottom: 12px;
  animation: doneIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes doneIn {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.done-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 22px 0 0;
  text-align: left;
}
.ds-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.ds-row:last-child { border-bottom: none; }
.ds-row span { color: var(--ink); font-weight: 500; }
.ds-row b {
  color: var(--modi-green-dark);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ds-row.ds-total {
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  border-bottom: none;
}
.ds-row.ds-total span { font-size: 13px; color: var(--muted); }
.ds-row.ds-total b { font-size: 20px; }
