/* GO가게 — 휴대폰 먼저. 색은 아래 :root 한 곳에서만 (네이비 #1F2B47 + 연분홍 #FFF5F5) */
:root {
  --bg: #FCF8F7; --card: #FFFFFF; --soft: #F7EFEE; --line: #F0E5E3; --line-2: #E6D8D5;
  --ink: #28304A; --ink-strong: #161D30; --sub: #5F6680; --muted: #9095A8;
  --brand: #1F2B47; --brand-ink: #1F2B47; --brand-soft: #FFF5F5; --brand-deep: #1F2B47;
  --hi: #FBE4E1; --hi-strong: #F2C8C2; --hi-deep: #C0566E; --btn: #FBE4E1; --btn-ink: #1F2B47; --btn-hover: #F7D6D1;
  --dark-btn: #1F2B47; --dark-btn-ink: #FFF5F5;
  --up: #2F7A45; --up-soft: #E8F3EA; --down: #C0392B; --down-soft: #FCEBE8; --warn: #8A6100; --warn-soft: #FDF4DC;
  --shadow: 0 1px 2px rgba(31, 43, 71, .04), 0 6px 20px -8px rgba(31, 43, 71, .10);
  --shadow-lg: 0 20px 50px -18px rgba(31, 43, 71, .26);
  --r: 20px; --r-sm: 14px;
  --ease: cubic-bezier(.22, .9, .3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1320; --card: #171C2B; --soft: #1E2436; --line: #283047; --line-2: #323B55;
    --ink: #E9ECF3; --ink-strong: #F7F8FC; --sub: #B3B9CA; --muted: #848BA0;
    --brand: #F6D4CF; --brand-ink: #1F2B47; --brand-soft: #1E2338; --brand-deep: #F6D4CF;
    --hi: #4A3046; --hi-strong: #6E4560; --hi-deep: #F6D4CF; --btn: #F6D4CF; --btn-ink: #1F2B47; --btn-hover: #F0C2BB;
    --dark-btn: #F6D4CF; --dark-btn-ink: #1F2B47;
    --up: #6CC58A; --up-soft: #1A2E2A; --down: #FF8A7A; --down-soft: #3A2128; --warn: #F2C460; --warn-soft: #34301F;
    --shadow: 0 1px 0 rgba(255,255,255,.03) inset; --shadow-lg: 0 20px 50px -18px rgba(0,0,0,.6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1320; --card: #171C2B; --soft: #1E2436; --line: #283047; --line-2: #323B55;
  --ink: #E9ECF3; --ink-strong: #F7F8FC; --sub: #B3B9CA; --muted: #848BA0;
  --brand: #F6D4CF; --brand-ink: #1F2B47; --brand-soft: #1E2338; --brand-deep: #F6D4CF;
  --hi: #4A3046; --hi-strong: #6E4560; --hi-deep: #F6D4CF; --btn: #F6D4CF; --btn-ink: #1F2B47; --btn-hover: #F0C2BB;
  --dark-btn: #F6D4CF; --dark-btn-ink: #1F2B47;
  --up: #6CC58A; --up-soft: #1A2E2A; --down: #FF8A7A; --down-soft: #3A2128; --warn: #F2C460; --warn-soft: #34301F;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset; --shadow-lg: 0 20px 50px -18px rgba(0,0,0,.6); color-scheme: dark;
}

/* ------------------------------------------------------------ 바탕 */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink);
  font: 16px/1.6 "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  letter-spacing: -.011em; word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button, a, input, textarea, label { -webkit-tap-highlight-color: transparent; }
input, textarea, select { font-size: 16px; } /* 아이폰에서 입력할 때 화면이 확대되지 않게 */
a { color: var(--ink); text-decoration-color: var(--hi-strong); text-decoration-thickness: 2px; text-underline-offset: 3px; }
[hidden] { display: none !important; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--hi-deep); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--hi); }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 18px calc(110px + env(safe-area-inset-bottom)); }
/* 화면이 바뀔 때 부드럽게 (위에서부터 차례로) */
.wrap.enter > * { animation: slidein .55s var(--ease) backwards; }
@keyframes slidein { from { transform: translateY(12px); } }
.wrap.enter > *:nth-child(2) { animation-delay: .04s; } .wrap.enter > *:nth-child(3) { animation-delay: .08s; }
.wrap.enter > *:nth-child(4) { animation-delay: .12s; } .wrap.enter > *:nth-child(5) { animation-delay: .16s; }
.wrap.enter > *:nth-child(n+6) { animation-delay: .2s; }
@keyframes rise { from { transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ------------------------------------------------------------ 머리 */
.top { position: sticky; top: 0; z-index: 8; background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
body.scrolled .top { border-bottom-color: var(--line); }
.top-in { max-width: 560px; margin: 0 auto; padding: calc(12px + env(safe-area-inset-top)) 18px 12px; display: flex; align-items: center; gap: 10px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; letter-spacing: -.03em; color: var(--ink-strong); text-decoration: none; }
.logo img { width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(31,43,71,.06); }
.top .store-name { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sub); max-width: 58%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--soft); color: var(--sub); vertical-align: middle; letter-spacing: 0; }
.badge.pro { background: var(--hi); color: var(--ink-strong); }

/* ------------------------------------------------------------ 글자 */
h1 { font-size: 26px; font-weight: 700; line-height: 1.32; margin: 26px 0 8px; letter-spacing: -.035em; color: var(--ink-strong); }
h1 em, .mark { font-style: normal; text-decoration: underline; text-decoration-color: var(--hi-strong); text-decoration-thickness: .3em; text-underline-offset: -.14em; text-decoration-skip-ink: none; }
h2 { font-size: 17px; font-weight: 700; margin: 0 0 4px; letter-spacing: -.025em; color: var(--ink-strong); }
.eyebrow { display: block; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin: 0 0 6px; }
.lead { color: var(--sub); margin: 0 0 18px; font-size: 15.5px; }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; line-height: 1.55; }
.sub { color: var(--sub); }
.small { font-size: 13px; }
.foot { text-align: center; font-size: 12px; color: var(--muted); margin: 34px 0 6px; line-height: 1.9; }
.foot a { color: var(--muted); text-decoration-color: var(--line-2); }

/* ------------------------------------------------------------ 카드 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin: 14px 0; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.card-head .more { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.card.flat { box-shadow: none; background: var(--soft); border-color: transparent; }

/* ------------------------------------------------------------ 버튼 */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: var(--r-sm);
  border: 1px solid transparent; background: var(--btn); color: var(--btn-ink); font-weight: 650; font-size: 15.5px; cursor: pointer; text-decoration: none;
  transition: background .2s, transform .15s var(--ease), box-shadow .2s, opacity .2s; user-select: none; -webkit-user-select: none; }
.btn:hover:not(:disabled) { background: var(--btn-hover); }
.btn:active:not(:disabled) { transform: scale(.975); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.block { display: flex; width: 100%; }
.btn.dark { background: var(--dark-btn); color: var(--dark-btn-ink); }
.btn.dark:hover:not(:disabled) { background: color-mix(in srgb, var(--dark-btn) 88%, #000); }
.btn.line { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn.line:hover:not(:disabled) { background: var(--soft); }
.btn.soft { background: var(--soft); color: var(--ink); }
.btn.soft:hover:not(:disabled) { background: color-mix(in srgb, var(--soft) 80%, var(--line-2)); }
.btn.ghost { background: transparent; color: var(--sub); }
.btn.danger { background: var(--down); color: #fff; }
.btn.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--down) 88%, #000); }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn .i { width: 18px; height: 18px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.btn-row .btn { flex: 1 1 auto; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--sub); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; cursor: pointer; font-size: 13px; }

/* ------------------------------------------------------------ 입력 */
label.f { display: block; font-size: 13.5px; font-weight: 600; color: var(--sub); margin: 16px 0 7px; }
label.f .sub { font-weight: 400; color: var(--muted); }
.in { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--card); outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s; }
.in::placeholder { color: var(--muted); }
.in:hover { border-color: color-mix(in srgb, var(--line-2) 60%, var(--muted)); }
.in:focus { border-color: var(--hi-deep); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hi) 70%, transparent); }
textarea.in { min-height: 120px; resize: vertical; line-height: 1.65; }
.row { display: flex; gap: 8px; }
.row .in { flex: 1; min-width: 0; }
.row .btn { min-height: 52px; flex: none; }
.err, .ok { display: flex; gap: 8px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-top: 12px; line-height: 1.55; animation: rise .3s var(--ease); }
.err { color: var(--down); background: var(--down-soft); }
.ok { color: var(--up); background: var(--up-soft); }
.err .i, .ok .i { width: 18px; height: 18px; margin-top: 1px; }

/* 체크 상자 (기본 모양 대신 둥근 네모 + 체크) */
input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; flex: none; border-radius: 7px; border: 1.5px solid var(--line-2);
  background: var(--card) no-repeat center / 14px; cursor: pointer; transition: background-color .2s, border-color .2s, transform .15s var(--ease); }
input[type="checkbox"]:hover { border-color: var(--muted); }
input[type="checkbox"]:active { transform: scale(.9); }
input[type="checkbox"]:checked { background-color: var(--dark-btn); border-color: var(--dark-btn);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23FFFDF6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.check { display: flex; gap: 10px; align-items: center; font-size: 14.5px; margin: 10px 0; cursor: pointer; }
.check input { margin: 0; }

/* 켜고 끄기 스위치 */
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: background .25s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .3s var(--ease); }
.switch input:checked + span { background: var(--dark-btn); }
.switch input:checked + span::after { transform: translateX(20px); }

/* ------------------------------------------------------------ 가게 찾기 */
.pick { display: grid; gap: 8px; margin-top: 10px; }
.pick button { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card); cursor: pointer; transition: border-color .2s, background .2s, transform .15s var(--ease); animation: rise .35s var(--ease) both; }
.pick button:hover { border-color: var(--hi-strong); background: var(--brand-soft); }
.pick button:active { transform: scale(.985); }
.pick button b { display: block; font-weight: 650; }
.pick button span { display: block; font-size: 13px; color: var(--muted); }
.pick button .i { color: var(--muted); margin-left: auto; }
.chosen { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--brand-soft); border: 1px solid var(--hi-strong); animation: rise .35s var(--ease); }
.chosen .tick { width: 30px; height: 30px; border-radius: 50%; background: var(--dark-btn); color: var(--dark-btn-ink); display: grid; place-items: center; flex: none; }
.chosen .tick .i { width: 16px; height: 16px; stroke-width: 2.4; }
.chosen b { display: block; }
.chosen span { font-size: 13px; color: var(--sub); }
.chosen button { margin-left: auto; flex: none; }

/* ------------------------------------------------------------ 순위 */
.rank-hero { display: flex; align-items: flex-end; gap: 12px; margin: 4px 0 4px; }
.rank-hero .num { font-size: 68px; font-weight: 750; line-height: .95; letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--ink-strong);
  background: linear-gradient(transparent 64%, var(--hi) 64%); padding: 0 6px; border-radius: 3px; }
.rank-hero .num small { font-size: 22px; font-weight: 650; margin-left: 3px; letter-spacing: -.02em; }
.chg { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; padding: 5px 11px; border-radius: 99px; font-size: 13px; margin-bottom: 8px; }
.chg.up { color: var(--up); background: var(--up-soft); }
.chg.down { color: var(--down); background: var(--down-soft); }
.chg.same { color: var(--sub); background: var(--soft); }
.kw-list { display: grid; }
.kw { display: grid; grid-template-columns: 1fr auto 96px; align-items: center; gap: 12px; padding: 14px 4px; border-top: 1px solid var(--line); cursor: pointer; border-radius: 10px; transition: background .2s; }
.kw:first-child { border-top: 0; }
.kw:hover { background: var(--soft); }
.kw .name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kw .name small { display: flex; align-items: center; gap: 4px; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 1px; }
.kw .name small .i { width: 13px; height: 13px; }
.kw .r { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 17px; letter-spacing: -.02em; }
.kw .r small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0; }
.kw.locked { opacity: .5; }
.spark { width: 96px; height: 38px; display: block; overflow: visible; }
.spark path.l { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.spark path.a { fill: url(#gArea); stroke: none; }
.spark circle { fill: var(--card); stroke: var(--ink); stroke-width: 2; }
.spark .g { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; }
.up-t { color: var(--up); } .down-t { color: var(--down); } .same-t { color: var(--muted); }

/* 큰 차트 */
.chart { position: relative; }
.chart svg { width: 100%; height: 190px; display: block; overflow: visible; }
.chart .ax { fill: var(--muted); font-size: 11px; }
.chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .l { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart .a { fill: url(#gArea2); }
.chart .dot { fill: var(--card); stroke: var(--ink); stroke-width: 2; }
.chart .hit { fill: transparent; cursor: pointer; }
.tip { position: absolute; pointer-events: none; background: var(--ink-strong); color: var(--bg); font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 9px; white-space: nowrap; transform: translate(-50%, -125%); box-shadow: var(--shadow-lg); }

/* ------------------------------------------------------------ 할 일 */
.score { display: flex; align-items: center; gap: 16px; padding: 14px; margin: 0 0 6px; border-radius: 16px; background: var(--soft); }
.ring { --p: 0; width: 68px; height: 68px; border-radius: 50%; flex: none; position: relative;
  background: conic-gradient(var(--hi-deep) calc(var(--p) * 1%), var(--line-2) 0); display: grid; place-items: center; animation: ringin 1s var(--ease) both; }
.ring span { width: 56px; height: 56px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-weight: 750; font-size: 20px; letter-spacing: -.03em; color: var(--ink-strong); }
@keyframes ringin { from { transform: rotate(-30deg) scale(.92); } }
.score b { font-size: 15px; }
.task { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.task:first-of-type { border-top: 0; }
.task input { margin-top: 1px; }
.task b { display: block; font-weight: 600; transition: color .2s; }
.task.done b { text-decoration: line-through; text-decoration-color: var(--muted); color: var(--muted); }
.task p { margin: 3px 0 0; font-size: 13.5px; color: var(--sub); }
.task .num-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--hi); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }

/* ------------------------------------------------------------ 리뷰 */
.rv { padding: 16px 0; border-top: 1px solid var(--line); }
.rv:first-child { border-top: 0; }
.rv .meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rv .meta .av { width: 26px; height: 26px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--sub); }
.rv .meta b { color: var(--ink); font-weight: 600; font-size: 13.5px; }
.rv .body { margin: 8px 0 12px; white-space: pre-wrap; font-size: 15px; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.tag.bad { background: var(--down-soft); color: var(--down); }
.tag.done { background: var(--up-soft); color: var(--up); }
.tag.need { background: var(--warn-soft); color: var(--warn); }
.out { position: relative; background: var(--soft); border-radius: 16px; padding: 16px 16px 14px; margin-top: 12px; white-space: pre-wrap; line-height: 1.7; animation: rise .4s var(--ease) both; }
.out h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.out h3 .i { width: 15px; height: 15px; }
.out .btn-row { margin-top: 10px; }

/* ------------------------------------------------------------ 잠금 (구독 기능) */
.lock-cover { position: relative; overflow: hidden; text-align: center; padding: 28px 20px 22px; border-radius: 18px;
  background: radial-gradient(120% 90% at 50% 0%, var(--brand-soft), var(--card) 70%); border: 1px solid var(--line); }
.lock-cover .lk { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 14px; background: var(--hi); display: grid; place-items: center; color: var(--ink-strong); }
.lock-cover b { display: block; font-size: 17px; margin-bottom: 6px; letter-spacing: -.02em; color: var(--ink-strong); }
.lock-cover p { margin: 0 auto 16px; color: var(--sub); font-size: 14px; max-width: 34em; }

/* 광고 문의 */
.ad { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin: 14px 0; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .2s var(--ease), box-shadow .2s; }
.ad:hover { box-shadow: var(--shadow-lg); }
.ad:active { transform: scale(.99); }
.ad .ic { width: 42px; height: 42px; border-radius: 13px; background: var(--hi); display: grid; place-items: center; flex: none; color: var(--ink-strong); }
.ad .t { flex: 1; }
.ad .t > b { display: block; font-weight: 650; margin-bottom: 2px; }
.ad .t > span { display: block; line-height: 1.55; }
.ad .t > span b { font-weight: 700; color: var(--ink); }
.ad span { font-size: 13.5px; color: var(--sub); }
.ad .go { color: var(--muted); }

/* ------------------------------------------------------------ 목록 (더보기 · 설정) */
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin: 14px 0; box-shadow: var(--shadow); overflow: hidden; }
.list .li { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; text-decoration: none; color: inherit; cursor: pointer; transition: background .15s; }
.list .li:first-child { border-top: 0; }
.list button.li:hover, .list a.li:hover { background: var(--soft); }
.list .li .ic { width: 36px; height: 36px; border-radius: 11px; background: var(--soft); display: grid; place-items: center; flex: none; color: var(--ink); }
.list .li .t { flex: 1; min-width: 0; }
.list .li .t b { display: block; font-weight: 600; font-size: 15px; }
.list .li .t span { display: block; font-size: 12.5px; color: var(--muted); }
.list .li .v { font-size: 13.5px; color: var(--sub); }
.list .li .chev { color: var(--muted); width: 18px; height: 18px; }
.list .li.danger .t b { color: var(--down); }
.list .li.danger .ic { background: var(--down-soft); color: var(--down); }
.list-title { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 26px 4px -4px; letter-spacing: .02em; }

/* ------------------------------------------------------------ 아래 메뉴 */
.tabs { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 9; max-width: 536px; margin: 0 auto;
  background: color-mix(in srgb, var(--card) 86%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px);
  border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 12px 34px -12px rgba(31,43,71,.28); }
.tabs-in { display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; gap: 2px; position: relative; }
.tabs button { position: relative; z-index: 1; background: none; border: 0; padding: 8px 0 7px; border-radius: 18px; display: grid; justify-items: center; gap: 2px;
  font-size: 11.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: color .25s, transform .15s var(--ease); }
.tabs button:active { transform: scale(.94); }
.tabs button svg { width: 23px; height: 23px; transition: transform .3s var(--ease); }
.tabs button.on { color: var(--ink-strong); }
.tabs button.on svg { transform: translateY(-1px); }
.tabs .pill { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px; border-radius: 18px; background: var(--hi); transition: transform .4s var(--ease), width .4s var(--ease); }
@media (min-width: 900px) {
  .tabs { left: 0; right: 0; top: var(--top-h, 56px); bottom: auto; max-width: none; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); box-shadow: none; background: color-mix(in srgb, var(--bg) 86%, transparent); }
  .tabs-in { max-width: 560px; margin: 0 auto; padding: 8px 18px; gap: 6px; }
  .tabs button { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 12px; font-size: 15px; border-radius: 12px; white-space: nowrap; }
  .tabs button:hover { color: var(--ink); }
  .tabs button svg { width: 19px; height: 19px; }
  .tabs .pill { top: 8px; bottom: 8px; border-radius: 12px; }
  body.has-tabs .wrap { padding-top: 70px; padding-bottom: 48px; }
}

/* ------------------------------------------------------------ 아래에서 올라오는 창 */
.sheet-bg { position: fixed; inset: 0; background: rgba(12, 16, 28, .45); z-index: 20; display: flex; align-items: flex-end; justify-content: center;
  animation: fadein .25s ease both; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.sheet-bg.out { animation: fadeout .22s ease both; }
.sheet { position: relative; background: var(--card); width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; border-radius: 26px 26px 0 0;
  padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); animation: sheetup .42s var(--ease) both; overscroll-behavior: contain; }
.sheet::before { content: ""; position: absolute; top: 9px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 99px; background: var(--line-2); }
.sheet-bg.out .sheet { animation: sheetdown .22s ease both; }
.sheet .x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--soft); border: 0; display: grid; place-items: center; cursor: pointer; color: var(--sub); }
.sheet .x .i { width: 17px; height: 17px; }
.sheet h2 { font-size: 20px; margin: 4px 40px 6px 0; }
@media (min-width: 640px) { .sheet-bg { align-items: center; } .sheet { border-radius: 26px; max-height: 86vh; } .sheet::before { display: none; } }
@keyframes fadein { from { opacity: 0; } }
@keyframes fadeout { to { opacity: 0; } }
@keyframes sheetup { from { transform: translateY(40px); opacity: 0; } }
@keyframes sheetdown { to { transform: translateY(30px); opacity: 0; } }

.cmp { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.cmp th, .cmp td { padding: 11px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp th { color: var(--muted); font-weight: 600; font-size: 12px; }
.cmp td:first-child { color: var(--sub); }

/* ------------------------------------------------------------ 요금제 */
.plans { display: grid; gap: 12px; margin: 18px 0; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px 20px; box-shadow: var(--shadow); }
.plan.best { border: 1.5px solid var(--ink-strong); box-shadow: var(--shadow-lg); }
.plan .ribbon { position: absolute; top: -11px; left: 20px; font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 99px; background: var(--ink-strong); color: var(--bg); letter-spacing: .01em; }
.plan .nm { font-size: 14px; font-weight: 600; color: var(--sub); }
.plan .pr { font-size: 34px; font-weight: 750; letter-spacing: -.04em; color: var(--ink-strong); margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.plan .pr small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: -.01em; margin-left: 2px; }
.plan .ds { font-size: 13.5px; color: var(--sub); margin: 0 0 14px; }
.plan ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.plan li .i { width: 18px; height: 18px; margin-top: 2px; color: var(--up); stroke-width: 2.2; }
.plan li.no { color: var(--muted); }
.plan li.no .i { color: var(--line-2); }
.plan .cur { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--up); }
.faq { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 16px 2px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { margin-left: auto; color: var(--muted); transition: transform .3s var(--ease); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { margin: -4px 2px 16px; color: var(--sub); font-size: 14px; animation: rise .3s var(--ease); }
.back { display: inline-flex; align-items: center; gap: 4px; margin: 18px 0 -8px; padding: 6px 10px 6px 4px; border: 0; background: none; color: var(--sub); font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 10px; }
.back:hover { background: var(--soft); }

/* ------------------------------------------------------------ 로그인 첫 화면 */
.hero { margin: 26px 0 8px; }
.hero h1 { font-size: 31px; margin: 10px 0 10px; line-height: 1.28; }
.hero .chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--sub); background: var(--card); border: 1px solid var(--line); padding: 5px 12px 5px 8px; border-radius: 99px; box-shadow: var(--shadow); }
.hero .chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px var(--up-soft); }
.preview { position: relative; margin: 22px 0 6px; padding: 18px; border-radius: 24px; background: linear-gradient(160deg, var(--brand-soft), var(--soft)); border: 1px solid var(--line); overflow: hidden; }
.preview .pv { background: var(--card); border-radius: 18px; padding: 16px 16px 14px; box-shadow: var(--shadow-lg); }
.preview .pv .top2 { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.preview .pv .top2 b { color: var(--ink); font-weight: 600; }
.preview .pv .big { display: flex; align-items: flex-end; gap: 8px; margin: 8px 0 12px; }
.preview .pv .big b { font-size: 46px; font-weight: 750; line-height: .95; letter-spacing: -.05em; background: linear-gradient(transparent 60%, var(--hi) 60%, var(--hi) 92%, transparent 92%); padding: 0 4px; }
.preview .pv .big small { font-size: 16px; font-weight: 600; }
.preview .pv svg.pvc { width: 100%; height: 46px; display: block; color: var(--ink); }
.chg .i { width: 14px; height: 14px; stroke-width: 2.4; }
.preview .toast2 { position: relative; z-index: 1; display: flex; gap: 10px; align-items: center; width: fit-content; max-width: 92%; margin: -12px 4px 0 auto; background: var(--ink-strong); color: var(--bg); padding: 11px 14px; border-radius: 14px; font-size: 12.5px; line-height: 1.5; box-shadow: var(--shadow-lg); }
.preview .toast2 .i { width: 18px; height: 18px; flex: none; color: var(--hi); }
@keyframes float { 50% { transform: translateY(-5px); } }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 26px 0 8px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 14px; box-shadow: var(--shadow); }
.feat .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--hi); display: grid; place-items: center; margin-bottom: 12px; color: var(--ink-strong); }
.feat b { display: block; font-size: 14.5px; font-weight: 650; letter-spacing: -.02em; }
.feat span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; margin: 18px 0 2px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.steps { display: flex; gap: 6px; margin: 4px 0 16px; }
.steps i { flex: 1; height: 4px; border-radius: 99px; background: var(--line); }
.steps i.on { background: var(--ink-strong); }
.sec-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--hi); font-size: 12.5px; font-weight: 700; margin-right: 8px; vertical-align: 1px; }

/* ------------------------------------------------------------ 탈퇴 */
.bye { text-align: center; padding: 60px 10px 20px; }
.bye .ic { width: 64px; height: 64px; border-radius: 20px; background: var(--hi); display: grid; place-items: center; margin: 0 auto 18px; }
.bye .ic .i { width: 28px; height: 28px; }
.del-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.del-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--sub); }
.del-list li .i { width: 17px; height: 17px; margin-top: 3px; color: var(--muted); }

/* ------------------------------------------------------------ 그 밖 */
.toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 8px;
  background: var(--ink-strong); color: var(--bg); padding: 12px 18px; border-radius: 16px; font-size: 14px; font-weight: 500; z-index: 30; max-width: calc(100% - 32px);
  box-shadow: var(--shadow-lg); animation: toastin .4s var(--ease) both; }
.toast .i { width: 17px; height: 17px; color: var(--hi); }
.toast.out { animation: toastout .25s ease both; }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 14px) scale(.96); } }
@keyframes toastout { to { opacity: 0; transform: translate(-50%, 8px); } }
.spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sp 1.6s linear infinite; display: inline-block; opacity: .7; flex: none; }
@keyframes sp { to { transform: rotate(360deg); } }
.skel { background: linear-gradient(90deg, var(--soft) 0%, color-mix(in srgb, var(--soft) 40%, var(--line)) 40%, var(--soft) 80%); background-size: 220% 100%; animation: sk 1.4s ease-in-out infinite; border-radius: 10px; height: 16px; margin: 10px 0; }
@keyframes sk { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--soft); border-radius: 14px; padding: 4px; gap: 4px; margin-bottom: 4px; }
.seg button { border: 0; background: none; padding: 10px 14px; border-radius: 11px; cursor: pointer; font-weight: 600; color: var(--muted); transition: background .25s, color .25s, box-shadow .25s; }
.seg button.on { background: var(--card); color: var(--ink-strong); box-shadow: 0 1px 3px rgba(31,43,71,.12); }
.file { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1.5px dashed var(--line-2); border-radius: 16px; cursor: pointer; color: var(--sub); transition: border-color .2s, background .2s; }
.file:hover { border-color: var(--hi-deep); background: var(--brand-soft); }
.file input { display: none; }
.file .ic { width: 42px; height: 42px; border-radius: 13px; background: var(--soft); display: grid; place-items: center; flex: none; }
.photo-prev { display: block; width: 100%; max-height: 300px; object-fit: cover; border-radius: 16px; margin-top: 10px; animation: rise .4s var(--ease); }
.list-plain { margin: 6px 0 0; padding-left: 20px; }
.list-plain li { margin: 5px 0; }
.level { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 18px; padding: 4px 12px; border-radius: 99px; margin-bottom: 8px; }
.level.위험 { background: var(--down-soft); color: var(--down); } .level.주의 { background: var(--warn-soft); color: var(--warn); } .level.안전 { background: var(--up-soft); color: var(--up); }
.fc { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.fc:first-child { border-top: 0; }
.fc .ar { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.fc .ar.up { background: var(--up-soft); color: var(--up); } .fc .ar.down { background: var(--down-soft); color: var(--down); } .fc .ar.same { background: var(--soft); color: var(--muted); }
.fc b { display: block; font-weight: 600; }
.fc p { margin: 3px 0 0; font-size: 13.5px; color: var(--sub); }
.cmpx td .warn { display: inline-flex; vertical-align: -3px; color: var(--warn); }
.cmpx td .warn .i { width: 15px; height: 15px; }

/* 홈 화면 추가 안내 (휴대폰 첫 방문) */
.instbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 15; max-width: 536px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 12px 10px 12px 12px;
  box-shadow: var(--shadow-lg); animation: sheetup .45s var(--ease) both; }
body.has-tabs .instbar { bottom: calc(90px + env(safe-area-inset-bottom)); }
.instbar img { border-radius: 12px; flex: none; }
.instbar .t { flex: 1; min-width: 0; }
.instbar .t b { display: block; font-size: 15px; }
.instbar .t span { display: block; font-size: 12.5px; color: var(--sub); }
.instbar .btn { flex: none; }
.instbar .ix { flex: none; background: none; border: 0; color: var(--muted); padding: 6px; cursor: pointer; display: grid; place-items: center; }
.pcqr { display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: center; padding: 16px; margin: 0 0 14px; border-radius: var(--r); background: var(--soft); }
.pcqr .code { width: 132px; height: 132px; padding: 11px; border-radius: 14px; background: #FFFFFF; color: #1F2B47; box-shadow: 0 0 0 1px var(--line); }
.pcqr .code svg { display: block; width: 100%; height: 100%; }
.pcqr b { display: block; font-size: 15.5px; color: var(--ink-strong); }
.pcqr span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--sub); line-height: 1.55; }
.pcqr span b { display: inline; font-size: inherit; }
.pcqr em { display: inline-block; margin-top: 8px; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--ink); background: var(--hi); padding: 3px 9px; border-radius: 8px; }
@media (max-width: 420px) { .pcqr { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.isteps { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 10px; }
.istep { display: flex; gap: 12px; align-items: flex-start; background: var(--soft); border-radius: 16px; padding: 14px; font-size: 15px; }
.istep > b { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--hi); display: grid; place-items: center; font-size: 13px; }
.istep .ico { display: inline-flex; vertical-align: -3px; padding: 2px 4px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); }

/* 작은 휴대폰 */
@media (max-width: 360px) {
  .wrap { padding-left: 14px; padding-right: 14px; }
  .card { padding: 18px 16px; }
  h1 { font-size: 24px; } .hero h1 { font-size: 27px; }
  .rank-hero .num { font-size: 58px; }
  .kw { grid-template-columns: 1fr auto 72px; gap: 8px; }
  .spark { width: 72px; }

}
@media (max-width: 330px) { .feats { grid-template-columns: 1fr; } }

/* ============================================================ 2차 다듬기: 한눈에 알 수 있게 */
.lg-t { display: flex; flex-direction: column; line-height: 1.05; }
.lg-t small { font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: .01em; margin-top: 2px; }
.foot-by { font-weight: 500; color: var(--sub); }
.foot-by span { color: var(--ink-strong); font-weight: 700; }
.hello { margin: 22px 2px 12px; font-size: 15px; font-weight: 600; color: var(--sub); }

/* 오늘 순위 — 가장 크게, 진한 카드 */
.rankhero { position: relative; overflow: hidden; border-radius: 26px; padding: 20px 20px 18px; margin: 0 0 14px; color: #FFF5F5;
  background: radial-gradient(120% 80% at 100% 0%, #4A4F78 0%, transparent 60%), linear-gradient(160deg, #2A3A5E, #151E33); box-shadow: 0 18px 40px -20px rgba(15,20,40,.5); }
.rh-top { display: flex; align-items: center; gap: 8px; }
.rh-kw { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; padding: 6px 12px 6px 9px; border-radius: 99px; background: rgba(255,227,222,.14); color: #FFE3DE; }
.rh-kw .i { width: 16px; height: 16px; }
.rh-date { margin-left: auto; font-size: 11.5px; color: rgba(255,245,245,.55); }
.rh-mid { display: flex; align-items: flex-end; gap: 12px; margin: 16px 0 6px; }
.rh-num { font-size: 80px; font-weight: 750; line-height: .9; letter-spacing: -.055em; color: #FFE3DE; font-variant-numeric: tabular-nums; }
.rh-num small { font-size: 24px; font-weight: 650; letter-spacing: -.02em; margin-left: 4px; color: #FFF5F5; }
.rh-chg { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 650; padding: 6px 12px; border-radius: 99px; margin-bottom: 8px; background: rgba(255,255,255,.1); color: #FFF5F5; }
.rh-chg .i { width: 15px; height: 15px; stroke-width: 2.4; }
.rh-chg.up { background: rgba(108,197,138,.2); color: #8BE0A7; } .rh-chg.down { background: rgba(255,138,122,.18); color: #FFB0A5; }
.hchart { display: block; width: 100%; height: 64px; margin: 4px 0 2px; }
.rh-say { margin: 8px 0 14px; font-size: 14px; color: rgba(255,245,245,.82); line-height: 1.55; }
.rh-say b { color: #FFE3DE; }
.rh-btns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.rh-btns .btn { min-height: 48px; font-size: 14.5px; white-space: nowrap; padding-left: 10px; padding-right: 10px; gap: 6px; }
.btn.ghost2 { background: rgba(255,255,255,.08); color: #FFF5F5; border-color: rgba(255,255,255,.14); }
.btn.ghost2:hover:not(:disabled) { background: rgba(255,255,255,.14); }
.rh-live { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; padding: 11px 14px; border-radius: 14px; background: rgba(108,197,138,.16); color: #CFF2DA; font-size: 14px; animation: rise .35s var(--ease); }
.rh-live b { color: #fff; } .rh-live .i { width: 17px; height: 17px; }
.rh-live.err2 { background: rgba(255,138,122,.16); color: #FFD3CC; }

/* 순위 배지 · 검색어 줄 */
.rb { flex: none; min-width: 58px; height: 46px; padding: 0 8px; border-radius: 14px; display: grid; place-items: center; grid-auto-flow: column; gap: 1px;
  font-size: 20px; font-weight: 750; letter-spacing: -.04em; font-variant-numeric: tabular-nums; background: var(--soft); color: var(--ink-strong); }
.rb small { font-size: 12px; font-weight: 600; align-self: end; margin-bottom: 11px; }
.rb.t1 { background: var(--hi); } .rb.t2 { background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--hi-strong); }
.rb.out, .rb.none { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.rb .i { width: 18px; height: 18px; }
.kw2 { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-top: 1px solid var(--line); cursor: pointer; border-radius: 12px; transition: background .2s; }
.kw2:first-child { border-top: 0; }
.kw2:hover { background: var(--soft); }
.kw2 .name { flex: 1; min-width: 0; }
.kw2 .name b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kw2 .name small { display: block; font-size: 12.5px; color: var(--muted); }
.kw2 .go { width: 17px; height: 17px; color: var(--muted); }
.kw2.locked { opacity: .55; }
.chg2 { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; color: var(--muted); }
.chg2 .i { width: 14px; height: 14px; stroke-width: 2.4; }
.chg2.up { color: var(--up); } .chg2.down { color: var(--down); }

/* 검색어 추천 */
.reco { background: linear-gradient(170deg, var(--brand-soft), var(--card) 55%); }
.eyebrow svg.i { width: 14px; height: 14px; vertical-align: -2px; }
.finding { padding: 16px 16px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.fbar { height: 4px; border-radius: 99px; background: var(--soft); overflow: hidden; margin-bottom: 14px; }
.fbar i { display: block; width: 40%; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--hi-strong), var(--hi-deep)); animation: fbar 1.8s ease-in-out infinite; }
@keyframes fbar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.fsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fsteps li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); transition: color .3s; }
.fsteps li .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--soft); color: var(--muted); flex: none; transition: background .3s, color .3s; }
.fsteps li .dot .i { width: 14px; height: 14px; stroke-width: 2.6; }
.fsteps li.now { color: var(--ink); font-weight: 600; }
.fsteps li.now .dot { background: var(--hi); color: var(--ink-strong); animation: breathe 1.6s ease-in-out infinite; }
.fsteps li.done { color: var(--sub); }
.fsteps li.done .dot { background: var(--up); color: #fff; }
@keyframes breathe { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--hi) 60%, transparent); } }
.rc-basis { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; color: var(--sub); }
.rc-basis .i { width: 16px; height: 16px; flex: none; }
.rc-basis b { color: var(--ink); }
.rc-list { display: grid; gap: 8px; }
.rc { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); animation: rise .4s var(--ease) backwards; }
.rc:nth-child(2) { animation-delay: .06s; } .rc:nth-child(3) { animation-delay: .12s; }
.rc-n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink-strong); color: var(--bg); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.rc-t { flex: 1; min-width: 0; }
.rc-t b { display: block; font-weight: 700; font-size: 15.5px; letter-spacing: -.02em; }
.rc-t small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.rc-rank.on { color: var(--ink); font-weight: 600; }
.rc-v { text-align: right; flex: none; }
.rc-v b { display: block; font-size: 18px; font-weight: 750; letter-spacing: -.03em; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.rc-v small { display: block; font-size: 11px; color: var(--muted); }
.rc .btn { flex: none; padding: 0 12px; min-height: 38px; }
.rc .btn .i { width: 15px; height: 15px; }
.rc-more { margin-top: 10px; }
.rc-more summary { list-style: none; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; font-size: 14px; font-weight: 600; color: var(--sub); cursor: pointer; border-radius: 12px; }
.rc-more summary::-webkit-details-marker { display: none; }
.rc-more summary:hover { background: var(--soft); }
.rc-more summary .i { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.rc-more[open] summary .i { transform: rotate(180deg); }
@media (max-width: 400px) { .rc { flex-wrap: wrap; } .rc-t { flex-basis: calc(100% - 110px); } .rc .btn { margin-left: 38px; } }

/* 이번 주 할 일 — 카드 하나씩, 열어서 하는 법 보고 [다 했어요] */
.scorepill { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 14px; padding: 7px 12px; border-radius: 99px; background: var(--hi); color: var(--ink-strong); }
.scorepill .i { width: 15px; height: 15px; }
.prog { display: flex; align-items: center; gap: 12px; margin: 2px 0 12px; }
.prog-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.prog-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--hi-strong), var(--hi-deep)); transition: width .6s var(--ease); }
.prog span { font-size: 12.5px; font-weight: 600; color: var(--sub); white-space: nowrap; }
.tk { border: 1px solid var(--line); border-radius: 18px; margin-top: 10px; background: var(--card); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.tk.open { border-color: var(--hi-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hi) 55%, transparent); }
.tk-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border: 0; background: none; text-align: left; cursor: pointer; }
.tk-n { width: 32px; height: 32px; border-radius: 50%; background: var(--hi); color: var(--ink-strong); display: grid; place-items: center; font-weight: 750; font-size: 15px; flex: none; }
.tk-n.ok { background: var(--up); color: #fff; }
.tk-n.ok .i { width: 17px; height: 17px; stroke-width: 2.6; }
.tk-t { flex: 1; min-width: 0; }
.tk-t b { display: block; font-weight: 700; font-size: 15.5px; letter-spacing: -.02em; }
.tk-t p { margin: 2px 0 0; font-size: 13px; color: var(--sub); line-height: 1.5; }
.tk-ch { color: var(--muted); transition: transform .3s var(--ease); }
.tk.open .tk-ch { transform: rotate(180deg); }
.tk-body { display: none; padding: 0 14px 14px 58px; }
.tk.open .tk-body { display: block; animation: rise .3s var(--ease); }
.tk-how { margin: 0 0 12px; padding: 0; list-style: none; counter-reset: h; display: grid; gap: 7px; }
.tk-how li { counter-increment: h; display: flex; gap: 8px; font-size: 14px; color: var(--ink); }
.tk-how li::before { content: counter(h); flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--soft); color: var(--sub); font-size: 11.5px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.tk-act { display: flex; gap: 8px; flex-wrap: wrap; }
.tk-act .btn { flex: 1 1 auto; }
.tk-act .btn .i { width: 15px; height: 15px; }
.tk.done { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--up-soft); border-color: transparent; }
.tk.done .tk-t b { font-size: 14.5px; }
.tk.done .tk-t p { color: var(--up); font-weight: 600; }
.tk.pop { animation: pop .5s var(--ease); }
@keyframes pop { 30% { transform: scale(1.03); } }
@media (max-width: 380px) { .tk-body { padding-left: 14px; } }

/* 하는 순서 띠 (리뷰 · 소식 글) */
.howto { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.howto li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 8px 11px; text-align: center; box-shadow: var(--shadow); }
.howto li span { display: grid; place-items: center; width: 24px; height: 24px; margin: 0 auto 6px; border-radius: 50%; background: var(--ink-strong); color: var(--bg); font-size: 12.5px; font-weight: 700; }
.howto li b { display: block; font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.howto li small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.nextstep { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 12px 12px 14px; border-radius: 14px; background: var(--brand-soft); border: 1px solid var(--hi-strong); font-size: 13.5px; color: var(--ink); line-height: 1.5; }
.nextstep .i { width: 18px; height: 18px; flex: none; color: var(--hi-deep); }
.nextstep span { flex: 1; }
.nextstep .btn { flex: none; }
.rv .btn .i { width: 16px; height: 16px; }

/* 스마트플레이스 바로 가기 */
.spbar { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 14px 16px; border-radius: 18px; background: var(--card); border: 1.5px solid var(--hi-strong); color: inherit; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s var(--ease), background .2s; }
.spbar:hover { background: var(--brand-soft); } .spbar:active { transform: scale(.985); }
.spbar .t { flex: 1; min-width: 0; } .spbar b { display: block; font-weight: 700; } .spbar small { display: block; font-size: 12.5px; color: var(--muted); }
.spbar .go { color: var(--ink); width: 18px; height: 18px; }
.sp-ic { width: 36px; height: 36px; border-radius: 11px; background: var(--hi); color: var(--ink-strong); display: grid; place-items: center; flex: none; }
.sp-ic .i { width: 19px; height: 19px; }
.rv-act { display: flex; gap: 6px; flex-wrap: wrap; }
.rv-act .btn.ghost { color: var(--sub); }
.spfloat { position: fixed; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 31; display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 28px);
  padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--dark-btn); color: var(--dark-btn-ink); text-decoration: none; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); animation: toastin .4s var(--ease) both; }
.spfloat .sp-ic { width: 30px; height: 30px; border-radius: 9px; }
.spfloat .i { width: 17px; height: 17px; }
.spfloat.out { animation: toastout .25s ease both; }

/* ============================================================ 요금제 태그 · 매장 바꾸기 · 요금제 표 */
.top .store-name { gap: 6px; overflow: visible; max-width: 66%; }
.storebtn { display: inline-flex; align-items: center; gap: 3px; min-width: 0; max-width: 100%; padding: 6px 6px 6px 10px; border: 0; border-radius: 99px; background: transparent; color: var(--ink); font-size: 13.5px; font-weight: 650; cursor: pointer; transition: background .2s; }
.storebtn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.storebtn:hover { background: var(--soft); }
.storebtn .i { width: 15px; height: 15px; color: var(--muted); flex: none; }
.plantag { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 99px; border: 0; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; cursor: pointer;
  background: var(--soft); color: var(--sub); transition: transform .15s var(--ease), box-shadow .2s; font-family: inherit; }
.plantag:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--hi) 60%, transparent); }
.plantag:active { transform: scale(.94); }
.plantag .i { width: 12px; height: 12px; stroke-width: 2.2; }
.plantag.t1 { background: #E8ECF4; color: #1F2B47; }
.plantag.t2 { background: var(--hi); color: var(--ink-strong); }
.plantag.t3 { background: linear-gradient(135deg, #2A3A5E, #151E33); color: #FFE3DE; }
:root[data-theme="dark"] .plantag.t1 { background: #263049; color: #C9D3EA; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plantag.t1 { background: #263049; color: #C9D3EA; } }

/* 매장 목록 (인스타그램 계정 바꾸기처럼) */
.slist { display: grid; gap: 6px; }
.srow { display: flex; align-items: center; gap: 4px; border-radius: 16px; transition: background .2s; }
.srow.on { background: var(--brand-soft); }
.sbtn, .sadd { flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 16px; min-width: 0; }
.sbtn:hover, .sadd:hover { background: var(--soft); }
.srow.on .sbtn:hover { background: transparent; }
.sbtn.busy { opacity: .5; }
.sav { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 750; font-size: 18px; background: var(--hi); color: var(--ink-strong); box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--hi-strong); }
.sav.plus { background: var(--soft); box-shadow: none; color: var(--sub); }
.sav .i { width: 20px; height: 20px; }
.sav .rot { transform: rotate(45deg); }
.sbtn .t, .sadd .t { flex: 1; min-width: 0; }
.sbtn b, .sadd b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbtn small, .sadd small { display: block; font-size: 12.5px; color: var(--muted); }
.tick2 { width: 26px; height: 26px; border-radius: 50%; background: var(--dark-btn); color: var(--dark-btn-ink); display: grid; place-items: center; flex: none; }
.tick2 .i { width: 15px; height: 15px; stroke-width: 2.6; }
.sx { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; margin-right: 6px; }
.sx:hover { background: var(--soft); color: var(--down); }
.sx .i { width: 16px; height: 16px; }
.sadd { margin-top: 6px; border: 1.5px dashed var(--line-2); width: 100%; }
.sadd.lock { border-style: solid; border-color: var(--line); }

/* 요금제 카드 3개 (바로 신청) */
.pcards { display: grid; gap: 10px; }
.pcard { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pcard > div:first-child { flex: 1; min-width: 0; }
.pcard .pn { display: block; font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--ink-strong); }
.pcard .ps { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pcard .pr2 { font-size: 22px; font-weight: 750; letter-spacing: -.03em; color: var(--ink-strong); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pcard .pr2 small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.pcard .btn { flex: none; min-width: 84px; }
.pcard.best { border: 1.5px solid var(--ink-strong); box-shadow: var(--shadow-lg); }
.pcard.mine { background: var(--brand-soft); border-color: var(--hi-strong); }
.cur2 { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--up); min-width: 84px; justify-content: center; }
.cur2 .i { width: 15px; height: 15px; stroke-width: 2.4; }
@media (max-width: 380px) { .pcard { flex-wrap: wrap; } .pcard > div:first-child { flex-basis: 100%; } .pcard .pr2 { flex: 1; } }

/* 비교 표 */
.ptable-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ptable { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 13.5px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.ptable col.c0 { width: 32%; }
.ptable th, .ptable td { padding: 11px 3px; text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ptable tbody tr:last-child th, .ptable tbody tr:last-child td { border-bottom: 0; }
.ptable tbody th { text-align: left; font-weight: 500; color: var(--ink); padding-left: 12px; font-size: 12.5px; line-height: 1.4; }
.ptable thead th { background: var(--soft); vertical-align: bottom; padding: 14px 6px 12px; border-bottom: 1px solid var(--line-2); }
.ptable thead th.f0 { background: var(--soft); }
.ptable .pc .pn { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0; white-space: nowrap; color: var(--ink-strong); }
.ptable .pc .pp { display: block; white-space: nowrap; font-size: 11px; font-weight: 600; color: var(--sub); margin-top: 2px; font-variant-numeric: tabular-nums; }
.ptable .pc .pick { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--ink-strong); color: var(--bg); margin-bottom: 5px; }
.ptable .pc .now { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--up-soft); color: var(--up); margin-top: 5px; }
.ptable .best { background: color-mix(in srgb, var(--hi) 28%, transparent); }
.ptable thead .best { background: var(--hi); }
.ptable td b { font-weight: 700; color: var(--ink-strong); font-size: 12px; word-break: keep-all; }
.ptable td .yes { width: 18px; height: 18px; color: var(--up); stroke-width: 2.4; vertical-align: middle; }
.ptable td .no { color: var(--line-2); font-weight: 700; }
.ptable tr.grp td { text-align: left; padding: 14px 14px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); background: var(--card); border-bottom: 0; }
.ptable tr.grp + tr th, .ptable tr.grp + tr td { border-top: 0; }

/* PC: 가운데 폭을 조금 넓게 */
@media (min-width: 900px) {
  .wrap, .top-in { max-width: 720px; }
  .tabs-in { max-width: 720px; }
  h1 { font-size: 30px; }
  .rankhero { padding: 26px 28px 22px; }
  .rh-num { font-size: 96px; }
  .feats { grid-template-columns: repeat(4, 1fr); }
}

/* 검색어 찾는 중: 천천히 차오르는 동그라미 */
.finding2 { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.pring { position: relative; width: 64px; height: 64px; flex: none; }
.pring svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.pring circle { fill: none; stroke-width: 6; }
.pring .bg { stroke: var(--soft); }
.pring .fg { stroke: var(--hi-deep); stroke-linecap: round; }
.pring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 750; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.pinfo { min-width: 0; }
.pinfo b { display: block; font-size: 15px; font-weight: 700; color: var(--ink-strong); }
.pinfo span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* 구독 상태 · 요금제 바꾸기 창 */
.subbox { margin: 0 0 14px; padding: 16px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--hi-strong); box-shadow: var(--shadow); }
.sb-top { display: flex; align-items: center; gap: 10px; }
.sb-top b { font-size: 15px; }
.subbox p { margin: 8px 0 6px; font-size: 14px; color: var(--sub); line-height: 1.55; }
.subbox p b { color: var(--ink); }
.cur2.wait { color: var(--hi-deep); }
.psheet { margin: 6px 0 4px; padding: 16px; border-radius: 16px; background: var(--soft); font-size: 15px; line-height: 1.7; color: var(--sub); }
.psheet b { color: var(--ink-strong); }

/* 화면 모드 버튼 (오른쪽 위 해 · 달) */
.top .logo { flex: none; }
.top .store-name { min-width: 0; flex: 0 1 auto; max-width: none; }
.thbtn { flex: none; width: 34px; height: 34px; margin-left: 2px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .3s, border-color .3s, transform .15s var(--ease); }
.thbtn:hover { background: var(--soft); }
.thbtn:active { transform: scale(.92); }
.thbtn .i { width: 17px; height: 17px; }
.top .store-name:empty + .thbtn { margin-left: auto; }
.thseg { flex-basis: 100%; margin: 10px 0 2px; }
.thseg button { padding: 9px 10px; font-size: 14px; }
html { transition: background-color .3s; }

/* ============================================================ 고애드 광고 리포트 (연결된 광고주) */
.adrep { position: relative; overflow: hidden; border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line)); }
.adrep::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--hi-deep)); }
.ar-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ar-brand { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--brand-deep); letter-spacing: -.01em; }
.ar-brand .i { width: 15px; height: 15px; }
.ar-chip { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.ar-chip.on { background: var(--up-soft); color: var(--up); }
.adrep h2 { margin: 0; font-size: 19px; letter-spacing: -.03em; }
.ar-meta { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.ar-days { display: flex; align-items: center; gap: 12px; width: 100%; margin: 16px 0 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); text-align: left; cursor: pointer; transition: background .25s, border-color .25s; }
.ar-days:hover { border-color: var(--line-2); background: var(--brand-soft); }
.ar-days .ic { width: 36px; height: 36px; border-radius: 11px; background: var(--card); display: grid; place-items: center; color: var(--ink-strong); flex: none; box-shadow: var(--shadow); }
.ar-days .ic .i { width: 18px; height: 18px; }
.ar-days .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ar-days small { font-size: 12px; color: var(--muted); }
.ar-days b { font-size: 15px; font-weight: 700; color: var(--ink-strong); }
.ar-days .chev { color: var(--muted); }
.ar-perk { display: flex; align-items: center; gap: 6px; margin: 12px 2px 0; font-size: 13px; color: var(--sub); }
.ar-perk .i { width: 15px; height: 15px; color: var(--hi-deep); }
.ar-btns { margin-top: 14px; }
.ar-btns .btn { width: 100%; }

/* 리포트 보기 (앱 안 전체 화면) */
body.noscroll { overflow: hidden; }
.rview { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: var(--bg); transform: translateY(100%); transition: transform .5s var(--ease); }
.rview.open { transform: none; }
.rv-top { display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; border-bottom: 1px solid var(--line); background: var(--card); }
.rv-top b { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-x { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.rv-x .i { width: 19px; height: 19px; }
.rv-out { font-size: 13px; font-weight: 600; color: var(--sub); padding: 8px 10px; }
.rv-body { position: relative; flex: 1; }
.rv-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; opacity: 0; transition: opacity .4s; }
.rview.ready iframe { opacity: 1; }
.rv-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 14px; }

/* 요일 고르기 */
.dpick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.dpick button { aspect-ratio: 1; min-height: 42px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); font-weight: 700; font-size: 15px; color: var(--sub); cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .15s var(--ease); }
.dpick button:active { transform: scale(.94); }
.dpick button.on { background: var(--dark-btn); color: var(--dark-btn-ink); border-color: var(--dark-btn); }
.dquick { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 12px 2px 4px; }
.dquick .linkbtn { font-size: 13px; }

/* ============================================================ 뒤로가기: 왼쪽 끝 밀기 */
.wrap.swiping, .rview.swiping { will-change: transform; box-shadow: -18px 0 40px -18px rgba(15, 20, 40, .35); }
.wrap.enter.from-left > * { animation-name: fromleft; animation-duration: .5s; }
@keyframes fromleft { from { transform: translateX(-28px); } }

/* 처음 들어왔을 때 '폰 알림 받을까요?' */
.askpush { text-align: center; padding-top: 6px; }
.askpush .ap-ic { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: var(--hi); color: var(--ink-strong); }
.askpush .ap-ic .i { width: 26px; height: 26px; }
.askpush h2 { margin: 0 0 8px; }
.askpush .sub { margin: 0 0 6px; }
.askpush .hint { margin: 0; }

/* 고애드 홈페이지로 가는 길 */
.foot .foot-goad { color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--hi-strong); text-underline-offset: 3px; }
.hero a.chip { text-decoration: none; transition: border-color .25s, background .25s; }
.hero a.chip:hover { border-color: var(--line-2); background: var(--soft); }
.hero a.chip .i { width: 13px; height: 13px; margin-left: 1px; color: var(--muted); }

/* ============================================================ 처음 화면 (로그인 전) */
.lp { text-align: center; padding: 30px 0 6px; }
.lp-logo { width: 176px; margin: 0 auto 18px; }
.lp-logo img { display: block; width: 100%; height: auto; }
.lp-logo .lg-d { display: none; }
:root[data-theme="dark"] .lp-logo .lg-l { display: none; } :root[data-theme="dark"] .lp-logo .lg-d { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lp-logo .lg-l { display: none; } :root:not([data-theme="light"]) .lp-logo .lg-d { display: block; } }
.lp-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--sub); background: var(--card); border: 1px solid var(--line); padding: 5px 10px 5px 9px; border-radius: 99px; text-decoration: none; }
.lp-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px var(--up-soft); }
.lp-chip .i { width: 13px; height: 13px; color: var(--muted); }
.lp h1 { font-size: 34px; line-height: 1.25; margin: 16px 0 12px; letter-spacing: -.045em; }
.lp-lead { font-size: 15.5px; color: var(--sub); line-height: 1.7; margin: 0; }
.lp-lead b { color: var(--ink-strong); }
.lp-cta { display: grid; gap: 10px; margin: 24px auto 0; max-width: 420px; }
.lp-cta .btn { min-height: 54px; font-size: 16.5px; }
.lp-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.lp-trust span { display: inline-flex; align-items: center; gap: 5px; }
.lp-trust span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--up-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F7A45' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 12 10 16 18 8'/%3E%3C/svg%3E") no-repeat center/9px; }
.lp-show { position: relative; margin: 30px 0 8px; padding: 22px 18px 20px; border-radius: 28px; background: radial-gradient(90% 80% at 90% 0%, #2E3866 0%, transparent 60%), linear-gradient(160deg, #1c2143, #121630); overflow: hidden; }
.lp-noti { position: relative; z-index: 1; display: flex; gap: 11px; align-items: center; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .97); color: #161D30; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); text-align: left; }
.lp-noti.two { margin: 9px 14px 0; opacity: .9; transform: scale(.97); }
.lp-noti img { width: 38px; height: 38px; border-radius: 10px; flex: none; box-shadow: 0 0 0 1px rgba(28, 33, 67, .1); }
.lp-noti > div { flex: 1; min-width: 0; }
.lp-noti b { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 800; }
.lp-noti b small { font-weight: 500; color: #8A90A3; font-size: 12px; flex: none; }
.lp-noti span { display: block; font-size: 13px; color: #3B4258; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-noti strong { color: #1c2143; }
.lp-rank { margin-top: 16px; color: #FBE4E1; text-align: left; padding: 4px 4px 0; }
.lr-top { display: flex; justify-content: space-between; font-size: 12.5px; color: rgba(251, 228, 225, .7); font-weight: 600; }
.lr-mid { display: flex; align-items: flex-end; gap: 10px; margin: 2px 0 6px; }
.lr-mid b { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.lr-mid b small { font-size: 22px; margin-left: 4px; color: #fff; }
.lr-mid em { font-style: normal; display: inline-flex; align-items: center; gap: 3px; margin-bottom: 8px; padding: 5px 11px; border-radius: 99px; background: rgba(108, 197, 138, .2); color: #8BE0A7; font-size: 13.5px; font-weight: 700; }
.lr-mid em .i { width: 14px; height: 14px; }
.lp-rank svg { display: block; width: 100%; height: 52px; }
.lp-steps { margin: 26px 0 4px; }
.lp-steps h2 { font-size: 19px; margin: 0 0 12px; text-align: center; }
.lp-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lp-steps li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.lp-steps .no { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--dark-btn); color: var(--dark-btn-ink); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.lp-steps b { display: block; font-size: 15px; }
.lp-steps li span:not(.no) { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }
@media (min-width: 720px) { .lp h1 { font-size: 40px; } .lp-logo { width: 200px; } }

/* ============================================================ PRO 2주 무료 체험 */
.trs-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--ink-strong); background: var(--hi); padding: 5px 11px 5px 9px; border-radius: 99px; }
.trs-badge .i { width: 14px; height: 14px; }
.trs-top { text-align: center; padding: 4px 0 6px; }
.trs-top h2 { font-size: 23px; line-height: 1.32; margin: 12px 0 0; letter-spacing: -.035em; }
.trs-top h2 em { font-style: normal; color: var(--hi-deep); }
.trs-why { margin: 10px 0 0; font-size: 13.5px; color: var(--sub); }
.trs-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 2px; }
.trs-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.trs-list li:last-child { border-bottom: 0; }
.trs-list li > .i { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--up-soft); color: var(--up); stroke-width: 2.6; margin-top: 1px; }
.trs-list b { display: block; font-size: 15px; color: var(--ink-strong); }
.trs-list span { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }
.trs-safe { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); font-size: 13.5px; line-height: 1.55; color: var(--sub); }
.trs-safe .i { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--ink-strong); }
.trs-safe b { color: var(--ink-strong); }
.lk-safe { display: block; margin-top: 9px; font-size: 12.5px; color: var(--muted); }
.trcard { position: relative; margin: 0 0 14px; padding: 18px 18px 16px; border-radius: 22px; background: radial-gradient(90% 90% at 100% 0%, var(--hi) 0%, transparent 65%), var(--card); border: 1px solid var(--hi-strong); box-shadow: var(--shadow); }
.trcard > b { display: block; margin: 10px 0 4px; font-size: 16.5px; line-height: 1.42; letter-spacing: -.025em; color: var(--ink-strong); }
.trcard p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.trx { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.trx .i { width: 16px; height: 16px; }
.trchip { display: flex; width: 100%; align-items: center; gap: 9px; margin: 0 0 14px; padding: 11px 14px; border-radius: 16px; border: 1px solid var(--hi-strong); background: var(--brand-soft); color: var(--sub); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.trchip > .i:first-child { flex: none; width: 18px; height: 18px; color: var(--hi-deep); }
.trchip span { flex: 1; min-width: 0; }
.trchip b { color: var(--ink-strong); }
.trchip .chev { width: 16px; height: 16px; color: var(--muted); }
.trchip.soon { background: var(--warn-soft); border-color: transparent; }
.trchip.soon > .i:first-child { color: var(--warn); }
.pcard .ptr { display: inline-flex; align-items: center; gap: 4px; margin-top: 7px; font-size: 12px; font-weight: 700; color: var(--hi-deep); }
.pcard .ptr .i { width: 13px; height: 13px; }
.pcard .pr2 s { display: block; font-size: 12px; font-weight: 500; color: var(--muted); text-align: right; letter-spacing: 0; }
.pcard.trial { background: radial-gradient(80% 120% at 100% 0%, var(--hi) 0%, transparent 70%), var(--card); }

/* ============================================================ 카톡 · 앱 안 브라우저 안내 (처음 화면 맨 위) */
.inapp { margin: 14px 0 4px; padding: 16px; border-radius: 20px; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); }
.ia-t { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 12px; }
.ia-ic { flex: none; width: 34px; height: 34px; border-radius: 11px; background: var(--card); color: var(--warn); display: grid; place-items: center; }
.ia-ic .i { width: 18px; height: 18px; }
.ia-t b { display: block; font-size: 16px; color: var(--ink-strong); }
.ia-t span { display: block; font-size: 13.5px; color: var(--sub); margin-top: 2px; line-height: 1.5; }
.inapp .btn { min-height: 50px; }
.inapp .linkbtn { display: block; margin: 10px auto 0; }

/* 대표 검색어 찾는 중 */
.rh-load { display: flex; gap: 6px; margin: 4px 0 2px; }
.rh-load i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .35; animation: rhl 1.6s ease-in-out infinite; }
.rh-load i:nth-child(2) { animation-delay: .25s; } .rh-load i:nth-child(3) { animation-delay: .5s; }
@keyframes rhl { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: .9; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .rh-load i { animation: none; } }

/* ------------------------------------------------------------ 셀프 리워드 */
.rw-entry { display: flex; align-items: center; gap: 14px; width: 100%; margin: 14px 0; padding: 16px 18px; border: 1px solid var(--hi-strong); border-radius: var(--r); background: linear-gradient(135deg, var(--brand-soft), var(--hi)); color: var(--ink); text-align: left; cursor: pointer; box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.rw-entry:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.rw-entry .ic { width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--dark-btn); color: var(--dark-btn-ink); }
.rw-entry .t { flex: 1; min-width: 0; }
.rw-entry b { display: flex; align-items: center; gap: 6px; font-size: 16px; color: var(--ink-strong); }
.rw-entry b i { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; color: var(--dark-btn-ink); background: var(--hi-deep); padding: 2px 6px; border-radius: 6px; }
.rw-entry .t > span { display: block; margin-top: 2px; font-size: 13px; color: var(--sub); }
.rw-sec { position: relative; padding-top: 22px; }
.rw-sec h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.rw-no { position: absolute; top: 22px; left: 20px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; background: var(--dark-btn); color: var(--dark-btn-ink); }
.rw-sec h2 { padding-left: 34px; min-height: 24px; }
.rw-store { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--soft); }
.rw-store b { font-size: 15.5px; color: var(--ink-strong); }
.rw-prod { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.rw-pc { position: relative; display: grid; justify-items: center; gap: 2px; padding: 16px 6px 12px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--card); color: var(--ink); cursor: pointer; transition: border-color .45s var(--ease), background-color .45s var(--ease); }
.rw-pc b { font-size: 14px; }
.rw-pc span { font-size: 24px; font-weight: 800; letter-spacing: -.03em; color: var(--ink-strong); }
.rw-pc span small { font-size: 13px; font-weight: 700; margin-left: 1px; }
.rw-pc em { font-style: normal; font-size: 12px; color: var(--muted); }
.rw-pc i { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 800; color: var(--dark-btn-ink); background: var(--dark-btn); padding: 2px 9px; border-radius: 99px; }
.rw-pc.on { border-color: var(--dark-btn); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--dark-btn) inset; }
.rw-step { display: grid; grid-template-columns: 52px 1fr auto 52px; gap: 8px; align-items: center; }
.rw-step .in { text-align: center; font-size: 20px; font-weight: 800; color: var(--ink-strong); }
.rw-step > span { font-size: 14px; color: var(--sub); }
.rw-step button { height: 52px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--card); font-size: 22px; color: var(--ink); cursor: pointer; }
.rw-step button:hover { background: var(--soft); }
.rw-dx { grid-template-columns: 120px auto; margin-top: 8px; }
.rw-days button { padding: 10px 4px; }
.rw-sum { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--soft); display: grid; gap: 8px; }
.rw-sum div { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--sub); }
.rw-sum div b { color: var(--ink); white-space: nowrap; }
.rw-sum small { color: var(--muted); }
.rw-sum .tot { padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 15px; font-weight: 700; color: var(--ink-strong); }
.rw-sum .tot b { font-size: 22px; font-weight: 800; color: var(--ink-strong); letter-spacing: -.02em; }
.rw-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rw-pay button { text-align: left; padding: 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--card); color: var(--ink); cursor: pointer; transition: border-color .45s var(--ease), background-color .45s var(--ease); }
.rw-pay button b { display: block; font-size: 15px; color: var(--ink-strong); }
.rw-pay button span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--sub); line-height: 1.45; }
.rw-pay button.on { border-color: var(--dark-btn); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--dark-btn) inset; }
.rw-chk { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14.5px; color: var(--ink); cursor: pointer; line-height: 1.5; }
.rw-chk input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--dark-btn); flex: none; }
.rw-chk b { color: var(--hi-deep); } .rw-chk b.opt { color: var(--muted); }
.rw-terms { margin: 6px 0 0 30px; font-size: 13px; color: var(--sub); }
.rw-terms summary { cursor: pointer; color: var(--muted); }
.rw-terms p { margin: 8px 0 0; line-height: 1.7; }
.rw-ord { padding: 18px 20px; }
.rw-oh { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rw-oh b { font-size: 16px; color: var(--ink-strong); }
.rw-st { flex: none; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--soft); color: var(--sub); }
.rw-st.wait { background: var(--warn-soft); color: var(--warn); }
.rw-st.ok { background: var(--up-soft); color: var(--up); }
.rw-om { margin: 6px 0 0; font-size: 13.5px; color: var(--sub); }
.rw-ot { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.rw-ot b { font-size: 18px; color: var(--ink-strong); }
.rw-bank { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; margin-top: 12px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--brand-soft); border: 1px dashed var(--hi-strong); }
.rw-bank span { grid-column: 1; font-size: 12px; color: var(--muted); }
.rw-bank b { grid-column: 1; font-size: 16px; color: var(--ink-strong); }
.rw-bank small { grid-column: 1; font-size: 12.5px; color: var(--sub); }
.rw-bank .btn { grid-column: 2; grid-row: 1 / span 3; }
.rw-ord .hint { margin-top: 10px; }
.rw-ord .btn.block { margin-top: 12px; }
.rw-cx { display: block; margin: 10px 0 0 auto; font-size: 13px; color: var(--muted); }
@media (max-width: 380px) { .rw-pc span { font-size: 20px; } .rw-pay { grid-template-columns: 1fr; } }
