/* ===========================================================
   한얼디자인 — 서비스 마켓플레이스 스타일
   =========================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #1A5490;
  --brand-dark: #0F3A6B;
  --brand-light: #E8F1FA;
  --accent: #FF6B35;
  --accent-light: #FFF1EB;
  --yellow: #FFB400;
  --text: #1F2937;
  --text-sub: #6B7280;
  --text-mute: #9CA3AF;
  --line: #E5E7EB;
  --line-soft: #F3F4F6;
  --bg: #FFFFFF;
  --bg-soft: #FAFBFC;
  --bg-card: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 2px 8px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.10);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo",
               "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--bg-soft);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
img { max-width: 100%; display: block; }

/* ============================================================
   헤더 (Header)
   ============================================================ */
.header {
  position: sticky;
  top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
}
.logo-mark {
  width: 44px; height: 44px;
  background: var(--brand-dark);
  color: #fff;
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: "Gugi", "Nanum Brush Script", cursive;
  font-size: 28px;
  line-height: 1;
  padding-bottom: 2px;
}
.logo-name {
  font-family: "Gugi", "Nanum Brush Script", "Pretendard", cursive;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--brand-dark);
}

.search-bar {
  position: relative;
  max-width: 560px;
  width: 100%;
}
.search-bar input {
  width: 100%;
  padding: 12px 48px 12px 18px;
  border: 2px solid var(--brand);
  border-radius: 999px;
  font-size: 14px;
  background: #fff;
  outline: none;
  transition: box-shadow .15s;
}
.search-bar input:focus {
  box-shadow: 0 0 0 4px rgba(26,84,144,.12);
}
.search-bar button {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  display: grid; place-items: center;
}
.search-bar button:hover { background: var(--brand-dark); }

.header-actions {
  display: flex; align-items: center; gap: 6px;
}
.header-actions .h-btn {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-sub);
  border-radius: 8px;
  display: flex; align-items: center; gap: 4px;
}
.header-actions .h-btn:hover { background: var(--line-soft); color: var(--text); }
.header-actions .h-btn.primary {
  background: var(--brand); color: #fff;
}
.header-actions .h-btn.primary:hover { background: var(--brand-dark); }
.header-actions .badge {
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--accent);
  color: #fff;
  border-radius: 9px;
  font-size: 11px; font-weight: 700;
  display: inline-grid; place-items: center;
  margin-left: 4px;
}

/* 카테고리 네비 */
.header-nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.header-nav::-webkit-scrollbar { display: none; }
.header-nav button {
  padding: 14px 14px;
  font-size: 14px;
  color: var(--text-sub);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
  font-weight: 500;
}
.header-nav button:hover { color: var(--brand); }
.header-nav button.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 700;
}

/* ============================================================
   페이지 컨테이너
   ============================================================ */
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}
.section-title {
  font-size: 22px;
  font-weight: 800;
  margin: 8px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title .more {
  font-size: 13px; font-weight: 500;
  color: var(--text-sub);
}
.section-title .more:hover { color: var(--brand); }

/* ============================================================
   히어로 (Home)
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 60px 24px 70px;
  text-align: center;
  border-radius: 0;
  margin: -24px -24px 32px;
}
.hero h1 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.hero p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 28px;
}
.hero-search {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.hero-search input {
  width: 100%;
  padding: 16px 60px 16px 24px;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  outline: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.hero-search button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 18px;
  display: grid; place-items: center;
}
.hero-search button:hover { background: #E5552A; }
.hero-tags {
  margin-top: 16px;
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.hero-tags span {
  padding: 6px 14px;
  background: rgba(255,255,255,.15);
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: background .15s;
}
.hero-tags span:hover { background: rgba(255,255,255,.28); }

/* ============================================================
   카테고리 그리드
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.cat-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
}
.cat-tile:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.cat-tile .ic {
  font-size: 32px; margin-bottom: 8px;
}
.cat-tile .nm {
  font-weight: 700; font-size: 13px; color: var(--text);
}
.cat-tile .cn {
  font-size: 11px; color: var(--text-mute); margin-top: 2px;
}

/* ============================================================
   서비스 카드 그리드
   ============================================================ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.svc-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
  border: 1px solid var(--line);
  position: relative;
}
.svc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.svc-card .thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #F0F4F8, #E1EAF3);
  display: grid; place-items: center;
  font-size: 56px;
  position: relative;
}
.svc-card .thumb .heart {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: grid; place-items: center;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
}
.svc-card .thumb .heart:hover { background: #fff; transform: scale(1.1); }
.svc-card .thumb .heart.on { color: var(--accent); }

.svc-card .badges {
  position: absolute;
  top: 10px; left: 10px;
  display: flex; gap: 4px;
}
.svc-card .badge-hot {
  padding: 3px 8px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 10px; font-weight: 700;
}
.svc-card .badge-best {
  padding: 3px 8px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-size: 10px; font-weight: 700;
}

.svc-card .body {
  padding: 14px;
}
.svc-card .expert {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-sub);
  margin-bottom: 6px;
}
.svc-card .expert .av {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand-light);
  display: grid; place-items: center;
  font-size: 14px;
}
.svc-card .title {
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 39px;
}
.svc-card .rating {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text-sub);
  margin-bottom: 10px;
}
.svc-card .rating .star { color: #FFB400; }
.svc-card .rating .num { font-weight: 700; color: var(--text); }

.svc-card .price-row {
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.svc-card .price-row .from { font-size: 11px; color: var(--text-mute); }
.svc-card .price-row .price {
  font-size: 16px; font-weight: 800; color: var(--text);
}
.svc-card .price-row .price small { font-size: 12px; font-weight: 600; color: var(--text-sub); }

/* ============================================================
   공식 쇼핑몰 카드 (Shop Section)
   ============================================================ */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 16px;
}
.shop-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.shop-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.shop-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-blend-mode: overlay;
  display: grid;
  place-items: center;
  color: #fff;
}
.shop-icon {
  font-size: 76px;
  line-height: 1;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
  letter-spacing: -2px;
}
.shop-sub {
  position: absolute;
  bottom: 12px; left: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.shop-cat-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -0.2px;
  backdrop-filter: blur(6px);
}
.shop-info {
  padding: 14px 16px 16px;
}
.shop-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  line-height: 1.4;
}
.shop-desc {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-price {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--brand);
}
.shop-price small {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
}
@media (max-width: 900px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .shop-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   전문가 카드
   ============================================================ */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.expert-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  transition: all .15s;
}
.expert-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}
.expert-card .av-lg {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-light), #fff);
  display: grid; place-items: center;
  font-size: 32px;
  flex-shrink: 0;
}
.expert-card .info { flex: 1; min-width: 0; }
.expert-card .nm {
  font-weight: 700; font-size: 15px; margin-bottom: 2px;
}
.expert-card .lv {
  font-size: 11px;
  color: var(--brand);
  font-weight: 700;
  background: var(--brand-light);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
}
.expert-card .bio {
  font-size: 12px; color: var(--text-sub);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.expert-card .stat {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 6px;
  display: flex; gap: 8px;
}
.expert-card .stat .star { color: #FFB400; }

/* ============================================================
   카테고리 페이지 (필터 + 결과)
   ============================================================ */
.category-page {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}
.filter-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  align-self: start;
  position: sticky;
  top: 130px;
}
.filter-panel h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.filter-panel .filter-group {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.filter-panel .filter-group:last-child { border-bottom: none; }
.filter-panel label {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-sub);
  cursor: pointer;
}
.filter-panel label:hover { color: var(--text); }
.filter-panel input[type=checkbox],
.filter-panel input[type=radio] {
  accent-color: var(--brand);
}

.result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.result-toolbar .count { font-size: 14px; color: var(--text-sub); }
.result-toolbar .count strong { color: var(--text); font-weight: 700; }
.result-toolbar select {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  outline: none;
  cursor: pointer;
}

/* 서비스 그리드 - 3열 in 카테고리 */
.category-page .svc-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* ============================================================
   서비스 상세
   ============================================================ */
.svc-detail {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
.svc-detail .main-area {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}
.svc-detail .gallery {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #F0F4F8, #E1EAF3);
  display: grid; place-items: center;
  font-size: 120px;
}
.svc-detail .info-area {
  padding: 24px;
}
.svc-detail .crumb {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 10px;
}
.svc-detail h1 {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 14px;
}
.svc-detail .meta {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.svc-detail .meta .star { color: #FFB400; }
.svc-detail .meta .sep { color: var(--line); }
.svc-detail .meta b { font-weight: 700; }

.svc-detail .desc {
  padding: 20px 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  border-bottom: 1px solid var(--line-soft);
}
.svc-detail .tags {
  padding: 16px 0;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.svc-detail .tags span {
  padding: 6px 12px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

/* 가격 사이드 */
.price-side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 130px;
}
.price-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.price-tabs button {
  padding: 10px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  border-bottom: 2px solid transparent;
}
.price-tabs button.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.price-body .pname {
  font-size: 14px; font-weight: 700; margin-bottom: 6px;
}
.price-body .pprice {
  font-size: 28px; font-weight: 900; margin-bottom: 12px;
}
.price-body .pprice small { font-size: 14px; color: var(--text-sub); font-weight: 600; }
.price-body .pmeta {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--text-sub);
}
.price-body .pmeta b { color: var(--text); font-weight: 700; }
.btn-order {
  width: 100%;
  padding: 14px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  transition: background .15s;
}
.btn-order:hover { background: var(--brand-dark); }
.btn-msg {
  width: 100%;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--brand);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}
.btn-msg:hover { background: var(--brand-light); }

/* 전문가 정보 박스 */
.expert-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.expert-box .av-xl {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--brand-light);
  display: grid; place-items: center;
  font-size: 32px;
}

/* 리뷰 */
.review-list { margin-top: 24px; }
.review-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.review-item .r-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}
.review-item .r-head .star { color: #FFB400; }
.review-item .r-head .author { font-weight: 700; }
.review-item .r-head .date { color: var(--text-mute); margin-left: auto; }
.review-item .r-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}

/* ============================================================
   로그인 모달
   ============================================================ */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  display: grid; place-items: center;
  z-index: 1000;
  padding: 20px;
}
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal h2 {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4px;
  color: var(--brand);
}
.modal .sub {
  text-align: center; font-size: 13px; color: var(--text-sub);
  margin-bottom: 24px;
}
.modal label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 6px;
}
.modal input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  outline: none;
  font-size: 14px;
}
.modal input:focus { border-color: var(--brand); }
.modal .btn-login {
  width: 100%;
  padding: 13px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}
.modal .btn-login:hover { background: var(--brand-dark); }
.modal .hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 14px;
  background: var(--bg-soft);
  padding: 10px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   마이페이지
   ============================================================ */
.mypage {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}
.mypage-side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.mypage-side .me {
  padding: 20px;
  background: linear-gradient(135deg, var(--brand-light), #fff);
  text-align: center;
}
.mypage-side .me .av {
  width: 56px; height: 56px;
  margin: 0 auto 8px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 24px;
}
.mypage-side .me .nm { font-weight: 700; font-size: 15px; }
.mypage-side .me .em { font-size: 12px; color: var(--text-sub); }

.mypage-side nav button {
  width: 100%;
  text-align: left;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--text-sub);
  display: flex; align-items: center; gap: 8px;
}
.mypage-side nav button:hover { background: var(--bg-soft); color: var(--text); }
.mypage-side nav button.active {
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 700;
  border-right: 3px solid var(--brand);
}

.mypage-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.mypage-main h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.order-item {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
}
.order-item .ot {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #F0F4F8, #E1EAF3);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  font-size: 32px;
}
.order-item .ot-info .ot-title { font-weight: 600; font-size: 13.5px; margin-bottom: 4px; }
.order-item .ot-info .ot-meta { font-size: 12px; color: var(--text-mute); }
.order-item .ot-price { font-weight: 800; font-size: 15px; }
.order-item .ot-status {
  padding: 4px 10px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-mute);
}
.empty .ic { font-size: 56px; margin-bottom: 12px; opacity: .5; }
.empty .ttl { font-size: 15px; font-weight: 700; color: var(--text-sub); margin-bottom: 6px; }

/* ============================================================
   토스트
   ============================================================ */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all .25s;
  z-index: 2000;
  box-shadow: var(--shadow-lg);
}
.toast.on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   알림 패널 (헤더 드롭다운)
   ============================================================ */
.header-top { position: relative; }
.noti-panel {
  position: absolute;
  top: 64px;
  right: 24px;
  width: 360px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  overflow: hidden;
}
.noti-head {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-soft);
}
.noti-head strong { font-size: 14px; }
.noti-head button {
  font-size: 12px;
  color: var(--brand);
  font-weight: 700;
}
.noti-list {
  max-height: 380px;
  overflow-y: auto;
}
.noti-item {
  padding: 12px 18px;
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background .15s;
}
.noti-item:hover { background: var(--bg-soft); }
.noti-item:last-child { border-bottom: none; }
.noti-item.unread { background: var(--brand-light); }
.noti-item.unread:hover { background: #DBE8F6; }
.noti-item .ic { font-size: 22px; flex-shrink: 0; }
.noti-item .body { flex: 1; min-width: 0; }
.noti-item .ttl {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.noti-item .dt {
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 2px;
}

/* 종 버튼 */
.bell-btn {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 17px;
  color: var(--text-sub);
}
.bell-btn:hover { background: var(--line-soft); color: var(--text); }
.bell-btn .dot {
  position: absolute;
  top: 8px; right: 9px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid #fff;
}

/* 언어 토글 버튼 */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 10px;
  border-radius: 18px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 14px;
  transition: background .15s ease;
}
.lang-btn:hover { background: var(--brand-light); color: var(--brand); }
.lang-btn span { font-size: 11px; font-weight: 800; letter-spacing: .5px; }

/* 언어 선택 패널 */
.lang-panel {
  position: absolute;
  top: 64px; right: 24px;
  width: 180px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 200;
}
.lang-panel button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  text-align: left;
  transition: background .12s;
}
.lang-panel button:hover { background: var(--brand-light); color: var(--brand); }
.lang-panel button span { font-size: 18px; line-height: 1; }
@media (max-width: 700px) {
  .lang-panel { right: 10px; top: 60px; width: 160px; }
}

/* ============================================================
   메시지 모달 (채팅)
   ============================================================ */
.msg-modal { padding: 0; overflow: hidden; }
#msg-modal-head {
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.msg-av {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-light);
  display: grid; place-items: center;
  font-size: 20px;
}
.msg-thread {
  padding: 20px;
  height: 360px;
  overflow-y: auto;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg-bubble.me {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-bubble.expert {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.msg-time {
  font-size: 10px;
  color: var(--text-mute);
  margin-top: 2px;
  padding: 0 4px;
}
.msg-time.me { text-align: right; }
.msg-typing {
  align-self: flex-start;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  font-size: 13px;
  color: var(--text-mute);
}
.msg-typing .dots { display: inline-block; }
.msg-typing .dots::after {
  content: '·';
  animation: typing 1.4s infinite;
}
@keyframes typing {
  0%, 100% { content: '·  '; }
  33% { content: '·· '; }
  66% { content: '···'; }
}
.msg-form {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.msg-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  font-size: 13px;
  margin-bottom: 0;
}
.msg-form input:focus { border-color: var(--brand); }
.msg-form button {
  padding: 10px 18px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}
.msg-form button:hover { background: var(--brand-dark); }

/* 메시지 목록 (마이페이지) */
.thread-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  align-items: center;
}
.thread-item:hover { background: var(--bg-soft); }
.thread-item .av-md {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand-light);
  display: grid; place-items: center;
  font-size: 24px;
}
.thread-item .nm { font-weight: 700; font-size: 14px; }
.thread-item .preview {
  font-size: 12px;
  color: var(--text-sub);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 360px;
  margin-top: 2px;
}
.thread-item .dt { font-size: 11px; color: var(--text-mute); }
.thread-item .unread-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

/* ============================================================
   정보 페이지 (about/terms/privacy/faq/guide/notice)
   ============================================================ */
.info-page {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 860px;
  margin: 0 auto;
}
.info-page h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--brand);
  color: var(--text);
}
.info-page h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 24px 0 12px;
  color: var(--brand);
}
.info-page h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--text);
}
.info-page p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 10px;
}
.info-page ul {
  padding-left: 20px;
  margin: 10px 0;
}
.info-page li {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
}
.info-page .notice-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.info-page .notice-item .tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  margin-right: 6px;
}
.info-page .notice-item .date {
  font-size: 11px;
  color: var(--text-mute);
  margin-left: 8px;
}
.info-page .notice-item strong {
  font-size: 14.5px;
  font-weight: 700;
}
.info-page .notice-item p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-sub);
}

/* ============================================================
   서비스 상세 - 다중 이미지 갤러리
   ============================================================ */
.gallery-wrap { display: flex; flex-direction: column; }
.gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  overflow-x: auto;
}
.gallery-thumbs button {
  width: 70px; height: 70px;
  flex-shrink: 0;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid; place-items: center;
  font-size: 32px;
  transition: all .15s;
}
.gallery-thumbs button:hover { border-color: var(--brand-light); }
.gallery-thumbs button.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(26,84,144,.15);
}

/* 서브카테고리 칩 활성 상태 */
.sub-chip {
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
}
.sub-chip:hover { border-color: var(--brand); color: var(--brand); }
.sub-chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 700;
}

/* 계정 설정 폼 */
.settings-form {
  max-width: 480px;
}
.settings-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  margin: 16px 0 6px;
}
.settings-form input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 14px;
  background: #fff;
}
.settings-form input:focus { border-color: var(--brand); }
.settings-form input:disabled { background: var(--bg-soft); color: var(--text-mute); }
.settings-form button {
  margin-top: 20px;
  padding: 11px 24px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.settings-form button:hover { background: var(--brand-dark); }
.settings-form .row {
  display: flex; gap: 12px; align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.settings-form .row .danger {
  background: #fff;
  border: 1px solid #DC2626;
  color: #DC2626;
}
.settings-form .row .danger:hover { background: #FEE2E2; }

/* ============================================================
   푸터
   ============================================================ */
.footer {
  margin-top: 60px;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.footer .col { font-size: 12px; color: var(--text-sub); line-height: 1.9; }
.footer .col a:hover { color: var(--brand); }
.footer-bot {
  max-width: 1280px;
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  color: var(--text-mute);
  text-align: center;
}

/* ============================================================
   유틸 / 반응형
   ============================================================ */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-detail { grid-template-columns: 1fr; }
  .price-side { position: static; }
  .category-page { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .mypage { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .header-top {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }
  .search-bar { grid-column: 1 / -1; order: 3; max-width: none; }
  .header-actions .h-btn span { display: none; }
  .hero { padding: 40px 16px 50px; margin: -24px -24px 24px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 14px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-grid,
  .category-page .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .expert-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
