@charset "UTF-8";
/* ==========================================================================
   이웃장터 공통 스타일시트  (style.css)
   - preview_1_2.html 인라인 CSS를 외부로 분리
   - 모바일 폰트 가독성 개선
   - 좌측 슬라이드(드로어) 메뉴 고급화
   ========================================================================== */

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

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --color-primary: #1E4FBF;
  --color-primary-dark: #163A8C;
  --color-primary-light: #E8EEFC;
  --color-accent: #FF6B4A;
  --color-accent-light: #FFE9E2;
  --color-green: #16A34A;
  --color-green-light: #E4F7EA;
  --color-purple: #8B5CF6;
  --color-purple-light: #F1EBFE;
  --color-bg: #F5F7FC;
  --color-surface: #FFFFFF;
  --color-text: #16213E;
  --color-text-muted: #6B7686;
  --color-text-faint: #9AA3B2;
  --color-border: #E5E9F1;

  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --font-price: 'Space Grotesk', var(--font-body);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 2px 14px rgba(22, 33, 62, 0.06);
  --shadow-hover: 0 8px 24px rgba(22, 33, 62, 0.1);

  --max-width: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* 한글 줄바꿈을 어절 단위로 유지 → 가독성 향상 */
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-hover); }
.btn--ghost { color: var(--color-text-muted); padding: 10px 14px; }
.btn--ghost:hover { color: var(--color-primary); }
.btn--outline {
  border: 1.5px solid var(--color-border);
  color: var(--color-text-muted);
  background: var(--color-surface);
}
.btn--outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn--block { width: 100%; margin-top: 18px; padding: 12px; }
.btn--mini { padding: 6px 12px; font-size: 12px; background: var(--color-primary-light); color: var(--color-primary); border-radius: 999px; }
.btn--mini:hover { background: var(--color-primary); color: #fff; }
.btn--white { background: #fff; color: var(--color-primary-dark); margin-top: 14px; }
.btn--white:hover { background: var(--color-accent-light); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}
.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* 로고: 이웃장터 › 작은글씨 (가로 배치) */
.logo { display: flex; flex-direction: row; align-items: baseline; gap: 8px; flex-shrink: 0; }
.logo__mark { font-size: 21px; font-weight: 800; color: var(--color-primary-dark); letter-spacing: -0.02em; }
.logo__mark em { font-style: normal; color: var(--color-accent); }
.logo__divider { font-size: 14px; color: var(--color-text-faint); font-weight: 600; transform: translateY(-1px); }
.logo__tag { font-size: 12px; color: var(--color-text-faint); font-weight: 500; }
.logo__img { height: 30px; width: auto; display: block; }  /* 모바일 로고 이미지용 */

.nav { display: flex; gap: 22px; flex-shrink: 0; }
.nav__link { font-size: 15px; font-weight: 500; color: var(--color-text-muted); padding: 6px 2px; position: relative; }
.nav__link:hover { color: var(--color-text); }
.nav__link.is-active { color: var(--color-primary); font-weight: 700; }
.nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -14px;
  height: 2px;
  background: var(--color-primary);
}

.header__search {
  width: 280px;
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 8px 8px 16px;
}
.header__search input {
  flex: 1;
  border: none;
  background: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text);
  outline: none;
  min-width: 0;
}
.header__search input::placeholder { color: var(--color-text-faint); }
.header__search button { color: var(--color-text-faint); display: flex; padding: 4px; }

.header__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: auto; }

/* ==========================================================================
   Page head (하위 페이지 공통 타이틀 영역)
   ========================================================================== */
.page-head {
  background: linear-gradient(120deg, var(--color-primary) 0%, #2F63D9 55%, #4C7FEF 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 30px 32px;
  margin-bottom: 24px;
}
.page-head__eyebrow { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.78); margin: 0 0 8px; }
.page-head__title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.page-head__desc { font-size: 14.5px; color: rgba(255,255,255,0.88); margin: 0; }
.breadcrumb { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--color-text-faint); margin: 0 0 16px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb span { color: var(--color-border); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: linear-gradient(120deg, var(--color-primary) 0%, #2F63D9 55%, #4C7FEF 100%);
  color: #fff;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
}
.hero__inner {
  margin: 0 auto;
  padding: 32px 28px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  position: relative;
}
.hero__eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin: 0 0 10px;
}
.hero__title {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.hero__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 3;
}
.hero__nav-btn:hover { background: rgba(255,255,255,0.28); }
.hero__nav-btn--prev { left: 14px; }
.hero__nav-btn--next { right: 14px; }
.hero__desc { font-size: 14.5px; color: rgba(255,255,255,0.85); margin: 0 0 16px; }
.hero__chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.hero__art { display: flex; justify-content: center; }
.hero__tag-card {
  position: relative;
  background: #fff;
  color: var(--color-text);
  border-radius: var(--radius-md);
  padding: 18px 22px 18px 32px;
  min-width: 150px;
  box-shadow: 0 20px 40px rgba(10, 20, 60, 0.28);
  transform: rotate(-4deg);
}
.hero__tag-hole {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-bg);
  box-shadow: inset 0 0 0 2px var(--color-border);
}
.hero__tag-label { display: block; font-size: 12px; font-weight: 700; color: var(--color-accent); margin-bottom: 6px; }
.hero__tag-price { font-family: var(--font-price); font-size: 21px; font-weight: 700; color: var(--color-primary-dark); }
.hero__tag-price i { font-style: normal; font-size: 15px; font-weight: 600; margin-left: 2px; }

.hero__dots { position: absolute; left: 24px; bottom: 10px; display: flex; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.4); }
.dot.is-active { width: 18px; border-radius: 4px; background: #fff; }

/* ==========================================================================
   Main / Categories
   ========================================================================== */
.main { max-width: var(--max-width); margin: 0 auto; padding: 0 24px 60px; }

.categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  position: relative;
  z-index: 2;
}
.category-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  border-top: 3px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 3px 14px;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.category-card--blue { border-top-color: var(--color-primary); }
.category-card--coral { border-top-color: var(--color-accent); }
.category-card--green { border-top-color: var(--color-green); }
.category-card--purple { border-top-color: var(--color-purple); }
/* 세로 순서: 제목 → 바로가기 → 설명 */
.category-card__icon  { font-size: 26px; grid-column: 1; grid-row: 1 / 4; align-self: center; }
.category-card__title { grid-column: 2; grid-row: 1; font-size: 16px; font-weight: 700; }
.category-card__link  { grid-column: 2; grid-row: 2; font-size: 13px; font-weight: 600; color: var(--color-primary); }
.category-card__desc  { grid-column: 2; grid-row: 3; font-size: 12.5px; color: var(--color-text-muted); }

/* ==========================================================================
   Content grid
   ========================================================================== */
.content {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
  margin: 28px 0;
}
.content--single { grid-template-columns: 1fr; }
.layout-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

/* Board */
.board {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 8px 24px 24px;
}
.board__tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--color-border); flex-wrap: wrap; }
.board__tab {
  padding: 16px 6px;
  margin-right: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-faint);
  border-bottom: 2.5px solid transparent;
  transition: color 0.15s ease;
}
.board__tab:hover { color: var(--color-text); }
.board__tab.is-active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

.listing { width: 100%; border-collapse: collapse; margin-top: 4px; }
.listing thead th {
  text-align: left;
  font-size: 12.5px;
  color: var(--color-text-faint);
  font-weight: 600;
  padding: 14px 8px;
  border-bottom: 1px solid var(--color-border);
}
.listing__price, .listing__views { text-align: right; }
.listing tbody td { padding: 14px 8px; border-bottom: 1px solid var(--color-border); font-size: 14px; vertical-align: middle; }
.listing tbody tr:last-child td { border-bottom: none; }
.listing tbody tr:hover { background: var(--color-bg); }
.listing__title a { font-weight: 500; }
.listing__title a:hover { color: var(--color-primary); }
.listing td:nth-child(3) { color: var(--color-text-muted); font-size: 13.5px; }
.listing td.listing__price, .listing td.listing__views { color: var(--color-text-muted); font-size: 13.5px; }

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.tag--notice { background: var(--color-primary-dark); color: #fff; }
.tag--blue { background: var(--color-primary-light); color: var(--color-primary); }
.tag--coral { background: var(--color-accent-light); color: #C74A2C; }
.tag--green { background: var(--color-green-light); color: var(--color-green); }
.tag--free { background: #F1F3F7; color: var(--color-text-muted); }
.tag--warn { background: #FEF3C7; color: #B45309; }
.tag--review { background: var(--color-purple-light); color: var(--color-purple); }

.price-tag {
  font-family: var(--font-price);
  font-weight: 600;
  color: var(--color-text);
  position: relative;
  padding-left: 12px;
}
.price-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1.5px solid var(--color-accent);
}
.price-tag i { font-style: normal; font-size: 12px; color: var(--color-text-faint); margin-left: 1px; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 18px; height: 100%; }
.panel { background: var(--color-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 20px 22px; }
.panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.panel__head h2 { font-size: 16px; margin: 0; }
.panel__more { font-size: 12.5px; color: var(--color-text-faint); font-weight: 500; }
.panel__more:hover { color: var(--color-primary); }

.notice-list { display: flex; flex-direction: column; }
.notice-list li {
  font-size: 12.5px;
  color: var(--color-text-muted);
  line-height: 1.65;
  padding: 10px 0;
  border-bottom: 1px dashed var(--color-border);
}
.notice-list li:first-child { padding-top: 0; }
.notice-list li:last-child { border-bottom: none; padding-bottom: 0; }
.notice-list li strong {
  color: var(--color-primary-dark);
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.ranking { display: flex; flex-direction: column; }
.ranking li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}
.ranking li:first-child { padding-top: 0; }
.ranking li:last-child { border-bottom: none; padding-bottom: 0; }
.ranking__num { font-family: var(--font-price); font-size: 13px; font-weight: 700; color: var(--color-text-faint); width: 12px; flex-shrink: 0; }
.ranking__avatar {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--color-primary-light); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; flex-shrink: 0;
}
.ranking__name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranking__tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}
.ranking__tag--blue { background: var(--color-primary-light); color: var(--color-primary); }
.ranking__tag--coral { background: var(--color-accent-light); color: #C74A2C; }
.ranking__tag--green { background: var(--color-green-light); color: var(--color-green); }
.ranking__score { font-size: 12px; color: #E8A93B; font-weight: 700; flex-shrink: 0; white-space: nowrap; }
.ranking .btn--mini { flex-shrink: 0; padding: 5px 10px; font-size: 11.5px; }

/* ---- 프리미엄 보증업체 (소액 / 구글 / 카드 3분할) ---- */
.panel__head h2 .gem {
  display: inline-block;
  margin-right: 3px;
  font-size: 15px;
  filter: drop-shadow(0 1px 2px rgba(30, 79, 191, 0.35));
  transform: translateY(1px);
}
.vendor-group + .vendor-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--color-border);
}
.vendor-group__label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.vendor-group__label::before { content: '◆'; font-size: 9px; }
.vendor-group__label--blue  { background: var(--color-primary-light); color: var(--color-primary); }
.vendor-group__label--coral { background: var(--color-accent-light);  color: #C74A2C; }
.vendor-group__label--green { background: var(--color-green-light);   color: var(--color-green); }
.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--color-green);
  background: var(--color-green-light);
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* 사이드 프리미엄 패널 고급화 */
.panel--premium {
  position: relative;
  border: 1px solid #EFD9A6;
  background:
    linear-gradient(180deg, #FFFDF7 0%, var(--color-surface) 32%);
  box-shadow: 0 4px 20px rgba(176, 137, 60, 0.14);
  overflow: hidden;
}
.panel--premium::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, #E9C97B 0%, #F5E4B3 50%, #E9C97B 100%);
}
.panel--premium .panel__head h2 { display: flex; align-items: center; gap: 5px; }
.panel--premium .vendor-group__label { box-shadow: 0 1px 3px rgba(22,33,62,0.06); }

/* 이지톡 버튼 (카톡풍 노란 버튼) */
.btn-talk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #3B1E1E;
  background: linear-gradient(135deg, #FFE24B 0%, #FFD400 100%);
  box-shadow: 0 2px 6px rgba(255, 200, 0, 0.35);
  flex-shrink: 0;
  white-space: nowrap;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.btn-talk:hover { transform: translateY(-1px); box-shadow: 0 5px 12px rgba(255, 200, 0, 0.5); }
.btn-talk--sm { padding: 5px 9px; font-size: 11px; }
.ranking .tier-ico { font-size: 13px; flex-shrink: 0; }

/* ==========================================================================
   업체 카드 (업체찾기 / 커뮤니티) — 등급별 화려하게 구분
   ========================================================================== */
.vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.vcard {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.vcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.vcard__avatar {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  flex-shrink: 0;
}
.vcard__info { flex: 1; min-width: 0; }
.vcard__name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.vcard__desc { font-size: 12.5px; color: var(--color-text-muted); margin: 4px 0 0; line-height: 1.5; }
.vcard__meta { margin-top: 5px; }
.vcard__score { font-size: 12px; font-weight: 700; color: #E8A93B; }
.vcard__tier {
  position: absolute;
  top: -9px; left: 14px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* 보증(verified) — 파란 고급 테두리 */
.vcard--verified {
  border-color: #B9CDF5;
  background: linear-gradient(180deg, #F7FAFF 0%, var(--color-surface) 40%);
  box-shadow: 0 3px 14px rgba(30, 79, 191, 0.12);
}
.vcard--verified .vcard__tier {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary) 0%, #3E72E8 100%);
  box-shadow: 0 3px 8px rgba(30, 79, 191, 0.3);
}
.vcard--verified .vcard__avatar { background: var(--color-primary); color: #fff; }

/* 프리미엄(premium) — 골드 화려한 강조 */
.vcard--premium {
  border: 1.5px solid #E9C97B;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 216, 130, 0.28) 0%, rgba(255,216,130,0) 45%),
    linear-gradient(180deg, #FFFCF3 0%, var(--color-surface) 50%);
  box-shadow: 0 6px 22px rgba(176, 137, 60, 0.22);
}
.vcard--premium .vcard__tier {
  color: #5A3E00;
  background: linear-gradient(135deg, #FFE9A8 0%, #F4C863 50%, #E5A93B 100%);
  box-shadow: 0 3px 9px rgba(200, 150, 40, 0.45);
}
.vcard--premium .vcard__avatar {
  background: linear-gradient(135deg, #F4CE75 0%, #E5A93B 100%);
  color: #fff;
  box-shadow: 0 4px 10px rgba(200, 150, 40, 0.35);
}
.vcard--premium .vcard__name { color: var(--color-text); }

/* 등급 안내 범례 */
.tier-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 4px 0 18px; font-size: 12px; color: var(--color-text-muted); }
.tier-legend span { display: inline-flex; align-items: center; gap: 5px; }
.tier-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.tier-dot--premium { background: linear-gradient(135deg, #F4CE75, #E5A93B); }
.tier-dot--verified { background: linear-gradient(135deg, var(--color-primary), #3E72E8); }
.tier-dot--normal { background: var(--color-border); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.stats__item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; background: var(--color-bg); border-radius: var(--radius-sm); }
.stats__icon { font-size: 18px; }
.stats__item strong { font-family: var(--font-price); font-size: 16px; }
.stats__item span { font-size: 11.5px; color: var(--color-text-muted); }

.ad-panel {
  background: linear-gradient(135deg, var(--color-accent) 0%, #FF8A6C 100%);
  border-radius: var(--radius-md);
  padding: 24px;
  color: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 140px;
  max-height: 200px;
}
.ad-panel__eyebrow { font-size: 12px; font-weight: 700; opacity: 0.85; margin: 0 0 6px; }
.ad-panel h3 { font-size: 19px; margin: 0; line-height: 1.35; }

/* ==========================================================================
   Ad banner zone
   ========================================================================== */

.ad-banner-zone__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.ad-banner-zone__head h2 { font-size: 15px; margin: 0; }
.ad-banner-zone__desc { font-size: 11.5px; color: var(--color-text-faint); }
.ad-banner-zone__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ad-slot {
  width: 100%;
  aspect-ratio: 290 / 120;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #EEF2FB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ad-slot:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* ==========================================================================
   Generic article / cards (하위 페이지용)
   ========================================================================== */
.section-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px;
}
.section-card + .section-card { margin-top: 24px; }
.section-card__title { font-size: 18px; font-weight: 700; margin: 0 0 16px; }
.prose { font-size: 14.5px; line-height: 1.75; color: var(--color-text-muted); }
.prose p { margin: 0 0 12px; }
.prose strong { color: var(--color-text); }

/* ==========================================================================
   Forms (로그인 / 회원가입 / 문의)
   ========================================================================== */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--color-text); }
.field__label em { font-style: normal; color: var(--color-accent); margin-left: 2px; }
.field__input, .field__select, .field__textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--color-text);
  background: var(--color-surface);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field__input::placeholder, .field__textarea::placeholder { color: var(--color-text-faint); }
.field__input:focus, .field__select:focus, .field__textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}
.field__textarea { resize: vertical; min-height: 120px; }
.field__hint { font-size: 12px; color: var(--color-text-faint); }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }
.field-row .field__input { min-width: 0; }

.check-row { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--color-text-muted); line-height: 1.5; }
.check-row input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--color-primary); flex-shrink: 0; }
.check-row a { color: var(--color-primary); font-weight: 600; }

.form-divider { display: flex; align-items: center; gap: 12px; color: var(--color-text-faint); font-size: 12px; margin: 20px 0; }
.form-divider::before, .form-divider::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }

.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: var(--color-text);
  background: var(--color-surface);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.social-btn:hover { border-color: var(--color-primary); background: var(--color-bg); }

/* Auth 레이아웃 */
.auth { max-width: 440px; margin: 0 auto; }
.auth__head { text-align: center; margin-bottom: 22px; }
.auth__title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.auth__sub { font-size: 13.5px; color: var(--color-text-muted); margin: 0; }
.auth__foot { text-align: center; font-size: 13.5px; color: var(--color-text-muted); margin-top: 20px; }
.auth__foot a { color: var(--color-primary); font-weight: 700; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--color-primary); }
.product-card__thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #EEF2FB 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
}
.product-card__body { padding: 14px 16px 16px; }
.product-card__title { font-size: 14.5px; font-weight: 600; margin: 0 0 6px; line-height: 1.4; }
.product-card__meta { font-size: 12px; color: var(--color-text-faint); margin-bottom: 8px; }
.product-card__price { font-family: var(--font-price); font-size: 17px; font-weight: 700; color: var(--color-primary-dark); }
.product-card__price i { font-style: normal; font-size: 13px; font-weight: 600; margin-left: 1px; }

/* FAQ / accordion (고객센터) */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; text-align: left;
  display: flex; align-items: center; gap: 10px;
  padding: 18px 4px; font-size: 15px; font-weight: 600; color: var(--color-text);
}
.faq-q::before { content: 'Q'; color: var(--color-primary); font-weight: 800; font-family: var(--font-price); }
.faq-q .faq-toggle { margin-left: auto; color: var(--color-text-faint); transition: transform 0.2s ease; }
.faq-item.is-open .faq-q .faq-toggle { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 4px 18px 26px; font-size: 14px; line-height: 1.7; color: var(--color-text-muted); }
.faq-item.is-open .faq-a { display: block; }

/* pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.pagination a, .pagination span {
  min-width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination .is-active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ==========================================================================
   Quick links
   ========================================================================== */
.quick-links {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.quick-links__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.quick-links__item:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.quick-links__icon { font-size: 22px; margin-bottom: 6px; }
.quick-links__title { font-size: 15px; font-weight: 700; }
.quick-links__desc { font-size: 12.5px; color: var(--color-text-muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: #101A33; color: rgba(255,255,255,0.6); padding: 40px 24px 100px; }
.footer__inner { max-width: var(--max-width); margin: 0 auto; }
.logo__mark--footer { font-size: 18px; color: #fff; display: block; margin-bottom: 12px; }
.footer p { font-size: 13px; line-height: 1.7; max-width: 640px; margin: 0 0 16px; }
.footer__nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__nav a { font-size: 12.5px; color: rgba(255,255,255,0.5); }
.footer__nav a:hover { color: #fff; }

/* ==========================================================================
   Mobile left drawer menu  ✦ 고급화 버전
   ========================================================================== */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-overlay.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 84%;
  max-width: 320px;
  background: var(--color-surface);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 12px 0 40px rgba(10, 20, 40, 0.28);
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.is-open { transform: translateX(0); }

/* --- 프로필 헤더 (그라디언트) --- */
.drawer__profile {
  position: relative;
  padding: 26px 22px 22px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,107,74,0.35) 0%, rgba(255,107,74,0) 55%),
    linear-gradient(150deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, #3E72E8 100%);
  color: #fff;
  overflow: hidden;
}
.drawer__profile::after {
  content: '';
  position: absolute;
  right: -40px; top: -50px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}
.drawer__brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.drawer__brand em { font-style: normal; color: #FFD9CD; }
.drawer__close {
  position: absolute;
  top: 18px; right: 16px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  transition: background 0.15s ease, transform 0.15s ease;
  z-index: 2;
}
.drawer__close:hover { background: rgba(255,255,255,0.28); transform: rotate(90deg); }

.drawer__user { display: flex; align-items: center; gap: 13px; position: relative; z-index: 1; }
.drawer__avatar {
  width: 50px; height: 50px;
  border-radius: 16px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(10,20,60,0.25);
}
.drawer__welcome { min-width: 0; }
.drawer__welcome strong { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.drawer__welcome span { display: block; font-size: 11.5px; color: rgba(255,255,255,0.78); margin-top: 3px; }

.drawer__profile-actions { display: flex; gap: 8px; margin-top: 18px; position: relative; z-index: 1; }
.drawer__btn {
  flex: 1;
  padding: 10px 0;
  text-align: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.15s ease;
}
.drawer__btn:active { transform: scale(0.97); }
.drawer__btn--primary { background: #fff; color: var(--color-primary-dark); }
.drawer__btn--primary:hover { background: var(--color-accent-light); }
.drawer__btn--ghost { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.28); }
.drawer__btn--ghost:hover { background: rgba(255,255,255,0.24); }

/* --- 메뉴 --- */
.drawer__nav { display: flex; flex-direction: column; padding: 16px 14px 8px; }
.drawer__nav-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--color-text-faint); text-transform: uppercase;
  padding: 4px 10px 10px;
}
.drawer__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  border-radius: 12px;
  transition: background 0.16s ease, color 0.16s ease, padding-left 0.16s ease;
}
.drawer__link::before {
  content: '';
  position: absolute;
  left: 6px; top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px; height: 20px;
  border-radius: 3px;
  background: var(--color-accent);
  transition: transform 0.18s ease;
}
.drawer__link-icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  background: var(--color-bg);
  border-radius: 10px;
  flex-shrink: 0;
  transition: background 0.16s ease, color 0.16s ease;
}
.drawer__link-text { flex: 1; letter-spacing: -0.01em; }
.drawer__link-arrow { color: var(--color-text-faint); font-size: 18px; opacity: 0; transform: translateX(-4px); transition: opacity 0.16s ease, transform 0.16s ease; }
.drawer__link:hover { background: var(--color-bg); }
.drawer__link:hover .drawer__link-arrow { opacity: 1; transform: translateX(0); }
.drawer__link.is-active {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}
.drawer__link.is-active::before { transform: translateY(-50%) scaleY(1); }
.drawer__link.is-active .drawer__link-icon { background: var(--color-primary); color: #fff; }
.drawer__link.is-active .drawer__link-arrow { opacity: 1; transform: translateX(0); color: var(--color-primary); }

/* --- 하단 CTA / 카피 --- */
.drawer__foot { margin-top: auto; padding: 14px 20px 24px; }
.drawer__cta {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--color-accent) 0%, #FF8A6C 100%);
  color: #fff; font-size: 15px; font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(255,107,74,0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.drawer__cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(255,107,74,0.4); }
.drawer__meta { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding-left: 4px; }
.drawer__meta a { font-size: 12px; color: var(--color-text-faint); font-weight: 500; }
.drawer__meta a:hover { color: var(--color-primary); }
.drawer__copy { font-size: 11px; color: var(--color-text-faint); margin: 12px 0 0; padding-left: 4px; }

/* ==========================================================================
   Mobile bottom nav
   ========================================================================== */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 8px 4px calc(env(safe-area-inset-bottom, 0px) + 6px);
  z-index: 100;
}
.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-faint);
  padding: 4px 0;
}
.bottom-nav__icon { font-size: 19px; }
.bottom-nav__item.is-active { color: var(--color-primary); font-weight: 700; }
.bottom-nav__item--cta .bottom-nav__icon {
  background: var(--color-accent);
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-bottom: 1px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .content { grid-template-columns: 1fr; align-items: start; }
  .sidebar { flex-direction: row; flex-wrap: wrap; height: auto; }
  .sidebar .panel, .sidebar .ad-panel { flex: 1 1 300px; min-height: 0; }
  .hero__title { font-size: 34px; }
}

@media (max-width: 860px) {
  .header__inner { flex-wrap: wrap; gap: 12px 16px; }
  .nav { display: none; }
  .menu-toggle { display: flex; order: -1; }
  .drawer { display: flex; }
  .drawer-overlay { display: block; }
  .menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  /* 모바일 로고 가운데 정렬 (이미지 로고 예정 → 텍스트 태그 숨김) */
  .header__inner { position: relative; flex-wrap: nowrap; }
  .logo { position: absolute; left: 49%; transform: translateX(-50%); }
  .logo__divider, .logo__tag { display: none; }
  .header__actions { margin-left: auto; }
  .header__actions .btn { padding: 8px 12px; font-size: 13px; }
  .header__actions .btn--ghost { display: none; }  /* 로그인은 좌측 메뉴에 있음 → 모바일 헤더는 회원가입만 */

  /* 모바일 히어로 높이 축소 (너무 두꺼움 해소) */
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding: 18px 18px 38px; gap: 10px; }
  .hero__chips { justify-content: center; gap: 8px; }
  .hero__art { order: -1; margin-bottom: 2px; }
  .hero__tag-card { transform: rotate(0); padding: 10px 16px 10px 26px; min-width: 0; }
  .hero__tag-label { font-size: 11px; margin-bottom: 3px; }
  .hero__tag-price { font-size: 17px; }
  .hero__dots { left: 50%; transform: translateX(-50%); bottom: 8px; }
  .hero__nav-btn { display: none; }

  /* 모바일: 소액/구글컨텐츠/카드 바로가기를 3개 한 줄로 (아이콘+제목만) */
  .categories { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .category-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 5px; padding: 14px 6px; border-top-width: 3px;
  }
  .category-card__icon { grid-row: auto; font-size: 24px; }
  .category-card__title { font-size: 13px; }
  .category-card__desc, .category-card__link { display: none; }

  .vendor-grid { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }

  .listing thead { display: none; }
  .listing, .listing tbody, .listing tr, .listing td { display: block; width: 100%; }
  .listing tbody tr {
    padding: 14px 4px;
    border-bottom: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "cat title title"
      "cat title title"
      ". region price";
    gap: 4px 10px;
    align-items: center;
  }
  .listing tbody td { padding: 2px 0; border: none; }
  .listing tbody td:nth-child(1) { grid-area: cat; }
  .listing tbody td:nth-child(2) { grid-area: title; }
  .listing tbody td:nth-child(3) { grid-area: region; font-size: 12.5px; }
  .listing tbody td:nth-child(4) { grid-area: price; text-align: right; }
  .listing tbody td:nth-child(5) { display: none; }

  .bottom-nav { display: flex; }
  .footer { padding-bottom: 100px; }

  /* 모바일 2열 */
  .ad-banner-zone__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .ad-slot { width: 100%; max-width: none; }

  /* ---- 모바일 폰트 가독성 개선 ---- */
  body { font-size: 15.5px; line-height: 1.6; }
  .hero__eyebrow { font-size: 12.5px; margin-bottom: 6px; }
  .hero__title { font-size: 22px; line-height: 1.3; margin-bottom: 8px; }
  .hero__desc { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,0.9); margin-bottom: 12px; }
  .chip { font-size: 14.5px; padding: 9px 17px; }
  .page-head__title { font-size: 24px; }
  .page-head__desc { font-size: 15px; line-height: 1.6; }
  .category-card__title { font-size: 16.5px; }
  .category-card__desc { font-size: 13.5px; line-height: 1.55; }
  .board__tab { font-size: 15.5px; }
  .listing__title a { font-size: 15.5px; line-height: 1.5; font-weight: 600; }
  .listing td:nth-child(3) { font-size: 13.5px; }
  .listing td.listing__price { font-size: 14.5px; }
  .price-tag { font-size: 14.5px; }
  .panel__head h2 { font-size: 16.5px; }
  .notice-list li { font-size: 13.5px; line-height: 1.7; }
  .notice-list li strong { font-size: 14px; }
  .ranking__name { font-size: 14px; }
  .prose { font-size: 15.5px; line-height: 1.8; }
  .product-card__title { font-size: 15px; }
  .faq-q { font-size: 15.5px; }
  .faq-a { font-size: 14.5px; line-height: 1.75; }
  .quick-links__title { font-size: 15.5px; }
  .quick-links__desc { font-size: 13.5px; }
  .footer p { font-size: 13.5px; line-height: 1.75; }
}

@media (max-width: 520px) {
  .header__inner { padding: 12px 16px; }
  .hero__inner { padding: 20px 16px 42px; }
  .hero__title { font-size: 21px; }
  .main { padding: 0 16px 40px; }
  .page-head { padding: 26px 20px; }
  .page-head__title { font-size: 22px; }
  .quick-links { grid-template-columns: 1fr; }
  .ad-panel h3 { font-size: 17px; }
  .section-card { padding: 20px 18px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* ==========================================================================
   이지톡 채팅방 (chat.asp) — 카카오톡 스타일
   ========================================================================== */
.chat-body {
  margin: 0;
  background: #A7BBD1;
  min-height: 100vh;
}
.chat {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 460px;
  margin: 0 auto;
  background: #B2C7DA;   /* 카톡풍 배경 */
}

/* 상단 랜덤 파트너 배너 */
.chat__banner {
  flex-shrink: 0;
  width: 100%;
  max-width: 400px;          /* 이지톡 상단 배너 400x60 (모바일/PC 동일) */
  margin: 0 auto;
  aspect-ratio: 400 / 60;    /* 좁은 화면에선 비율 유지하며 축소 */
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #EEF2FB 100%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.chat__banner img { width: 100%; height: 100%; object-fit: cover; }
.chat__banner-label {
  font-size: 12px; font-weight: 700; color: var(--color-primary);
}
.chat__banner-tag {
  position: absolute; top: 6px; right: 8px;
  font-size: 9.5px; font-weight: 700; color: #fff;
  background: rgba(22,33,62,0.45); padding: 2px 7px; border-radius: 999px;
}

/* 채팅 헤더 */
.chat__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.chat__back {
  font-size: 22px; line-height: 1; color: var(--color-text);
  padding: 2px 6px; flex-shrink: 0;
}
.chat__avatar {
  width: 40px; height: 40px; border-radius: 13px;
  background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; flex-shrink: 0;
}
.chat__who { flex: 1; min-width: 0; }
.chat__who strong { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.chat__who .badge-verified { font-size: 9.5px; }
.chat__who span { display: block; font-size: 11.5px; color: var(--color-text-faint); margin-top: 1px; }
.chat__menu { font-size: 20px; color: var(--color-text-muted); padding: 4px 8px; flex-shrink: 0; }

/* 메시지 영역 */
.chat__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat__date {
  align-self: center;
  font-size: 11.5px;
  color: #445; 
  background: rgba(255,255,255,0.5);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 4px;
}
.msg { display: flex; align-items: flex-end; gap: 7px; max-width: 82%; }
.msg__avatar {
  width: 34px; height: 34px; border-radius: 12px;
  background: var(--color-surface); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; flex-shrink: 0;
}
.msg__bubble {
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.msg__time { font-size: 10.5px; color: #3b4a5a; flex-shrink: 0; margin-bottom: 2px; }

/* 상대(업체) 메시지 — 왼쪽 흰색 */
.msg--in { align-self: flex-start; }
.msg--in .msg__bubble { background: #fff; color: var(--color-text); border-top-left-radius: 4px; }

/* 나 — 오른쪽 노란색(카톡풍) */
.msg--out { align-self: flex-end; flex-direction: row-reverse; }
.msg--out .msg__bubble { background: #FEE500; color: #3B1E1E; border-top-right-radius: 4px; }

/* 입력 바 */
.chat__input {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 10px);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}
.chat__input input {
  flex: 1;
  min-width: 0;
  padding: 11px 15px;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
  background: var(--color-bg);
}
.chat__input input:focus { border-color: var(--color-primary); }
.chat__send {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: background 0.15s ease;
}
.chat__send:hover { background: var(--color-primary-dark); }

/* ==========================================================================
   업체 박스 카드 (등록업체 / 보증업체) — 이미지·업체명·수수료·별점·후기·이지톡
   ========================================================================== */
.vbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 302px);   /* 카드 302px(=이미지 300 + 좌우 1px 테두리) → 이미지 정확히 300x225 */
  justify-content: center;
  gap: 16px;
}
.vbox {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.vbox:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.vbox__link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.vbox__thumb {
  position: relative;
  aspect-ratio: 300 / 225;   /* 업체 이미지 300x225 (4:3) 에 맞춤 */
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #EEF2FB 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transform: translateZ(0);        /* GIF 깜빡임 방지: 클리핑을 안정된 레이어에서 */
}
.vbox__thumb-emoji { font-size: 42px; }
/* GIF/이미지를 별도 GPU 레이어로 승격 → 프레임마다 리페인트되며 깜빡이는 현상 방지 */
.vbox__img { width: 100%; height: 100%; object-fit: cover; transform: translateZ(0); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.vbox__tiers { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 1px; }   /* 이미지 밖(본문 상단)으로 이동 */
.vbox__tier {
  font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 2px 5px rgba(22,33,62,0.12);
}
.vbox__tier--premium { color: #5A3E00; background: linear-gradient(135deg, #FFE9A8 0%, #F4C863 50%, #E5A93B 100%); }
.vbox__tier--verified { color: #fff; background: linear-gradient(135deg, var(--color-primary) 0%, #3E72E8 100%); }
.vbox__body { padding: 12px 14px 6px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.vbox__name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vbox__stats { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 12.5px; color: var(--color-text-muted); margin-top: auto; }
.vbox__stats b { color: var(--color-text); font-family: var(--font-price); font-weight: 700; }
.vbox__score { color: #E8A93B; font-weight: 700; }
.vbox__talk { margin: 10px 14px 14px; width: calc(100% - 28px); padding: 9px 0; font-size: 13px; }
/* 제휴업체 카드: 이지톡 대신 '사이트 바로가기' 버튼 (→ 외부 랜딩, 새 탭) */
.vbox__site {
  margin: 10px 14px 14px; width: calc(100% - 28px);
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 9px 0; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: #fff;
  background: var(--color-primary);
  transition: background 0.15s ease, transform 0.14s ease;
}
.vbox__site:hover { background: var(--color-primary-dark); transform: translateY(-1px); }

/* 게시판 탭 패널 전환 (홈 업체 리스트) */
.board__panel { display: none; }
.board__panel.is-active { display: block; }
.board__tab { text-decoration: none; }

/* 등급별 카드 강조 */
.vbox--verified { border-color: #B9CDF5; box-shadow: 0 3px 14px rgba(30, 79, 191, 0.12); }
.vbox--premium {
  border: 1.5px solid #E9C97B;
  box-shadow: 0 6px 22px rgba(176, 137, 60, 0.22);
}
.vbox--premium .vbox__thumb { background: radial-gradient(120% 140% at 0% 0%, rgba(255,216,130,0.5) 0%, rgba(255,216,130,0) 55%), linear-gradient(135deg, #FFF4D6 0%, #F3E2B0 100%); }

/* ==========================================================================
   업체 뷰페이지 (업체 소개 · 이미지 갤러리)
   ========================================================================== */
.shop-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary) 0%, #3E72E8 100%);
  color: #fff;
  padding: 26px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-card);
}
.shop-hero__logo {
  width: 72px; height: 72px; border-radius: 20px;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center; font-size: 34px; flex-shrink: 0;
}
.shop-hero__name { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shop-hero__meta { display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,0.9); }
.shop-hero__meta b { color: #fff; }
.shop-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shop-gallery__item {
  aspect-ratio: 4 / 3; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #EEF2FB 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--color-primary);
  border: 1px solid var(--color-border);
}

/* ==========================================================================
   사이드바 프리미엄 업체 (아바타 제거 버전)
   ========================================================================== */
.srow { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.srow:first-child { padding-top: 0; }
.srow:last-child { border-bottom: none; padding-bottom: 0; }
.srow__rank { font-family: var(--font-price); font-size: 13px; font-weight: 700; color: var(--color-text-faint); width: 12px; flex-shrink: 0; text-align: center; }
.srow__name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow__tier { font-size: 13px; flex-shrink: 0; letter-spacing: -1px; }
.srow__score { font-size: 12px; color: #E8A93B; font-weight: 700; flex-shrink: 0; white-space: nowrap; }
.srow .btn-talk { flex-shrink: 0; }

/* 자유게시판 글쓰기 버튼 정렬 */
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }

/* ==========================================================================
   업체 뷰 - 상세 내용 (DB의 단일 필드에 이미지+글이 통으로 저장 → 그대로 출력)
   ========================================================================== */
.shop-hero { flex-wrap: wrap; }
.shop-hero__cta { margin-left: auto; flex-shrink: 0; }

/* 상세 콘텐츠 영역: 업체가 에디터로 작성한 본문(HTML)을 그대로 출력 */
.shop-detail {
  max-width: 860px;
  margin: 24px auto 0;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 26px 28px;
}
/* 본문에 섞여 들어온 이미지는 가로 폭에 맞춤 */
.shop-detail img {
  width: auto;        /* 강제로 늘리지 않음 */
  max-width: 100%;    /* 칸보다 크면 줄이기만 */
  height: auto;
  display: block;
  margin: 14px auto;  /* 칸이 넓으면 가운데 정렬 */
}
.shop-detail p { margin: 0 0 14px; line-height: 1.85; font-size: 14.5px; color: var(--color-text-muted); }
.shop-detail h1, .shop-detail h2, .shop-detail h3 { margin: 20px 0 12px; line-height: 1.4; color: var(--color-text); }
.shop-detail strong { color: var(--color-text); }
.shop-detail a { color: var(--color-primary); text-decoration: underline; }

/* 상세 이미지 자리(플레이스홀더 - 실제 콘텐츠 삽입 전 예시) */
.shop-detail__ph {
  width: 100%;
  min-height: 240px;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #EEF2FB 100%);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--color-primary);
  margin: 0 0 16px;
}
.shop-detail__note {
  max-width: 860px; margin: 12px auto 0;
  font-size: 12px; color: var(--color-text-faint); text-align: center;
}
.shop-actions { max-width: 860px; margin: 18px auto 0; display: flex; gap: 8px; }

@media (max-width: 520px) {
  .shop-detail { padding: 18px 18px; }
  .shop-detail__ph { min-height: 180px; }
  .shop-hero__cta { margin-left: 0; width: 100%; }
}

/* ==========================================================================
   모바일 업체 카드 2열  (base .vbox-grid 정의 이후에 와야 우선 적용됨)
   ========================================================================== */
@media (max-width: 860px) {
  .vbox-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .vbox__body { padding: 10px 11px 4px; }
  .vbox__name { font-size: 13.5px; gap: 4px; }
  .vbox__stats { font-size: 11.5px; gap: 2px 8px; }
  .vbox__talk, .vbox__site { margin: 8px 10px 10px; width: calc(100% - 20px); font-size: 12px; }
  .vbox__tier { font-size: 9.5px; padding: 2px 6px; }
}
@media (max-width: 380px) {
  .vbox__stats { gap: 1px 6px; }
}

/* ==========================================================================
   홈 게시판 업체 리스트 (biz-list) — 등급/분야 컬러, 별점 핀
   ========================================================================== */
.biz-list td { vertical-align: middle; }
.biz-list .listing__title a { font-weight: 600; }
.biz-col-grade { width: 132px; }
.biz-col-reviews { width: 64px; }

/* 등급 배지 */
.gr {
  display: inline-block;
  font-size: 11px; font-weight: 700; line-height: 1.5;
  padding: 2px 9px; border-radius: 999px;
  margin: 1px 4px 1px 0; white-space: nowrap;
}
.gr--premium { background: linear-gradient(135deg, #FFE9A8 0%, #F4C863 100%); color: #5A3E00; }
.gr--verified { background: var(--color-primary-light); color: var(--color-primary); }
.gr--normal { background: #F1F3F7; color: var(--color-text-muted); }

/* 별점 핀 */
.rate-pill {
  display: inline-flex; align-items: center; gap: 3px;
  font-family: var(--font-price); font-size: 12.5px; font-weight: 700;
  color: #E8A93B; background: #FFF7E6;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.biz-reviews { color: var(--color-text-muted); font-size: 13px; }

/* 모바일: 등급 배지 세로로 쌓아 폭 절약 + 별점 좌측 정렬 */
@media (max-width: 860px) {
  .biz-list tbody td:nth-child(4) { text-align: left; }
  .biz-grade { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
  .biz-grade .gr { margin: 0; }
}

/* 홈 최신 후기 피드 */
.review-feed { display: flex; flex-direction: column; margin-top: 6px; }
.review-feed__item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.review-feed__item:last-child { border-bottom: none; }