:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --ink: #14171c;
  --sub: #626a76;
  --line: #e4e7ec;
  --brand: #2b5df5;
  --brand-ink: #ffffff;
  --brand-soft: #eaf0ff;
  --ok: #12a150;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,20,26,.05), 0 8px 24px rgba(16,20,26,.07);
  --font: -apple-system, "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", "Noto Sans KR", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  padding: 0 20px; height: 60px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 19px; font-weight: 800; letter-spacing: -.02em;
  background: none; border: 0; cursor: pointer; color: var(--ink);
  font-family: inherit; white-space: nowrap; flex-shrink: 0;
}
.brand-mark { width: 26px; height: 26px; color: var(--brand); }
.topbar-right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.topbar-right .btn { white-space: nowrap; }

.stepnav { display: flex; gap: 2px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.stepnav::-webkit-scrollbar { display: none; }
.stepnav .snode {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--muted, #8C847B); white-space: nowrap;
  padding: 5px 10px; border-radius: 99px; font-weight: 600;
}
.stepnav .snode .dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: #e8eaee; color: var(--muted, #8C847B);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700;
}
.stepnav .snode.done { color: var(--sub); cursor: pointer; }
.stepnav .snode.done .dot { background: #d9f2e3; color: var(--ok); }
.stepnav .snode.cur { color: var(--brand); background: var(--brand-soft); }
.stepnav .snode.cur .dot { background: var(--brand); color: #fff; }
.stepnav .sep { color: #d4d8de; font-size: 11px; }

/* ---------- layout ---------- */
.app { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 28px 20px 60px; }
.foot {
  text-align: center; padding: 18px; font-size: 12px; color: var(--muted, #8C847B);
  border-top: 1px solid var(--line); background: #fff;
}

.step-head { margin-bottom: 22px; }
.step-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.step-head p { color: var(--sub); margin-top: 4px; font-size: 14.5px; }
.step-actions {
  display: flex; gap: 10px; justify-content: space-between; align-items: center;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
}

/* ---------- buttons ---------- */
.btn {
  font-family: inherit; font-size: 15px; font-weight: 700;
  padding: 12px 22px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer;
  transition: transform .06s, box-shadow .15s, background .15s;
}
.btn:hover { box-shadow: var(--shadow); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.primary:hover { background: #1e4de0; }
.btn.primary:disabled { background: rgba(44, 40, 37, 0.18); border-color: rgba(44, 40, 37, 0.18); cursor: not-allowed; box-shadow: none; }
.btn.big { font-size: 16.5px; padding: 15px 32px; border-radius: 14px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--sub); }
.btn.ghost:hover { background: #eceef1; box-shadow: none; }

/* ---------- landing ---------- */
.hero { text-align: center; padding: 44px 0 10px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 99px;
}
.hero h1 { font-size: clamp(30px, 5.4vw, 46px); font-weight: 900; letter-spacing: -.03em; margin: 18px 0 10px; line-height: 1.25; }
.hero h1 .accent { color: var(--brand); }
.hero p { color: var(--sub); font-size: clamp(15px, 2.4vw, 17px); max-width: 560px; margin: 0 auto; }
.hero .cta { margin-top: 26px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.hero-cards {
  margin: 44px auto 8px; display: flex; justify-content: center; gap: 22px;
  perspective: 900px; flex-wrap: wrap; padding: 0 6px;
}
.hero-cards .hc {
  width: 234px; border-radius: 10px; overflow: hidden;
  box-shadow: 0 12px 32px rgba(16,20,26,.16);
  animation: float 5s ease-in-out infinite;
}
.hero-cards .hc:nth-child(2) { animation-delay: 1.2s; }
.hero-cards .hc:nth-child(3) { animation-delay: 2.4s; }
.hero-cards .hc svg { display: block; width: 100%; height: auto; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-9px) } }

.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 52px; }
.how .hw {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; text-align: left;
}
.how .hw .n {
  width: 28px; height: 28px; border-radius: 9px; background: var(--brand-soft); color: var(--brand);
  font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.how .hw b { font-size: 15px; display: block; margin-bottom: 3px; }
.how .hw span { font-size: 13px; color: var(--sub); }

/* ---------- style pick ---------- */
.style-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.style-card {
  background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 14px; cursor: pointer; text-align: left; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.style-card:hover { box-shadow: var(--shadow); }
.style-card.sel { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.style-card .thumb { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.style-card .thumb svg { display: block; width: 100%; height: auto; }
.style-card b { display: block; margin-top: 12px; font-size: 15.5px; }
.style-card span { font-size: 13px; color: var(--sub); }

/* ---------- info form ---------- */
.info-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
.form-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: #3d4450; }
.field label .req { color: #e5484d; }
.field input {
  font-family: inherit; font-size: 15px; padding: 11px 13px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--card, #FDFCF8);
  transition: border-color .12s;
}
.field input:focus { outline: none; border-color: var(--brand); background: #fff; }
.form-tools { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.live-side { position: sticky; top: 84px; }
.live-side .cap { font-size: 13px; font-weight: 700; color: var(--sub); margin-bottom: 10px; }
.live-card { border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(16,20,26,.14); }
.live-card svg { display: block; width: 100%; height: auto; }
.live-note { margin-top: 12px; font-size: 12.5px; color: var(--muted, #8C847B); }

/* ---------- gallery ---------- */
.gal-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gal-item {
  border: 2px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer;
  background: #fff; padding: 0; font-family: inherit; position: relative;
  transition: border-color .12s, transform .12s, box-shadow .15s;
}
.gal-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.gal-item.sel { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.gal-item svg { display: block; width: 100%; height: auto; }
.gal-item .chk {
  position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand); color: #fff; display: none; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.gal-item.sel .chk { display: flex; }
.gal-side { position: sticky; top: 84px; }
.gal-side .panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.gal-side .cap { font-size: 13px; font-weight: 700; color: var(--sub); margin-bottom: 10px; }
.gal-side .big { border-radius: 10px; overflow: hidden; box-shadow: 0 10px 28px rgba(16,20,26,.16); }
.gal-side .big svg { display: block; width: 100%; height: auto; }
.gal-side .meta { margin-top: 12px; font-size: 13.5px; color: var(--sub); }
.gal-count { font-size: 13.5px; color: var(--sub); margin-bottom: 12px; }
.gal-count b { color: var(--brand); }

/* ---------- color step ---------- */
.color-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.preview-zone { position: sticky; top: 84px; }
.preview-card { border-radius: 12px; overflow: hidden; box-shadow: 0 16px 44px rgba(16,20,26,.18); }
.preview-card.rounded { border-radius: 22px; }
.preview-card svg { display: block; width: 100%; height: auto; }
.side-toggle { display: flex; gap: 6px; margin-top: 14px; justify-content: center; }
.side-toggle button {
  font-family: inherit; font-size: 13.5px; font-weight: 700; padding: 8px 18px;
  border-radius: 99px; border: 1.5px solid var(--line); background: #fff; color: var(--sub); cursor: pointer;
}
.side-toggle button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pal-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
  font-family: inherit; text-align: left; transition: border-color .12s;
}
.pal-item.sel { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pal-item .sw { display: flex; }
.pal-item .sw i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); margin-left: -6px; }
.pal-item .sw i:first-child { margin-left: 0; }
.pal-item b { font-size: 13.5px; }

/* ---------- options ---------- */
.opt-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.opt-group { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; }
.opt-group h3 { font-size: 15px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.opt-group h3 small { font-size: 12.5px; color: var(--muted, #8C847B); font-weight: 600; }
.opt-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.opt-chip {
  font-family: inherit; padding: 12px 10px; border-radius: 12px;
  border: 2px solid var(--line); background: #fff; cursor: pointer; text-align: center;
  transition: border-color .12s;
}
.opt-chip.sel { border-color: var(--brand); background: var(--brand-soft); }
.opt-chip b { display: block; font-size: 14px; }
.opt-chip span { font-size: 12px; color: var(--sub); }
.opt-chip.sel span { color: var(--brand); }

.bill { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 84px; }
.bill h3 { font-size: 15px; margin-bottom: 12px; }
.bill .row { display: flex; justify-content: space-between; font-size: 14px; color: var(--sub); padding: 5px 0; }
.bill .row b { color: var(--ink); font-weight: 600; }
.bill .total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.bill .total .t { font-size: 14px; font-weight: 700; }
.bill .total .v { font-size: 22px; font-weight: 900; color: var(--brand); letter-spacing: -.02em; }
.bill .hint { font-size: 12px; color: var(--muted, #8C847B); margin-top: 8px; }

/* ---------- vendors ---------- */
.vendor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vendor-card {
  font-family: inherit; text-align: left; background: var(--panel);
  border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; cursor: pointer;
  transition: border-color .12s, box-shadow .15s; position: relative;
}
.vendor-card:hover { box-shadow: var(--shadow); }
.vendor-card.sel { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.vendor-card .vtag {
  position: absolute; top: 16px; right: 16px;
  font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 99px;
  background: var(--brand-soft); color: var(--brand);
}
.vendor-card .vname { font-size: 16.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.vendor-card .vloc { font-size: 13px; color: var(--sub); margin: 2px 0 12px; }
.vendor-card .vfacts { display: flex; gap: 14px; flex-wrap: wrap; }
.vendor-card .vfacts .f { font-size: 13px; color: var(--sub); }
.vendor-card .vfacts .f b { color: var(--ink); }
.vendor-card .vprice { margin-top: 12px; font-size: 15px; font-weight: 800; }
.vendor-card .vprice small { font-weight: 600; color: var(--sub); font-size: 12px; }
.vendor-card .veta { margin-top: 4px; font-size: 13px; color: var(--ok); font-weight: 700; }

/* ---------- checkout ---------- */
.pay-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.summary-mini { display: flex; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.summary-mini .sc { width: 108px; border-radius: 6px; overflow: hidden; flex-shrink: 0; box-shadow: 0 3px 10px rgba(16,20,26,.15); }
.summary-mini .sc svg { display: block; width: 100%; height: auto; }
.summary-mini .st b { display: block; font-size: 14.5px; }
.summary-mini .st span { font-size: 12.5px; color: var(--sub); }
.notice {
  background: rgba(151, 118, 59, 0.08); border: 1px solid rgba(151, 118, 59, 0.34); color: #7a5c00;
  font-size: 13px; padding: 10px 14px; border-radius: 10px; margin-top: 14px;
}

/* ---------- done ---------- */
.done-wrap { max-width: 640px; margin: 0 auto; text-align: center; padding-top: 20px; }
.done-wrap .bigcheck {
  width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%;
  background: #d9f2e3; color: var(--ok); display: flex; align-items: center; justify-content: center;
}
.done-wrap h1 { font-size: 27px; font-weight: 900; letter-spacing: -.02em; }
.done-wrap .ordno { color: var(--sub); margin-top: 6px; font-size: 14.5px; }
.done-wrap .ordno b { color: var(--ink); }
.eta-box {
  margin: 22px auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-align: left;
}
.eta-box .erow { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; color: var(--sub); }
.eta-box .erow b { color: var(--ink); font-weight: 700; }
.eta-box .erow.big b { color: var(--brand); font-size: 17px; font-weight: 900; }
.dl-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.done-cards { display: flex; gap: 14px; justify-content: center; margin: 24px 0 6px; }
.done-cards .dc { width: 200px; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 26px rgba(16,20,26,.16); }
.done-cards .dc svg { display: block; width: 100%; height: auto; }
.dl-note { font-size: 12.5px; color: var(--muted, #8C847B); margin-top: 12px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
  padding: 12px 22px; border-radius: 12px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 99; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .stepnav .snode span.lbl { display: none; }
  .stepnav .snode.cur span.lbl { display: inline; }
  .how { grid-template-columns: 1fr 1fr; }
  .info-wrap, .gal-wrap, .color-wrap, .opt-wrap { grid-template-columns: 1fr; }
  .live-side, .gal-side, .preview-zone { position: static; }
  .gal-side { order: -1; margin-bottom: 6px; }
  .preview-zone { max-width: 460px; margin: 0 auto 8px; }
  .style-grid { grid-template-columns: 1fr 1fr; }
  .gal-grid { grid-template-columns: 1fr 1fr; }
  .vendor-grid { grid-template-columns: 1fr; }
  .pay-methods { grid-template-columns: 1fr 1fr; }
}
/* ============================================================
   신규: 업종 추천 칩 (스타일 단계)
   ============================================================ */
.ind-row { margin-bottom: 18px; }
.ind-label { font-size: 12.5px; color: var(--sub); display: block; margin-bottom: 8px; }
.ind-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.ind-chip {
  font-family: inherit; font-size: 12.5px; font-weight: 700; padding: 6px 13px;
  border-radius: 99px; border: 1.5px solid var(--line); background: #fff; color: var(--sub); cursor: pointer;
}
.ind-chip.sel { background: var(--ink); color: #fff; border-color: var(--ink); }
.rec-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 800;
  padding: 3px 9px; border-radius: 99px;
}
.style-card { position: relative; }
.rec-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-left: 6px; vertical-align: middle; }

/* ============================================================
   신규: 로고 업로드 / 팀 주문 (정보 입력 단계)
   ============================================================ */
.form-tools { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.logo-upl {
  display: flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 14px; border-radius: 10px; border: 1.5px dashed var(--line);
  cursor: pointer; flex-shrink: 0; background: var(--card, #FDFCF8); white-space: nowrap;
}
.logo-upl:hover { border-color: var(--brand); background: var(--brand-soft); }
.logo-upl .ic { font-size: 16px; }
.logo-upl span:not(.ic) { font-size: 13px; font-weight: 700; color: var(--sub); }
.logo-upl.has-img { padding: 4px 12px 4px 4px; border-style: solid; }
.logo-upl.has-img img { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; background: #fff; }
.logo-upl.has-img em { font-size: 12px; font-style: normal; font-weight: 700; color: var(--brand); }
.team-toggle {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line); cursor: pointer; font-size: 13.5px; color: var(--sub);
}
.team-toggle input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); flex-shrink: 0; }
.team-toggle b { color: var(--ink); }
.team-box { margin-top: 14px; background: var(--card, #FDFCF8); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.team-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 26px; gap: 8px; margin-bottom: 8px; align-items: center;
}
.team-row input {
  font-family: inherit; font-size: 13px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; min-width: 0;
}
.team-row.team-head { font-size: 11.5px; font-weight: 700; color: var(--muted, #8C847B); margin-bottom: 6px; }
.team-row.team-head-self { grid-template-columns: 1fr; background: var(--brand-soft); padding: 7px 10px; border-radius: 8px; font-size: 13px; color: var(--brand); margin-bottom: 8px; }
.team-del { border: 0; background: #f1eef0; color: #b34a4a; width: 26px; height: 26px; border-radius: 7px; cursor: pointer; font-size: 12px; }
.btn.small { padding: 8px 14px; font-size: 13px; border-radius: 9px; }
.team-total { margin-top: 10px; font-size: 13px; color: var(--sub); }
.team-total b { color: var(--brand); }

/* ============================================================
   신규: 3D 목업 미리보기
   ============================================================ */
.mockup-stage { transition: all .25s; }
.mockup-stage.on {
  perspective: 1200px; padding: 40px 20px; border-radius: 20px;
  background: radial-gradient(ellipse at 50% 0%, #eef0f3, #dfe2e6 75%);
}
.mockup-stage.on .mockup-card {
  transform: rotateX(38deg) rotateZ(-8deg) scale(.94);
  transform-style: preserve-3d;
  filter: drop-shadow(0 26px 20px rgba(20,24,30,.28));
  transition: transform .3s;
}
.mockup-stage.on .preview-card, .mockup-stage.on .live-card, .mockup-stage.on .big { box-shadow: none; }
.mock-toggle { white-space: nowrap; }
.mock-toggle.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.qr-note { margin-top: 12px; font-size: 12.5px; color: var(--sub); background: var(--brand-soft); padding: 10px 13px; border-radius: 10px; text-align: center; }

/* ============================================================
   신규: 후가공 / 확인 게이트 / 세금계산서 (옵션·결제 단계)
   ============================================================ */
.confirm-gate h3 { margin-bottom: 10px; }
.agree-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; font-size: 12.5px; color: var(--sub); cursor: pointer; }
.agree-row input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--brand); flex-shrink: 0; }
.agree-row a { color: var(--brand); text-decoration: underline; }
.tax-toggle { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-size: 13px; color: var(--sub); cursor: pointer; }
.tax-toggle input { width: 16px; height: 16px; accent-color: var(--brand); }

/* ============================================================
   신규: 모달 (확대 검수 / 공유 / 리뷰 / 문의)
   ============================================================ */
.modal-ov {
  position: fixed; inset: 0; background: rgba(16,20,26,.5); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity .18s;
}
.modal-ov.show { opacity: 1; }
.modal-box {
  background: #fff; border-radius: 16px; padding: 26px; max-width: 480px; width: 100%;
  max-height: 86vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3);
  transform: translateY(10px); transition: transform .18s;
}
.modal-ov.show .modal-box { transform: translateY(0); }
.modal-box h3 { font-size: 18px; margin-bottom: 14px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.zoom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zoom-grid svg { width: 100%; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.zoom-fields { margin-top: 16px; display: grid; gap: 6px; }
.zf { display: flex; justify-content: space-between; font-size: 13.5px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.zf span { color: var(--sub); } .zf b { color: var(--ink); }
.star-pick { font-size: 30px; letter-spacing: 4px; cursor: pointer; }
.star-pick span { color: #e2e5ea; }
.star-pick span.on { color: var(--gold-deep, #7A5E2C); }
#rev-text {
  width: 100%; font-family: inherit; font-size: 14px; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 10px; resize: vertical;
}
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { font-size: 13.5px; font-weight: 700; cursor: pointer; }
.faq p { font-size: 13px; color: var(--sub); margin-top: 8px; line-height: 1.6; }

/* ============================================================
   신규: 홈 — 재주문 배너 / 비즈 스트립 / 리뷰
   ============================================================ */
.reorder-banner {
  margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px;
  max-width: 640px; margin-left: auto; margin-right: auto;
}
.reorder-banner.due { background: rgba(151, 118, 59, 0.08); border-color: rgba(151, 118, 59, 0.34); }
.rb-text { text-align: left; } .rb-text b { display: block; font-size: 14.5px; } .rb-text span { font-size: 12.5px; color: var(--sub); }
.biz-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.bs { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: left; }
.bs b { display: block; font-size: 14px; margin-bottom: 3px; } .bs span { font-size: 12.5px; color: var(--sub); }
.reviews { margin-top: 48px; text-align: left; }
.rev-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.rev-head b { font-size: 17px; } .rev-head span { font-size: 12.5px; color: var(--sub); }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rev-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.rev-top { display: flex; justify-content: space-between; align-items: baseline; }
.rev-top b { font-size: 13.5px; } .rev-top span { font-size: 11.5px; color: var(--sub); }
.rev-stars { color: var(--gold-deep, #7A5E2C); font-size: 13px; margin: 4px 0 8px; }
.rev-card p { font-size: 12.5px; color: #4a5058; line-height: 1.55; }

/* ============================================================
   신규: 시안 공유 미리보기 페이지
   ============================================================ */
.share-preview { max-width: 420px; margin: 60px auto; text-align: center; }
.share-preview .cap { font-size: 13px; font-weight: 700; color: var(--sub); margin-bottom: 12px; }
.share-preview .big svg { border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.15); margin-bottom: 20px; }
.share-preview .btn { width: 100%; margin-bottom: 10px; }

/* ============================================================
   신규: 디지털 명함 프로필 페이지 (#p/id)
   ============================================================ */
.profile-wrap { max-width: 420px; margin: 40px auto; text-align: center; }
.profile-wrap .ph { color: var(--sub); font-size: 14px; padding: 60px 0; }
.profile-card { border-radius: 12px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.18); margin-bottom: 22px; }
.profile-card svg { display: block; width: 100%; }
.profile-wrap h1 { font-size: 24px; font-weight: 900; }
.profile-wrap .psub { color: var(--sub); margin: 6px 0 20px; font-size: 14.5px; }
.pcontacts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.pcontacts a, .pcontacts span {
  display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 16px; font-size: 14px; color: var(--ink); text-decoration: none; text-align: left;
}
.profile-wrap .btn { width: 100%; }

/* 완료 화면 — 디지털 명함 링크 박스 */
.profile-box { margin: 22px auto; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-align: left; }
.profile-box b { display: block; font-size: 14px; margin-bottom: 10px; }
.plink-row { display: flex; gap: 8px; }
.plink-row input { flex: 1; font-size: 12.5px; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--card, #FDFCF8); color: var(--sub); min-width: 0; }
.ph-sub { display: block; margin-top: 10px; font-size: 12px; color: var(--muted, #8C847B); }
.review-cta { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 24px; font-size: 14px; }

/* ============================================================
   신규: 어드민
   ============================================================ */
.admin-login { max-width: 320px; margin: 100px auto; text-align: center; }
.admin-login h1 { font-size: 20px; margin-bottom: 20px; }
.admin-login input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 15px; margin-bottom: 12px; text-align: center; }
.admin-wrap { max-width: 1200px; margin: 0 auto; }
.admin-wrap h1 { font-size: 22px; margin-bottom: 20px; }
.admin-table { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 13px; }
.at-row { display: grid; grid-template-columns: 1.3fr 1.1fr .9fr 1fr 1fr 1fr .8fr; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.at-row.at-head { background: #fafbfc; font-weight: 700; color: var(--sub); font-size: 11.5px; }
.at-row small { color: var(--muted, #8C847B); }
.at-row select, .at-row input { font-family: inherit; font-size: 12.5px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; width: 100%; }

/* ============================================================
   신규: 푸터 / CS 버튼
   ============================================================ */
.foot-inner { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.foot-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.foot-links a, .foot-link-btn {
  font-size: 12.5px; color: var(--sub); text-decoration: none; background: none; border: 0;
  font-family: inherit; cursor: pointer; padding: 0;
}
.foot-links a:hover, .foot-link-btn:hover { color: var(--ink); text-decoration: underline; }
.cs-fab {
  position: fixed; right: 20px; bottom: 20px; width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: #fff; border: 0; font-size: 22px; cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,.25); z-index: 60;
}
.admin-mode .cs-fab, .profile-mode .cs-fab { display: none; }

/* ============================================================
   신규: 기존 명함 업로드해서 시작하기
   ============================================================ */
.import-cta {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  margin: 14px auto 0; padding: 11px 20px; border-radius: 12px;
  border: 1.5px dashed var(--line); background: #fff; cursor: pointer;
  font-family: inherit; font-size: 13.5px; color: var(--sub);
}
.import-cta:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); }
.import-cta .ic { font-size: 17px; }
.import-cta b { color: var(--ink); }

.import-wrap { max-width: 640px; margin: 0 auto; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 48px 20px; border-radius: 16px; border: 2px dashed var(--line);
  background: var(--panel); cursor: pointer; text-align: center; margin-top: 8px;
}
.dropzone:hover { border-color: var(--brand); background: var(--brand-soft); }
.dropzone .dz-ic { font-size: 34px; margin-bottom: 6px; }
.dropzone b { font-size: 15.5px; }
.dropzone span { font-size: 12.5px; color: var(--sub); }
.import-note { text-align: center; font-size: 12.5px; color: var(--sub); margin-top: 14px; }

.import-progress {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 70px 20px; color: var(--sub); font-size: 14px;
}
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--brand);
  animation: mh-spin .8s linear infinite;
}
@keyframes mh-spin { to { transform: rotate(360deg); } }

.import-result { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; margin: 22px 0; }
.ir-orig, .ir-match { text-align: center; }
.ir-orig img { width: 100%; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.ir-card svg { width: 100%; border-radius: 10px; box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.ir-arrow { font-size: 22px; color: var(--sub); }
.ir-label { margin-top: 10px; font-size: 13.5px; color: var(--sub); }
.ir-label b { color: var(--ink); }
.swatch-row { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.swatch-row i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); display: block; }
.import-cta-row { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.import-cta-row .btn { width: 100%; }

.import-banner {
  display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 18px; margin-bottom: 20px;
}
.import-banner img { width: 56px; height: 36px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex-shrink: 0; }
.ib-text { flex: 1; text-align: left; }
.ib-text b { display: block; font-size: 13.5px; }
.ib-text span { font-size: 12px; color: var(--sub); }
.rec-badge.inline { position: static; display: inline-block; padding: 2px 8px; font-size: 10px; margin: 0 2px; }
.notice.err { background: #fdeceb; border-color: #f2b8b5; color: #a3312a; }

@media (max-width: 900px) {
  .import-result { grid-template-columns: 1fr; }
  .ir-arrow { transform: rotate(90deg); }
}

@media (max-width: 900px) {
  .biz-strip, .rev-grid { grid-template-columns: 1fr; }
  .team-row { grid-template-columns: 1fr 1fr; }
  .team-row.team-head { display: none; }
  .zoom-grid { grid-template-columns: 1fr; }
  .at-row { grid-template-columns: 1fr 1fr; font-size: 12px; }
  .at-row.at-head { display: none; }
}

@media (max-width: 560px) {
  .app { padding: 20px 14px 48px; }
  .brand span { display: none; }
  .topbar-right .btn { padding: 8px 12px; font-size: 13px; }
  .style-grid { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: 1fr 1fr; }
  .fgrid { grid-template-columns: 1fr; }
  .hero-cards .hc { width: 200px; }
  .how { grid-template-columns: 1fr; }
  .topbar { gap: 10px; padding: 0 14px; }
}
