@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --bg: #f4f5f9;
  --panel: #ffffff;
  --panel2: #eef0f5;
  --line: #dde0e8;
  --line2: #c8cdd6;
  --text: #1b1e28;
  --sub: #444b5c;
  --dim: #6b7280;
  --acc: #6c5ce7;
  --acc-hi: #7f70f0;
  --acc-bg: rgba(108,92,231,0.07);
  --acc2: #00d2d3;
  --ok: #10b981;
  --info: #3b82f6;
  --warn: #f59e0b;
  --bad: #ef4444;
  --mono: 'JetBrains Mono', Consolas, monospace;
  --r: 10px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Pretendard', -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.55; font-size: 15px; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.mono { font-family: var(--mono); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ── header ── */
.hdr { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hdr-top { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.3px; flex-shrink: 0; }
.logo-mark { min-width: 32px; height: 32px; padding: 0 6px; font-size: 0.8rem; border-radius: 8px; background: var(--acc); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; }
.logo small { display: block; font-size: 0.66rem; color: var(--sub); font-weight: 500; letter-spacing: 0.5px; margin-top: -3px; }
.hsearch { flex: 1; max-width: 460px; position: relative; }
.hsearch input { width: 100%; height: 40px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 0 44px 0 16px; color: var(--text); font-family: inherit; font-size: 0.9rem; }
.hsearch input:focus { outline: none; border-color: var(--acc); }
.hsearch button { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--acc); color: #fff; cursor: pointer; font-weight: 700; }
.hacts { display: flex; gap: 4px; margin-left: auto; }
.hact { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; font-size: 0.85rem; color: var(--sub); font-weight: 600; }
.hact:hover { color: var(--text); background: var(--panel); }
.badge-n { font-family: var(--mono); background: var(--acc); color: #fff; font-size: 0.7rem; min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.badge-n:empty { display: none; }
.hnav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; height: 44px; align-items: center; }
.hnav::-webkit-scrollbar { display: none; }
.hnav a { padding: 7px 14px; border-radius: 6px; font-size: 0.88rem; font-weight: 600; color: var(--sub); white-space: nowrap; }
.hnav a:hover { color: var(--text); }
.hnav a.on { color: var(--acc); background: var(--acc-bg); }
.hnav .sep { width: 1px; height: 16px; background: var(--line2); margin: 0 6px; flex-shrink: 0; }
@media (max-width: 760px) {
  .hdr-top { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
  .hsearch { order: 3; max-width: none; flex-basis: 100%; }
  .hact span.t { display: none; }
}

/* ── generic ── */
main { min-height: 60vh; }
.sec { padding: 56px 0; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.sec-h h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.4px; }
.sec-h p { color: var(--sub); font-size: 0.9rem; }
.sec-h a.more { color: var(--sub); font-size: 0.85rem; white-space: nowrap; }
.sec-h a.more:hover { color: var(--acc); }
.eyebrow { font-family: var(--mono); font-size: 0.72rem; color: var(--acc); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 22px; border-radius: 8px; font-size: 0.93rem; font-weight: 700; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-acc { background: var(--acc); color: #fff; }
.btn-acc:hover { background: var(--acc-hi); }
.btn-line { background: transparent; border-color: var(--line2); color: var(--text); }
.btn-line:hover { border-color: var(--acc); color: var(--acc); }
.btn-ghost { background: var(--panel2); color: var(--text); }
.btn-ghost:hover { background: var(--line); }
.btn-kakao { background: #fee500; color: #191919; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 0.8rem; }
.btn-lg { height: 54px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; background: var(--panel2); color: var(--sub); }
.chip.hot { background: var(--acc); color: #fff; }
.chip.mode { background: #e8f0fe; color: var(--info); }
input, select, textarea { width: 100%; background: var(--panel2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 11px 13px; font-family: inherit; font-size: 0.92rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acc); }
textarea { resize: vertical; min-height: 80px; }
.err { color: var(--bad); font-size: 0.85rem; min-height: 1.2em; margin-top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.empty { text-align: center; color: var(--sub); padding: 60px 16px; }
.price { font-family: var(--mono); font-weight: 700; color: var(--text); }
.price em { font-style: normal; font-size: 0.8em; color: var(--sub); font-family: 'Pretendard', sans-serif; font-weight: 500; margin-left: 2px; }

/* ── hero (index) ── */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ''; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(255,122,26,0.06) 1px, transparent 1px) 0 0 / 48px 48px,
  linear-gradient(0deg, rgba(255,122,26,0.06) 1px, transparent 1px) 0 0 / 48px 48px; mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 56px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 900; line-height: 1.18; letter-spacing: -1.2px; margin-bottom: 16px; }
.hero h1 b { color: var(--acc); font-weight: 900; }
.hero p.lead { color: var(--sub); font-size: 1.05rem; margin-bottom: 26px; max-width: 520px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hstat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.hstat .v { font-family: var(--mono); font-size: 1.7rem; font-weight: 700; color: var(--acc); }
.hstat .l { font-size: 0.82rem; color: var(--sub); }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; } }

.ticker { background: var(--panel); border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.ticker .wrap { display: flex; gap: 10px; align-items: center; height: 42px; overflow: hidden; }
.ticker b { color: var(--acc); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 1.5px; flex-shrink: 0; }
.ticker span { color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.cat-tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, transform .15s; }
.cat-tile:hover { border-color: var(--acc); transform: translateY(-2px); }
.cat-tile .ic { width: 38px; height: 38px; border-radius: 8px; background: var(--acc-bg); color: var(--acc); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; }
.cat-tile .n { font-weight: 700; }
.cat-tile .c { font-size: 0.78rem; color: var(--sub); font-family: var(--mono); }

.trader-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.trader { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; font-weight: 600; font-size: 0.9rem; }
.trader:hover { border-color: var(--acc); color: var(--acc); }
.trader span { font-family: var(--mono); font-size: 0.75rem; color: var(--dim); }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: f; }
.flow > div { position: relative; padding: 22px 20px; border: 1px solid var(--line); background: var(--panel); counter-increment: f; }
.flow > div + div { border-left: none; }
.flow > div:first-child { border-radius: var(--r) 0 0 var(--r); }
.flow > div:last-child { border-radius: 0 var(--r) var(--r) 0; }
.flow > div::before { content: '0' counter(f); font-family: var(--mono); color: var(--acc); font-size: 0.8rem; font-weight: 700; display: block; margin-bottom: 8px; }
.flow h3 { font-size: 1rem; margin-bottom: 4px; }
.flow p { font-size: 0.84rem; color: var(--sub); }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr 1fr; } .flow > div { border: 1px solid var(--line) !important; border-radius: 0 !important; } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

.pay-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pay-card { padding: 20px; }
.pay-card h3 { font-size: 1rem; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.pay-card p { font-size: 0.85rem; color: var(--sub); }
@media (max-width: 760px) { .pay-cards { grid-template-columns: 1fr; } }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: center; }
.stat-card { padding: 28px 16px !important; }
.stat-num { font-size: 2.4rem; font-weight: 800; color: var(--acc); font-family: var(--mono); line-height: 1; }
.stat-num small { font-size: 1.2rem; font-weight: 600; }
.stat-label { margin-top: 8px; font-size: 0.88rem; color: var(--sub); }
.stats-note { text-align: center; margin-top: 16px; font-size: 0.85rem; color: var(--sub); }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.promise div { padding: 18px 20px; }
.promise h4 { font-size: 0.95rem; margin-bottom: 2px; }
.promise h4::before { content: '✓ '; color: var(--ok); }
.promise p { font-size: 0.84rem; color: var(--sub); }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; } }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 16px 4px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--acc); font-family: var(--mono); font-size: 1.1rem; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 4px 18px; color: var(--sub); font-size: 0.9rem; }

/* ── product list ── */
.shop { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding-top: 28px; padding-bottom: 60px; }
@media (max-width: 860px) { .shop { grid-template-columns: 1fr; } }
.side { position: sticky; top: 124px; align-self: start; }
.side h3 { font-size: 0.75rem; color: var(--dim); letter-spacing: 1px; font-family: var(--mono); margin: 0 0 8px 10px; }
.side a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 6px; font-size: 0.9rem; color: var(--sub); }
.side a span { font-family: var(--mono); font-size: 0.75rem; color: var(--dim); }
.side a:hover { color: var(--text); background: var(--panel); }
.side a.on { color: var(--acc); background: var(--acc-bg); font-weight: 700; }
.side a.sub { padding-left: 22px; font-size: 0.85rem; }
.side .grp + .grp { margin-top: 18px; }
@media (max-width: 860px) {
  .side { position: static; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .side h3, .side .grp.subs-wrap:empty { display: none; }
  .side .grp { display: flex; gap: 6px; margin: 0 !important; }
  .side a { white-space: nowrap; background: var(--panel); border: 1px solid var(--line); gap: 6px; }
  .side a.sub { padding-left: 10px; }
}
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.list-head h1 { font-size: 1.35rem; font-weight: 800; }
.list-head h1 span { font-family: var(--mono); color: var(--dim); font-size: 0.85rem; margin-left: 6px; font-weight: 500; }
.list-tools { display: flex; gap: 8px; align-items: center; }
.list-tools select { width: auto; padding: 7px 10px; font-size: 0.83rem; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; }
.seg button { background: none; border: none; color: var(--sub); padding: 6px 12px; font-size: 0.8rem; cursor: pointer; font-weight: 600; }
.seg button.on { background: var(--panel2); color: var(--acc); }
.cat-note { font-size: 0.83rem; color: var(--sub); background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--acc); border-radius: 6px; padding: 10px 14px; margin-bottom: 16px; }
.cat-note li { list-style: none; }
.cat-note li::before { content: '· '; color: var(--acc); }

.plist { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.prow { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 13px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.prow:last-child { border-bottom: none; }
.prow:hover { background: var(--panel2); }
.prow .nm { font-weight: 600; font-size: 0.93rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.prow .meta { font-size: 0.75rem; color: var(--dim); margin-top: 2px; }
.prow .price { font-size: 0.98rem; text-align: right; min-width: 110px; }
.prow .add { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line2); background: transparent; color: var(--sub); cursor: pointer; font-size: 1.1rem; }
.prow .add:hover { border-color: var(--acc); color: var(--acc); }
@media (max-width: 520px) { .prow { grid-template-columns: 1fr auto; } .prow .add { display: none; } .prow .price { min-width: 0; } }
.pager { display: flex; justify-content: center; gap: 4px; margin-top: 20px; flex-wrap: wrap; }
.pager button { min-width: 36px; height: 36px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); color: var(--sub); cursor: pointer; font-family: var(--mono); }
.pager button.on { border-color: var(--acc); color: var(--acc); }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 8px; min-height: 140px; transition: border-color .15s; }
.pcard:hover { border-color: var(--acc); }
.pcard .tags { display: flex; gap: 4px; flex-wrap: wrap; }
.pcard .nm { font-weight: 700; flex: 1; font-size: 0.95rem; }
.pcard .price { font-size: 1.05rem; color: var(--acc); }

/* ── product detail ── */
.pd { display: grid; grid-template-columns: 1fr 400px; gap: 28px; padding-top: 28px; padding-bottom: 60px; align-items: start; }
@media (max-width: 900px) { .pd { grid-template-columns: 1fr; } }
.crumb { font-size: 0.82rem; color: var(--dim); margin-bottom: 10px; }
.crumb a:hover { color: var(--acc); }
.pd-main h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.5px; line-height: 1.3; margin-bottom: 10px; }
.pd-main .tags { display: flex; gap: 6px; margin-bottom: 20px; }
.pd-block { padding: 20px 22px; margin-bottom: 12px; }
.pd-block h2 { font-size: 0.95rem; margin-bottom: 10px; }
.pd-block ul { list-style: none; font-size: 0.9rem; color: var(--sub); }
.pd-block li { padding: 3px 0 3px 16px; position: relative; }
.pd-block li::before { content: ''; position: absolute; left: 2px; top: 12px; width: 5px; height: 5px; background: var(--acc); border-radius: 1px; }
.pd-block ol { padding-left: 20px; font-size: 0.9rem; color: var(--sub); }
.pd-block ol li::before { display: none; }
.pd-block ol li { padding-left: 2px; }
.type-tbl { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-top: 10px; }
.type-tbl th, .type-tbl td { border: 1px solid var(--line); padding: 10px 12px; text-align: center; }
.type-tbl th { background: var(--acc-bg); color: var(--acc); font-weight: 700; font-size: 0.82rem; }
.type-tbl td { color: var(--sub); }
.buybox { position: sticky; top: 124px; padding: 22px; }
.buybox .lbl { font-size: 0.8rem; color: var(--sub); margin-bottom: 6px; }
.buybox .bigp { font-family: var(--mono); font-size: 1.9rem; font-weight: 700; margin-bottom: 16px; }
.opt-btns { display: flex; gap: 6px; margin-bottom: 14px; }
.opt-btns button { flex: 1; height: 42px; border-radius: 8px; border: 1px solid var(--line2); background: transparent; color: var(--text); cursor: pointer; font-weight: 700; font-size: 0.88rem; }
.opt-btns button small { display: block; font-family: var(--mono); font-weight: 500; font-size: 0.72rem; color: var(--sub); }
.opt-btns button.on { border-color: var(--acc); background: var(--acc-bg); color: var(--acc); }
.qty { display: inline-flex; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; height: 40px; }
.qty button { width: 38px; background: var(--panel2); border: none; color: var(--text); cursor: pointer; font-size: 1.05rem; }
.qty input { width: 54px; border: none; border-radius: 0; text-align: center; padding: 0; font-family: var(--mono); background: var(--bg); }
.qty-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.qty-row .u { font-size: 0.82rem; color: var(--sub); }
.sumline { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px dashed var(--line2); margin-bottom: 14px; }
.sumline .price { font-size: 1.5rem; color: var(--acc); }
.buybox .btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.buybox .note { font-size: 0.78rem; color: var(--dim); margin-top: 12px; }

/* ── checkout ── */
.steps { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--dim); margin: 26px 0 20px; flex-wrap: wrap; }
.steps b { color: var(--dim); font-family: var(--mono); margin-right: 4px; }
.steps .on { color: var(--text); font-weight: 700; }
.steps .on b { color: var(--acc); }
.steps i { width: 24px; height: 1px; background: var(--line2); }
.co { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; padding-bottom: 60px; }
@media (max-width: 900px) { .co { grid-template-columns: 1fr; } }
.co-sec { padding: 22px; margin-bottom: 14px; }
.co-sec > h2 { font-size: 1.02rem; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.co-sec > h2 small { font-size: 0.78rem; color: var(--sub); font-weight: 500; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fgrid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.82rem; color: var(--sub); margin-bottom: 5px; font-weight: 600; }
.field label i { color: var(--acc); font-style: normal; }
.field .hint { font-size: 0.74rem; color: var(--dim); margin-top: 4px; }
@media (max-width: 600px) { .fgrid { grid-template-columns: 1fr; } }
.paym { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.paym label { border: 1px solid var(--line2); border-radius: 8px; padding: 14px 10px; text-align: center; cursor: pointer; font-weight: 700; font-size: 0.88rem; }
.paym label small { display: block; font-weight: 500; font-size: 0.72rem; color: var(--dim); }
.paym input { display: none; }
.paym label.on { border-color: var(--acc); background: var(--acc-bg); color: var(--acc); }
.paym label.off { opacity: .45; cursor: not-allowed; }
.pin-row { display: grid; grid-template-columns: 1fr 130px 40px; gap: 6px; margin-bottom: 6px; }
.pin-row button { border: 1px solid var(--line2); background: var(--panel2); color: var(--sub); border-radius: 8px; cursor: pointer; }
.info-box { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 0.84rem; color: var(--sub); margin-top: 10px; }
.info-box b { color: var(--text); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; padding: 8px 0; cursor: pointer; }
.agree input { width: 18px; height: 18px; accent-color: var(--acc); margin-top: 2px; flex-shrink: 0; }
.agree a { color: var(--acc); text-decoration: underline; }
.co-side { position: sticky; top: 124px; padding: 22px; }
.co-side h2 { font-size: 1rem; margin-bottom: 14px; }
.sumrows > div { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 5px 0; color: var(--sub); }
.sumrows > div span:last-child { font-family: var(--mono); color: var(--text); }
.sumrows .grand { border-top: 1px solid var(--line2); margin-top: 8px; padding-top: 14px; color: var(--text); font-weight: 700; }
.sumrows .grand span:last-child { color: var(--acc); font-size: 1.45rem; font-weight: 700; }

.citems { list-style: none; }
.citem { display: grid; grid-template-columns: 1fr auto auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.citem:last-child { border-bottom: none; }
.citem .nm { font-weight: 600; font-size: 0.92rem; }
.citem .nm small { display: block; color: var(--dim); font-size: 0.76rem; font-weight: 500; }
.citem .price { min-width: 96px; text-align: right; }
.citem .del { background: none; border: none; color: var(--dim); cursor: pointer; font-size: 1.1rem; }
.citem .del:hover { color: var(--bad); }
.citem.ro { grid-template-columns: 1fr auto auto; }
.citem .q { font-family: var(--mono); font-size: 0.85rem; color: var(--sub); }
@media (max-width: 560px) { .citem { grid-template-columns: 1fr auto; } .citem .qty { grid-row: 2; } }

/* ── order done / check ── */
.done { max-width: 720px; margin: 0 auto; padding: 40px 0 60px; }
.done-top { text-align: center; margin-bottom: 26px; }
.done-top .ok { width: 60px; height: 60px; border-radius: 50%; background: rgba(61,220,132,0.12); color: var(--ok); font-size: 1.8rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.done-top h1 { font-size: 1.5rem; margin-bottom: 4px; }
.done-top .no { font-family: var(--mono); font-size: 1.05rem; color: var(--acc); }
.save-notice { margin-top: 16px; padding: 16px 20px; background: var(--acc-bg); border: 1px solid var(--acc); border-radius: var(--r); text-align: center; }
.save-notice b { display: block; color: var(--acc); font-size: 1rem; margin-bottom: 6px; }
.save-notice span { display: block; font-size: 0.85rem; color: var(--sub); line-height: 1.6; }
.kv { font-size: 0.92rem; }
.kv > div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.kv > div:last-child { border-bottom: none; }
.kv > div > span:first-child { color: var(--sub); flex-shrink: 0; }
.kv > div > span:last-child { text-align: right; }
.copy { margin-left: 6px; height: 22px; padding: 0 8px; border-radius: 4px; border: 1px solid var(--line2); background: none; color: var(--sub); font-size: 0.72rem; cursor: pointer; }
.copy:hover { color: var(--acc); border-color: var(--acc); }
.next-box { border: 1px solid var(--acc); background: var(--acc-bg); border-radius: var(--r); padding: 20px 22px; margin: 14px 0; }
.next-box h2 { font-size: 1.02rem; margin-bottom: 6px; color: var(--acc); }
.next-box p { font-size: 0.88rem; color: var(--sub); margin-bottom: 14px; }
.next-box .row { display: flex; gap: 8px; flex-wrap: wrap; }

.st { display: inline-flex; height: 22px; align-items: center; padding: 0 9px; border-radius: 11px; font-size: 0.74rem; font-weight: 700; white-space: nowrap; }
.st-pending { background: rgba(255,197,61,.12); color: var(--warn); }
.st-paid { background: rgba(78,161,255,.12); color: var(--info); }
.st-working { background: rgba(150,100,230,.1); color: #7c4ddb; }
.st-done { background: rgba(61,220,132,.12); color: var(--ok); }
.st-cancel { background: var(--panel2); color: var(--dim); }
.timeline { display: flex; gap: 0; margin: 10px 0 4px; }
.timeline div { flex: 1; text-align: center; font-size: 0.78rem; color: var(--dim); position: relative; padding-top: 22px; }
.timeline div::before { content: ''; position: absolute; top: 6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--line2); z-index: 1; }
.timeline div::after { content: ''; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line2); }
.timeline div:first-child::after { display: none; }
.timeline div.on { color: var(--text); font-weight: 700; }
.timeline div.on::before { background: var(--acc); }
.timeline div.on::after { background: var(--acc); }

/* ── docs ── */
.doc { max-width: 820px; margin: 0 auto; padding-top: 36px; padding-bottom: 60px; }
.doc h1 { font-size: 1.7rem; margin-bottom: 18px; }
.doc h2 { font-size: 1.15rem; margin: 30px 0 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.doc p, .doc li { color: var(--sub); font-size: 0.92rem; }
.doc ul, .doc ol { padding-left: 20px; margin: 6px 0; }
.doc li { margin-bottom: 4px; }
.doc-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }

/* ── footer ── */
.ftr { border-top: 1px solid var(--line); padding: 34px 0 90px; font-size: 0.82rem; color: var(--dim); }
.ftr-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ftr a { color: var(--sub); margin-right: 14px; }
.ftr a:hover { color: var(--acc); }
.ftr .biz { margin-top: 10px; line-height: 1.8; }

.toast { position: fixed; left: 50%; bottom: 100px; transform: translate(-50%, 16px); background: var(--panel2); border: 1px solid var(--acc); color: var(--text); padding: 11px 20px; border-radius: 10px; font-size: 0.88rem; opacity: 0; transition: all .2s; z-index: 300; pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: var(--acc); pointer-events: auto; margin-left: 8px; font-weight: 700; }

/* ── chat widget ── */
.cw-fab { position: fixed; right: 20px; bottom: 20px; z-index: 250; height: 56px; padding: 0 22px 0 18px; border-radius: 28px; border: none; background: var(--acc); color: #fff; font-weight: 800; font-size: 0.95rem; cursor: pointer; box-shadow: 0 8px 28px rgba(0,0,0,.15); display: flex; align-items: center; gap: 8px; }
.cw-fab svg { width: 22px; height: 22px; }
.cw-fab .badge-n { background: var(--bad); color: #fff; position: absolute; top: -4px; right: -2px; }
.cw { position: fixed; right: 20px; bottom: 88px; z-index: 260; width: 380px; height: min(620px, calc(100vh - 110px)); background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 16px 50px rgba(0,0,0,.12); display: none; flex-direction: column; overflow: hidden; }
.cw.open { display: flex; }
@media (max-width: 520px) { .cw { right: 0; bottom: 0; width: 100%; height: 100%; border-radius: 0; } .cw.open ~ .cw-fab { display: none; } }
.cw-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--panel2); }
.cw-h .av { width: 36px; height: 36px; border-radius: 10px; background: var(--acc); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; }
.cw-h .t { flex: 1; font-weight: 700; font-size: 0.95rem; }
.cw-h .t small { display: block; font-weight: 500; font-size: 0.74rem; color: var(--ok); }
.cw-h button { background: none; border: none; color: var(--sub); cursor: pointer; font-size: 1.3rem; width: 32px; height: 32px; border-radius: 6px; }
.cw-h button:hover { background: var(--line); color: var(--text); }
.cw-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.cw-home { padding: 4px 0; }
.cw-home h3 { font-size: 1.2rem; margin-bottom: 4px; }
.cw-home p { color: var(--sub); font-size: 0.86rem; margin-bottom: 16px; }
.cw-card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.cw-card h4 { font-size: 0.86rem; margin-bottom: 8px; color: var(--sub); font-weight: 600; }
.cw-conv { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; font-size: 0.86rem; gap: 10px; }
.cw-conv:first-of-type { border-top: none; }
.cw-conv:hover .tx { color: var(--acc); }
.cw-conv .tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.cw-conv .tm { color: var(--dim); font-size: 0.74rem; flex-shrink: 0; }
.msg { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 0.88rem; white-space: pre-wrap; word-break: break-word; line-height: 1.5; }
.msg.bot, .msg.staff { background: var(--panel2); border-top-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--acc); color: #fff; border-top-right-radius: 4px; align-self: flex-end; }
.msg-who { font-size: 0.72rem; color: var(--dim); margin-bottom: -6px; }
.msg-who.r { align-self: flex-end; }
.msg.sys { align-self: center; background: none; color: var(--dim); font-size: 0.76rem; padding: 2px; }
.qr { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 100%; }
.qr button, .qr a { border: 1px solid var(--acc); color: var(--acc); background: transparent; border-radius: 16px; padding: 7px 13px; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.qr button:hover, .qr a:hover { background: var(--acc-bg); }
.qr a.kakao { border-color: #fee500; color: #fee500; }
.cw-in { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); background: var(--panel2); align-items: flex-end; }
.cw-in textarea { min-height: 42px; max-height: 120px; resize: none; padding: 10px 12px; font-size: 0.88rem; }
.cw-in button { height: 42px; width: 46px; flex-shrink: 0; border-radius: 8px; border: none; background: var(--acc); color: #fff; font-weight: 800; cursor: pointer; }
.cw-foot { text-align: center; font-size: 0.7rem; color: var(--dim); padding: 6px; }

/* ── admin ── */
.adm-tabs { display: flex; gap: 6px; margin: 20px 0; }
.adm-tabs button { height: 38px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel); color: var(--sub); cursor: pointer; font-weight: 700; }
.adm-tabs button.on { border-color: var(--acc); color: var(--acc); }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.tbl th { text-align: left; color: var(--dim); font-weight: 600; padding: 10px 8px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr.sel td { background: var(--panel2); }
.tbl tr { cursor: pointer; }
.adm-split { display: grid; grid-template-columns: 1fr 420px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .adm-split { grid-template-columns: 1fr; } }
.adm-detail { padding: 18px; position: sticky; top: 80px; }
.adm-chat { display: grid; grid-template-columns: 300px 1fr; gap: 16px; height: calc(100vh - 160px); }
.adm-chat .list { overflow-y: auto; }
.adm-chat .item { padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 0.85rem; }
.adm-chat .item.on { background: var(--panel2); }
.adm-chat .item .tp { display: flex; justify-content: space-between; font-weight: 700; gap: 6px; }
.adm-chat .item .pv { color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.adm-chat .thread { display: flex; flex-direction: column; overflow: hidden; }
@media (max-width: 800px) { .adm-chat { grid-template-columns: 1fr; height: auto; } .adm-chat .thread { height: 70vh; } }

.t-m { display: none; }
@media (max-width: 760px) { .t-m { display: inline; } }

[hidden] { display: none !important; }

/* ── 퀘스트 빌더 ── */
.qb { display: grid; grid-template-columns: 1fr 320px; gap: 14px; align-items: start; }
@media (max-width: 1000px) { .qb { grid-template-columns: 1fr; } }
.qb-step { padding: 18px 20px; margin-bottom: 12px; }
.qb-step h3 { font-size: 0.98rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.qb-step h3 b { width: 24px; height: 24px; border-radius: 50%; background: var(--acc); color: #fff; font-family: var(--mono); font-size: 0.78rem; display: inline-flex; align-items: center; justify-content: center; }
.qb-step h3 small { color: var(--dim); font-weight: 500; font-size: 0.8rem; }
.seg-lg { display: flex; }
.seg-lg button { flex: 1; height: 42px; font-size: 0.92rem; }
.qb-tools { display: flex; gap: 8px; margin-bottom: 10px; }
.qb-tools input { padding: 8px 12px; }
.qb-list { max-height: 560px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.qb-row { display: grid; grid-template-columns: 20px 1fr auto 24px; gap: 12px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 0.9rem; }
.qb-row:last-child { border-bottom: none; }
.qb-row:hover { background: var(--panel2); }
.qb-row.on { background: var(--acc-bg); }
.qb-row input { width: 18px; height: 18px; accent-color: var(--acc); }
.qb-row .nm { font-weight: 600; }
.qb-info { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line2); color: var(--dim); font-size: 0.72rem; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); }
.qb-info:hover { color: var(--acc); border-color: var(--acc); }
.qb-sum { position: sticky; top: 124px; padding: 20px; }
.qb-sum h3 { font-size: 1rem; margin-bottom: 10px; }
.qb-sum ul { list-style: none; max-height: 260px; overflow-y: auto; font-size: 0.84rem; margin-bottom: 4px; }
.qb-sum li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.qb-sum li.muted { color: var(--dim); border: none; }
.qb-sum .btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.qb-sum .note { font-size: 0.76rem; color: var(--dim); margin-top: 10px; }
.qb-sum .sumline .price { font-size: 1.35rem; color: var(--acc); }

/* ── 작업 방식 · 애드온 ── */
.opt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.opt-cards label { border: 1px solid var(--line2); border-radius: 8px; padding: 12px 14px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; }
.opt-cards label.on { border-color: var(--acc); background: var(--acc-bg); }
.opt-cards input { width: 18px; height: 18px; accent-color: var(--acc); margin-top: 2px; flex-shrink: 0; }
.opt-cards b { display: block; font-size: 0.9rem; }
.opt-cards small { color: var(--sub); font-size: 0.76rem; }
.opt-cards .rate { margin-left: auto; font-family: var(--mono); font-size: 0.8rem; color: var(--acc); white-space: nowrap; }
@media (max-width: 600px) { .opt-cards { grid-template-columns: 1fr; } }
.sub-h { font-size: 0.82rem; color: var(--sub); font-weight: 600; margin-bottom: 8px; }
