/* =========================================================
 * lumi design-v2.css
 * Phase A: Mobile-first tokens + mobile-app container
 * Only affects .mobile-app subtree + desktop/mobile visibility toggle.
 * DO NOT touch desktop bento.
 * ========================================================= */

:root {
  --pink: #C8507A;
  --pink-soft: rgba(200,80,122,0.08);
  --pink-grad: linear-gradient(135deg, #FF8FAB 0%, #C8507A 100%);
  --ink: #1d1d1f;
  --ink-2: #494949;
  --ink-3: #86868b;
  --surface: #ffffff;
  --surface-alt: #f5f5f7;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 4px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-pink: 0 8px 24px rgba(200,80,122,0.25);
  --ease-smooth: cubic-bezier(.22,.94,.36,1);
  --dur-fast: .18s;
  --dur-med: .35s;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
body.dark-mode {
  --ink: #f5f5f7;
  --ink-2: rgba(255,255,255,.72);
  --ink-3: rgba(255,255,255,.5);
  --surface: #1c1c1e;
  --surface-alt: #2c2c2e;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.35);
}

/* ---------- Desktop / Mobile switch ---------- */
.mobile-app { display: none; }
.mobile-dash { display: none; }
.desktop-bento { display: block; }

@media (max-width: 767px) {
  .mobile-app { display: block; }
  .desktop-bento { display: none !important; }
  /* Make sure nav still breathes (it already scales via clamp) */
  body { padding-top: 0; }
  /* Hide legacy mobile-cta-bar when new mobile-app is active
     (the new design provides its own fixed bottom CTA) */
  .mobile-cta-bar { display: none !important; }
}
@media (min-width: 768px) {
  .mobile-dash { display: none !important; }
  .m-tabbar { display: none !important; }
}

/* ---------- Mobile utilities ---------- */
.m-container { padding: 0 20px; }

.m-hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(24px + var(--safe-top)) 20px 32px;
  text-align: center;
  position: relative;
}
.m-hero-title {
  font-size: clamp(32px, 8vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
  word-break: keep-all;
}
.m-hero-sub {
  font-size: clamp(16px, 4vw, 18px);
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 40px;
  word-break: keep-all;
  max-width: 320px;
}
.m-hero-character {
  width: 140px;
  height: 140px;
  margin-bottom: 32px;
  object-fit: contain;
}

.m-section {
  padding: 64px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
body.dark-mode .m-section { border-bottom-color: rgba(255,255,255,0.08); }

.m-section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--pink);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.m-section-title {
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
  word-break: keep-all;
}
.m-section-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  word-break: keep-all;
}

/* ---------- Cards ---------- */
.m-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin: 16px 0;
  min-width: 0;
  max-width: 100%;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ---------- CTA buttons ---------- */
.m-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  border-radius: 999px;
  background: var(--pink-grad);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  border: none;
  box-shadow: var(--shadow-pink);
  transition: transform var(--dur-fast) var(--ease-smooth);
  cursor: pointer;
  width: 100%;
  max-width: 320px;
  letter-spacing: -0.01em;
  text-decoration: none;
  font-family: inherit;
}
.m-cta:active { transform: scale(0.97); }
.m-cta.ghost {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ---------- Bottom fixed CTA bar (logged-out) ---------- */
.m-bottom-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 20px calc(12px + var(--safe-bottom));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  gap: 12px;
}
body.dark-mode .m-bottom-cta {
  background: color-mix(in srgb, #1c1c1e 88%, transparent);
  border-top-color: rgba(255,255,255,0.08);
}
.m-bottom-cta .m-cta {
  flex: 1;
  min-height: 48px;
  font-size: 15px;
}
/* 하단 고정 CTA에 가려지지 않도록 로그아웃 뷰 최하단 여백 확보 (CTA 72px + safe-area) */
#mobile-app-logged-out {
  padding-bottom: calc(88px + var(--safe-bottom));
}

/* ---------- Entrance animations ---------- */
@keyframes v2-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.v2-rise {
  opacity: 0;
  animation: v2-rise .7s var(--ease-smooth) forwards;
}
.v2-rise.d1 { animation-delay: .1s; }
.v2-rise.d2 { animation-delay: .2s; }
.v2-rise.d3 { animation-delay: .3s; }

/* Character float */
@keyframes v2-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.v2-float { animation: v2-float 3s ease-in-out infinite; }

/* =========================================================
 * Phase B: mobile-app-logged-in components
 * Scoped to #mobile-app-logged-in so desktop bento is untouched.
 * ========================================================= */

#mobile-app-logged-in,
.mobile-dash { padding-bottom: calc(72px + max(env(safe-area-inset-bottom, 0px), 8px)); }

/* Greeting bar */
.m-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + var(--safe-top)) 20px 10px;
  gap: 12px;
}
.m-greeting-text { min-width: 0; }
.m-greeting-hi {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
  letter-spacing: -0.01em;
}
.m-greeting-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 2px 0 0;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-greeting-bell {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: none;
  background: var(--surface-alt);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
body.dark-mode .m-greeting-bell { background: rgba(255,255,255,0.08); }

/* Primary CTA card */
.m-primary-cta {
  margin: 12px 16px 20px;
  padding: 20px;
  border-radius: 20px;
  background: var(--pink-grad);
  color: #fff;
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 14px;
  align-items: center;
  box-shadow: var(--shadow-pink);
}
.m-primary-cta-icon {
  grid-row: 1 / span 2;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.m-primary-cta-body { grid-column: 2; min-width: 0; }
.m-primary-cta-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  color: #fff;
}
.m-primary-cta-sub {
  font-size: 13px;
  margin: 2px 0 0;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.01em;
}
.m-primary-cta-btn {
  grid-column: 1 / -1;
  margin-top: 12px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: var(--pink);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.01em;
}
.m-primary-cta-btn:active { transform: scale(0.97); }

/* Mini sections (used inside logged-in view) */
.m-section-mini { padding: 16px 16px 4px; }
.m-mini-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 4px 4px 10px;
}
.m-mini-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
}
.m-mini-more {
  font-size: 13px;
  color: var(--pink);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  padding: 4px 6px;
}

/* Horizontal history strip */
.m-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 16px;
  margin: 0 -4px;
  scrollbar-width: none;
}
.m-strip::-webkit-scrollbar { display: none; }
.m-strip-card {
  flex: 0 0 72%;
  max-width: 260px;
  scroll-snap-align: start;
  background: var(--surface);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.m-strip-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffd9e4, #ffb8cd);
  margin-bottom: 10px;
}
.m-strip-caption {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.01em;
}
.m-strip-meta {
  font-size: 12px;
  color: var(--ink-3);
  margin: 6px 0 0;
}

/* Feature cards */
.m-feat-card {
  margin: 0;
  border-radius: 16px;
  padding: 18px;
}
.m-feat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.m-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink);
  font-size: 13px;
  font-weight: 600;
}
.m-feat-body {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
  letter-spacing: -0.01em;
}
.m-feat-highlight {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.m-feat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.m-feat-dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--ink-3);
  flex-shrink: 0;
}
.m-feat-dot.ok { background: #30c26a; }
.m-feat-dot.off { background: var(--ink-3); }
.m-feat-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--ink);
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
body.dark-mode .m-feat-ghost { background: rgba(255,255,255,0.08); }
.m-feat-card.is-locked { background: linear-gradient(135deg, rgba(200,80,122,0.06), rgba(200,80,122,0.02)); border: 1px dashed rgba(200,80,122,0.35); }
body.dark-mode .m-feat-card.is-locked { background: linear-gradient(135deg, rgba(255,143,171,0.08), rgba(255,143,171,0.02)); border-color: rgba(255,143,171,0.3); }
.m-lock-row { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #C8507A; margin-bottom: 6px; }
body.dark-mode .m-lock-row { color: #ff8fab; }
.m-feat-card.is-locked .m-feat-ghost { background: #C8507A; color: #fff; }
body.dark-mode .m-feat-card.is-locked .m-feat-ghost { background: #ff8fab; color: #1d1d1f; }

/* Bottom tab bar */
.m-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 120;
  display: none;
  height: calc(56px + var(--safe-bottom));
  /* Android Chrome 동적 하단 툴바 대응: safe-area fallback 최소 8px 보장 */
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 8px);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0,0,0,0.06);
}
body.dark-mode .m-tabbar {
  background: color-mix(in srgb, #1c1c1e 88%, transparent);
  border-top-color: rgba(255,255,255,0.08);
}
.m-tab {
  flex: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  padding: 6px 0;
}
.m-tab svg { opacity: 0.85; }
.m-tab.is-active { color: var(--pink); }
.m-tab.is-active svg { opacity: 1; }

/* Only show logged-in tabbar on mobile when the view is active */
@media (max-width: 767px) {
  body.has-tabbar .m-tabbar,
  #mobile-app-logged-in .m-tabbar,
  .mobile-dash .m-tabbar { display: flex; }
  /* When logged-in mobile dash is active, show it as block */
  body.has-tabbar .mobile-dash { display: block; }
}
/* Safety: hide logged-in view on >=768px just like the logged-out one */
@media (min-width: 768px) {
  #mobile-app-logged-in { display: none !important; }
}

/* Accessibility: respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .v2-rise, .v2-float, .mobile-app .card { animation: none !important; transition: none !important; }
  .v2-rise, .v2-float { opacity: 1 !important; transform: none !important; }
}

/* FAB dark/light 토글: 바텀 탭바 / 하단 CTA와 충돌 방지 */
@media (max-width: 767px) {
  /* 로그인 뷰(탭바 56px + 여유) */
  body.has-tabbar #fab-dark {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
  /* 로그아웃 뷰(.m-bottom-cta 약 80px + 여유 20px = 100px) */
  body:not(.has-tabbar) #fab-dark {
    bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* 트렌드 chip skeleton */
.m-chip-skel { background: linear-gradient(90deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.12) 50%, rgba(0,0,0,0.06) 100%); background-size: 200% 100%; animation: mChipShimmer 1.2s ease-in-out infinite; color: transparent !important; border-color: transparent !important; }
body.dark-mode .m-chip-skel { background: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.14) 50%, rgba(255,255,255,0.06) 100%); background-size: 200% 100%; }
@keyframes mChipShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* 최근 캡션 카드 */
.m-history-card { display: flex; flex-direction: column; gap: 8px; }
.m-history-thumb { width: 100%; max-height: 180px; object-fit: cover; border-radius: 8px; }
.m-history-date { font-size: 12px; color: var(--ink-3, #86868b); margin: 0; font-weight: 500; }
body.dark-mode .m-history-date { color: #98989d; }
.m-history-caption {
  font-size: 14px; line-height: 1.5; color: var(--ink-1, #1d1d1f); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis; white-space: pre-wrap;
}
body.dark-mode .m-history-caption { color: #f0f2f8; }

/* 푸터가 탭바에 가리는 문제 — 탭바 있을 때 하단 패딩 확보 */
body.has-tabbar .site-footer { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important; }
body.has-tabbar { padding-bottom: 0; }

/* =========================================================
 * Wave 2: 빠른설정 토글 / 오버레이 / 캡션플로우 / 트렌드풀뷰 /
 *         IG가이드 / 예약목록 / 날씨 / 리포트 / 로그아웃 CTA / 튜토리얼
 * ========================================================= */

/* 빠른 설정 카드 */
.m-quick-card { padding: 4px 16px; }
.m-quick-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 12px; margin: 0 -12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 180ms var(--ease-smooth), transform 180ms var(--ease-smooth);
}
.m-quick-row:last-child { border-bottom: none; }
.m-quick-row:active { background: rgba(200,80,122,0.06); transform: scale(0.985); }
body.dark-mode .m-quick-row { border-bottom-color: rgba(255,255,255,0.08); }
body.dark-mode .m-quick-row:active { background: rgba(200,80,122,0.12); }
.m-quick-info { flex: 1; min-width: 0; pointer-events: none; }
.m-quick-label {
  font-size: 15px; font-weight: 600; color: var(--ink);
  margin: 0; letter-spacing: -0.01em;
}
.m-quick-desc {
  font-size: 13px; color: var(--ink-3);
  margin: 2px 0 0; letter-spacing: -0.01em;
}
.m-toggle {
  width: 52px; height: 32px;
  border-radius: 999px;
  background: rgba(120,120,128,0.22);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
  border: none; cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background 260ms var(--ease-smooth), box-shadow 260ms var(--ease-smooth);
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
body.dark-mode .m-toggle { background: rgba(255,255,255,0.12); box-shadow: inset 0 1px 2px rgba(0,0,0,0.25); }
.m-toggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 26px; height: 26px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18), 0 1px 2px rgba(0,0,0,0.1);
  transition: left 260ms var(--ease-smooth), width 140ms var(--ease-smooth), background 260ms var(--ease-smooth);
}
.m-toggle::before {
  content: '';
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8507A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  left: 10px;
  opacity: 0;
  transition: opacity 180ms var(--ease-smooth), left 260ms var(--ease-smooth);
  z-index: 1;
  pointer-events: none;
}
.m-toggle:active::after { width: 30px; }
.m-toggle.is-on {
  background: linear-gradient(135deg, #C8507A, #E06890);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.12), 0 0 0 4px rgba(200,80,122,0.12);
}
.m-toggle.is-on::after { left: 23px; }
.m-toggle.is-on:active::after { left: 19px; width: 30px; }
.m-toggle.is-on::before { opacity: 1; left: 29px; }

/* 미니 배지 */
.m-mini-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink);
  font-size: 12px; font-weight: 700;
  letter-spacing: -0.01em;
}

/* 풀스크린 오버레이 공통 */
.m-overlay {
  position: fixed; inset: 0;
  z-index: 1000;
  background: var(--surface);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: mOvFadeIn .2s var(--ease-smooth);
}
@keyframes mOvFadeIn { from { opacity: 0; } to { opacity: 1; } }
.m-ov-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  padding: calc(12px + var(--safe-top)) 16px 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
body.dark-mode .m-ov-header { border-bottom-color: rgba(255,255,255,0.08); }
.m-ov-close {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: none;
  background: var(--surface-alt);
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
body.dark-mode .m-ov-close { background: rgba(255,255,255,0.08); }
.m-ov-title {
  font-size: 17px; font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
}
.m-ov-body {
  padding: 20px 16px calc(40px + var(--safe-bottom));
}

/* 캡션 플로우 */
.m-flow-progress {
  display: flex; gap: 6px;
  margin-bottom: 20px;
}
.m-flow-progress span {
  flex: 1; height: 4px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
}
body.dark-mode .m-flow-progress span { background: rgba(255,255,255,0.12); }
.m-flow-progress span.is-on { background: var(--pink); }
.m-flow-loading {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 20px;
  gap: 20px;
}
.m-tut-spin {
  width: 48px; height: 48px;
  border: 3px solid rgba(200,80,122,0.15);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: mSpin 0.9s linear infinite;
}
@keyframes mSpin { to { transform: rotate(360deg); } }
.m-flow-status {
  font-size: 15px; color: var(--ink-2);
  margin: 0;
  letter-spacing: -0.01em;
}
.m-flow-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 8px 10px 8px 6px;
  margin: 0 0 12px -6px;
  background: transparent;
  border: 0;
  color: var(--ink-2, #6b6b70);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.m-flow-back svg { display: block; }
.m-flow-back:hover,
.m-flow-back:active { color: var(--pink, #C8507A); }
body.dark-mode .m-flow-back { color: #9a9a9e; }
body.dark-mode .m-flow-back:hover,
body.dark-mode .m-flow-back:active { color: var(--pink, #C8507A); }

.m-flow-thumb {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: var(--surface-alt, #f2f2f5);
  border-radius: 16px;
  margin-bottom: 16px;
  display: block;
}
body.dark-mode .m-flow-thumb { background: #1c1c1e; }
.m-flow-carousel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px 8px;
  padding: 0 4px 4px;
  scrollbar-width: none;
}
.m-flow-carousel::-webkit-scrollbar { display: none; }
.m-flow-carousel-img {
  flex: 0 0 calc(100% - 32px);
  max-width: calc(100% - 32px);
  height: 320px;
  object-fit: contain;
  background: var(--surface-alt, #f2f2f5);
  border-radius: 16px;
  scroll-snap-align: center;
  display: block;
}
body.dark-mode .m-flow-carousel-img { background: #1c1c1e; }
.m-flow-carousel-meta {
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}
.m-flow-label {
  font-size: 13px; font-weight: 600;
  color: var(--ink-3);
  margin: 0 0 8px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.m-flow-textarea,
.m-flow-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.1);
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  font-family: inherit;
  resize: vertical;
  letter-spacing: -0.01em;
  -webkit-appearance: none;
}
body.dark-mode .m-flow-textarea,
body.dark-mode .m-flow-input {
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
}
.m-flow-textarea:focus, .m-flow-input:focus { outline: none; border-color: var(--pink); }
.m-sched-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.m-sched-row .m-flow-input { padding: 14px 12px; }
.m-flow-field { margin-top: 16px; }
.m-flow-field-label { display:block; font-size:13px; font-weight:600; color: var(--ink-2); margin:0 0 6px; }
.m-flow-regen-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px;
  gap: 12px;
}
.m-flow-regen-count { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.m-flow-regen-btn {
  height: 36px; padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--pink);
  background: transparent;
  color: var(--pink);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.m-flow-regen-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.m-flow-head {
  font-size: 20px; font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.m-post-opt {
  width: 100%;
  padding: 16px;
  margin-bottom: 10px;
  border-radius: 14px;
  border: 1.5px solid rgba(0,0,0,0.08);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  display: flex; flex-direction: column;
  gap: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
body.dark-mode .m-post-opt { border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); }
.m-post-opt:disabled { opacity: 0.5; cursor: not-allowed; }
.m-post-opt.is-sel { border-color: var(--pink); background: var(--pink-soft); }
.m-post-opt-title {
  font-size: 15px; font-weight: 700;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
}
.m-post-opt-sub {
  font-size: 13px; color: var(--ink-3);
  letter-spacing: -0.01em;
}
.m-post-opt-lock {
  display: inline-flex; align-items: center;
  height: 18px; padding: 0 6px;
  border-radius: 4px;
  background: var(--pink);
  color: #fff;
  font-size: 10px; font-weight: 700;
}
.m-flow-success {
  text-align: center;
  padding: 40px 20px;
}
.m-flow-check {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  animation: mPop .4s var(--ease-smooth);
}
@keyframes mPop { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* step 0: 썸네일 검토 */
.m-flow-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -4px 16px;
  padding: 4px 4px 8px;
}
.m-flow-thumbs::-webkit-scrollbar { display: none; }
.m-flow-thumb-item {
  position: relative;
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border: 2.5px solid transparent;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.m-flow-thumb-item.is-cover { border-color: var(--pink, #C8507A); }
.m-flow-thumb-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.m-flow-thumb-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 6px;
  line-height: 1.3;
  pointer-events: none;
}
.m-flow-thumb-cover {
  position: absolute;
  top: 5px;
  left: 5px;
  background: var(--pink, #C8507A);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1.3;
  pointer-events: none;
}
.m-flow-notice {
  background: var(--surface-alt, #f2f2f5);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2, #6b6b70);
  letter-spacing: -0.01em;
}
body.dark-mode .m-flow-notice {
  background: rgba(255,255,255,0.07);
  color: #98989d;
}
.m-flow-notice strong { color: var(--ink, #1d1d1f); font-weight: 600; }
body.dark-mode .m-flow-notice strong { color: #f0f2f8; }
.m-flow-step0-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.m-flow-step0-sub {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

/* 트렌드 풀뷰 */
.m-trend-cats {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.m-trend-cats::-webkit-scrollbar { display: none; }
.m-trend-cat {
  flex-shrink: 0;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.1);
  background: transparent;
  color: var(--ink-2);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
body.dark-mode .m-trend-cat { border-color: rgba(255,255,255,0.12); }
.m-trend-cat.is-on {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.m-trend-updated {
  font-size: 12px; color: var(--ink-3);
  margin: 0 0 16px;
}
.m-trend-section { margin-bottom: 24px; }
.m-trend-head {
  font-size: 15px; font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.m-trend-rank-list { display: flex; flex-direction: column; gap: 2px; }
.m-trend-rank-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-alt);
}
body.dark-mode .m-trend-rank-row { background: rgba(255,255,255,0.04); }
.m-trend-rank-num {
  width: 24px;
  font-size: 15px; font-weight: 700;
  color: var(--pink);
  flex-shrink: 0;
}
.m-trend-rank-kw {
  flex: 1;
  font-size: 14px; font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.m-trend-badge {
  font-size: 11px; font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.m-trend-badge.new { background: var(--pink); color: #fff; }
.m-trend-badge.up { background: rgba(48,194,106,0.15); color: #30c26a; }
.m-trend-badge.down { background: rgba(120,120,128,0.2); color: var(--ink-3); }
.m-trend-rising-list { display: flex; flex-direction: column; gap: 10px; }
.m-trend-rise-card {
  padding: 14px;
  border-radius: 12px;
  background: var(--surface-alt);
}
body.dark-mode .m-trend-rise-card { background: rgba(255,255,255,0.04); }
.m-trend-rise-kw {
  font-size: 15px; font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.m-trend-rise-meta {
  font-size: 12px; color: var(--pink); font-weight: 600;
  margin: 0 0 6px;
}
.m-trend-rise-reason {
  font-size: 13px; color: var(--ink-2);
  margin: 0;
  line-height: 1.4;
}

/* 날씨 카드 */
.m-weather-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px;
}
.m-weather-emoji { font-size: 36px; line-height: 1; }
.m-weather-meta { flex: 1; min-width: 0; }
.m-weather-title {
  font-size: 16px; font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
}
.m-weather-sub {
  font-size: 13px; color: var(--ink-3);
  margin: 2px 0 0;
}

/* IG 가이드 */
.m-ig-steps { display: flex; flex-direction: column; gap: 12px; }
.m-ig-step {
  display: flex; gap: 12px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.m-ig-step:last-child { border-bottom: none; padding-bottom: 0; }
body.dark-mode .m-ig-step { border-bottom-color: rgba(255,255,255,0.08); }
.m-ig-step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
body.dark-mode .m-ig-step-dot { background: rgba(255,255,255,0.08); }
.m-ig-step.is-done .m-ig-step-dot { background: var(--pink); color: #fff; }
.m-ig-step-body { flex: 1; min-width: 0; }
.m-ig-step-label {
  font-size: 14px; font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.m-ig-step-desc {
  font-size: 13px; color: var(--ink-3);
  margin: 0 0 8px;
  line-height: 1.4;
}
.m-ig-step-mark {
  height: 32px; padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--pink);
  background: transparent;
  color: var(--pink);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* 예약 목록 */
.m-schedule { padding: 8px; }
.m-sched-row {
  display: flex; gap: 12px; align-items: center;
  padding: 10px;
  border-radius: 12px;
}
.m-sched-row + .m-sched-row { margin-top: 4px; }
.m-sched-thumb {
  width: 56px; height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.m-sched-thumb-empty {
  background: linear-gradient(135deg, #ffd9e4, #ffb8cd);
}
.m-sched-body { flex: 1; min-width: 0; }
.m-sched-time {
  font-size: 13px; font-weight: 600;
  color: var(--pink);
  margin: 0;
  letter-spacing: -0.01em;
}
.m-sched-cap {
  font-size: 13px;
  color: var(--ink-2);
  margin: 2px 0 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.m-sched-badge {
  font-size: 11px; font-weight: 700;
  color: var(--pink);
  background: var(--pink-soft);
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* 분석 리포트 */
.m-report-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.m-report-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.m-report-stat {
  text-align: center;
  padding: 10px 6px;
  background: var(--surface-alt);
  border-radius: 12px;
}
body.dark-mode .m-report-stat { background: rgba(255,255,255,0.04); }
.m-report-num {
  font-size: 22px; font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
}
.m-report-label {
  font-size: 11px; color: var(--ink-3);
  margin: 2px 0 0;
  letter-spacing: -0.01em;
}

/* 로그아웃 뷰 5단계 CTA */
.m-out-feature-cta {
  padding: 48px 20px;
  text-align: center;
  background: var(--surface-alt);
}
.m-out-feature-eyebrow {
  font-size: 13px; font-weight: 600;
  color: var(--pink);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.m-out-feature-title {
  font-size: clamp(22px, 5.5vw, 28px);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.m-out-feature-desc {
  font-size: 15px; color: var(--ink-2);
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
.m-out-cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* 튜토리얼 오버레이 (로그아웃 체험) */
.m-tut-step { padding: 8px 4px; }
.m-tut-eyebrow {
  font-size: 12px; font-weight: 700;
  color: var(--pink);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.m-tut-title {
  font-size: 22px; font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.m-tut-sub {
  font-size: 14px; color: var(--ink-2);
  margin: 0 0 20px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.m-tut-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.m-tut-cell {
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--surface-alt);
  padding: 0;
  cursor: pointer;
  transition: transform var(--dur-fast), border-color var(--dur-fast);
}
.m-tut-cell:active { transform: scale(0.97); }
.m-tut-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-tut-status {
  font-size: 14px;
  color: var(--ink-2);
  margin: 16px 0 0;
  text-align: center;
}
.m-tut-thumb {
  width: 100%; max-height: 240px;
  object-fit: cover;
  border-radius: 16px;
  margin: 0 0 16px;
  display: block;
}
.m-tut-caption {
  font-size: 15px; line-height: 1.6;
  color: var(--ink);
  background: var(--pink-soft);
  padding: 16px;
  border-radius: 14px;
  white-space: pre-wrap;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.m-tut-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 16px;
}
.m-tut-note {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 24px;
  line-height: 1.5;
}
.m-tut-cta-row {
  display: flex; flex-direction: column;
  gap: 10px;
}
.m-tut-cta-row .m-cta { max-width: 100%; }

/* =========================================================
 * 웨이브 3: 로그아웃 뷰 설득 강화 (10 섹션)
 * ========================================================= */

/* 공통 칩 (가벼운 해시태그) */
.m-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
body.dark-mode .m-chip {
  background: rgba(255,255,255,0.06);
  color: var(--ink-2);
}

/* 🆕 5. 정량 증거 배지 */
.m-out-proof .m-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.m-out-proof .m-proof-item {
  background: var(--surface);
  border-radius: 16px;
  padding: 18px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
body.dark-mode .m-out-proof .m-proof-item { background: #272729; }
.m-out-proof .m-proof-icon { color: var(--pink); flex-shrink: 0; }
.m-out-proof .m-proof-num {
  font-size: clamp(15px, 4vw, 17px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
  word-break: keep-all;
}
.m-out-proof .m-proof-label {
  font-size: 11px;
  color: var(--ink-3);
  margin: 0;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

/* 🆕 3. 업종별 캡션 샘플 슬라이더 */
.m-out-caption-samples { overflow-x: hidden; }
.m-out-caption-samples .m-caption-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 8px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}
.m-out-caption-samples .m-caption-slider::-webkit-scrollbar { display: none; }
.m-out-caption-samples .m-caption-card {
  flex: 0 0 82%;
  max-width: 320px;
  scroll-snap-align: start;
  background: var(--surface);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
body.dark-mode .m-out-caption-samples .m-caption-card { background: #272729; }
.m-caption-biz {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--pink);
  background: var(--pink-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin: 0;
  align-self: flex-start;
  letter-spacing: -0.01em;
}
.m-caption-row { display: flex; flex-direction: column; gap: 6px; }
.m-caption-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}
.m-caption-before {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0;
  padding: 10px 12px;
  background: var(--surface-alt);
  border-radius: 10px;
  line-height: 1.5;
  word-break: keep-all;
}
body.dark-mode .m-caption-before { background: rgba(255,255,255,0.04); }
.m-caption-row-after .m-caption-label { color: var(--pink); }
.m-caption-after {
  font-size: 14px;
  color: var(--ink);
  margin: 0;
  padding: 10px 12px;
  background: var(--pink-soft);
  border-left: 2px solid var(--pink);
  border-radius: 10px;
  line-height: 1.5;
  word-break: keep-all;
}
.m-caption-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }

/* 🆕 2. 종합 트렌드 실데이터 프리뷰 + 업종별 락 */
.m-out-trend .m-out-trend-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-height: 60px;
}
.m-out-trend .m-out-trend-empty {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--ink-3);
  text-align: center;
  padding: 20px 0;
  margin: 0;
}
.m-out-trend .m-out-trend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
body.dark-mode .m-out-trend .m-out-trend-item { background: #272729; }
.m-out-trend .m-out-trend-rank {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.m-out-trend .m-out-trend-kw {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.m-out-trend .m-out-trend-lock {
  margin-top: 20px;
  padding: 20px;
  background: var(--surface);
  border: 1px dashed rgba(200,80,122,0.3);
  border-radius: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
body.dark-mode .m-out-trend .m-out-trend-lock { background: #272729; border-color: rgba(200,80,122,0.4); }
.m-out-trend .m-out-trend-lock svg { color: var(--pink); }
.m-out-trend .m-out-trend-lock p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.5;
  word-break: keep-all;
}
.m-out-trend .m-out-lock-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin: 4px auto 0;
  letter-spacing: -0.01em;
  width: max-content;
  max-width: 100%;
}

/* 🆕 4. 날씨별 캡션 예시 슬라이더 (4 카드) */
.m-out-weather .m-weather-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 20px 14px;
  margin: 0 -20px;
  scrollbar-width: none;
}
.m-out-weather .m-weather-slider::-webkit-scrollbar { display: none; }
.m-out-weather .m-weather-mini {
  flex: 0 0 74%;
  max-width: 260px;
  scroll-snap-align: start;
  background: var(--surface);
  border-radius: 16px;
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body.dark-mode .m-out-weather .m-weather-mini { background: #272729; }
.m-weather-mini-emoji { font-size: 42px; line-height: 1; margin: 0 0 6px; }
.m-weather-mini-msg {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
}
.m-weather-mini-sub {
  font-size: 13px;
  color: var(--ink-2);
  margin: 2px 0 12px;
  letter-spacing: -0.01em;
  word-break: keep-all;
  line-height: 1.45;
}
.m-weather-mini-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: auto;
}
.m-weather-hint {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
  letter-spacing: -0.01em;
}

/* 🆕 1. 실제 게시물 갤러리 */
.m-out-gallery .m-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.m-out-gallery .m-gallery-item {
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
body.dark-mode .m-out-gallery .m-gallery-item { background: #272729; }
.m-out-gallery .m-gallery-img {
  position: relative;
  aspect-ratio: 1;
  background: var(--pink-soft);
  overflow: hidden;
}
.m-out-gallery .m-gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.m-out-gallery .m-gallery-img-fallback {
  background: linear-gradient(135deg, var(--pink-soft), rgba(200,80,122,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
}
.m-out-gallery .m-gallery-biz-label {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.55);
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: -0.01em;
}
.m-out-gallery .m-gallery-caption {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
  padding: 10px 12px 6px;
  max-height: 72px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  word-break: keep-all;
  scrollbar-width: thin;
  scrollbar-color: rgba(200,80,122,0.4) transparent;
}
.m-out-gallery .m-gallery-caption::-webkit-scrollbar {
  width: 3px;
}
.m-out-gallery .m-gallery-caption::-webkit-scrollbar-thumb {
  background: rgba(200,80,122,0.4);
  border-radius: 3px;
}
.m-out-gallery .m-gallery-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 10px 12px;
}
.m-out-gallery .m-gallery-tags .m-chip {
  font-size: 11px;
  padding: 3px 8px;
}

/* 🆕 6. 요금 비교 확장 */
.m-out-compare .m-compare-card {
  margin-top: 20px;
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
body.dark-mode .m-out-compare .m-compare-card { background: #272729; }
.m-out-compare .m-compare-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
body.dark-mode .m-out-compare .m-compare-row { border-bottom-color: rgba(255,255,255,0.06); }
.m-out-compare .m-compare-row:last-child { border-bottom: none; }
.m-out-compare .m-compare-head { background: var(--surface-alt); }
body.dark-mode .m-out-compare .m-compare-head { background: rgba(255,255,255,0.04); }
.m-out-compare .m-compare-cell {
  padding: 12px 6px;
  font-size: 13px;
  color: var(--ink);
  text-align: center;
  letter-spacing: -0.01em;
  word-break: keep-all;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.m-out-compare .m-compare-label-cell {
  font-weight: 600;
  color: var(--ink-2);
  text-align: left;
  justify-content: flex-start;
  padding-left: 12px;
}
.m-out-compare .m-compare-head .m-compare-cell { font-weight: 700; color: var(--ink-3); font-size: 12px; }
.m-out-compare .m-compare-cell-hi {
  background: var(--pink-soft);
  color: var(--pink);
  font-weight: 700;
}
.m-out-compare .m-compare-head .m-compare-cell-hi { color: var(--pink); background: var(--pink-soft); }

/* 🆕 7. 고객 후기 */
.m-out-reviews .m-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.m-out-reviews .m-review-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
body.dark-mode .m-out-reviews .m-review-card { background: #272729; }
.m-review-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.m-review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--pink-grad);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0;
}
.m-review-who {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}
.m-review-meta {
  font-size: 12px;
  color: var(--ink-3);
  margin: 2px 0 0;
}
.m-review-body {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.55;
  margin: 0;
  word-break: keep-all;
}
.m-reviews-disclaimer {
  font-size: 11px;
  color: var(--ink-3);
  text-align: center;
  margin: 14px 0 0;
  letter-spacing: -0.01em;
}

/* 🆕 9. 지원 업종 배지 */
.m-out-industries .m-ind-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.m-ind-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
body.dark-mode .m-ind-pill { background: #272729; }

/* 🆕 8. FAQ */
.m-out-faq .m-faq-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.m-out-faq .m-faq-item {
  background: var(--surface);
  border-radius: 12px;
  padding: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
body.dark-mode .m-out-faq .m-faq-item { background: #272729; }
.m-out-faq .m-faq-item summary {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  letter-spacing: -0.01em;
  line-height: 1.4;
  word-break: keep-all;
}
.m-out-faq .m-faq-item summary::-webkit-details-marker { display: none; }
.m-out-faq .m-faq-chev {
  color: var(--ink-3);
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-smooth);
}
.m-out-faq .m-faq-item[open] .m-faq-chev { transform: rotate(180deg); }
.m-out-faq .m-faq-item p {
  padding: 0 16px 14px;
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all;
}
.m-out-faq .m-faq-item p a { color: var(--pink); text-decoration: underline; }

/* 🆕 10. 하단 신뢰 정보 */
.m-out-trust {
  text-align: center;
}
.m-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}
.m-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  letter-spacing: -0.01em;
}
body.dark-mode .m-trust-badge { background: #272729; }
.m-trust-badge svg { color: var(--pink); }
.m-trust-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-3);
}
.m-trust-links a {
  color: var(--ink-2);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.m-trust-links a:hover { color: var(--pink); }

/* 좁은 기기(아이폰 미니 등)에서 grid-column 축소 */
@media (max-width: 360px) {
  .m-out-proof .m-proof-grid { gap: 6px; }
  .m-out-proof .m-proof-item { padding: 14px 6px; }
  .m-out-proof .m-proof-num { font-size: 13px; }
  .m-out-trend .m-out-trend-list { grid-template-columns: 1fr; }
  .m-out-compare .m-compare-row { grid-template-columns: 1.1fr 1fr 1fr 1fr; }
  .m-out-compare .m-compare-cell { font-size: 12px; padding: 10px 4px; }
}

/* =========================================================
 * 모바일 iOS 수정: 입력 자동 확대 방지 + 가로 스크롤 제거
 * ========================================================= */

/* 1. iOS Safari zoom-on-focus 방지: 모바일 입력 요소 font-size 최소 16px */
@media (max-width: 767px) {
  #mobile-app-logged-in input,
  #mobile-app-logged-in textarea,
  #mobile-app-logged-in select,
  #mobile-app-logged-out input,
  #mobile-app-logged-out textarea,
  #mobile-app-logged-out select,
  #signup-grid input,
  #signup-grid textarea,
  #signup-grid select,
  .signup-grid-wrap input,
  .signup-grid-wrap textarea,
  .signup-grid-wrap select,
  #m-caption-flow input,
  #m-caption-flow textarea,
  #m-caption-flow select {
    font-size: 16px;
  }
}

/* 2. 가로 스크롤 제거: 서드파티 위젯 등 viewport 바깥 요소 클리핑 */
@media (max-width: 767px) {
  body,
  #mobile-app-logged-in,
  #mobile-app-logged-out {
    overflow-x: clip;
    overflow-x: hidden; /* clip 미지원 브라우저 fallback */
  }
}
