/* ============================================================
   HoloBridge 디자인 시스템 — Deep Forest 팔레트 · 모바일 퍼스트
   ============================================================ */
:root {
  --forest: #174d40;
  --forest-dark: #0e352c;
  --forest-soft: #2a6b5a;
  --sage: #e7f2ec;
  --sage-deep: #cfe5da;
  --bg: #fafbf9;
  --ink: #1c2926;
  --ink-soft: #5c6f68;
  --line: #e3ebe6;
  --card: #ffffff;
  --accent: #f0b429;
  --danger: #d64550;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 14px rgba(23, 77, 64, .07);
  --shadow-hover: 0 10px 28px rgba(23, 77, 64, .14);
  --maxw: 1260px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 8px; letter-spacing: -.02em; }
p { margin: 0 0 10px; }
code { background: var(--sage); padding: 2px 7px; border-radius: 6px; font-size: .88em; }

/* ---------- 공통 유틸 ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }
.section { padding: 34px 20px 10px; }
.muted { color: var(--ink-soft); }
.muted-sm { color: var(--ink-soft); font-size: 13px; }
.center { text-align: center; }
.center-box { display: grid; place-items: center; min-height: 55vh; }
.pre-line { white-space: pre-line; }
.mt-lg { margin-top: 28px; }
.spacer { flex: 1; }
.ml-auto { margin-left: auto; }
.hide-m { }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 20px;
  border-radius: 12px; border: 1.5px solid transparent;
  font-size: 15px; font-weight: 700; transition: all .18s;
  background: var(--sage); color: var(--forest);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--forest); color: #fff; box-shadow: 0 4px 14px rgba(23,77,64,.25); }
.btn-primary:hover { background: var(--forest-soft); }
.btn-outline { background: #fff; border-color: var(--forest); color: var(--forest); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--sage); color: var(--forest); }
.btn-light { background: #fff; color: var(--forest); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { min-height: 52px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-row form { display: inline-flex; }
.link-btn { background: none; border: 0; color: var(--forest); text-decoration: underline; padding: 0; font-size: inherit; }

/* ---------- 헤더 ---------- */
.gnb {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 251, 249, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.gnb-in { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 20px; color: var(--forest); flex-shrink: 0; }
.logo-mark { font-size: 22px; }
.gnb-nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.gnb-nav::-webkit-scrollbar { display: none; }
.gnb-nav a { padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--ink-soft); white-space: nowrap; }
.gnb-nav a:hover { color: var(--forest); background: var(--sage); }
.gnb-nav a.is-active { color: var(--forest); background: var(--sage); }
.gnb-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; color: var(--ink-soft);
  background: transparent; border: 0;
}
.icon-btn:hover { background: var(--sage); color: var(--forest); }
.noti-dot {
  position: absolute; top: 2px; right: 0;
  background: var(--danger); color: #fff; font-size: 10px; font-weight: 800;
  min-width: 16px; height: 16px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px;
}
.profile-chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; background: var(--sage); }
.profile-chip img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.profile-chip b { font-size: 14px; color: var(--forest); }
.avatar-fallback {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--forest); color: #fff; font-weight: 700; font-size: 15px; flex-shrink: 0;
}

/* ---------- 플래시 ---------- */
.flash-wrap { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 90; width: min(92vw, 480px); }
.flash {
  padding: 13px 18px; border-radius: 12px; font-weight: 600; font-size: 14.5px;
  box-shadow: var(--shadow-hover); margin-bottom: 8px; animation: flash-in .3s ease;
}
.flash-ok { background: var(--forest); color: #fff; }
.flash-err { background: #fff2f2; color: var(--danger); border: 1px solid #f3c2c6; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- 히어로 배너 (Swiper) ---------- */
.hero-banner { padding-top: 22px; }
.hero-swiper-wrap { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 3/1.15; box-shadow: var(--shadow-hover); }
.hero-swiper-wrap .swiper, .hero-swiper-wrap .swiper-wrapper, .hero-swiper-wrap .swiper-slide { width: 100%; height: 100%; }
.hero-slide { position: relative; display: block; width: 100%; height: 100%; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide-grad { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,38,31,.82) 18%, rgba(10,38,31,.35) 55%, transparent 80%); }
.hero-slide-copy { position: absolute; left: clamp(20px, 5%, 56px); top: 50%; transform: translateY(-50%); color: #fff; max-width: 60%; }
.hero-eyebrow { display: inline-block; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); padding: 4px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.hero-slide-copy h2 { font-size: clamp(22px, 3.4vw, 40px); font-weight: 800; margin: 0 0 10px; }
.hero-slide-copy p { font-size: clamp(13px, 1.5vw, 17px); opacity: .9; margin: 0; }
.hero-swiper-wrap .swiper-pagination { bottom: 12px !important; }
.hero-swiper-wrap .swiper-pagination-bullet { background: #fff; opacity: .5; width: 7px; height: 7px; }
.hero-swiper-wrap .swiper-pagination-bullet-active { opacity: 1; width: 20px; border-radius: 4px; }

/* ---------- 카테고리 그리드 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 8px 13px; transition: all .18s;
}
.cat-item:hover { border-color: var(--forest); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.cat-ico { font-size: 26px; }
.cat-item b { font-size: 14px; }
.cat-item small { font-size: 11.5px; color: var(--ink-soft); }

/* ---------- 섹션 ---------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 10px 0 18px; }
.sec-head h2 { font-size: 22px; font-weight: 800; }
.sec-head h2 em { font-style: normal; color: var(--forest-soft); font-size: 16px; }
.sec-actions { display: flex; gap: 12px; align-items: center; }
.more { color: var(--forest); font-weight: 700; font-size: 14px; white-space: nowrap; }
.more-light { color: #fff; }
.band { margin-top: 34px; }
.band-sage { background: var(--sage); }
.band-sage .section { padding-top: 38px; padding-bottom: 38px; }
.band-forest { background: linear-gradient(135deg, var(--forest-dark), var(--forest)); color: #fff; }
.band-forest .section { padding-top: 38px; padding-bottom: 38px; }
.band-forest .sec-head h2 { color: #fff; }

/* ---------- 그리드·카드 ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: all .2s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: var(--sage-deep); }
.card-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--sage); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.card:hover .card-thumb img { transform: scale(1.05); }
.thumb-tag {
  position: absolute; top: 10px; left: 10px; background: rgba(14, 53, 44, .82); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; backdrop-filter: blur(4px);
}
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.chip-cat { display: inline-block; background: var(--sage); color: var(--forest); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.card-title { font-size: 16px; font-weight: 700; margin: 0; }
.card-title em { font-style: normal; font-weight: 500; }
.card-desc { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; font-size: 13.5px; }
.rating { color: var(--accent); font-weight: 800; }
.rating em { color: var(--ink-soft); font-weight: 500; font-style: normal; font-size: .9em; }
.price { font-weight: 800; color: var(--forest); font-size: 16px; }
.price em, .price-sm em { font-style: normal; font-weight: 500; color: var(--ink-soft); font-size: .78em; }
.price-sm { font-weight: 700; color: var(--forest); }
.seats { font-weight: 700; color: var(--forest-soft); font-size: 13px; }

/* 정책 카드 */
.card-policy { padding: 18px; gap: 8px; }
.policy-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dday { background: #fff4d6; color: #a16207; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; }

/* 게시글 행 */
.card-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-list .post-row { display: flex; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); transition: background .15s; }
.post-list .post-row:last-child { border-bottom: 0; }
.post-row:hover { background: var(--sage); }
.post-main { flex: 1; min-width: 0; }
.post-title { font-size: 15.5px; font-weight: 700; margin: 6px 0 4px; }
.post-title .cmt { color: var(--forest-soft); font-style: normal; font-size: .9em; }
.post-ex { font-size: 13px; color: var(--ink-soft); margin: 0 0 6px; }
.post-meta { display: flex; gap: 10px; font-size: 12px; color: var(--ink-soft); flex-wrap: wrap; }
.post-thumb { width: 86px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; align-self: center; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* 파트너 카드 */
.card-expert { padding: 18px; gap: 10px; }
.expert-top { display: flex; gap: 12px; align-items: center; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-sm { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-xl { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; flex-shrink: 0; font-size: 34px; }

/* 인연 카드 */
.dating-thumb { aspect-ratio: 1/1.05; }

/* ---------- CTA ---------- */
.cta-partner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(130deg, var(--forest-dark), var(--forest-soft));
  color: #fff; border-radius: 22px; padding: 30px 34px; margin-bottom: 20px;
}
.cta-partner h2 { color: #fff; font-size: 22px; }
.cta-partner p { opacity: .85; margin: 0; }

/* ---------- 푸터 ---------- */
.footer { background: var(--forest-dark); color: #cfe0d8; margin-top: 50px; padding: 40px 0 80px; }
.footer-in { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.footer-brand { max-width: 420px; }
.footer-brand strong { font-size: 18px; color: #fff; }
.footer-brand p { font-size: 13.5px; }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-cols h4 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.footer-cols a { display: block; font-size: 13.5px; padding: 3px 0; opacity: .8; }
.footer-cols a:hover { opacity: 1; color: #fff; }

/* ---------- 모바일 탭바 ---------- */
.tabbar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; font-weight: 600; color: var(--ink-soft); padding: 4px 0; min-height: 44px;
}
.tabbar a.is-active { color: var(--forest); }
.tab-ico { font-size: 20px; line-height: 1; }

/* ---------- 페이지 공통 ---------- */
.page-head { margin-bottom: 18px; }
.page-head h1 { font-size: 26px; font-weight: 800; }
.page-head.with-cta { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.crumb { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.crumb a { color: var(--forest); }
.empty-hero { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty-emoji { font-size: 44px; margin-bottom: 10px; }
.empty-hero .btn { margin-top: 14px; }

/* ---------- 칩 슬라이더 (Swiper freeMode) ---------- */
.hb-chips {
  padding: 2px 0 14px;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.hb-chips .swiper { overflow: hidden; }
.hb-chips .swiper-wrapper { display: flex; align-items: center; }
.hb-chips .swiper-slide { width: auto !important; flex-shrink: 0; }
.hb-chips .swiper-slide + .swiper-slide { margin-left: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff; border: 1.5px solid var(--line); color: var(--ink-soft);
  font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 99px;
  white-space: nowrap; -webkit-user-drag: none; user-select: none; transition: all .15s;
}
.chip:hover { border-color: var(--forest); color: var(--forest); }
.chip.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }

/* ---------- 툴바·입력 ---------- */
.list-toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.list-toolbar input[type="search"], .list-toolbar input[type="text"] {
  flex: 1; min-width: 160px; max-width: 340px; min-height: 42px;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 14px; background: #fff;
}
.list-toolbar select { min-height: 42px; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px; background: #fff; }
.toolbar-cta { margin-left: auto; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--forest-soft); outline-offset: 1px; border-color: var(--forest-soft); }

/* ---------- 폼 ---------- */
.form-card, .auth-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.auth-card { max-width: 520px; margin: 10px auto 30px; }
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.field > span, .field-label { font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; background: #fff; min-height: 44px;
}
.field textarea { resize: vertical; min-height: 0; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--forest); }
.check a { color: var(--forest); text-decoration: underline; }
.check-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.check-pill { position: relative; }
.check-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check-pill span {
  display: inline-block; padding: 7px 15px; border-radius: 99px; border: 1.5px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft); background: #fff; transition: all .15s;
}
.check-pill input:checked + span { background: var(--forest); border-color: var(--forest); color: #fff; }
.auth-alt { text-align: center; margin-top: 16px; font-size: 14px; color: var(--ink-soft); }
.auth-alt a { color: var(--forest); font-weight: 700; }

/* ---------- SNS 로그인 ---------- */
.sns-divider {
  display: flex; align-items: center; gap: 12px; margin: 22px 0 14px;
  color: var(--ink-soft); font-size: 13px;
}
.sns-divider::before, .sns-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.sns-login { display: flex; justify-content: center; gap: 12px; }
.sns-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.sns-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, .14); }
.sns-kakao { background: #fee500; color: #191919; }
.sns-naver { background: #03c75a; color: #fff; }
.sns-naver-n { font-weight: 900; font-size: 19px; line-height: 1; font-family: Pretendard, sans-serif; }
.sns-google { background: #fff; color: #4285f4; border-color: var(--line); }
.sns-apple { background: #000; color: #fff; }
.sns-facebook { background: #1877f2; color: #fff; }

/* ---------- 상세 ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; }
.detail-hero { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16/8; box-shadow: var(--shadow); margin-bottom: 18px; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.detail-title-row h1 { font-size: 24px; font-weight: 800; }
.detail-meta { display: flex; align-items: center; gap: 7px; font-size: 14px; flex-wrap: wrap; }
.detail-sec { margin: 26px 0; }
.detail-sec h2 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.benefit-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.notice-box { background: #fdf7e8; border: 1px solid #f3e3b3; border-radius: 14px; padding: 14px 18px; font-size: 14px; margin: 18px 0; }
.notice-box a { color: var(--forest); font-weight: 700; text-decoration: underline; }
.review-list { display: flex; flex-direction: column; gap: 14px; }
.review-item { background: var(--sage); border-radius: 14px; padding: 14px 18px; }
.review-item p { margin: 8px 0 0; font-size: 14.5px; }
.review-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.detail-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.side-card h3 { font-size: 15px; margin-bottom: 10px; }
.side-price { font-size: 26px; font-weight: 800; color: var(--forest); margin-bottom: 12px; }
.side-price em { font-style: normal; font-size: 15px; color: var(--ink-soft); font-weight: 500; }
.partner-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--sage); margin-bottom: 14px; }
.partner-row b { display: block; font-size: 14.5px; }
.partner-row small { display: block; font-size: 12.5px; }
.side-actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mini-row:last-child { border-bottom: 0; }
.mini-row img { width: 52px; height: 42px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.mini-row > div { flex: 1; min-width: 0; }
.mini-row b { display: block; font-size: 13.5px; }
.mini-row small { color: var(--ink-soft); font-size: 12px; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }

/* 북마크 버튼 */
.bm-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--line); background: #fff; color: #c3cfc9; transition: all .15s; flex-shrink: 0;
}
.bm-btn:hover { border-color: var(--danger); color: var(--danger); }
.bm-btn.is-on { background: #fff0f1; border-color: var(--danger); color: var(--danger); }
.bm-lg { width: 46px; height: 46px; }

/* ---------- 요청 ---------- */
.req-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.req-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.req-card h3 { font-size: 16.5px; margin: 8px 0 6px; }
.req-top { display: flex; justify-content: space-between; align-items: center; }
.req-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); margin-top: 8px; }
.req-actions { display: flex; gap: 8px; margin-top: 12px; }

/* ---------- 파트너 상세 ---------- */
.expert-hero { display: flex; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.expert-hero-info h1 { font-size: 24px; }
.expert-hero-stats { display: flex; gap: 12px; align-items: center; margin-top: 6px; }

/* ---------- 예약 ---------- */
.booking-service-row { display: flex; gap: 14px; align-items: center; background: var(--sage); border-radius: 14px; padding: 14px; margin: 14px 0; }
.booking-service-row img { width: 86px; height: 66px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.booking-service-row b { display: block; }
.booking-service-row small { display: block; margin: 2px 0; }
.pay-summary { background: var(--sage); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.pay-summary > div { display: flex; justify-content: space-between; font-size: 14.5px; }
.pay-total { border-top: 1.5px dashed var(--sage-deep); padding-top: 10px; font-size: 17px !important; font-weight: 800; color: var(--forest); }
.pay-methods { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-method { position: relative; flex: 1; min-width: 130px; }
.pay-method input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pay-method span { display: flex; justify-content: center; padding: 13px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 700; font-size: 14px; background: #fff; transition: all .15s; }
.pay-method input:checked + span { border-color: var(--forest); background: var(--sage); color: var(--forest); }
.stepper { display: flex; justify-content: space-between; margin: 20px 0; position: relative; }
.stepper::before { content: ''; position: absolute; top: 15px; left: 10%; right: 10%; height: 2px; background: var(--line); }
.step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.step-dot { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--ink-soft); }
.step.is-done .step-dot { background: var(--forest); border-color: var(--forest); color: #fff; }
.step.is-cur .step-dot { box-shadow: 0 0 0 4px var(--sage-deep); }
.step-label { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.step.is-done .step-label { color: var(--forest); }
.kv { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.kv > div { display: flex; gap: 14px; font-size: 14.5px; }
.kv dt { width: 90px; flex-shrink: 0; color: var(--ink-soft); font-weight: 600; }
.kv dd { margin: 0; flex: 1; }
.booking-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--sage-deep); display: flex; flex-direction: column; gap: 14px; }
.timeline li { position: relative; }
.timeline li::before { content: ''; position: absolute; left: -24px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--forest); }
.timeline b { display: block; font-size: 14.5px; }
.timeline small { display: block; font-size: 12.5px; color: var(--ink-soft); }
.booking-list { display: flex; flex-direction: column; gap: 12px; }
.booking-card { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: all .18s; }
a.booking-card:hover { box-shadow: var(--shadow-hover); }
.booking-card img { width: 92px; height: 70px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.booking-info { flex: 1; min-width: 0; }
.booking-info b { display: block; margin: 4px 0 2px; }
.booking-top { display: flex; align-items: center; gap: 10px; }
.booking-price { font-weight: 800; color: var(--forest); white-space: nowrap; }
.booking-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* 별점 입력 */
.star-input { display: flex; flex-direction: row-reverse; justify-content: center; gap: 4px; font-size: 34px; }
.star-input input { display: none; }
.star-input label { color: #d8e2dc; cursor: pointer; transition: color .1s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--accent); }

/* ---------- 채팅 ---------- */
.chat-page { max-width: 760px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.chat-head b { display: block; }
.chat-head small a { color: var(--forest); }
.chat-service-banner { display: flex; align-items: center; gap: 12px; background: var(--sage); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; }
.chat-service-banner img { width: 54px; height: 44px; border-radius: 8px; object-fit: cover; }
.chat-service-banner > div { flex: 1; min-width: 0; }
.chat-service-banner b { display: block; font-size: 14px; }
.chat-service-banner small { color: var(--ink-soft); }
.chat-box {
  height: 54vh; min-height: 320px; overflow-y: auto; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.msg { display: flex; align-items: flex-end; gap: 7px; max-width: 78%; }
.msg-mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-bubble { background: var(--sage); border-radius: 16px 16px 16px 4px; padding: 10px 14px; font-size: 14.5px; }
.msg-mine .msg-bubble { background: var(--forest); color: #fff; border-radius: 16px 16px 4px 16px; }
.msg-time { font-size: 11px; color: var(--ink-soft); white-space: nowrap; }
.chat-empty-tip { margin: auto; }
.chat-input { display: flex; gap: 8px; margin-top: 12px; align-items: flex-end; }
.chat-input textarea { flex: 1; border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 14px; resize: none; max-height: 120px; }
.chat-list .chat-row { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-list .chat-row:last-child { border-bottom: 0; }
.chat-row:hover { background: var(--sage); }
.chat-row-main { flex: 1; min-width: 0; }
.chat-row-top { display: flex; justify-content: space-between; gap: 8px; }
.chat-row-main p { margin: 2px 0 4px; font-size: 13.5px; }
.unread-badge { background: var(--danger); color: #fff; font-size: 12px; font-weight: 800; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; padding: 0 6px; }

/* ---------- 추천 ---------- */
.reco-list { display: flex; flex-direction: column; gap: 10px; }
.reco-item { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; transition: all .15s; }
.reco-item:hover { border-color: var(--forest); box-shadow: var(--shadow); }
.reco-score { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: var(--sage); color: var(--forest); flex-shrink: 0; }
.reco-score b { font-size: 19px; line-height: 1; }
.reco-score small { font-size: 10.5px; }
.reco-main { flex: 1; min-width: 0; }
.reco-main b { display: block; margin: 4px 0 2px; }
.reco-top { display: flex; gap: 8px; align-items: center; }
.search-hero { text-align: center; padding: 26px 0 10px; }
.search-hero h1 { font-size: 26px; }
.search-bar { display: flex; gap: 8px; max-width: 560px; margin: 14px auto 10px; }
.search-bar input { flex: 1; min-height: 50px; border: 2px solid var(--forest); border-radius: 14px; padding: 10px 18px; font-size: 16px; }
.search-count { font-size: 15px; margin: 14px 0 6px; }

/* ---------- 인연 ---------- */
.consent-card { max-width: 560px; margin: 20px auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; text-align: center; box-shadow: var(--shadow); }
.consent-list { text-align: left; margin: 16px 0; padding-left: 20px; font-size: 14.5px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 6px; }
.consent-card .check { text-align: left; margin-bottom: 14px; }
.dating-profile-card { display: grid; grid-template-columns: 340px 1fr; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 18px; }
.dating-photo { position: relative; }
.dating-photo img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 340px; }
.match-badge { position: absolute; top: 14px; left: 14px; background: var(--danger); color: #fff; font-weight: 800; font-size: 13px; padding: 6px 14px; border-radius: 99px; }
.dating-body { padding: 28px; display: flex; flex-direction: column; }
.dating-body h1 { font-size: 26px; }
.dating-intro { font-size: 16px; margin: 12px 0; }
.dating-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }

/* ---------- 커뮤니티 ---------- */
.post-head h1 { font-size: 23px; margin: 10px 0 6px; }
.post-body { font-size: 15.5px; margin: 18px 0; }
.post-image { margin: 14px 0; }
.post-image img { border-radius: 14px; max-height: 480px; object-fit: contain; }
.post-actions { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; flex-wrap: wrap; }
.post-actions form { display: inline-flex; }
.comment-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.comment-item p { margin: 6px 0 0 38px; font-size: 14.5px; }
.comment-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.comment-form { display: flex; gap: 8px; margin-top: 16px; align-items: flex-end; }
.comment-form textarea { flex: 1; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; resize: vertical; }
.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { font-weight: 700; padding: 10px 0; cursor: pointer; list-style: none; position: relative; padding-right: 26px; }
.faq summary::after { content: '+'; position: absolute; right: 4px; color: var(--forest); font-size: 20px; }
.faq[open] summary::after { content: '−'; }
.faq p { color: var(--ink-soft); font-size: 14.5px; padding-bottom: 10px; }

/* ---------- 마이페이지 ---------- */
.profile-hero { display: flex; gap: 20px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); margin-bottom: 18px; flex-wrap: wrap; }
.profile-hero-info { flex: 1; min-width: 240px; }
.profile-hero-info h1 { font-size: 24px; }
.profile-hero .btn-row { margin-top: 10px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.stat-card b { font-size: 22px; color: var(--forest); }
.stat-card span { font-size: 13px; color: var(--ink-soft); }
.stat-card.accent { background: var(--sage); border-color: var(--sage-deep); }
.stat-card.warn { background: #fdf0f0; border-color: #f3c2c6; }
.stat-card.warn b { color: var(--danger); }
a.stat-card:hover { box-shadow: var(--shadow-hover); }
.noti-row { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.noti-row:last-child { border-bottom: 0; }
.noti-row:hover { background: var(--sage); }
.noti-row.is-unread { background: #f3faf6; font-weight: 600; }
.noti-row.is-unread .noti-main::after { content: ''; display: inline-block; width: 7px; height: 7px; background: var(--danger); border-radius: 50%; margin-left: 7px; vertical-align: middle; }
.noti-main { flex: 1; min-width: 0; }
.noti-type-ico { font-size: 18px; }
.apply-status { display: flex; align-items: center; gap: 12px; padding: 14px 0; flex-wrap: wrap; }

/* ---------- 파트너 센터 ---------- */
.partner-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.partner-tabs::-webkit-scrollbar { display: none; }
.partner-tabs a { padding: 11px 18px; font-weight: 700; font-size: 15px; color: var(--ink-soft); white-space: nowrap; border-bottom: 2.5px solid transparent; margin-bottom: -2px; }
.partner-tabs a.is-active { color: var(--forest); border-bottom-color: var(--forest); }

/* ---------- 테이블 ---------- */
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; margin-bottom: 20px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.tbl th { text-align: left; background: var(--sage); color: var(--forest); font-size: 13px; padding: 11px 14px; white-space: nowrap; }
.tbl td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl-main { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.tbl-main a { color: var(--forest); font-weight: 600; }
.tbl-thumb { width: 54px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.tbl-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tbl-actions form { display: inline-flex; }
.tbl form { margin: 0; }
.decide-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.input-sm { border: 1.5px solid var(--line); border-radius: 10px; padding: 7px 10px; min-height: 36px; width: 150px; font-size: 13px; }
.input-xs { border: 1.5px solid var(--line); border-radius: 10px; padding: 7px 8px; min-height: 36px; width: 72px; font-size: 13px; }
.input-md { border: 1.5px solid var(--line); border-radius: 10px; padding: 7px 10px; min-height: 36px; width: 220px; font-size: 13px; }
.cat-add-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ---------- 뱃지 ---------- */
.badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.tone-ok { background: #e3f5e9; color: #15803d; }
.tone-wait { background: #fff4d6; color: #a16207; }
.tone-info { background: #e3edfb; color: #1d4ed8; }
.tone-bad { background: #fdecec; color: var(--danger); }
.tone-muted { background: #eef1ef; color: var(--ink-soft); }
.tone-done { background: var(--sage); color: var(--forest); }

/* ---------- 페이지네이션 ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 26px 0; flex-wrap: wrap; }
.pagination a { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; background: #fff; }
.pagination a:hover { border-color: var(--forest); color: var(--forest); }
.pagination a.is-cur { background: var(--forest); border-color: var(--forest); color: #fff; }
.pg-dots { align-self: center; color: var(--ink-soft); }

/* ---------- 모달 ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(14, 41, 34, .5); backdrop-filter: blur(3px); }
.modal-card { position: relative; width: min(92vw, 460px); background: #fff; border-radius: 20px; padding: 26px; box-shadow: var(--shadow-hover); max-height: 86vh; overflow-y: auto; }
.modal-card form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- 업로드 드롭존 ---------- */
.na-dropzone {
  position: relative; display: grid; place-items: center;
  border: 2px dashed var(--sage-deep); border-radius: 16px; background: var(--sage);
  aspect-ratio: 2/1; overflow: hidden; cursor: pointer; transition: all .15s;
}
.na-dropzone.na-wide { aspect-ratio: 3/1.2; }
.na-dropzone:hover, .na-dropzone.is-over { border-color: var(--forest); background: #dcefe5; }
.na-dropzone img[data-na-preview] { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.na-empty { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink-soft); text-align: center; padding: 14px; }
.na-empty b { font-size: 14px; color: var(--forest); }
.na-empty small { font-size: 12px; }
.na-ico { font-size: 28px; }
.na-selected { margin-top: 6px; }

/* ---------- 소개 ---------- */
.about-hero { text-align: center; padding: 30px 0 10px; }
.about-hero h1 { font-size: clamp(26px, 4.5vw, 38px); color: var(--forest); }
.about-hero p { font-size: 16px; color: var(--ink-soft); }
.about-grid { margin: 24px 0; }
.about-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.about-card span { font-size: 30px; }
.about-card h3 { margin: 8px 0 6px; font-size: 17px; }
.about-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.doc-card h2 { font-size: 17px; margin-top: 22px; }
.doc-card p { font-size: 14.5px; color: #3b4a45; }
.safe-list { margin: 0; padding-left: 20px; font-size: 14.5px; display: flex; flex-direction: column; gap: 7px; }
.member-row { display: flex; gap: 8px; flex-wrap: wrap; }
.member-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--sage); padding: 5px 12px 5px 6px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.member-chip img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.member-chip .avatar-fallback { width: 24px; height: 24px; font-size: 11px; }
.log-row { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- 관리자 레이아웃 ---------- */
.admin-body { background: #f2f5f3; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
  width: 230px; flex-shrink: 0; background: var(--forest-dark); color: #cfe0d8;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.admin-logo { display: block; padding: 20px 18px; font-size: 16px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-logo span { font-size: 10px; background: var(--accent); color: var(--forest-dark); font-weight: 800; padding: 2px 7px; border-radius: 6px; vertical-align: middle; }
.admin-nav { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; opacity: .8; }
.admin-nav a:hover { background: rgba(255,255,255,.08); opacity: 1; }
.admin-nav a.is-active { background: var(--forest-soft); color: #fff; opacity: 1; }
.admin-side-foot { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.admin-side-foot a { opacity: .75; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fff; border-bottom: 1px solid var(--line); padding: 14px 26px; position: sticky; top: 0; z-index: 10; }
.admin-topbar h1 { font-size: 19px; margin: 0; }
.admin-topbar-right { display: flex; align-items: center; gap: 12px; }
.admin-topbar-right form { margin: 0; }
.admin-content { padding: 24px 26px 40px; }
.admin-content .flash { margin: 0 0 16px; }
.admin-main .flash { margin: 14px 26px 0; }
.admin-stats { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .admin-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .gnb-nav { display: none; }
  .hide-m { display: none !important; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .req-list { grid-template-columns: 1fr; }
  .dating-profile-card { grid-template-columns: 1fr; }
  .dating-photo img { max-height: 380px; }
  .tabbar { display: flex; }
  body { padding-bottom: 66px; }
  .footer { padding-bottom: 110px; }
  .hero-swiper-wrap { aspect-ratio: 16/10; }
  .hero-slide-copy { max-width: 84%; }
  .admin-shell { flex-direction: column; }
  .admin-side { width: 100%; height: auto; position: static; }
  .admin-nav { flex-direction: row; overflow-x: auto; padding: 8px; }
  .admin-nav a { white-space: nowrap; }
  .admin-content { padding: 16px; }
  .stat-grid, .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 24px 14px 8px; }
  .container { padding: 0 14px; }
  .form-card, .auth-card { padding: 20px 18px; }
  .card-title { font-size: 14.5px; }
  .price { font-size: 14px; }
  .booking-card { flex-wrap: wrap; }
  .field-row { flex-direction: column; }
  .pay-method { min-width: 100%; }
  .toolbar-cta { margin-left: 0; width: 100%; }
}
