/* BinMall(솔루션2) 회원 - 가라4 구조 + 빈몰 색상 */
:root {
  --bg: #f2f5f2;
  --card: #ffffff;
  --line: #e0e6e1;
  --txt: #18251d;
  --txt2: #5a6a60;
  --txt3: #8a958c;
  --accent: #4fbd91;
  --accent2: #3da37b;
  --accent-soft: #e9f6ef;
  --on-accent: #10241b;
  --orange: #f26d3d;
  --green: #2f9c72;
  --red: #e5484d;
  --navy: #232523;
  --shadow: 0 1px 3px rgba(24,37,29,.07);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Pretendard Variable', Pretendard, Inter, 'Noto Sans KR', -apple-system, 'Malgun Gothic', sans-serif; background: var(--bg); color: var(--txt); font-size: 14px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin: auto; }

/* 상단 GNB (가라4형) */
.topwrap { position: sticky; top: 0; z-index: 100; background: var(--card); border-bottom: 1px solid var(--line); }
.gnb { height: 62px; }
.gnb-in { display: flex; align-items: center; gap: 22px; height: 62px; }
.logo { display: flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 900; letter-spacing: -.02em; white-space: nowrap; color: var(--txt); }
.logo .bmark { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px 5px; background: linear-gradient(135deg, #8b7cff, #55d6b0); color: #141525; font-style: normal; font-size: 17px; font-weight: 950; flex: none; }
.gnb-nav { display: flex; gap: 4px; }
.gnb-nav a { padding: 7px 11px; font-size: 14px; font-weight: 700; color: var(--txt2); border-radius: 8px; white-space: nowrap; }
.gnb-nav a:hover { color: var(--accent); background: var(--accent-soft); }
.gnb-nav a.on { color: var(--accent); }
.gnb-search { flex: 1; max-width: 380px; }
.gnb-search input { width: 100%; padding: 9px 15px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 13.5px; background: var(--bg); }
.gnb-search input:focus { outline: none; border-color: var(--accent); background: var(--card); }
.gnb-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn-sell { background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 13px; padding: 9px 16px; border-radius: 9px; white-space: nowrap; }
.btn-sell:hover { background: var(--accent2); }
.btn-ghost { font-size: 13.5px; font-weight: 700; color: var(--txt2); padding: 9px 12px; white-space: nowrap; }
.btn-main { background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 13px; padding: 9px 16px; border-radius: 9px; white-space: nowrap; }
.btn-main:hover { background: var(--accent2); }
.notif-link { position: relative; font-size: 13.5px; font-weight: 700; color: var(--txt2); padding: 9px 10px; white-space: nowrap; }
.notif-link .n-cnt { position: absolute; top: 2px; right: -2px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; min-width: 16px; height: 16px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.has-sub { position: relative; }
.user-chip { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--txt); padding: 6px 4px; white-space: nowrap; }
.uava { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.caret { display: inline-block; width: 7px; height: 7px; border-right: 1.5px solid var(--txt3); border-bottom: 1.5px solid var(--txt3); transform: rotate(45deg); margin-bottom: 3px; }
.sub { display: none; position: absolute; top: 100%; right: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(23,32,51,.12); min-width: 170px; padding: 6px; z-index: 200; }
.has-sub:hover .sub { display: block; }
.sub a { display: block; padding: 9px 12px; font-size: 13px; font-weight: 600; color: var(--txt2); border-radius: 8px; }
.sub a:hover { background: var(--accent-soft); color: var(--accent); }
.sub .mile { display: block; padding: 10px 12px; font-size: 13px; color: var(--green); font-weight: 800; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.ham { display: none; background: none; border: 0; font-size: 24px; color: var(--txt); cursor: pointer; padding: 4px 8px; }
.mnav-panel { display: none; background: var(--card); border-bottom: 1px solid var(--line); padding: 8px 16px 14px; }
.mnav-panel a { display: block; padding: 11px 6px; font-size: 14.5px; font-weight: 700; color: var(--txt2); border-bottom: 1px solid var(--line); }
.mnav-panel a:last-child { border-bottom: 0; }
.mnav-panel a .mp { color: var(--green); }
@media (max-width: 960px) {
  .gnb-nav, .gnb-search { display: none; }
  .ham { display: block; }
  body.mnav .mnav-panel { display: block; }
}

/* 페이지 공통 */
.page { min-height: calc(100vh - 62px); }
.page-in { width: min(1120px, 100% - 32px); margin: auto; padding: 26px 0 60px; }

/* 히어로 스트립 (가라4형, 빈몰 네이비) */
.hero-strip { background: linear-gradient(120deg, #141613, #20241f 55%, #1e2b24); color: #f3f0e8; padding: 46px 0 42px; }
.hero-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.hero-strip .eyebrow { color: #68d5a5; letter-spacing: .18em; font-size: 11.5px; font-weight: 800; display: block; margin-bottom: 12px; }
.hero-strip h1 { font-size: 30px; font-weight: 900; letter-spacing: -.02em; line-height: 1.3; }
.hero-strip h1 em { font-style: normal; color: #f26d3d; }
.hero-strip p { color: #b8b5ad; margin-top: 12px; font-size: 14px; }
.hc { display: flex; gap: 12px; flex: none; }
.hstat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 16px 22px; text-align: center; min-width: 110px; }
.hstat b { display: block; font-size: 22px; font-weight: 900; color: #68d5a5; font-variant-numeric: tabular-nums; }
.hstat span { font-size: 12px; color: #b8b5ad; font-weight: 600; }
.popular-search { display: flex; align-items: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.popular-search span { font-size: 12.5px; color: #f2a184; font-weight: 700; }
.popular-search a { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.15); color: #d6d2c8; font-size: 12.5px; font-weight: 700; padding: 6px 13px; border-radius: 20px; }
.popular-search a:hover { background: rgba(255,255,255,.18); color: #fff; }

/* 카테고리 칩 + 섹션 헤드 (가라4형) */
.cat-row { display: flex; gap: 8px; padding: 20px 0 4px; overflow-x: auto; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-row a { flex: none; padding: 8px 15px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; font-size: 13px; font-weight: 700; color: var(--txt2); }
.cat-row a:hover { border-color: var(--accent); color: var(--accent); }
.cat-row a.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sec-head { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 14px; }
.sec-head h2 { font-size: 19px; font-weight: 800; }
.sec-head .cnt { font-size: 13px; color: var(--txt3); font-weight: 600; }
.btn-xs { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 12px; font-weight: 700; color: var(--txt2); }
.btn-xs.acc { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* 상품 카드 그리드 (가라4형) */
.item-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.item-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.item-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(23,32,51,.1); }
.item-thumb { aspect-ratio: 1/.82; background: linear-gradient(140deg, #eef2f7, #dde5ef); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-thumb .ph { font-size: 40px; }
.item-thumb .st { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 800; }
.item-thumb .st.done { background: rgba(23,32,51,.82); color: #fff; }
.item-thumb .st.rsv { background: var(--accent); color: var(--on-accent); }
.item-thumb .cond { position: absolute; bottom: 10px; right: 10px; background: rgba(255,255,255,.92); color: var(--txt2); padding: 3px 9px; border-radius: 8px; font-size: 11px; font-weight: 700; }
.item-body { padding: 13px 14px 14px; }
.item-body .cat { font-size: 11.5px; color: var(--txt3); font-weight: 600; }
.item-body .tt { font-size: 14.5px; font-weight: 700; margin: 5px 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-body .pr { font-size: 16px; font-weight: 900; color: var(--accent); font-variant-numeric: tabular-nums; }
.item-body .meta { display: flex; gap: 5px; margin-top: 7px; font-size: 12px; color: var(--txt3); }

/* 카드/패널 공통 */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 18px; }
.panel-h { padding: 15px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.panel-h h3 { font-size: 15px; font-weight: 800; margin-right: auto; }
.panel-p { padding: 18px; }
.pg-head { margin: 26px 0 18px; }
.pg-head .eyebrow { color: var(--accent); letter-spacing: .16em; font-size: 11px; font-weight: 800; }
.pg-head h1 { font-size: 24px; font-weight: 900; letter-spacing: -.02em; margin-top: 4px; }
.pg-head h1 b { color: var(--accent); }
.pg-head p { color: var(--txt2); font-size: 13.5px; margin-top: 7px; }

/* 상세 페이지 */
.detail-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 22px; align-items: start; }
.detail-img { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; position: relative; }
.detail-img .main { aspect-ratio: 1/.82; background: #eef2f7; display: flex; align-items: center; justify-content: center; }
.detail-img .main img { width: 100%; height: 100%; object-fit: cover; }
.detail-img .ph { font-size: 64px; }
.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.92); font-size: 20px; color: var(--txt2); cursor: pointer; }
.nav-btn.prev { left: 12px; } .nav-btn.next { right: 12px; }
.image-count { position: absolute; bottom: 12px; right: 12px; background: rgba(23,32,51,.7); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 8px; }
.detail-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.detail-card .cat { font-size: 12.5px; color: var(--txt3); font-weight: 600; }
.detail-card h2 { font-size: 21px; font-weight: 800; margin: 8px 0 4px; }
.detail-seller { font-size: 13px; color: var(--txt2); }
.detail-price { display: block; font-size: 26px; font-weight: 900; color: var(--accent); margin: 14px 0; font-variant-numeric: tabular-nums; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--txt2); }
.detail-meta b { color: var(--txt); }
.detail-description { font-size: 14px; line-height: 1.7; color: #3c465c; margin: 15px 0; white-space: pre-wrap; }
.detail-notice { background: var(--accent-soft); border: 1px solid #d6e4ff; border-radius: 11px; padding: 11px 14px; font-size: 12.5px; color: #34518c; }
.detail-action { width: 100%; margin-top: 14px; padding: 13px; text-align: center; }
.trade-request-message { background: #e8faf3; border: 1px solid #b9ecd9; color: #0b7a55; border-radius: 11px; padding: 11px 14px; font-size: 13px; font-weight: 700; margin-top: 14px; }
.trade-complete { display: block; text-align: center; margin-top: 14px; padding: 13px; border-radius: 11px; background: var(--bg); color: var(--txt2); font-weight: 800; font-size: 14px; }

/* 댓글 */
.comment-form { display: flex; gap: 10px; margin-bottom: 14px; }
.comment-form textarea { flex: 1; min-height: 64px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 13.5px; font-family: inherit; resize: vertical; }
.comment-item { border-top: 1px solid var(--line); padding: 13px 0; }
.comment-item > div { display: flex; align-items: baseline; gap: 9px; }
.comment-item strong { font-size: 13.5px; }
.comment-item small { font-size: 12px; color: var(--txt3); }
.comment-item p { font-size: 13.5px; color: #3c465c; margin-top: 5px; }

/* 폼 */
.fld { margin-bottom: 14px; }
.fld label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; color: var(--txt2); }
.fld input, .fld select, .fld textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 13.5px; font-family: inherit; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--accent); }
.fld textarea { resize: vertical; }
.primary { display: inline-block; background: var(--accent); color: var(--on-accent); border: 0; border-radius: 10px; padding: 11px 18px; font-size: 14px; font-weight: 800; cursor: pointer; }
.primary:hover { background: var(--accent2); }
.btn-sub { display: inline-block; background: var(--card); color: var(--txt2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; font-size: 13px; font-weight: 700; cursor: pointer; }
.btn-sub:hover { border-color: var(--accent); color: var(--accent); }
.frm { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.frm input, .frm select { padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 9px; font-size: 13px; font-family: inherit; }
.auth-submit { width: 100%; padding: 13px; }
.auth-error { background: #fdecec; color: #c0392b; border: 1px solid #f5c6c6; border-radius: 10px; padding: 11px 14px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.alert-ok { background: #e8faf3; color: #0b7a55; border: 1px solid #b9ecd9; border-radius: 10px; padding: 11px 14px; font-size: 13px; font-weight: 700; margin-bottom: 14px; }

/* 로그인/가입 */
.auth-page { display: flex; justify-content: center; padding: 40px 0 60px; }
.auth-card { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 34px 30px; box-shadow: var(--shadow); }
.auth-card .eyebrow { color: var(--accent); letter-spacing: .16em; font-size: 11px; font-weight: 800; display: block; text-align: center; }
.auth-card h1 { font-size: 21px; font-weight: 900; text-align: center; margin-top: 8px; }
.auth-card .sub { text-align: center; color: var(--txt2); font-size: 13px; margin: 9px 0 22px; }
.auth-switch { width: 100%; margin-top: 12px; padding: 11px; background: var(--bg); border: 0; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--txt2); cursor: pointer; }
.auth-switch:hover { color: var(--accent); }

/* 마이페이지 */
.mypage-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 18px; align-items: start; }
.mileage-card span { color: var(--txt2); font-size: 13px; font-weight: 700; }
.mileage-card strong { font-size: 32px; color: var(--green); font-weight: 900; margin: 9px 0; display: block; font-variant-numeric: tabular-nums; }
.mileage-card p { color: var(--txt3); font-size: 12.5px; }
.deposit-account-notice { background: var(--accent-soft); border: 1px solid #d6e4ff; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.deposit-account-notice small { display: block; font-size: 11.5px; color: #54739f; font-weight: 700; }
.deposit-account-notice strong { display: block; font-size: 16.5px; color: var(--accent); margin: 4px 0 2px; }
.deposit-account-notice span { font-size: 12.5px; color: #54739f; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.row:first-of-type { border-top: 0; }
.row > span { flex: 1; color: var(--txt2); }
.row > strong { font-variant-numeric: tabular-nums; }
.row form button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 12px; font-weight: 700; color: var(--txt2); cursor: pointer; }
.row form button:hover { border-color: var(--red); color: var(--red); }

/* 상태 뱃지 */
.st-pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.st-wait { background: #fff4dd; color: #b7791f; }
.st-ing { background: var(--accent-soft); color: var(--accent); }
.st-ok { background: #e8faf3; color: var(--green); }
.st-cancel { background: #fdecec; color: var(--red); }

/* 알림 */
.notif-item { display: flex; gap: 13px; padding: 15px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.notif-item:first-of-type { border-top: 0; }
.notif-item .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); margin-top: 5px; flex: none; }
.notif-item.unread .dot { background: var(--accent); }
.notif-item .n-body { flex: 1; }
.notif-item h3 { font-size: 14.5px; font-weight: 800; }
.notif-item p { font-size: 13.5px; color: var(--txt2); margin-top: 5px; white-space: pre-wrap; }
.notif-item small { font-size: 12px; color: var(--txt3); }
.notif-item form button { padding: 6px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 12px; font-weight: 700; color: var(--accent); cursor: pointer; }

/* 공지/정보 탭 */
.info-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.info-tabs a { padding: 9px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; font-size: 13px; font-weight: 700; color: var(--txt2); }
.info-tabs a.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.info-card { display: flex; gap: 18px; padding: 22px; }
.info-number { font-size: 26px; font-weight: 900; color: #d3dcd3; flex: none; }
.info-card h2 { font-size: 16.5px; font-weight: 800; margin-bottom: 8px; }
.info-card p { font-size: 14px; line-height: 1.75; color: var(--txt2); white-space: pre-wrap; }
.info-card small { display: block; margin-top: 10px; font-size: 12px; color: var(--txt3); }

/* 문의 */
.inq-item { border-top: 1px solid var(--line); padding: 15px 0; }
.inq-item:first-of-type { border-top: 0; }
.inq-item .q { font-weight: 800; font-size: 14px; display: flex; gap: 9px; align-items: center; }
.inq-item .ans { margin-top: 10px; background: var(--accent-soft); border-radius: 11px; padding: 12px 14px; font-size: 13px; color: #2c6e53; white-space: pre-wrap; }

/* 푸터 (가라4형) */
.foot { background: #141613; color: #a8a59b; padding: 34px 0 30px; margin-top: 40px; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.foot-links a { font-size: 13px; font-weight: 700; color: #d6d2c8; }
.foot-links a:hover { color: #fff; }
.foot-co { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 900; color: #f3f0e8; margin-bottom: 8px; }
.foot-co .bmark { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px 4px; background: linear-gradient(135deg, #8b7cff, #55d6b0); color: #141525; font-size: 14px; font-weight: 950; }
.foot-info { font-size: 12.5px; line-height: 1.7; max-width: 640px; }
.foot-copy { font-size: 12px; color: #6f6c62; margin-top: 12px; }
.pagi { display: flex; justify-content: center; gap: 6px; margin: 26px 0 10px; }
.pagi a { min-width: 34px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--line); border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--txt2); }
.pagi a:hover { border-color: var(--accent); color: var(--accent); }
.pagi a.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pagi a.arr { font-size: 16px; }
.pagi .dots { display: inline-flex; align-items: center; padding: 0 4px; color: var(--txt3); font-weight: 700; }

/* 전체상품 검색바 */
.plist-bar { display: flex; gap: 8px; margin: 16px 0 4px; }
.plist-bar input { flex: 1; max-width: 340px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 13.5px; background: var(--card); color: var(--txt); }
.plist-bar select { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 13px; font-weight: 700; background: var(--card); color: var(--txt2); }
.plist-bar input:focus, .plist-bar select:focus { outline: none; border-color: var(--accent); }
.plist-bar .primary { padding: 10px 20px; }

.empty { text-align: center; color: var(--txt3); padding: 34px 0; font-size: 13.5px; }
.muted { color: var(--txt2); font-size: 13px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

@media (max-width: 960px) {
  .item-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-wrap, .mypage-grid, .two-col { grid-template-columns: 1fr; }
  .hero-strip .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .item-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-strip { padding: 34px 0 30px; }
  .hero-strip h1 { font-size: 23px; }
  .hc { width: 100%; }
  .hstat { flex: 1; padding: 13px 8px; min-width: 0; }
  .gnb-right .user-chip span.uname { display: none; }
}

/* 테마 토글 버튼 */
.theme-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--txt2); font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }

/* 다크모드 (솔루션2 오리지널: 웜 다크 + 민트그린) */
html[data-theme="dark"] {
  --bg: #171817;
  --card: #232523;
  --line: #3b3e3b;
  --txt: #f3f0e8;
  --txt2: #b8b5ad;
  --txt3: #8a877d;
  --accent: #4fbd91;
  --accent2: #63cfa2;
  --accent-soft: #1e2b24;
  --green: #68d5a5;
  --red: #f05d78;
  --shadow: 0 14px 32px rgba(0,0,0,.35);
}
html[data-theme="dark"] body { color-scheme: dark; }
html[data-theme="dark"] .topwrap { box-shadow: 0 1px 0 rgba(255,255,255,.03); }
html[data-theme="dark"] .gnb-search input { background: #1c1e1c; color: var(--txt); }
html[data-theme="dark"] .gnb-search input:focus { background: #212421; }
html[data-theme="dark"] .fld input, html[data-theme="dark"] .fld select, html[data-theme="dark"] .fld textarea,
html[data-theme="dark"] .frm input, html[data-theme="dark"] .frm select,
html[data-theme="dark"] .plist-bar input, html[data-theme="dark"] .plist-bar select,
html[data-theme="dark"] .comment-form textarea { background: #1c1e1c; color: var(--txt); border-color: var(--line); }
html[data-theme="dark"] .fld input::placeholder, html[data-theme="dark"] .comment-form textarea::placeholder,
html[data-theme="dark"] .gnb-search input::placeholder { color: #6f6c62; }
html[data-theme="dark"] .item-thumb { background: linear-gradient(140deg, #2a2d2a, #1e201e); }
html[data-theme="dark"] .item-thumb .cond { background: rgba(35,37,35,.92); color: var(--txt2); }
html[data-theme="dark"] .item-thumb .st.done { background: rgba(0,0,0,.75); }
html[data-theme="dark"] .detail-img .main { background: #1e201e; }
html[data-theme="dark"] .nav-btn { background: rgba(35,37,35,.92); color: var(--txt2); border-color: var(--line); }
html[data-theme="dark"] .sub { box-shadow: 0 8px 24px rgba(0,0,0,.45); }
html[data-theme="dark"] .detail-notice, html[data-theme="dark"] .deposit-account-notice, html[data-theme="dark"] .inq-item .ans { background: var(--accent-soft); border-color: #33513f; color: #8fd4b2; }
html[data-theme="dark"] .trade-request-message, html[data-theme="dark"] .alert-ok { background: #16241d; border-color: #2c5240; color: #6fcfa4; }
html[data-theme="dark"] .auth-error { background: #331a1d; border-color: #5c2b31; color: #f1919b; }
html[data-theme="dark"] .st-wait { background: #3a2e14; color: #e8c06a; }
html[data-theme="dark"] .st-ing { background: #1e2b24; color: #7fd0a9; }
html[data-theme="dark"] .st-ok { background: #16241d; color: #6fcfa4; }
html[data-theme="dark"] .st-cancel { background: #331a1d; color: #f1919b; }
html[data-theme="dark"] .info-number { color: #3a3d3a; }
html[data-theme="dark"] .info-card p { color: var(--txt2); }
html[data-theme="dark"] .notif-item .dot { background: var(--line); }
html[data-theme="dark"] .detail-card h2, html[data-theme="dark"] .item-body .tt { color: var(--txt); }
html[data-theme="dark"] .detail-description, html[data-theme="dark"] .comment-item p { color: #c9c5ba; }
html[data-theme="dark"] .foot { background: #0f110f; }
html[data-theme="dark"] .trade-complete { color: var(--txt2); }

/* 메인 히어로 (원본형: 가운데 정렬) */
.hero-main { padding: 64px 0 44px; text-align: center; }
.hero-main .eyebrow { color: var(--accent); letter-spacing: .18em; font-size: 11.5px; font-weight: 800; display: block; margin-bottom: 14px; }
.hero-main h1 { font-size: 34px; font-weight: 900; letter-spacing: -.02em; line-height: 1.28; }
.hero-main h1 em { font-style: normal; color: var(--orange); }
.hero-main p { color: var(--txt2); margin-top: 14px; font-size: 14px; }
.search-pill { display: flex; align-items: center; gap: 6px; width: min(620px, 100%); margin: 26px auto 0; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 5px; }
.search-pill input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 13px 20px; font-size: 14.5px; font-family: inherit; color: var(--txt); }
.search-pill input:focus { outline: none; }
.search-pill button { background: var(--accent); color: var(--on-accent); border: 0; border-radius: 999px; padding: 12px 24px; font-size: 14px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.search-pill button:hover { background: var(--accent2); }
.pop-row { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; font-size: 13px; }
.pop-row b { color: var(--orange); font-weight: 700; }
.pop-row a { color: var(--txt2); font-weight: 600; }
.pop-row a:hover { color: var(--accent); }
.cat-icons { display: flex; justify-content: center; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.cat-icons a { display: grid; justify-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--txt2); }
.cat-icons a span { width: 52px; height: 52px; border-radius: 15px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; font-size: 25px; transition: border-color .12s, transform .12s; }
.cat-icons a:hover span { border-color: var(--accent); transform: translateY(-2px); }
.cat-icons a em { font-style: normal; }
.cat-icons a:hover em { color: var(--accent); }

/* 추천 상품 랭킹 리스트 */
.mk-head { align-items: flex-end; }
.mk-head .eyebrow { color: var(--accent); letter-spacing: .18em; font-size: 11px; font-weight: 800; display: block; margin-bottom: 6px; }
.rank-list { display: grid; gap: 10px; }
.rank-item { display: flex; align-items: center; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); transition: border-color .12s, transform .12s; }
.rank-item:hover { border-color: var(--accent); transform: translateY(-1px); }
.rank-item .rk { font-size: 22px; font-weight: 900; color: var(--txt3); min-width: 28px; font-variant-numeric: tabular-nums; }
.rank-item .rk-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.rank-item .cat { font-size: 11.5px; color: var(--txt3); font-weight: 600; }
.rank-item .tt { font-size: 15.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-item .meta { font-size: 12px; color: var(--txt3); }
.rank-item .pr { font-size: 16px; font-weight: 900; color: var(--green); font-variant-numeric: tabular-nums; margin-top: 2px; }
.rk-thumb { position: relative; width: 92px; height: 92px; flex: none; border-radius: 12px; overflow: hidden; background: linear-gradient(140deg, #eef2f7, #dde5ef); display: grid; place-items: center; }
.rk-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rk-thumb .ph { font-size: 34px; }
.rk-thumb .st.done { position: absolute; top: 6px; left: 6px; background: rgba(23,32,51,.82); color: #fff; padding: 2px 7px; border-radius: 6px; font-size: 10px; font-weight: 800; }
.rk-thumb .cond { position: absolute; bottom: 6px; right: 6px; background: rgba(255,255,255,.92); color: #5c6577; padding: 2px 7px; border-radius: 6px; font-size: 10px; font-weight: 700; }

@media (max-width: 640px) {
  .hero-main { padding: 40px 0 32px; }
  .hero-main h1 { font-size: 25px; }
  .cat-icons { gap: 18px; }
  .cat-icons a span { width: 46px; height: 46px; font-size: 22px; }
  .rank-item { gap: 12px; padding: 12px; }
  .rank-item .rk { font-size: 18px; min-width: 22px; }
  .rk-thumb { width: 72px; height: 72px; }
}

/* 다크모드 보정 */
html[data-theme="dark"] .rk-thumb { background: linear-gradient(140deg, #2a2d2a, #1e201e); }
html[data-theme="dark"] .rk-thumb .cond { background: rgba(35,37,35,.92); color: var(--txt2); }
html[data-theme="dark"] .search-pill { background: #232523; border-color: #3b3e3b; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
html[data-theme="dark"] .search-pill input::placeholder { color: #6f6c62; }
