@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --primary: #286cff;
  --primary-dark: #1954d6;
  --primary-soft: #eef4ff;
  --guide-blue: #164b8a;
  --guide-blue-soft: #e8f1fb;
  --guide-orange: #d97a26;
  --guide-orange-soft: #fdf2e7;
  --bg-outer: #eef2f9;
  --surface: #ffffff;
  --surface-sub: #f7f9fc;
  --text-main: #111827;
  --text-sub: #4b5563;
  --text-muted: #8b95a1;
  --border: #e5e8eb;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-frame: 0 24px 60px rgba(15, 23, 42, 0.14);
  --shadow-card: 0 6px 20px rgba(17, 24, 39, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Arabic", sans-serif;
  background: var(--bg-outer);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100dvh;
  word-break: keep-all;
}

[dir="rtl"] {
  word-break: normal;
}

button, input, textarea, select {
  font-family: inherit;
}

/* 데스크톱 분할 쇼케이스 + 중앙 모바일 앱 프레임 (VISIT SEOUL 스타일) */
.outer-layout {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 48px;
  max-width: 1120px;
  margin: 0 auto;
}

.desktop-side-intro {
  display: none;
  flex-direction: column;
  justify-content: center;
  max-width: 420px;
  padding: 40px 0;
}

@media (min-width: 960px) {
  .desktop-side-intro {
    display: flex;
  }
  .app-shell {
    margin: 20px 0;
    border-radius: 32px;
    height: calc(100dvh - 40px);
    border: 1px solid rgba(40, 108, 255, 0.14);
  }
}

.intro-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dbe8ff;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 16px;
}

.intro-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.26;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 14px;
}

.intro-title span {
  color: var(--primary);
}

.intro-desc {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 24px;
  line-height: 1.65;
}

.intro-feature-list {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.intro-feature-item {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.intro-qr-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  padding: 16px;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.intro-qr-card img {
  width: 78px;
  height: 78px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* 메인 모바일 앱 프레임 */
.app-shell {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  box-shadow: var(--shadow-frame);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
}

/* 상단 고정 헤더 */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--surface);
  border-bottom: 1px solid rgba(229, 232, 235, 0.8);
  z-index: 30;
  min-height: 56px;
}

.brand-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(40, 108, 255, 0.3);
}

.header-utils {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.util-link-btn {
  background: none;
  border: none;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 8px;
  transition: background 0.15s;
}

.util-link-btn:hover {
  background: var(--surface-sub);
}

.util-divider {
  color: #d1d5db;
  font-size: 12px;
}

.lang-dropdown-wrap {
  position: relative;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  min-width: 136px;
  padding: 6px;
  z-index: 60;
  display: none;
}

[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

.lang-menu.open {
  display: block;
}

.lang-option {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lang-option:hover, .lang-option.active {
  background: var(--primary-soft);
  color: var(--primary);
}

/* 본문 스크롤 컨테이너 */
.view-body {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 76px;
  scroll-behavior: smooth;
}

/* ================= HOME VIEW (Slide 1) ================= */
.home-hero {
  position: relative;
  background: linear-gradient(180deg, rgba(14, 32, 74, 0.62) 0%, rgba(20, 56, 130, 0.82) 100%),
              url("/images/hero-hambak.jpg") center/cover no-repeat;
  padding: 20px 18px 34px;
  color: #ffffff;
  transition: padding 0.3s ease;
}

.hero-chat-pill {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 11px 14px 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(10, 25, 60, 0.22);
  transition: transform 0.15s ease;
}

.hero-chat-pill:active {
  transform: scale(0.985);
}

.hero-chat-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hero-chat-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-chat-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e3a8a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-chat-bubble-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 6대 원형 퀵메뉴 (3x2) + 접었다 폈다 전환 */
.quick-grid-wrap {
  max-height: 320px;
  opacity: 1;
  overflow: hidden;
  margin-top: 22px;
  transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.24s ease, margin-top 0.28s ease;
}

.quick-grid-wrap.folded {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.quick-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 12px;
  justify-items: center;
}

.quick-circle-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #ffffff;
  width: 100%;
}

.quick-circle-icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
  transition: transform 0.16s ease, background 0.16s ease;
}

.quick-circle-btn:hover .quick-circle-icon,
.quick-circle-btn:active .quick-circle-icon {
  transform: translateY(-2px);
  background: rgba(40, 108, 255, 0.85);
}

.quick-circle-label {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  line-height: 1.25;
}

/* VISIT SEOUL 스타일 접었다 폈다 바텀시트 핸들 */
.home-sheet {
  position: relative;
  margin-top: -18px;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  padding: 8px 18px 24px;
  z-index: 10;
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
}

.fold-toggle-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 6px 0 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--primary);
}

.fold-chevron {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.28s ease;
}

.fold-chevron.rotated {
  transform: rotate(180deg);
}

.fold-hint {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.section-head {
  margin-bottom: 14px;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}

.section-title-lg {
  font-size: 19px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
}

/* 정착생활정보 이미지 카드 3종 (Slide 1 하단) */
.info-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 26px;
}

.info-card-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.info-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.info-card-thumb {
  height: 92px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.info-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-overlay-icon {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.soon-pill {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(17, 24, 39, 0.75);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
}

.info-card-body {
  padding: 9px 8px 11px;
  text-align: center;
}

.info-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #111827;
}

.info-card-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 홈 하단 참여 최신글 프리뷰 */
.home-board-box {
  background: var(--surface-sub);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 15px;
}

.home-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.home-board-header h3 {
  font-size: 15px;
  font-weight: 800;
}

.more-text-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.mini-post-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(229, 232, 235, 0.7);
  cursor: pointer;
  font-size: 13px;
}

.mini-post-item:last-child {
  border-bottom: none;
}

.mini-board-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 2px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}

.mini-post-title {
  flex: 1;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-post-date {
  font-size: 11.5px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ================= SUB TABS (공통 상단 서브탭) ================= */
.sub-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  position: sticky;
  top: 0;
  z-index: 20;
}

.sub-tab-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-sub);
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
}

.sub-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* ================= GUIDE HTML VIEW (Slides 2, 3, 4) ================= */
.guide-container {
  padding: 16px;
}

.incheoner-banner {
  border-radius: 16px;
  padding: 18px 16px;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.incheoner-banner.theme-blue {
  background: linear-gradient(135deg, #164b8a 0%, #2463eb 100%);
}

.incheoner-banner.theme-orange {
  background: linear-gradient(135deg, #c25e14 0%, #e07f2c 100%);
}

.incheoner-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  opacity: 0.9;
  letter-spacing: 0.02em;
}

.incheoner-main-title {
  font-size: 21px;
  font-weight: 800;
  margin-top: 4px;
}

.incheoner-lead {
  font-size: 13.5px;
  color: #374151;
  background: var(--surface-sub);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* 4단계 픽토그램 카드 그리드 */
.step4-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.step4-card {
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
  background: #ffffff;
}

.step4-card.blue {
  border-color: #2b6cb0;
}

.step4-card.orange {
  border-color: #d97a26;
}

.step4-svg-wrap {
  width: 58px;
  height: 58px;
  margin: 0 auto 8px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.step4-card.blue .step4-svg-wrap {
  background: var(--guide-blue-soft);
}

.step4-card.orange .step4-svg-wrap {
  background: var(--guide-orange-soft);
}

.step4-num {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.step4-card.blue .step4-num {
  background: #dbeafe;
  color: #1e40af;
}

.step4-card.orange .step4-num {
  background: #ffedd5;
  color: #9a3412;
}

.step4-ko {
  font-size: 14.5px;
  font-weight: 800;
  color: #111827;
}

.step4-sub {
  font-size: 11.5px;
  color: var(--text-sub);
  margin-top: 2px;
}

/* 가이드 상세 구분 테이블 */
.guide-table-head {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.guide-th {
  padding: 7px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.guide-th.blue { background: var(--guide-blue); }
.guide-th.orange { background: var(--guide-orange); }

.guide-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-row {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 8px;
  align-items: stretch;
}

.guide-cat {
  border-radius: 10px;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
}

.guide-cat.blue {
  background: #dce8f5;
  color: #0f3156;
}

.guide-cat.orange {
  background: #f5e6d8;
  color: #5c2d0c;
}

.guide-val {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: #1f2937;
}

.guide-val ul {
  list-style: none;
  display: grid;
  gap: 5px;
}

.guide-val li {
  position: relative;
  padding-left: 11px;
  line-height: 1.48;
}

[dir="rtl"] .guide-val li {
  padding-left: 0;
  padding-right: 11px;
}

.guide-val li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

[dir="rtl"] .guide-val li::before {
  left: auto;
  right: 0;
}

.guide-val a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

.guide-actions {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.primary-action-btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.secondary-action-btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-sub);
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* 흡연 준비중 박스 */
.coming-soon-box {
  margin: 24px 0;
  padding: 36px 20px;
  border-radius: 18px;
  background: var(--surface-sub);
  border: 1px dashed #cbd5e1;
  text-align: center;
}

/* ================= MAP VIEW ================= */
.map-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 132px);
  min-height: 480px;
}

@media (min-width: 960px) {
  .map-wrapper {
    height: calc(100dvh - 172px);
  }
}

.map-canvas-box {
  position: relative;
  flex: 1;
  min-height: 280px;
  background: #e5eef7;
}

#mapCanvas {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.gps-fab {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 15;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
  cursor: pointer;
}

.map-spot-list {
  background: var(--surface);
  border-top: 1px solid var(--border);
  max-height: 215px;
  overflow-y: auto;
  padding: 12px 16px;
}

.spot-card {
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.spot-card.selected, .spot-card:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.spot-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.spot-badge.trash { background: #ffedd5; color: #9a3412; }
.spot-badge.parking { background: #dbeafe; color: #1e40af; }
.spot-badge.park { background: #dcfce7; color: #166534; }

/* ================= BOARD VIEW (Slides 5~8) ================= */
.board-wrap {
  padding: 18px 18px 28px;
}

.board-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 2px solid #111827;
}

.board-heading {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.write-btn {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.board-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
}

.board-list {
  list-style: none;
}

.board-item {
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s;
}

.board-item:hover {
  background: var(--surface-sub);
}

.board-item-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.pin-tag {
  background: #eff6ff;
  color: var(--primary);
  border: 1px solid #bfdbfe;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 5px;
}

.status-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 5px;
  background: #ecfdf5;
  color: #047857;
}

.board-item-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  flex: 1;
}

.comment-cnt {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
}

.board-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
}

.page-btn {
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #374151;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* 게시글 상세 & 댓글 */
.post-detail-card {
  padding: 18px;
}

.detail-back-btn {
  background: none;
  border: none;
  color: var(--text-sub);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 12px;
}

.detail-title {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}

.detail-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.detail-content {
  font-size: 14.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  color: #1f2937;
  margin-bottom: 16px;
}

.detail-images {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-images img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.comments-box {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid var(--surface-sub);
}

.comment-item {
  background: var(--surface-sub);
  border-radius: 12px;
  padding: 11px 13px;
  margin-bottom: 8px;
}

.comment-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
}

.comment-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.comment-form input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
}

/* ================= CHATBOT VIEW (Slide 9) ================= */
.chatbot-screen {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 76px);
  background: #f8faff;
}

@media (min-width: 960px) {
  .chatbot-screen {
    height: calc(100dvh - 116px);
  }
}

.chat-back-bar {
  padding: 9px 14px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.chat-back-btn {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  cursor: pointer;
}

.chat-blue-bar {
  background: var(--primary);
  color: #ffffff;
  padding: 11px 18px;
  font-size: 16px;
  font-weight: 800;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bot-profile-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bot-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bot-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #111827;
}

.chat-bubble {
  max-width: 88%;
  padding: 13px 15px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.58;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.chat-bubble.bot {
  background: #ffffff;
  border: 1.5px solid #dbe7ff;
  color: #1f2937;
  align-self: flex-start;
  border-top-left-radius: 4px;
}

.chat-bubble.user {
  background: var(--primary);
  color: #ffffff;
  align-self: flex-end;
  border-top-right-radius: 4px;
}

.tip-list {
  margin: 10px 0;
  padding: 10px 12px;
  background: var(--primary-soft);
  border-radius: 10px;
  display: grid;
  gap: 6px;
}

.tip-q-btn {
  background: #ffffff;
  border: 1px solid #c7dbff;
  border-radius: 8px;
  padding: 6px 10px;
  text-align: left;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
}

.llm-notice {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

.chat-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 16px 8px;
  background: #f8faff;
}

.chat-chip-btn {
  border: 1.5px solid var(--primary);
  background: #ffffff;
  color: var(--primary);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.chat-chip-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.chat-action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.chat-action-btn {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.chat-input-bar {
  padding: 10px 14px 14px;
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.chat-input-pill {
  display: flex;
  align-items: center;
  border: 1.8px solid var(--primary);
  border-radius: 999px;
  padding: 4px 5px 4px 15px;
  background: #ffffff;
}

.chat-input-pill input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13.5px;
  background: transparent;
}

.chat-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================= BOTTOM FIXED TAB BAR (#286CFF) ================= */
.bottom-tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 66px;
  background: var(--primary);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 40;
  box-shadow: 0 -4px 18px rgba(40, 108, 255, 0.25);
}

@media (max-width: 959px) {
  .bottom-tab-bar {
    position: fixed;
    max-width: 460px;
    margin: 0 auto;
  }
}

.tab-item-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.76);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  transition: color 0.15s, transform 0.15s;
}

.tab-item-btn.active {
  color: #ffffff;
  font-weight: 800;
}

.tab-icon {
  font-size: 19px;
  line-height: 1;
}

/* ================= MODALS ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 410px;
  max-height: 88dvh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.24);
}

.social-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 9px;
}

.social-naver { background: #03c75a; color: #ffffff; }
.social-kakao { background: #fee500; color: #191919; }
.social-google { background: #ffffff; color: #1f2937; border: 1px solid #d1d5db; }

.form-field {
  margin-bottom: 12px;
}

.form-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 5px;
}

.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.toast {
  position: fixed;
  bottom: 82px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 24, 39, 0.92);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.toast.show {
  opacity: 1;
}
