/* ==========================================================================
   단골모아 DANGOLMOA — 모바일 PWA 스타일 (v11)
   기본 뷰포트 390px, 360px 대응. 모드별 테마색은 .app[data-mode] 로 바꾼다.
   ========================================================================== */
:root {
  --coral: #F26539;
  --teal: #0B8D89;
  --navy: #102858;
  --bg: #F7F8FA;
  --card: #FFFFFF;
  --line: #E7EAF0;
  --text: #141821;
  --sub: #5B6472;
  --muted: #9BA2AF;
  --shadow: 0 6px 20px rgba(16, 24, 40, .06);
  --shadow-lg: 0 16px 40px rgba(16, 24, 40, .14);
  --r-card: 16px;
  --r-chip: 999px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --theme: var(--coral);
  --tint: #FFF1EB;
  --tabbar-h: 62px;
  font-synthesis: none;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: #E9EBF0; color: var(--text); }
body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  font-size: 15px; line-height: 1.45; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
img { max-width: 100%; display: block; }

.app {
  position: relative; width: 100%; max-width: 430px; min-height: 100vh; min-height: 100dvh;
  margin: 0 auto; background: var(--bg); overflow-x: hidden;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px);
}
.app[data-mode="customer"] { --theme: var(--coral); --tint: #FFF1EB; }
.app[data-mode="marketer"] { --theme: var(--teal); --tint: #E6F5F4; }
.app[data-mode="owner"] { --theme: var(--navy); --tint: #E8EDF6; }
.app.no-tabs { padding-bottom: 0; }
@media (min-width: 520px) {
  .app { margin: 18px auto; min-height: calc(100vh - 36px); border-radius: 26px; box-shadow: var(--shadow-lg); }
  .app::after { content: ""; }
}
.boot { padding: 60px 20px; text-align: center; color: var(--muted); }

/* ---------- 공통 헤더 (좌: 단골모아 [모드] / 우: 공짜·핫딜 · 🔔 · ≡) ---------- */
.appbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 8px;
  padding: 10px 14px 9px; background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 7px; min-width: 0; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(140deg, var(--theme), color-mix(in srgb, var(--theme) 72%, #000));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px;
  box-shadow: 0 3px 8px color-mix(in srgb, var(--theme) 35%, transparent);
}
.brand-name { font-weight: 800; font-size: 16.5px; letter-spacing: -0.03em; white-space: nowrap; }
.mode-badge {
  font-size: 11.5px; font-weight: 800; color: var(--theme); background: var(--tint);
  border: 1px solid color-mix(in srgb, var(--theme) 22%, #fff);
  padding: 3px 7px; border-radius: 7px; white-space: nowrap;
}
.appbar-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.chip-hot {
  display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px;
  border-radius: 999px; background: #FFF3E8; color: #D2481C; font-weight: 800; font-size: 12px;
  border: 1px solid #FFD9C2;
}
.chip-hot.on { background: var(--coral); color: #fff; border-color: var(--coral); }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px;
  color: #2B3240; position: relative;
}
.icon-btn:active { background: #F1F3F6; }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); border: 1.5px solid #fff; }
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 18px; height: 18px; }
.icon.lg { width: 26px; height: 26px; }

/* ---------- 화면 ---------- */
.screen { padding: 12px 16px 20px; }
.screen.flush { padding-left: 0; padding-right: 0; }
.screen-head { display: flex; align-items: center; gap: 8px; padding: 6px 16px 10px; }
.screen-head h1 { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.screen-head .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.back { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: #fff; border: 1px solid var(--line); }
.section { margin-top: 18px; }
.section-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.section-head h2 { font-size: 16.5px; font-weight: 800; letter-spacing: -0.02em; }
.section-head .more { margin-left: auto; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.section-head .count-chip {
  font-size: 11.5px; font-weight: 800; color: var(--theme); background: var(--tint);
  padding: 3px 8px; border-radius: 999px;
}
.muted { color: var(--muted); }
.sub { color: var(--sub); }
.tiny { font-size: 11.5px; }
.small { font-size: 12.5px; }
.strong { font-weight: 800; }
.center { text-align: center; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; }
.row { display: flex; align-items: center; gap: 8px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hide { display: none !important; }

/* ---------- 카드 ---------- */
.card {
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow);
  border: 1px solid #EEF0F4; padding: 14px;
}
.card.tight { padding: 12px; }
.card.flat { box-shadow: none; border-color: var(--line); }
.card.themed { border-color: color-mix(in srgb, var(--theme) 22%, #fff); background: linear-gradient(180deg, #fff, var(--tint)); }
.card + .card { margin-top: 10px; }
.card-title { font-size: 14.5px; font-weight: 800; }
.card-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- 상단 위치+슬림 검색 한 줄 바 ---------- */
.topbar { display: flex; align-items: center; gap: 12px; padding: 4px 16px 12px; }
.loc-btn {
  display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: 15px;
  white-space: nowrap; padding: 4px 0;
}
.loc-btn .pin { color: var(--theme); }
.loc-btn .icon { width: 15px; height: 15px; color: var(--muted); }
.searchbar {
  flex: 1; min-width: 0; height: 44px; border-radius: 22px; background: #fff;
  border: 1.3px solid var(--line); display: flex; align-items: center; gap: 6px;
  padding: 0 12px; color: var(--muted);
}
.searchbar .icon { width: 17px; height: 17px; flex: none; color: #9BA2AF; }
.searchbar input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 13.5px; color: var(--text); }
.searchbar input::placeholder { color: var(--muted); font-size: 13.5px; }
.searchbar:focus-within { border-color: color-mix(in srgb, var(--theme) 55%, #fff); box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme) 10%, transparent); }

/* ---------- 롤링 배너 ---------- */
.banner-wrap { padding: 0 16px; }
.banner-track {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; margin: 0 -16px; padding: 0 16px;
}
.banner-track::-webkit-scrollbar { display: none; }
.banner {
  scroll-snap-align: start; flex: 0 0 calc(100% - 24px); min-height: 132px; border-radius: 18px;
  padding: 16px; color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column;
  justify-content: space-between; box-shadow: 0 10px 24px rgba(242, 101, 57, .18);
}
.banner.b1 { background: linear-gradient(135deg, #F26539, #FF9A62); }
.banner.b2 { background: linear-gradient(135deg, #0B8D89, #34C3B4); box-shadow: 0 10px 24px rgba(11, 141, 137, .18); }
.banner.b3 { background: linear-gradient(135deg, #102858, #3A5C9E); box-shadow: 0 10px 24px rgba(16, 40, 88, .2); }
.banner .b-top { display: flex; gap: 6px; align-items: center; }
.banner .b-tag { font-size: 11px; font-weight: 800; background: rgba(255, 255, 255, .22); padding: 3px 8px; border-radius: 999px; }
.banner h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; margin-top: 8px; }
.banner p { font-size: 12.5px; opacity: .92; margin-top: 3px; }
.banner .b-emoji { position: absolute; right: 12px; bottom: 4px; font-size: 58px; opacity: .28; transform: rotate(-8deg); }
.banner-dots { display: flex; justify-content: center; gap: 5px; margin-top: 9px; align-items: center; }
.banner-dots i { width: 6px; height: 6px; border-radius: 50%; background: #D5D9E0; display: block; transition: .2s; }
.banner-dots i.on { width: 16px; border-radius: 999px; background: var(--theme); }

/* ---------- 업종 그리드 (2줄 × 6칸, 가로 슬라이드) ---------- */
.cat-slider { position: relative; }
.cat-scroll {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0;
  scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-page { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 2px 7px; border-radius: 14px; }
.cat-tile:active { background: var(--tint); }
.cat-emoji {
  width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; font-size: 21px;
  background: var(--tint); border: 1px solid color-mix(in srgb, var(--theme) 12%, #fff);
}
.cat-tile span { font-size: 10.8px; color: var(--sub); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.cat-pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 6px; color: var(--muted); }
.cat-pager i { width: 6px; height: 6px; border-radius: 50%; background: #D5D9E0; }
.cat-pager i.on { background: var(--theme); width: 14px; border-radius: 999px; }
.cat-pager button { color: var(--muted); display: grid; place-items: center; }

/* ---------- 버튼·칩 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 46px; padding: 0 16px; border-radius: 13px; font-weight: 800; font-size: 14.5px;
  background: var(--theme); color: #fff; transition: transform .06s, filter .15s;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--theme) 26%, transparent);
}
.btn:active { transform: translateY(1px); filter: brightness(.96); }
.btn.block { display: flex; width: 100%; }
.btn.ghost { background: #fff; color: var(--theme); border: 1.3px solid color-mix(in srgb, var(--theme) 35%, #fff); box-shadow: none; }
.btn.soft { background: var(--tint); color: var(--theme); box-shadow: none; }
.btn.dark { background: #1B2230; box-shadow: none; }
.btn.sm { height: 34px; padding: 0 11px; font-size: 12.5px; border-radius: 10px; }
.btn.xs { height: 28px; padding: 0 9px; font-size: 11.5px; border-radius: 9px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 32px; padding: 0 12px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--sub);
  display: inline-flex; align-items: center; gap: 4px;
}
.chip.on { background: var(--theme); border-color: var(--theme); color: #fff; }
.chip.sm { height: 27px; padding: 0 9px; font-size: 11.5px; }
.badge {
  display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 800;
  padding: 2px 7px; border-radius: 6px; background: var(--tint); color: var(--theme);
}
.badge.gray { background: #F1F3F6; color: var(--sub); }
.badge.green { background: #E7F6EC; color: #1E7B45; }
.badge.orange { background: #FFF1E7; color: #C4501C; }
.badge.navy { background: #E8EDF6; color: var(--navy); }
.badge.line { background: #fff; border: 1px solid var(--line); color: var(--sub); }
.pill-num { min-width: 18px; height: 18px; border-radius: 9px; background: var(--theme); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }

/* ---------- 목록 ---------- */
.list { display: flex; flex-direction: column; gap: 9px; }
.list-row { display: flex; gap: 11px; align-items: center; background: #fff; border: 1px solid #EEF0F4; border-radius: 14px; padding: 11px; box-shadow: 0 2px 8px rgba(16,24,40,.03); }
.thumb {
  width: 58px; height: 58px; border-radius: 13px; flex: none; display: grid; place-items: center;
  font-size: 26px; background: linear-gradient(145deg, #FFF1EB, #FFE0CE); color: #B5431D;
}
.thumb.t2 { background: linear-gradient(145deg, #E6F5F4, #C9EBE7); color: #086B67; }
.thumb.t3 { background: linear-gradient(145deg, #EDEFF5, #D9DEEA); color: #2A3A5C; }
.thumb.t4 { background: linear-gradient(145deg, #FBF2D8, #F6E3A8); color: #8A6A10; }
.thumb.sketch { filter: saturate(.9); }
.list-row .name { font-size: 14.5px; font-weight: 800; letter-spacing: -0.02em; }
.list-row .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.list-row .benefit { font-size: 12px; color: var(--theme); font-weight: 700; margin-top: 4px; }
.list-row .right { margin-left: auto; text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.rating { font-size: 12px; color: #E8A33D; font-weight: 800; }
.rating span { color: var(--muted); font-weight: 600; }
.store-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.store-tile { background: #fff; border: 1px solid #EEF0F4; border-radius: 16px; overflow: hidden; box-shadow: 0 3px 10px rgba(16,24,40,.04); }
.store-tile .hero { height: 84px; display: grid; place-items: center; font-size: 34px; background: linear-gradient(140deg, var(--tint), #fff); }
.store-tile .body { padding: 9px 10px 11px; }
.store-tile .name { font-weight: 800; font-size: 13.5px; letter-spacing: -0.02em; }

/* ---------- 진행도 · 통계 ---------- */
.progress { height: 8px; border-radius: 99px; background: #EEF0F4; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--theme), color-mix(in srgb, var(--theme) 60%, #FFD7A8)); }
.progress.thin { height: 6px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { background: #fff; border: 1px solid #EEF0F4; border-radius: 13px; padding: 10px 6px; text-align: center; }
.stat b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.stat span { font-size: 10.5px; color: var(--muted); }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #EDEFF3; font-size: 13px; }
.kv:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; }

/* ---------- 하단 5탭 ---------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 45;
  width: min(100vw, 430px); background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px calc(6px + var(--safe-b));
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; color: #9BA2AF; font-size: 10.5px; font-weight: 700; letter-spacing: -0.02em; }
.tab .icon { width: 23px; height: 23px; }
.tab.on { color: var(--theme); }
.tab.on .icon { stroke-width: 2.1; }
.tab .tab-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--theme); opacity: 0; }
.tab.on .tab-dot { opacity: 1; }

/* ---------- 드로어(삼지창) ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(12, 16, 24, .42); z-index: 60; animation: fade .18s ease; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(84vw, 340px); background: #fff;
  z-index: 61; padding: 18px 18px calc(18px + var(--safe-b)); display: flex; flex-direction: column; gap: 6px;
  animation: slideIn .22s cubic-bezier(.2,.8,.2,1); border-radius: 22px 0 0 22px; overflow-y: auto;
}
@keyframes slideIn { from { transform: translateX(24px); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }
.drawer h3 { font-size: 16px; font-weight: 800; }
.drawer .mode-list { display: flex; flex-direction: column; gap: 7px; margin: 8px 0 4px; }
.mode-item { display: flex; align-items: center; gap: 10px; padding: 11px; border-radius: 13px; border: 1px solid var(--line); background: #fff; text-align: left; }
.mode-item.on { background: var(--tint); border-color: color-mix(in srgb, var(--theme) 35%, #fff); }
.mode-item .mk { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.mode-item b { font-size: 13.5px; display: block; }
.mode-item span { font-size: 11.5px; color: var(--muted); }
.mode-item .go { margin-left: auto; color: var(--muted); }
.drawer-link { display: flex; align-items: center; gap: 10px; padding: 12px 11px; border-radius: 12px; font-size: 13.5px; font-weight: 700; color: var(--text); }
.drawer-link:active { background: #F5F6F8; }
.drawer-link .icon { color: var(--muted); }
.drawer hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }

/* ---------- 모달·시트 ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(12,16,24,.45); z-index: 70; display: flex; align-items: flex-end; justify-content: center; animation: fade .16s; }
.sheet {
  width: min(100vw, 430px); background: #fff; border-radius: 22px 22px 0 0; padding: 16px 16px calc(18px + var(--safe-b));
  max-height: 88vh; overflow-y: auto; animation: sheetUp .24s cubic-bezier(.2,.8,.2,1);
}
@keyframes sheetUp { from { transform: translateY(30px); opacity: .6; } }
.sheet .grab { width: 40px; height: 4px; border-radius: 99px; background: #E3E6EC; margin: 0 auto 12px; }
.sheet h2 { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.sheet .sheet-body { margin-top: 12px; }
.modal-close { position: absolute; right: 12px; top: 12px; color: var(--muted); }
.field { display: block; margin-top: 11px; }
.field > span { display: block; font-size: 12px; font-weight: 700; color: var(--sub); margin-bottom: 5px; }
.input, .select, .textarea {
  width: 100%; border: 1.3px solid var(--line); border-radius: 12px; background: #fff;
  padding: 11px 12px; font-size: 14px; outline: 0; min-height: 44px;
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--theme); box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme) 9%, transparent); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239BA2AF' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.inline-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inline-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.stepper { display: inline-flex; align-items: center; gap: 0; border: 1.3px solid var(--line); border-radius: 11px; overflow: hidden; }
.stepper button { width: 38px; height: 38px; font-size: 18px; font-weight: 700; color: var(--sub); display: grid; place-items: center; }
.stepper b { min-width: 42px; text-align: center; font-size: 15px; }

/* ---------- 토스트 ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 22px + var(--safe-b)); transform: translateX(-50%);
  background: rgba(20, 24, 33, .94); color: #fff; padding: 11px 16px; border-radius: 12px;
  font-size: 13px; font-weight: 600; z-index: 90; max-width: min(90vw, 380px);
  box-shadow: 0 12px 30px rgba(0,0,0,.25); animation: toastIn .18s ease;
}
.toast.err { background: #B42318; }
.toast.ok { background: #0E7C45; }
@keyframes toastIn { from { transform: translate(-50%, 8px); opacity: 0; } }

/* ---------- 로그인 ---------- */
.login { min-height: 100vh; min-height: 100dvh; padding: 34px 22px calc(24px + var(--safe-b)); display: flex; flex-direction: column; background: #fff; }
.login .logo { display: flex; align-items: center; gap: 10px; }
.login .logo-mark { width: 44px; height: 44px; border-radius: 14px; background: var(--coral); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 19px; box-shadow: 0 8px 20px rgba(242,101,57,.3); }
.login h1 { font-size: 27px; font-weight: 900; letter-spacing: -0.04em; margin-top: 22px; }
.login .tagline { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.login .demo-box { margin-top: 14px; background: var(--bg); border-radius: 16px; padding: 12px; }
.login .demo-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-top: 6px; text-align: left; }
.login .demo-item:first-child { margin-top: 0; }
.login .demo-item b { font-size: 13px; }
.login .demo-item .avatar { flex: none; }
.login .demo-item span { font-size: 11.5px; color: var(--muted); margin-left: auto; }
.login .sns-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.sns-btn { height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 13px; font-weight: 800; border: 1px solid var(--line); }
.sns-btn.kakao { background: #FEE500; border-color: #FEE500; color: #3A1D1D; }
.sns-btn.naver { background: #03C75A; border-color: #03C75A; color: #fff; }
.sns-btn.phone { background: #fff; color: var(--text); }
.login .foot { margin-top: auto; padding-top: 18px; color: var(--muted); font-size: 11.5px; line-height: 1.6; }

/* ---------- 매장 상세 ---------- */
.hero-store { position: relative; height: 168px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; font-size: 70px; background: linear-gradient(150deg, var(--tint), #F6F7F9 70%); }
.hero-store .badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 5px; }
.hero-store .fav { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; box-shadow: var(--shadow); }
.store-head h1 { font-size: 21px; font-weight: 900; letter-spacing: -0.03em; margin-top: 10px; }
.seg-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: #EEF0F4; border-radius: 12px; padding: 4px; }
.seg-tabs button { height: 36px; border-radius: 9px; font-size: 13.5px; font-weight: 800; color: var(--sub); }
.seg-tabs button.on { background: #fff; color: var(--theme); box-shadow: 0 2px 6px rgba(16,24,40,.08); }
.seg-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #EEF0F4; border-radius: 11px; padding: 4px; }
.seg-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: #EEF0F4; border-radius: 11px; padding: 4px; }
.seg-3 button { height: 34px; border-radius: 8px; font-size: 12.5px; font-weight: 800; color: var(--sub); }
.seg-3 button.on { background: #fff; color: var(--theme); box-shadow: 0 2px 6px rgba(16,24,40,.07); }
.seg-2 button { height: 34px; border-radius: 8px; font-size: 13px; font-weight: 800; color: var(--sub); }
.seg-2 button.on { background: #fff; color: var(--theme); box-shadow: 0 2px 6px rgba(16,24,40,.07); }
.menu-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #F0F2F5; }
.menu-row:last-child { border-bottom: 0; }
.menu-row .m-name { font-weight: 700; font-size: 14px; }
.menu-row .m-price { font-weight: 800; font-size: 13.5px; margin-top: 2px; }
.qty-btn { width: 28px; height: 28px; border-radius: 9px; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; color: var(--theme); }
.cart-bar { position: sticky; bottom: calc(var(--tabbar-h) + 8px); margin-top: 12px; background: #1B2230; color: #fff; border-radius: 14px; padding: 10px 12px; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-lg); }
.cart-bar .n { font-weight: 800; font-size: 13px; }
.cart-bar .amt { margin-left: auto; font-weight: 800; }
.cart-bar .go { background: var(--theme); border-radius: 10px; padding: 8px 12px; font-weight: 800; font-size: 13px; }
.level-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px dashed #EDEFF3; }
.level-row:last-child { border-bottom: 0; }
.level-row .lv { width: 52px; flex: none; font-weight: 800; font-size: 12.5px; color: var(--theme); }
.level-row.now { background: var(--tint); border-radius: 10px; padding: 9px 8px; border-bottom: 0; }
.review-item { padding: 11px 0; border-bottom: 1px solid #F0F2F5; }
.review-item:last-child { border-bottom: 0; }
.stars { color: #F2A33C; font-size: 12px; letter-spacing: 1px; }

/* ---------- 레벨·패스 ---------- */
.level-hero { border-radius: 18px; padding: 16px; color: #fff; background: linear-gradient(135deg, var(--coral), #FF9A62); position: relative; overflow: hidden; }
.level-hero .big { font-size: 22px; font-weight: 900; letter-spacing: -0.03em; }
.level-hero .exp { font-size: 12.5px; opacity: .92; margin-top: 2px; }
.level-hero .progress { background: rgba(255,255,255,.28); margin-top: 10px; }
.level-hero .progress > i { background: #fff; }
.level-hero .emoji { position: absolute; right: 10px; bottom: 2px; font-size: 56px; opacity: .3; }
.kr-hero { border-radius: 16px; padding: 14px; background: #fff; border: 1px solid var(--line); }
.pass-card { border-radius: 16px; padding: 14px; background: linear-gradient(135deg, #102858, #3A5C9E); color: #fff; }
.pass-card .pc-title { font-size: 17px; font-weight: 800; }
.pass-card select { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); color: #fff; border-radius: 9px; padding: 7px 9px; font-size: 12.5px; }
.pass-card select option { color: #111; }
.pass-wrap select option { color: #111; }
.qr-box { width: 100%; aspect-ratio: 1; max-width: 210px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 12px; border: 1px solid var(--line); }
.qr-grid { display: grid; width: 100%; height: 100%; gap: 1px; }
.qr-grid i { background: #fff; }
.qr-grid i.on { background: #111; }
.countdown-bar { height: 10px; border-radius: 99px; background: #EEF0F4; overflow: hidden; }
.countdown-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--coral), #FFB27A); transition: width .95s linear; }
.swipe {
  position: relative; height: 54px; border-radius: 14px; background: #EEF0F4; overflow: hidden; user-select: none;
}
.swipe .fill { position: absolute; inset: 0; background: var(--theme); opacity: .16; }
.swipe .knob {
  position: absolute; top: 5px; left: 5px; width: 44px; height: 44px; border-radius: 12px; background: var(--theme);
  color: #fff; display: grid; place-items: center; font-weight: 800; box-shadow: var(--shadow);
}
.swipe .label { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--sub); }

/* ---------- 커뮤니티 ---------- */
.post { padding: 13px 0; border-bottom: 1px solid #EEF0F4; }
.post:last-child { border-bottom: 0; }
.post .p-title { font-size: 14.5px; font-weight: 800; }
.post .p-body { font-size: 13px; color: var(--sub); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post .p-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--tint); color: var(--theme); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.fab { position: fixed; right: max(16px, calc(50vw - 215px + 16px)); bottom: calc(var(--tabbar-h) + 16px + var(--safe-b)); width: 52px; height: 52px; border-radius: 18px; background: var(--theme); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px color-mix(in srgb, var(--theme) 35%, transparent); z-index: 30; }

/* ---------- 핫딜 ---------- */
.deal { display: flex; gap: 11px; }
.deal .d-emoji { width: 78px; height: 78px; border-radius: 14px; background: var(--bg); display: grid; place-items: center; font-size: 34px; flex: none; }
.deal .d-title { font-size: 13.5px; font-weight: 700; }
.price { display: flex; align-items: baseline; gap: 5px; margin-top: 4px; }
.price .pct { color: #E24A2C; font-weight: 900; font-size: 15px; }
.price .now { font-weight: 900; font-size: 16px; }
.price .was { color: var(--muted); font-size: 11.5px; text-decoration: line-through; }
.trial { display: flex; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid #F0F2F5; }
.trial:last-child { border-bottom: 0; }
.dday { font-size: 11px; font-weight: 800; color: #C4501C; background: #FFF1E7; border-radius: 6px; padding: 2px 6px; }

/* ---------- 마이 ---------- */
.profile-card { display: flex; align-items: center; gap: 12px; }
.profile-card .p-avatar { width: 54px; height: 54px; border-radius: 18px; background: var(--tint); color: var(--theme); display: grid; place-items: center; font-weight: 900; font-size: 20px; }
.menu-list .menu-item { display: flex; align-items: center; gap: 10px; padding: 14px 2px; border-bottom: 1px solid #F0F2F5; font-size: 14px; font-weight: 700; }
.menu-list .menu-item:last-child { border-bottom: 0; }
.menu-list .menu-item .icon { color: var(--muted); }
.menu-list .menu-item .go { margin-left: auto; color: #C6CBD3; }

/* ---------- 사장님 ---------- */
.owner-hero { border-radius: 18px; padding: 16px; color: #fff; background: linear-gradient(135deg, #102858, #2F4C86); }
.owner-hero .oh-sub { font-size: 12.5px; opacity: .8; }
.owner-hero .oh-title { font-size: 20px; font-weight: 900; margin-top: 2px; letter-spacing: -0.03em; }
.order-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: #EEF0F4; border-radius: 12px; padding: 4px; }
.order-tabs button { height: 38px; border-radius: 9px; font-size: 12.5px; font-weight: 800; color: var(--sub); display: flex; align-items: center; justify-content: center; gap: 4px; }
.order-tabs button.on { background: #fff; color: var(--navy); box-shadow: 0 2px 6px rgba(16,24,40,.08); }
.order-card { border: 1px solid #EEF0F4; border-radius: 13px; padding: 11px; background: #fff; }
.order-card .o-top { display: flex; align-items: center; gap: 6px; }
.order-card .o-items { font-size: 12.5px; color: var(--sub); margin-top: 5px; }
.order-card .o-total { font-weight: 900; margin-top: 6px; }
.order-card .o-actions { display: flex; gap: 6px; margin-top: 8px; }
.plan { border: 1.3px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; position: relative; text-align: left; }
.plan.on { border-color: var(--navy); background: #F4F7FC; box-shadow: 0 0 0 3px rgba(16,40,88,.06); }
.plan .p-tag { font-size: 10.5px; font-weight: 800; color: var(--navy); background: #E8EDF6; border-radius: 6px; padding: 2px 6px; }
.plan .p-name { font-size: 15px; font-weight: 900; margin-top: 6px; }
.plan .p-price { font-size: 16px; font-weight: 900; margin-top: 2px; }
.plan .p-desc { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.toggle { width: 46px; height: 27px; border-radius: 99px; background: #D9DDE5; position: relative; transition: .18s; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; transition: .18s; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.toggle.on { background: var(--navy); }
.toggle.on::after { left: 22px; }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 96px; padding-top: 6px; }
.bar-chart .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 100%; }
.bar-chart .bar i { display: block; border-radius: 4px 4px 0 0; background: #DCE2EE; }
.bar-chart .bar i.b1 { background: #102858; }
.bar-chart .bar i.b2 { background: #6C86B8; }
.bar-chart .bar i.b3 { background: #C9D2E3; }
.bar-chart .lbl { font-size: 9.5px; color: var(--muted); text-align: center; margin-top: 4px; }
.legend { display: flex; gap: 10px; font-size: 10.5px; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 4px; }
.channel-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; }
.channel-bar i { display: block; height: 100%; }
.review-slide { display: flex; gap: 9px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.review-slide::-webkit-scrollbar { display: none; }
.review-slide .rv { flex: 0 0 78%; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; }
.masked { font-weight: 800; letter-spacing: 0.02em; }

/* ---------- QR 텐트 인쇄뷰 ---------- */
.print-wrap { padding: 16px; }
.print-card { background: #fff; border-radius: 18px; padding: 20px; text-align: center; border: 1px dashed #C9CFD9; }
.print-card h2 { font-size: 23px; font-weight: 900; letter-spacing: -0.03em; }
.print-card .qr-box { margin: 14px auto; max-width: 230px; }
.print-brand { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 900; margin-top: 8px; }
@media print {
  body { background: #fff; }
  .appbar, .tabbar, .no-print, .app::after { display: none !important; }
  .app { max-width: none; margin: 0; box-shadow: none; border-radius: 0; }
  .print-card { border: 0; }
  .print-wrap { padding: 0; }
}

/* ---------- 빈 상태·스켈레톤 ---------- */
.empty { text-align: center; padding: 30px 16px; color: var(--muted); font-size: 13px; }
.empty .big { font-size: 30px; display: block; margin-bottom: 8px; }
.skel { background: linear-gradient(90deg, #EEF0F4, #F7F8FA, #EEF0F4); background-size: 200% 100%; animation: skel 1.2s infinite; border-radius: 10px; height: 14px; }
@keyframes skel { to { background-position: -200% 0; } }
.loading { padding: 40px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- 360px 대응 ---------- */
@media (max-width: 374px) {
  .screen { padding-left: 13px; padding-right: 13px; }
  .topbar { padding-left: 13px; padding-right: 13px; gap: 9px; }
  .banner-wrap { padding: 0 13px; }
  .banner-track { padding: 0 13px; margin: 0 -13px; }
  .cat-scroll { padding: 2px 13px 4px; margin: 0 -13px; }
  .brand-name { font-size: 15.5px; }
  .cat-emoji { width: 40px; height: 40px; font-size: 19px; border-radius: 13px; }
  .cat-tile span { font-size: 10px; }
  .stat b { font-size: 15.5px; }
  .btn { font-size: 14px; }
  .banner h3 { font-size: 18px; }
  .store-tile .hero { height: 76px; }
}
