/* ─── 로고몬스터 design system ─────────────────────────────── */
:root {
  --violet: #6C5CE7;
  --violet-soft: #a29bfe;
  --violet-bg: #f1effd;
  --ink: #17171f;
  --ink-2: #4b4b57;
  --ink-3: #8a8a96;
  --line: #e8e8ee;
  --bg: #fafafc;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20,20,30,.05), 0 8px 24px rgba(20,20,30,.06);
  --shadow-lg: 0 4px 12px rgba(20,20,30,.08), 0 24px 48px rgba(20,20,30,.12);
  --ui: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ui);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
main { flex: 1; }

/* ─── topbar ─── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(250,250,252,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 32px; height: 32px; }
.brand-name { font-size: 19px; font-weight: 900; letter-spacing: -0.5px; }
.badge-free {
  font-size: 12.5px; font-weight: 600; color: var(--violet);
  background: var(--violet-bg); padding: 7px 14px; border-radius: 100px;
}

/* ─── home ─── */
.home { max-width: 1080px; margin: 0 auto; padding: 72px 24px 40px; text-align: center; }
.home-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 700; color: var(--violet);
  background: var(--violet-bg); padding: 8px 18px; border-radius: 100px;
  margin-bottom: 26px;
}
.home h1 {
  font-size: clamp(34px, 5.4vw, 58px); font-weight: 900; letter-spacing: -1.5px;
  line-height: 1.18; margin-bottom: 18px;
}
.home h1 .grad {
  background: linear-gradient(100deg, var(--violet), var(--gold-deep, #7A5E2C) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.home-sub { font-size: 17px; color: var(--ink-2); line-height: 1.7; margin-bottom: 44px; }

.name-form {
  display: flex; gap: 10px; max-width: 640px; margin: 0 auto 14px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 18px;
  padding: 8px; box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.name-form:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(108,92,231,.12); }
.name-form input {
  flex: 1; border: none; outline: none; background: none;
  font-size: 18px; font-weight: 500; padding: 12px 16px; color: var(--ink);
}
.name-form input::placeholder { color: var(--ink-3); }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(120deg, var(--violet), #8e7cf3);
  color: #fff; font-size: 16px; font-weight: 700;
  padding: 14px 28px; border-radius: 12px;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 6px 18px rgba(108,92,231,.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(108,92,231,.42); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .45; pointer-events: none; }
.slogan-row { max-width: 640px; margin: 0 auto; text-align: left; }
.slogan-toggle { font-size: 14px; color: var(--ink-3); font-weight: 500; padding: 6px 4px; }
.slogan-toggle:hover { color: var(--violet); }
.slogan-input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 13px 16px; font-size: 15px; outline: none; background: var(--card);
  margin-top: 6px;
}
.slogan-input:focus { border-color: var(--violet); }

.home-strip { margin: 68px auto 0; max-width: 1080px; }
.home-strip-label { font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: 2px; margin-bottom: 20px; }
.strip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.strip-tile {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  aspect-ratio: 5/4; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.strip-tile svg { width: 100%; height: 100%; }
.strip-tile.dark { background: var(--dark, #2A2624); border-color: var(--dark, #2A2624); }

/* ─── wizard ─── */
.wizard { max-width: 880px; margin: 0 auto; padding: 44px 24px 80px; }
.wiz-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.wiz-back { font-size: 14.5px; font-weight: 600; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; }
.wiz-back:hover { color: var(--ink); }
.wiz-step-label { font-size: 13.5px; font-weight: 700; color: var(--violet); }
.wiz-progress { height: 5px; background: var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 42px; }
.wiz-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--violet-soft)); border-radius: 10px; transition: width .35s ease; }
.wizard h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 900; letter-spacing: -0.8px; margin-bottom: 10px; }
.wizard .wiz-sub { font-size: 15.5px; color: var(--ink-2); margin-bottom: 34px; }
.wiz-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 40px; }
.btn-skip { font-size: 14.5px; font-weight: 600; color: var(--ink-3); padding: 10px 6px; }
.btn-skip:hover { color: var(--violet); }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.pick {
  position: relative;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 20px 12px 16px; text-align: center;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.pick:hover { border-color: var(--violet-soft); transform: translateY(-2px); box-shadow: var(--shadow); }
.pick.on { border-color: var(--violet); background: var(--violet-bg); box-shadow: 0 0 0 3px rgba(108,92,231,.12); }
.pick .pick-ico { width: 44px; height: 44px; margin: 0 auto 10px; color: var(--ink-2); }
.pick.on .pick-ico { color: var(--violet); }
.pick .pick-label { font-size: 14.5px; font-weight: 700; }
.pick .pick-desc { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.pick .pick-check {
  position: absolute; top: 9px; right: 9px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--violet); color: #fff; font-size: 12px; font-weight: 800;
  display: none; align-items: center; justify-content: center;
}
.pick.on .pick-check { display: flex; }

.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.type-card { padding: 0; overflow: hidden; text-align: left; }
.type-card .type-preview {
  aspect-ratio: 16/9.5; background: #f4f4f8; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
}
.type-card .type-preview svg { width: 82%; height: 82%; }
.type-card .type-body { padding: 13px 16px 15px; }

.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.style-card { text-align: left; padding: 0; overflow: hidden; }
.style-card .style-sample {
  aspect-ratio: 16/8; display: flex; align-items: center; justify-content: center;
  font-size: 26px; border-bottom: 1px solid var(--line); background: #f6f6fa;
}
.style-card .style-body { padding: 13px 16px 15px; }

.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.color-card { text-align: left; }
.color-swatches { display: flex; gap: 6px; margin-bottom: 12px; }
.color-swatches i { flex: 1; height: 44px; border-radius: 9px; }

/* ─── loading ─── */
.loading-screen {
  min-height: 62vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 40px 24px;
}
.monster-wrap { position: relative; width: 120px; height: 120px; margin-bottom: 34px; }
.monster-wrap svg { width: 100%; height: 100%; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
.monster-shadow {
  position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 12px; background: rgba(20,20,30,.12); border-radius: 50%;
  animation: shadowpulse 1.6s ease-in-out infinite;
}
@keyframes shadowpulse { 0%,100% { transform: translateX(-50%) scale(1) } 50% { transform: translateX(-50%) scale(.75); opacity: .6 } }
.loading-msg { font-size: 18px; font-weight: 700; min-height: 28px; margin-bottom: 10px; }
.loading-sub { font-size: 14px; color: var(--ink-3); margin-bottom: 28px; }
.loading-bar { width: 260px; height: 6px; background: var(--line); border-radius: 10px; overflow: hidden; }
.loading-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--gold-deep, #7A5E2C)); border-radius: 10px; transition: width .5s ease; }

/* ─── results ─── */
.results { max-width: 1280px; margin: 0 auto; padding: 36px 28px 90px; }
.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.results-head h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 900; letter-spacing: -0.6px; }
.results-head .results-sub { font-size: 14.5px; color: var(--ink-2); margin-top: 6px; }
.results-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  border: 1.5px solid var(--line); background: var(--card);
  padding: 10px 18px; border-radius: 11px;
  transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: var(--violet-soft); color: var(--violet); }

.fav-strip { margin-bottom: 26px; }
.fav-strip .fav-label { font-size: 13px; font-weight: 700; color: var(--ink-3); margin-bottom: 10px; }
.fav-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.fav-chip {
  flex: 0 0 130px; height: 104px; background: var(--card); border: 1.5px solid var(--line);
  border-radius: 12px; overflow: hidden; padding: 0;
}
.fav-chip.dark { background: var(--dark, #2A2624); }
.fav-chip svg { width: 100%; height: 100%; }

.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.logo-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 5/4; padding: 0; text-align: inherit;
  transition: transform .18s, box-shadow .2s, border-color .18s;
  animation: cardin .35s ease both;
}
@keyframes cardin { from { transform: translateY(12px) } to { transform: none } }
.logo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.logo-card.dark { background: var(--dark, #2A2624); border-color: var(--dark, #2A2624); }
.logo-card svg { width: 100%; height: 100%; display: block; }
.logo-card .card-hover {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center;
  background: linear-gradient(to top, rgba(15,15,22,.5), transparent 45%);
  opacity: 0; transition: opacity .18s; padding: 14px;
}
.logo-card:hover .card-hover { opacity: 1; }
.card-hover .edit-hint {
  background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 700;
  padding: 9px 20px; border-radius: 100px; box-shadow: var(--shadow);
}
.heart-btn {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s, transform .15s; box-shadow: var(--shadow);
}
.logo-card:hover .heart-btn, .heart-btn.on { opacity: 1; }
.heart-btn:hover { transform: scale(1.1); }
.heart-btn svg { width: 18px; height: 18px; stroke: var(--ink-2); fill: none; stroke-width: 2; }
.heart-btn.on svg { fill: var(--gold-deep, #7A5E2C); stroke: var(--gold-deep, #7A5E2C); }
.results-more { text-align: center; margin-top: 36px; }

/* ─── editor ─── */
.editor { display: grid; grid-template-columns: 320px 1fr; min-height: calc(100vh - 61px); }
.editor-panel {
  border-right: 1px solid var(--line); background: var(--card);
  padding: 22px 20px 60px; overflow-y: auto; max-height: calc(100vh - 61px);
}
.editor-panel::-webkit-scrollbar { width: 8px; }
.editor-panel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.ed-back { font-size: 14px; font-weight: 600; color: var(--ink-3); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 6px; }
.ed-back:hover { color: var(--ink); }
.ed-section { border-top: 1px solid var(--line); padding: 18px 0; }
.ed-section h4 {
  font-size: 13px; font-weight: 800; letter-spacing: .5px; color: var(--ink-2);
  margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 100px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink-2);
  transition: all .15s;
}
.chip:hover { border-color: var(--violet-soft); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.font-list { display: flex; flex-direction: column; gap: 6px; max-height: 250px; overflow-y: auto; padding-right: 4px; }
.font-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 13px; border-radius: 10px; border: 1.5px solid var(--line);
  font-size: 16px; text-align: left; background: var(--card);
}
.font-item small { font-size: 11px; color: var(--ink-3); font-family: var(--ui); font-weight: 600; }
.font-item:hover { border-color: var(--violet-soft); }
.font-item.on { border-color: var(--violet); background: var(--violet-bg); }
.slider-row { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }
.slider-row label { width: 44px; font-weight: 600; flex-shrink: 0; }
.slider-row input[type=range] { flex: 1; accent-color: var(--violet); }
.slider-row output { width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.pal-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pal-opt { display: flex; border-radius: 9px; overflow: hidden; border: 2px solid transparent; padding: 0; }
.pal-opt i { width: 22px; height: 30px; display: block; }
.pal-opt.on, .pal-opt:hover { border-color: var(--ink); }
.color-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.color-input { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.color-input input[type=color] {
  width: 34px; height: 30px; border: 1px solid var(--line); border-radius: 8px;
  padding: 2px; background: var(--card); cursor: pointer;
}
.sym-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; max-height: 220px; overflow-y: auto; padding-right: 4px; }
.sym-cell {
  aspect-ratio: 1; border: 1.5px solid var(--line); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: var(--ink-2);
  background: var(--card); padding: 7px;
}
.sym-cell svg { width: 100%; height: 100%; }
.sym-cell:hover { border-color: var(--violet-soft); }
.sym-cell.on { border-color: var(--violet); background: var(--violet-bg); color: var(--violet); }
.ed-input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 10px 13px; font-size: 14px; outline: none; background: var(--card); margin-bottom: 8px;
}
.ed-input:focus { border-color: var(--violet); }

.editor-stage { padding: 28px 34px 70px; overflow-y: auto; max-height: calc(100vh - 61px); }
.stage-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.stage-top h3 { font-size: 18px; font-weight: 800; }
.dl-row { display: flex; gap: 10px; flex-wrap: wrap; }
.preview-main {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  aspect-ratio: 16/9; max-height: 460px; width: 100%;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: var(--shadow);
  background-image: linear-gradient(45deg, #F0EEE6 25%, transparent 25%, transparent 75%, #F0EEE6 75%), linear-gradient(45deg, #F0EEE6 25%, transparent 25%, transparent 75%, #F0EEE6 75%);
  background-size: 22px 22px; background-position: 0 0, 11px 11px;
}
.preview-main.solid { background-image: none; }
.preview-main svg { width: 100%; height: 100%; max-height: 460px; }
.ai-brief {
  margin-top: 18px; background: linear-gradient(115deg, var(--violet-bg), #fdf1f8);
  border-radius: 14px; padding: 16px 20px; font-size: 13.5px; color: var(--ink-2); line-height: 1.75;
}
.ai-brief b { color: var(--ink); }
.ai-brief .ai-tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--violet); font-size: 12.5px; margin-bottom: 6px; }
.mockups { margin-top: 26px; }
.mockups h4 { font-size: 13.5px; font-weight: 800; color: var(--ink-2); margin-bottom: 12px; }
.mock-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.mock {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 4/3; position: relative; display: flex; align-items: center; justify-content: center;
  padding: 0; cursor: pointer; width: 100%; font: inherit;
  transition: transform .15s, box-shadow .15s;
}
.mock:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.mock svg { width: 78%; height: 78%; }
.mock-zoom {
  position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 700;
  color: #fff; background: rgba(15,15,22,.5); padding: 4px 9px; border-radius: 100px;
  opacity: 0; transition: opacity .15s;
}
.mock:hover .mock-zoom { opacity: 1; }
.mock.m-light { background: #fff; }
.mock.m-dark { background: var(--dark, #2A2624); border-color: var(--dark, #2A2624); }
.mock.m-card {
  background: #F0EEE6;
}
.mock.m-card .biz-card {
  width: 78%; aspect-ratio: 17/10; background: #fff; border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center;
  transform: rotate(-3deg);
}
.mock.m-card .biz-card svg { width: 72%; height: 72%; }
.mock.m-app { background: linear-gradient(135deg, #EDEAE1, #E2DED2); }
.mock.m-app .app-icon {
  width: 46%; aspect-ratio: 1; border-radius: 24%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}
.mock.m-app .app-icon svg { width: 66%; height: 66%; }
.mock-label {
  position: absolute; bottom: 8px; left: 10px; font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.85); background: rgba(15,15,22,.45); padding: 4px 9px; border-radius: 100px;
}

/* ─── 목업 확대보기(라이트박스) ─── */
.mocklb-stage {
  border-radius: 16px; overflow: hidden; margin: 18px 0;
  min-height: 280px; display: flex; align-items: center; justify-content: center;
}
.mocklb-stage svg { width: 82%; max-height: 260px; }
.mocklb-light { background: #fff; border: 1px solid var(--line); }
.mocklb-dark { background: var(--dark, #2A2624); }
.mocklb-cardbg { background: #F0EEE6; padding: 30px; }
.mocklb-card {
  width: min(420px, 100%); aspect-ratio: 17/10; background: #fff; border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center;
  transform: rotate(-2.5deg);
}
.mocklb-card svg { width: 74%; max-height: 200px; }
.mocklb-appbg { background: linear-gradient(135deg, #EDEAE1, #E2DED2); padding: 40px; }
.mocklb-appicon {
  width: 200px; height: 200px; border-radius: 24%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 44px rgba(0,0,0,.24);
}
.mocklb-appicon svg { width: 100%; height: 100%; }
.mocklb-actions { display: flex; justify-content: center; }
.modal .mocklb-actions .btn-primary { width: auto; }

/* ─── footer ─── */
.footer { border-top: 1px solid var(--line); padding: 26px 28px 34px; text-align: center; color: var(--ink-3); font-size: 13px; line-height: 1.8; }
.footer-sub { font-size: 12px; }

/* ─── 크레딧 / 지갑 ─── */
.topbar-right { display: flex; align-items: center; gap: 10px; }
.wallet-slot { display: flex; align-items: center; gap: 8px; }
.credit-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 800; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line);
  padding: 7px 13px; border-radius: 100px;
}
.credit-badge .zap { color: #f39c12; }
.btn-charge {
  font-size: 13px; font-weight: 700; color: #fff;
  background: var(--ink); padding: 8px 15px; border-radius: 100px;
  transition: transform .15s;
}
.btn-charge:hover { transform: translateY(-1px); }
.user-chip {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(120deg, var(--violet), #8e7cf3);
  color: #fff; font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.user-chip:hover { transform: translateY(-1px); }

/* ─── 인증 모달 ─── */
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: var(--bg); border-radius: 12px; padding: 5px; margin-bottom: 16px;
}
.auth-tab {
  padding: 10px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--ink-3);
}
.auth-tab.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.auth-err { font-size: 13px; color: var(--gold-deep, #7A5E2C); font-weight: 600; min-height: 18px; margin: 2px 0 10px; }

/* ─── 모달 ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,15,22,.55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadein .18s ease;
}
@keyframes fadein { from { opacity: 0 } to { opacity: 1 } }
.modal {
  background: var(--card); border-radius: 22px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto;
  padding: 28px; position: relative;
  animation: modalin .22s ease;
}
.modal.wide { max-width: 620px; }
@keyframes modalin { from { opacity: 0; transform: translateY(14px) scale(.98) } to { opacity: 1; transform: none } }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px;
  border-radius: 50%; background: var(--bg); font-size: 15px; color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--line); }
.modal h3 { font-size: 20px; font-weight: 900; letter-spacing: -0.4px; margin-bottom: 6px; }
.modal .modal-sub { font-size: 14px; color: var(--ink-2); margin-bottom: 20px; line-height: 1.6; }
.pack-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.pack-card {
  display: flex; align-items: center; justify-content: space-between;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 15px 18px;
  background: var(--card); text-align: left; transition: border-color .15s, box-shadow .15s;
}
.pack-card:hover { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(108,92,231,.1); }
.pack-card.on { border-color: var(--violet); background: var(--violet-bg); }
.pack-card .pack-n { font-size: 15.5px; font-weight: 800; }
.pack-card .pack-per { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.pack-card .pack-price { font-size: 16px; font-weight: 800; }
.pack-tag {
  display: inline-block; font-size: 11px; font-weight: 800; color: var(--violet);
  background: var(--violet-bg); border-radius: 100px; padding: 3px 9px; margin-left: 7px;
  vertical-align: 2px;
}
.pack-card.on .pack-tag { background: #fff; }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.pay-method {
  border: 1.5px solid var(--line); border-radius: 11px; padding: 12px 8px;
  font-size: 13.5px; font-weight: 700; color: var(--ink-2); background: var(--card);
}
.pay-method.on { border-color: var(--ink); color: var(--ink); background: var(--bg); }
.modal .btn-primary { width: 100%; }
.modal-note { font-size: 11.5px; color: var(--ink-3); text-align: center; margin-top: 12px; line-height: 1.7; }
.unlock-preview {
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  height: 150px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; overflow: hidden;
}
.unlock-preview.dark { background: var(--dark, #2A2624); }
.unlock-preview svg { height: 100%; width: 100%; }
.unlock-items { font-size: 13.5px; color: var(--ink-2); line-height: 2; margin-bottom: 18px; }
.unlock-items b { color: var(--ink); }

/* ─── 브랜드 브리프 ─── */
.brief-cta {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 700; color: var(--violet);
  background: var(--violet-bg); border: 1px solid transparent;
  padding: 10px 18px; border-radius: 100px; margin: 4px auto 0;
  transition: border-color .15s, transform .15s;
}
.brief-cta:hover { border-color: var(--violet-soft); transform: translateY(-1px); }
.brief-cta-badge { font-size: 11px; font-weight: 800; color: var(--ink-3); background: var(--card); padding: 3px 9px; border-radius: 100px; }
.link-inline { color: var(--violet); font-weight: 700; text-decoration: underline; margin-left: 6px; }
.brief-label { display: block; font-size: 12.5px; font-weight: 800; color: var(--ink-2); margin: 14px 0 6px; }
.brief-label:first-of-type { margin-top: 4px; }
.brief-count { font-weight: 500; color: var(--ink-3); }
.brief-textarea { min-height: 68px; resize: vertical; font-family: inherit; line-height: 1.6; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; min-height: 4px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--violet);
  background: var(--violet-bg); padding: 6px 8px 6px 12px; border-radius: 100px;
}
.tag button { color: var(--violet); opacity: .6; font-size: 12px; }
.tag button:hover { opacity: 1; }
.slider-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.bslider-row { display: grid; grid-template-columns: 62px 1fr 62px; align-items: center; gap: 10px; }
.bslider-tag { font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.bslider-tag.left { text-align: right; }
.bslider-row input[type=range] { accent-color: var(--violet); }

/* ─── 결과 화면: 취향 조정 바 ─── */
.refine {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 18px; margin-bottom: 22px;
}
.refine-row { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.refine-row + .refine-row { margin-top: 11px; }
.refine-label { font-size: 12.5px; font-weight: 800; color: var(--ink-3); width: 48px; padding-top: 8px; flex-shrink: 0; }
.refine-chips { display: flex; flex-wrap: wrap; gap: 7px; flex: 1; }
.refine .chip { font-size: 12.5px; padding: 7px 12px; }
.refine .chip.on { background: var(--violet); border-color: var(--violet); }
.refine-hint { font-size: 12px; color: var(--ink-3); margin-top: 12px; }
.chip .dotc { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }

/* ─── 다운로드 게이트 ─── */
.dl-panel { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.dl-row2 { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.btn-locked { position: relative; }
.btn-locked .lock { margin-right: 5px; }
.dl-free-note { font-size: 11.5px; color: var(--ink-3); }
.unlocked-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 800; color: #0a8f5b;
  background: #e7f7ef; padding: 6px 12px; border-radius: 100px;
}

/* ─── 홈: 요금제 ─── */
.pricing { max-width: 1080px; margin: 84px auto 0; text-align: center; }
.pricing h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 900; letter-spacing: -0.7px; margin-bottom: 8px; }
.pricing .pricing-sub { font-size: 14.5px; color: var(--ink-2); margin-bottom: 28px; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; text-align: left; }
.price-card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 24px;
  position: relative;
}
.price-card.hot { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(108,92,231,.1); }
.price-card .hot-tag {
  position: absolute; top: -11px; left: 22px;
  font-size: 11.5px; font-weight: 800; color: #fff;
  background: linear-gradient(100deg, var(--violet), var(--gold-deep, #7A5E2C)); border-radius: 100px; padding: 4px 12px;
}
.price-card h5 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.price-card .price-big { font-size: 26px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 12px; }
.price-card .price-big small { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.price-card ul { list-style: none; font-size: 13.5px; color: var(--ink-2); line-height: 2.05; }
.price-card ul li::before { content: '✓'; color: var(--violet); font-weight: 800; margin-right: 8px; }

/* ─── 홈: FAQ ─── */
.faq { max-width: 760px; margin: 76px auto 0; text-align: left; }
.faq h2 { font-size: clamp(20px, 3vw, 26px); font-weight: 900; letter-spacing: -0.5px; text-align: center; margin-bottom: 22px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 0 20px; margin-bottom: 10px;
}
.faq summary {
  font-size: 14.5px; font-weight: 700; padding: 16px 0; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::after { content: '+'; font-size: 18px; color: var(--ink-3); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { font-size: 13.5px; color: var(--ink-2); line-height: 1.8; padding-bottom: 16px; }
.faq details a { color: var(--violet); }

.link-danger { font-size: 12px; color: var(--gold-deep, #7A5E2C); font-weight: 700; text-decoration: underline; }
.footer-links { margin-top: 8px; }
.footer-links a { color: var(--ink-3); text-decoration: none; font-size: 12.5px; }
.footer-links a:hover { color: var(--violet); }

/* ─── 홈: 내 로고 ─── */
.mylogos { max-width: 1080px; margin: 60px auto 0; }
.mylogos h3 { font-size: 15px; font-weight: 800; color: var(--ink-2); margin-bottom: 14px; text-align: left; }

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

@media (max-width: 900px) {
  .editor { grid-template-columns: 1fr; }
  .editor-panel { max-height: none; border-right: none; border-bottom: 1px solid var(--line); order: 2; }
  .editor-stage { max-height: none; order: 1; }
}
@media (max-width: 640px) {
  .badge-free { display: none; }
  .name-form { flex-direction: column; }
  .name-form .btn-primary { width: 100%; }
  .refine-label { width: 100%; padding-top: 0; }
  .results-head { flex-direction: column; align-items: stretch; }
}
