/* ===========================================================================
   펫바자(PetBaza) B2B 재고 옥션 — 공유 스타일
   브랜드: 틸 #087070 + 차콜 #242727 (PetBaza 로고 기준)
   =========================================================================== */
:root {
  --teal: #087070;
  --teal-600: #0a8483;
  --teal-700: #065c5c;
  --teal-050: #e9f4f3;
  --teal-100: #d3e9e7;
  --ink: #242727;
  --ink-800: #2f3436;
  --ink-2: #55605f;
  --ink-3: #8a9694;
  --line: #e6ebea;
  --line-2: #eef2f1;
  --soft: #f5f8f7;
  --white: #ffffff;
  --sale: #e2542a;      /* 할인/급처 강조 (기존 사이트 오렌지 계열) */
  --sale-2: #f0703a;
  --green: #0f9d58;
  --amber: #c07800;
  --red: #d64545;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15,32,31,.04), 0 8px 24px -8px rgba(15,32,31,.10);
  --shadow-lg: 0 30px 60px -20px rgba(20,40,39,.24);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink); background: var(--soft);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  line-height: 1.5; letter-spacing: -.011em; text-rendering: optimizeLegibility;
  font-feature-settings: "tnum" 1, "cv01" 1;
}
h1, h2, h3 { letter-spacing: -.03em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 헤더 (화이트 · 브랜드 컬러) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 1px 8px rgba(15,32,31,.04);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-name {
  font-size: 19px; font-weight: 800; color: var(--teal); letter-spacing: -.02em;
  padding-left: 11px; margin-left: 3px; border-left: 1px solid var(--line); line-height: 1;
}
.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-burger { display: none; margin-left: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 18px; border-radius: 9px; width: 40px; height: 38px; cursor: pointer; }
.mobile-nav { display: none; flex-direction: column; background: #fff; border-top: 1px solid var(--line); }
.mobile-nav.open { display: flex; }
.mobile-nav a, .mobile-nav button {
  padding: 14px 22px; color: var(--ink-2); font-size: 15px; font-weight: 700; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--line-2); cursor: pointer; font-family: inherit;
}
.mobile-nav a:hover, .mobile-nav button:hover { background: var(--teal-050); color: var(--teal-700); }
.mobile-nav .m-primary { color: var(--teal); }
.auth-area { display: inline-flex; align-items: center; gap: 10px; }
.auth-user { color: var(--ink-3); font-size: 13px; font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.auth-admin { color: var(--teal-700); font-weight: 800; }
a.auth-admin:hover { text-decoration: underline; }
.auth-link { background: none; border: 0; color: var(--ink-2); font-size: 13.5px; font-weight: 700; cursor: pointer; padding: 6px 4px; font-family: inherit; }
.auth-link:hover { color: var(--teal-700); text-decoration: underline; }

/* 게이트(입장 제한) 카드 */
.gate {
  max-width: 480px; margin: 46px auto 60px; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow); padding: 34px 30px; text-align: center;
}
.gate .g-em { font-size: 44px; }
.gate h2 { margin: 12px 0 8px; font-size: 21px; letter-spacing: -.02em; }
.gate p { margin: 0 0 18px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.gate .g-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* 인증(로그인/가입) 페이지 */
.auth-card { max-width: 440px; margin: 40px auto 60px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 30px 28px; }
.auth-card h1 { font-size: 22px; margin: 0 0 6px; letter-spacing: -.02em; }
.auth-card .sub { color: var(--ink-2); font-size: 13.5px; margin-bottom: 20px; }
.auth-card .field { margin-bottom: 14px; }
.auth-alt { text-align: center; margin-top: 16px; font-size: 13.5px; color: var(--ink-2); }
.auth-alt a { color: var(--teal-700); font-weight: 700; }
.auth-err { background: #fbe9e9; border: 1px solid #f2c9c9; color: #b23b3b; border-radius: 10px; padding: 10px 13px; font-size: 13px; margin-bottom: 14px; display: none; }
.auth-err.show { display: block; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer; transition: .15s; white-space: nowrap; font-family: inherit;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 4px 14px rgba(8,112,112,.28); }
.btn-primary:hover { background: var(--teal-600); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-800); }
.btn-sale { background: var(--sale); color: #fff; }
.btn-sale:hover { background: var(--sale-2); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 15.5px; border-radius: 12px; }
.btn-outline { background: #fff; color: var(--teal-700); border-color: var(--teal-100); }
.btn-outline:hover { background: var(--teal-050); border-color: var(--teal); transform: translateY(-1px); }
.btn-block { width: 100%; }

/* ---------- 히어로 (fello 스타일 · 깔끔한 화이트 + 떠 있는 카드) ---------- */
.hero {
  background:
    radial-gradient(900px 520px at 92% 0%, rgba(8,112,112,.07), transparent 60%),
    linear-gradient(180deg, #fbfdfc, #f4f9f8);
  color: var(--ink); border-bottom: 1px solid var(--line-2); overflow: hidden;
}
.hero .hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding: 84px 20px 78px; position: relative; }
.hero-copy { min-width: 0; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--teal-700); background: var(--teal-050); border: 1px solid var(--teal-100); padding: 6px 13px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { font-size: 52px; line-height: 1.14; margin: 0 0 18px; letter-spacing: -.04em; font-weight: 800; color: var(--ink); }
.hero h1 span { color: var(--teal); }
.hero p { margin: 0; color: var(--ink-2); font-size: 18px; line-height: 1.6; letter-spacing: -.01em; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust { margin-top: 22px; font-size: 13px; color: var(--ink-3); font-weight: 500; }

/* 히어로: 거래 진행 과정 데모 카드 */
.hero-art { position: relative; display: flex; justify-content: flex-end; }
.hero-demo { width: 100%; max-width: 460px; }
.hb { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 5px; }
.hb-cat { background: var(--teal-050); color: var(--teal-700); }
.hp-msrp { font-size: 12px; color: var(--ink-3); text-decoration: line-through; }

.demo-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px;
  box-shadow: 0 40px 80px -30px rgba(15,50,48,.30), 0 10px 24px -12px rgba(15,50,48,.10);
}
.demo-stage {
  position: relative; height: 168px; border-radius: 16px; display: grid; place-items: center;
  transition: background .55s ease; overflow: hidden;
}
.demo-emo { font-size: 72px; line-height: 1; }
@keyframes emoPop { 0%{ transform: scale(.6) translateY(8px); opacity: 0; } 60%{ transform: scale(1.08); } 100%{ transform: scale(1); opacity: 1; } }
.demo-stepbadge {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.9); backdrop-filter: blur(4px);
  color: var(--ink-2); font-size: 11.5px; font-weight: 800; padding: 5px 11px; border-radius: 999px;
}
.demo-title { font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin: 16px 2px 0; }

.demo-pipeline { position: relative; display: flex; justify-content: space-between; margin: 16px 4px 0; }
.pipe-line { position: absolute; left: 12px; right: 12px; top: 13px; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.pipe-line i { display: block; height: 100%; width: 0; background: var(--teal); border-radius: 2px; transition: width .5s ease; }
.pipe-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.pipe-dot {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px;
  font-weight: 800; color: #fff; background: #c3d3d1; border: 2px solid #c3d3d1; transition: .3s;
}
.pipe-lbl { font-size: 10.5px; font-weight: 700; color: var(--ink-3); transition: .3s; }
.pipe-step.done .pipe-dot { border-color: var(--teal); background: var(--teal); color: #fff; }
.pipe-step.done .pipe-lbl { color: var(--ink-2); }
.pipe-step.now .pipe-dot { border-color: var(--teal); background: var(--teal); color: #fff; transform: scale(1.18); box-shadow: 0 0 0 5px rgba(8,112,112,.14); }
.pipe-step.now .pipe-lbl { color: var(--teal-700); }
.demo-caption {
  margin-top: 18px; background: var(--soft); border-radius: 12px; padding: 12px 14px;
  font-size: 13px; color: var(--ink-2); line-height: 1.5; min-height: 42px;
}
.demo-caption b { color: var(--teal-700); }

@media (max-width: 900px) {
  .hero .hero-inner { grid-template-columns: 1fr; padding: 66px 16px 60px; gap: 32px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 16px; }
  .hero-art { justify-content: center; }
  .hero-demo { max-width: 440px; }
}
@media (max-width: 560px) {
  .hero .hero-inner { padding: 56px 16px 54px; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 29px; }
  .pipe-lbl { font-size: 9.5px; }
}

/* ---------- 필터 바 ---------- */
.toolbar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 14px; box-shadow: var(--shadow); margin: 28px 0 22px; position: relative; z-index: 5;
}
.search {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--soft);
}
.search input { border: 0; outline: 0; background: transparent; font-size: 14.5px; width: 100%; color: var(--ink); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; transition: .12s;
}
.chip:hover { border-color: var(--teal); color: var(--teal-700); }
.chip.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.select {
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 14px;
  background: #fff; color: var(--ink); cursor: pointer; font-family: inherit;
}

/* ---------- 카드 그리드 ---------- */
.result-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; gap: 10px; flex-wrap: wrap; }
.result-meta .count { font-size: 14.5px; color: var(--ink-2); }
.result-meta .count b { color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 20px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: .16s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d3dddb; }
.card-thumb { height: 176px; position: relative; overflow: hidden; background: var(--soft); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-thumb .disc {
  position: absolute; top: 10px; left: 10px; background: var(--sale); color: #fff; font-weight: 800; font-size: 13px;
  padding: 4px 9px; border-radius: 8px; box-shadow: 0 3px 10px rgba(226,84,42,.4);
}
.card-thumb .photocount {
  position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.6); color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 7px; display: flex; gap: 4px; align-items: center;
}
.card-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.badge { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.badge-cat { background: var(--teal-050); color: var(--teal-700); }
.badge-cond-new { background: #e7f6ee; color: #0f7a44; }
.badge-cond-near { background: #fbeee1; color: #b4551d; }
.badge-cond-return { background: #eef1f0; color: #55605f; }
.badge-cond-refurb { background: #e7f1f7; color: #1f6f9c; }
.badge-cond-defect { background: #fbe9e9; color: #b23b3b; }
.badge-cond-mixed { background: #ece9f6; color: #5b4b9c; }
.badge-ship { background: #eaf5ee; color: #167a45; }
.badge-vat { background: #f1efe8; color: #85702f; }
.card-title { font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.card-brand { font-size: 12.5px; color: var(--ink-3); }
.card-meta { display: flex; gap: 12px; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; flex-wrap: wrap; }
.card-comment {
  font-size: 12px; color: var(--teal-700); background: var(--teal-050); border-radius: 8px; padding: 7px 9px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-comment b { font-weight: 800; }
.card-price { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.price-msrp { font-size: 12px; color: var(--ink-3); text-decoration: line-through; }
.price-row { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.disc-chip { font-size: 13px; font-weight: 800; color: var(--sale); background: #fdece5; border-radius: 6px; padding: 2px 7px; flex: 0 0 auto; }
.price-ask { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.price-row small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.price-topoffer {
  margin-top: 8px; font-size: 12.5px; color: var(--sale); font-weight: 700;
  background: #fdf1ec; border: 1px solid #f6d3c5; border-radius: 8px; padding: 7px 10px;
}
.price-topoffer b { font-size: 14px; }
.price-topoffer small { color: #b07a63; font-weight: 600; display: block; margin-top: 1px; }

/* 비로그인: 금액 숫자만 블러 */
.blur-num { filter: blur(6px); user-select: none; display: inline-block; padding: 0 4px; color: var(--ink-3); }
.price-lock { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--teal-700); }
.card.has-offer { border-color: #f0b9a4; box-shadow: 0 0 0 1.5px rgba(226,84,42,.18), var(--shadow); }
.offer-flag {
  position: absolute; top: 10px; right: 10px;
  background: linear-gradient(135deg, var(--sale), var(--sale-2)); color: #fff;
  font-weight: 800; font-size: 11.5px; padding: 4px 9px; border-radius: 999px;
  box-shadow: 0 3px 10px rgba(226,84,42,.45);
}
.dday-flag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(20,30,29,.78); color: #fff; font-weight: 800; font-size: 12px;
  padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(2px);
}
.dday-flag.urgent { background: var(--sale); box-shadow: 0 3px 10px rgba(226,84,42,.45); }
.badge-progress { background: #eaf1fe; color: #1d4ed8; }
.badge-done { background: #eef1f0; color: #66716f; }

/* 거래완료 카드 */
.card-done { cursor: default; }
.card-done .card-thumb img { filter: grayscale(.7) brightness(.9); }
.card-done:hover { transform: none; box-shadow: var(--shadow); border-color: var(--line); }
.done-overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(20,30,29,.5); color: #fff; font-weight: 800; font-size: 18px; letter-spacing: .05em;
}

/* 주소 공개 미리보기 */
.addr-preview { margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }
.addr-preview b { color: var(--teal-700); }
.addr-note { color: var(--ink-3); font-weight: 400; }

/* 매입 제안 가격 안내 */
.offer-help { margin-top: 8px; }
.oh-line { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.oh-line b { color: var(--ink); font-weight: 800; }
.oh-chips { display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.amt-chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 700; font-size: 13px;
  padding: 9px 14px; border-radius: 10px; cursor: pointer; transition: .12s; font-family: inherit;
}
.amt-chip:hover { border-color: var(--teal); color: var(--teal-700); background: var(--teal-050); }
.amt-chip.primary { background: var(--teal-050); border-color: var(--teal-100); color: var(--teal-700); }
.amt-chip.primary:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

/* (?) 툴팁 */
.tip {
  display: inline-flex; width: 17px; height: 17px; border-radius: 50%; background: var(--ink-3); color: #fff;
  font-size: 11px; font-weight: 800; align-items: center; justify-content: center; cursor: pointer;
  position: relative; margin-left: 3px; vertical-align: middle; outline: none;
}
.tip:hover { background: var(--teal); }
.tip-bubble {
  display: none; position: absolute; bottom: 150%; left: 50%; transform: translateX(-50%);
  width: 230px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; line-height: 1.55;
  padding: 11px 13px; border-radius: 10px; z-index: 20; box-shadow: var(--shadow-lg); text-align: left; white-space: normal;
}
.tip-bubble b { color: #46c7c1; }
.tip-bubble::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--ink); }
.tip:hover .tip-bubble, .tip:focus .tip-bubble, .tip.open .tip-bubble { display: block; }

.empty { text-align: center; padding: 70px 20px; color: var(--ink-3); border: 1.5px dashed var(--line); border-radius: var(--radius); background: #fff; }
.empty .em { font-size: 40px; }

/* ---------- 상태 배지 ---------- */
.status { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.status-pending { background: #fbeee1; color: #b4551d; }
.status-live { background: var(--teal-050); color: var(--teal-700); }
.status-hold { background: #fbeee1; color: #b4551d; }
.status-done { background: #eef1f0; color: #66716f; }

/* ---------- 모달 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(12,20,19,.55); backdrop-filter: blur(3px);
  z-index: 60; display: none; align-items: flex-start; justify-content: center; padding: 34px 16px; overflow: auto;
}
.modal-mask.open { display: flex; }
.modal { background: #fff; width: 100%; max-width: 680px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); animation: pop .18s ease; }
.modal.narrow { max-width: 460px; }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: 0; cursor: pointer; font-size: 18px; color: #334; z-index: 3;
}
.modal-bd { padding: 20px 22px 22px; }
.modal-bd h2 { margin: 0 0 4px; font-size: 21px; letter-spacing: -.02em; }
.modal-sub { color: var(--ink-3); font-size: 13.5px; margin-bottom: 4px; }

/* 갤러리 */
.gallery { position: relative; background: #0d1211; }
.gallery-main { aspect-ratio: 4/3; background: #0d1211; display: block; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery .disc { position: absolute; top: 14px; left: 14px; background: var(--sale); color:#fff; font-weight:800; font-size:13px; padding:4px 9px; border-radius:8px; z-index:2; }
.thumbs { display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; background: #fff; border-bottom: 1px solid var(--line-2); }
.thumbs img {
  width: 60px; height: 60px; object-fit: cover; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; flex: 0 0 auto; background: var(--soft);
}
.thumbs img.active { border-color: var(--teal); }

.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 16px 0; }
.spec .k { font-size: 12px; color: var(--ink-3); }
.spec .v { font-size: 15px; font-weight: 700; color: var(--ink); }
.pricebox {
  background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; margin: 16px 0; gap: 12px; flex-wrap: wrap;
}
.pricebox .ask { font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.pricebox .msrp { font-size: 13px; color: var(--ink-3); text-decoration: line-through; }
.pricebox .save { font-size: 13px; font-weight: 800; color: var(--sale); }
.pricebox .terms { font-size: 12px; color: var(--ink-2); }
.comment-box {
  background: var(--teal-050); border: 1px solid var(--teal-100); border-radius: 10px; padding: 12px 14px;
  font-size: 13.5px; color: #0c5150; white-space: pre-wrap;
}
.comment-box .lbl { font-size: 12px; font-weight: 800; color: var(--teal-700); display: block; margin-bottom: 4px; }
.memo { background: #fbfaf6; border: 1px solid #ece4d2; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; color: #6b5f42; white-space: pre-wrap; margin-top: 10px; }
.terms-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 2px; }

/* 상품 구성 표(매니페스트) */
.manifest-title { font-size: 14px; font-weight: 800; margin: 16px 0 8px; display: flex; align-items: center; gap: 8px; }
.manifest-title span { font-size: 12px; font-weight: 700; color: var(--teal-700); background: var(--teal-050); padding: 2px 8px; border-radius: 999px; }
.table-mini { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.table-mini table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table-mini th { text-align: left; background: var(--soft); color: var(--ink-2); font-size: 12px; font-weight: 700; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.table-mini td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); }
.table-mini tbody tr:last-child td { border-bottom: 0; }

/* ---------- 폼 ---------- */
.page-head { padding: 34px 0 10px; }
.page-head h1 { font-size: 26px; margin: 0 0 6px; letter-spacing: -.03em; }
.page-head p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin: 18px 0 16px; }
.form-section-title { font-size: 15px; font-weight: 800; margin: 4px 0 14px; display: flex; align-items: center; gap: 8px; }
.form-section-title .num { width: 22px; height: 22px; border-radius: 6px; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink); }
.field label .req { color: var(--sale); }
.field .hint { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.input, .textarea, .field select {
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: 14.5px;
  font-family: inherit; color: var(--ink); background: #fff; transition: .12s; width: 100%;
}
.input:focus, .textarea:focus, .field select:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,112,112,.15); }
.textarea { min-height: 90px; resize: vertical; }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .suffix { display: grid; place-items: center; padding: 0 13px; border: 1px solid var(--line); border-left: 0; border-radius: 0 10px 10px 0; background: var(--soft); font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.calc { background: var(--soft); border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; color: var(--ink-2); display: flex; gap: 18px; flex-wrap: wrap; }
.calc b { color: var(--sale); font-size: 16px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.divider { height: 1px; background: var(--line-2); margin: 22px 0; }

/* 이미지 업로드 */
.uploader {
  border: 1.5px dashed var(--line); border-radius: 12px; padding: 18px; text-align: center; background: var(--soft);
  cursor: pointer; transition: .12s;
}
.uploader:hover { border-color: var(--teal); background: var(--teal-050); }
.uploader .u-em { font-size: 30px; }
.uploader .u-t { font-weight: 700; font-size: 14px; margin-top: 6px; }
.uploader .u-s { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.thumb-item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-item .cover-tag { position: absolute; top: 4px; left: 4px; background: var(--teal); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 5px; }
.thumb-item .rm { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; border: 0; cursor: pointer; font-size: 13px; line-height: 1; }
.count-pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.count-ok { background: #e7f6ee; color: #0f7a44; }
.count-need { background: #fbeee1; color: #b4551d; }

/* 스텝 마법사 */
.stepper { display: flex; gap: 8px; margin: 18px 0 4px; }
.step-item { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.step-item .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--ink-3); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: 0 0 auto; border: 1px solid var(--line); }
.step-item .st { font-size: 11px; color: var(--ink-3); font-weight: 700; }
.step-item .sl { font-size: 13.5px; font-weight: 700; color: var(--ink-2); line-height: 1.2; }
.step-item.active { border-color: var(--teal); background: var(--teal-050); }
.step-item.active .dot { background: var(--teal); color: #fff; border-color: var(--teal); }
.step-item.active .sl { color: var(--teal-700); }
.step-item.done .dot { background: var(--green); color: #fff; border-color: var(--green); }
.step-panel { display: none; }
.step-panel.active { display: block; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.wizard-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-2); }

/* 상품 구성 입력 표 (엑셀 스타일 격자) */
.items-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.items-table th {
  text-align: center; font-size: 12px; color: var(--ink-2); font-weight: 700;
  padding: 8px 10px; background: var(--soft); border: 1px solid var(--line);
}
.items-table td { vertical-align: middle; }
.items-table tbody { counter-reset: xr; }
.items-table tbody tr { counter-increment: xr; }
.items-table td.rownum {
  border: 1px solid var(--line-2); background: var(--soft); width: 34px;
  text-align: center; font-size: 12px; color: var(--ink-3); font-weight: 700;
}
.items-table td.rownum::before { content: counter(xr); }
.items-table td.cell { border: 1px solid var(--line-2); padding: 0; position: relative; }
.items-table td.cell .input, .items-table td.cell select {
  border: 0; border-radius: 0; background: transparent; padding: 9px 10px; font-size: 13.5px; width: 100%;
}
.items-table td.cell .input:focus, .items-table td.cell select:focus {
  outline: 2px solid var(--teal); outline-offset: -2px; box-shadow: none; background: var(--teal-050);
}
.items-table .row-tools { border: 1px solid var(--line-2); padding: 0; text-align: center; }
.col-sub { font-size: 10.5px; font-weight: 500; color: var(--ink-3); }
.items-head { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 2px 10px; flex-wrap: wrap; gap: 8px; }
.items-count { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.items-count b { color: var(--teal-700); }
.items-hint { font-size: 12.5px; color: var(--ink-3); }
.items-table td.cell { position: relative; }
.items-table td.cell .input, .items-table td.cell select { padding-right: 14px; }
.fill-handle {
  position: absolute; right: 2px; bottom: 2px; width: 10px; height: 10px; border-radius: 2px;
  background: var(--teal); border: 1.5px solid #fff; cursor: crosshair; z-index: 2;
  opacity: 0; pointer-events: none; transition: opacity .1s; box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
/* 활성 셀(호버·포커스)에만 채우기 핸들 표시 — 엑셀처럼 */
.items-table td.cell:hover .fill-handle,
.items-table td.cell:focus-within .fill-handle { opacity: 1; pointer-events: auto; }
.items-table td.cell.fill-target { background: var(--teal-050); box-shadow: inset 0 0 0 1px var(--teal-100); }
.row-tools { white-space: nowrap; }
.rt { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; font-size: 13px; margin-left: 2px; }
.rt:hover { background: var(--soft); border-color: var(--teal); color: var(--teal-700); }
.rt.del:hover { background: #fbe9e9; border-color: var(--red); color: var(--red); }
.add-row { margin-top: 8px; }
.items-total { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.items-total b { color: var(--teal-700); font-size: 15px; }

/* 계약서 박스 */
.contract-box {
  max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 24px; background: #fdfdfb; margin-bottom: 16px;
  font-size: 13px; color: var(--ink-2); line-height: 1.75;
}
.contract-box .c-title { font-size: 16px; font-weight: 800; color: var(--ink); text-align: center; margin-bottom: 4px; }
.contract-box .c-sub { font-size: 12px; color: var(--ink-3); text-align: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.contract-box p { margin: 0 0 12px; }
.contract-box b { color: var(--ink); }

/* 동의 */
.agree-list { display: flex; flex-direction: column; gap: 2px; }
.agree-all { display: flex; gap: 10px; align-items: center; padding: 14px; border: 1px solid var(--teal); background: var(--teal-050); border-radius: 12px; cursor: pointer; margin-bottom: 8px; }
.agree { display: flex; gap: 11px; align-items: flex-start; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.agree:hover { background: var(--soft); }
.agree input, .agree-all input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--teal); flex: 0 0 auto; cursor: pointer; }
.agree .a-t { font-size: 13.5px; color: var(--ink); }
.agree .a-t b { color: var(--sale); }
.agree-all .a-t { font-size: 14.5px; font-weight: 800; }
.settle-box { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px 18px; }
.settle-box .k { font-size: 12px; color: var(--ink-3); }
.settle-box .v { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.settle-box .v.fee { color: var(--sale); }
.settle-box .v.net { color: var(--teal-700); }

/* 안내 박스 */
.notice { display: flex; gap: 10px; align-items: flex-start; border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.notice.info { background: var(--teal-050); border: 1px solid var(--teal-100); color: #0c5150; }
.notice.warn { background: #fbfaf6; border: 1px solid #ece4d2; color: #6b5f42; }
.demo-note { background: #fbfaf6; border: 1px solid #ece4d2; color: #85702f; border-radius: 10px; padding: 10px 14px; font-size: 12.5px; margin: 8px 0 40px; }

/* 토스트 */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 12px; font-weight: 600;
  box-shadow: var(--shadow-lg); opacity: 0; transition: .25s; z-index: 80; font-size: 14px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 관리자 ---------- */
.admin-lock { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; color: var(--teal-700); background: var(--teal-050); border: 1px solid var(--teal-100); padding: 4px 10px; border-radius: 999px; }
.tabs { display: flex; gap: 6px; margin: 20px 0 4px; border-bottom: 1px solid var(--line); }
.tab { padding: 10px 16px; font-weight: 700; font-size: 14px; color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; }
.tab.active { color: var(--teal-700); border-bottom-color: var(--teal); }
.tab .n { font-size: 12px; background: var(--soft); border-radius: 999px; padding: 1px 7px; margin-left: 4px; color: var(--ink-2); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat .l { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.stat .n { font-size: 25px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.stat .n small { font-size: 14px; color: var(--ink-3); font-weight: 600; }

.table-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 40px; }
.table-scroll { overflow-x: auto; }
table.admin { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 920px; }
table.admin thead th { text-align: left; padding: 12px 14px; background: var(--soft); color: var(--ink-2); font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.admin tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.admin tbody tr:hover { background: #fbfcfc; }
.t-title { font-weight: 700; color: var(--ink); }
.t-sub { font-size: 12px; color: var(--ink-3); }
.t-num { font-variant-numeric: tabular-nums; }
.row-thumb { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--soft); border: 1px solid var(--line); }
.mini-select { border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; }
.link-btn { color: var(--teal-700); font-size: 12.5px; font-weight: 700; cursor: pointer; background: none; border: 0; padding: 0; }
.link-del { color: var(--red); font-size: 12.5px; font-weight: 700; cursor: pointer; background: none; border: 0; }
.admin-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 16px 0 4px; }
.admin-bar .grow { flex: 1; }
.badge-new { background: var(--sale); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 5px; }
.tax-b { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 3px 7px; border-radius: 5px; margin-right: 3px; }
.tax-b.ok { background: #e7f6ee; color: #0f7a44; }
.tax-b.no { background: #f3f5f4; color: #9aa5a4; }

/* ---------- 재고 거래 관리: 진행 중인 거래 ---------- */
.active-title { font-size: 16px; font-weight: 800; margin: 4px 0 12px; display: flex; align-items: center; gap: 8px; }
.active-title .n { font-size: 12px; font-weight: 800; color: var(--sale); background: #fbeee1; padding: 2px 10px; border-radius: 999px; }
.active-card {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid var(--teal-100);
  border-left: 4px solid var(--teal); border-radius: 12px; padding: 13px 16px; margin-bottom: 8px;
  cursor: pointer; transition: .13s; flex-wrap: wrap; box-shadow: var(--shadow);
}
.active-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.ac-kind { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 6px; flex: 0 0 auto; }
.ac-kind.buy { background: #e7f1f7; color: #1f6f9c; }
.ac-kind.sell { background: var(--teal-050); color: var(--teal-700); }
.ac-body { flex: 1; min-width: 150px; }
.ac-t { font-weight: 800; font-size: 14px; }
.ac-s { font-size: 12.5px; color: var(--ink-3); }
.ac-action { font-size: 13px; font-weight: 700; color: var(--sale); }
.ac-arrow { color: var(--ink-3); font-size: 20px; font-weight: 700; }
#activeDeals { margin-bottom: 24px; }

/* ---------- 마이페이지 / 거래 상태 ---------- */
.offer-badge { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.ob-new { background: #eef1f0; color: #55605f; }
.ob-deposit { background: #fbeee1; color: #b4551d; }
.ob-fixed { background: var(--teal-050); color: var(--teal-700); }
.ob-paid { background: #e7f1f7; color: #1f6f9c; }
.ob-shipped { background: #ece9f6; color: #5b4b9c; }
.ob-confirmed { background: #e7f6ee; color: #0f7a44; }
.ob-settled { background: #e7f6ee; color: #0f7a44; }
.ob-cancelled { background: #fbe9e9; color: #b23b3b; }
.ob-read { background: #eef1f0; color: #55605f; }
.flow-steps { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0 2px; }
.flow-step { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--soft); color: var(--ink-3); border: 1px solid var(--line-2); }
.flow-step.done { background: var(--teal-050); color: var(--teal-700); border-color: var(--teal-100); }
.flow-step.now { background: var(--teal); color: #fff; border-color: var(--teal); }
.my-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 14px; }
.my-card .head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.my-card .head img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.my-card .head .grow { flex: 1; min-width: 160px; }
.my-card .t { font-weight: 800; font-size: 15px; }
.my-card .s { font-size: 12.5px; color: var(--ink-3); }
.my-offers-sub { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.deposit-guide { background: var(--teal-050); border: 1px solid var(--teal-100); border-radius: 10px; padding: 12px 14px; font-size: 13px; color: #0c5150; margin-top: 10px; }
.deposit-guide b { font-size: 14.5px; }

/* ---------- 법적 문서 페이지 ---------- */
.doc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 36px; margin: 20px 0 50px; max-width: 860px; }
.doc-card h1 { font-size: 24px; margin: 0 0 6px; }
.doc-card h2 { font-size: 16.5px; margin: 26px 0 8px; }
.doc-card p, .doc-card li { font-size: 14px; color: var(--ink-2); line-height: 1.75; }
.doc-card .updated { font-size: 12.5px; color: var(--ink-3); margin-bottom: 8px; }

/* ---------- 푸터 (회사 정보) ---------- */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 34px 0 26px; margin-top: 30px; color: var(--ink-3); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.foot-info { padding-bottom: 18px; border-bottom: 1px solid var(--line-2); margin-bottom: 16px; }
.foot-co { font-size: 15px; font-weight: 800; color: var(--ink-2); margin-bottom: 8px; }
.foot-lines { font-size: 13px; color: var(--ink-3); line-height: 1.8; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-links { display: flex; gap: 14px; }
.footer-links a { color: var(--ink-2); font-weight: 600; }
.footer-links a:hover { color: var(--teal-700); }
.foot-logout { background: none; border: 0; color: var(--ink-3); font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; padding: 0; }
.foot-logout:hover { color: var(--teal-700); text-decoration: underline; }

/* ---------- 반응형 ---------- */
@media (max-width: 760px) {
  .header-right { display: none; }
  .nav-burger { display: block; margin-left: auto; }
  .brand-name { font-size: 16px; padding-left: 9px; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stepper { gap: 6px; }
  .step-item { flex-direction: column; text-align: center; gap: 5px; padding: 10px 6px; }
  .step-item .st { display: none; }
  .step-item .sl { font-size: 11.5px; }
  .settle-box { grid-template-columns: 1fr; gap: 12px; }
  .wizard-nav { flex-direction: column-reverse; gap: 8px; }
  .wizard-nav > div { display: flex; gap: 8px; }
  .wizard-nav .btn { flex: 1; }

  /* 여백·모달·탭 모바일 최적화 */
  .wrap { padding: 0 16px; }
  .modal-mask { padding: 12px 10px 40px; align-items: flex-start; }
  .modal-bd { padding: 18px 16px 20px; }
  .modal.narrow { max-width: 100%; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; flex: 0 0 auto; padding: 10px 13px; font-size: 13.5px; }
  .doc-card { padding: 24px 20px; }
  .page-head { padding: 24px 0 6px; }
  .page-head h1 { font-size: 22px; }
  .form-card { padding: 18px 16px; }
  .admin-bar { gap: 8px; }
  .admin-bar .search { max-width: none !important; flex: 1 1 100%; }
  .spec { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .my-card .head .grow { min-width: 120px; }
  .hero-trust { font-size: 12px; }
  .active-card { gap: 8px; }
  .ac-action { flex-basis: 100%; order: 5; }
}
