/* 씨드림 UX 통합 제안 와이어프레임 공통 스타일 (v2 · 동작 인터랙션 포함)
   색상: assets/tokens.css의 브랜드 6종(--blue 등)을 참조, surface·ink 계열은 여기서 자체 정의 */

:root {
  --surface: #f4f5f7;
  --surface-card: #ffffff;
  --surface-sunken: #eef0f3;
  --ink: #0f172a;
  --ink-soft: #586878;
  --ink-faint: #98a2b3;
  --line: #e6e8ec;
  /* 씨드림 실제 브랜드 컬러 (로고 실측, 2026-08-09): 네이비 워드마크 / 그린 새싹 심볼 */
  --primary: #184888;
  --primary-ink: #10366a;
  --primary-wash: #eef3fa;
  --accent: #28a058;
  --accent-wash: #e8f6ed;
  --reward: #28a058;
  --reward-wash: #e8f6ed;
  --danger-strike: #b6bcc6;
  --live-red: #e5484d;
  /* 그림자 스케일 (카드 위계 통일) */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 16px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.06);
}

/* ── 타입 스케일 (v3 · 폰트 통일) ─────────────────────────
   본문: Pretendard(시스템 폴백) / 숫자(금액·잔액·헤드라인): tabular-nums + 타이트 트래킹으로
   자릿수가 흔들리지 않는 "디스플레이" 처리를 별도로 준다. */
:root {
  --fs-2xs: 10px;
  --fs-xs: 11px;
  --fs-sm: 12.5px;
  --fs-base: 13.5px;
  --fs-md: 15px;
  --fs-lg: 17px;
  --fs-xl: 20px;
  --fs-2xl: 26px;
  --tracking-display: -0.02em;
}

* { box-sizing: border-box; }

/* ══════════════════════════════════════════════════════════
   Pretendard
   이름만 적어두면 이 서체가 깔린 기기에서만 제대로 보인다.
   미팅에서 어떤 노트북으로 열지 모르니 파일을 같이 싣는다.
   원본 OTF 는 1.5MB씩이라 KS X 1001 2350자와 실제로 쓰는 글자만
   남겨 170KB 안팎으로 줄였다(assets/fonts).
   ══════════════════════════════════════════════════════════ */
@font-face {
  font-family: "Pretendard";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/Pretendard-Regular.subset.woff2") format("woff2");
}
@font-face {
  font-family: "Pretendard";
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/Pretendard-Bold.subset.woff2") format("woff2");
}
@font-face {
  font-family: "Pretendard";
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/Pretendard-ExtraBold.subset.woff2") format("woff2");
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--surface-sunken);
  font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 0;
  background:
    radial-gradient(1100px 620px at 50% -10%, #e7edf6 0%, transparent 62%),
    var(--surface-sunken);
}
body.is-locked { overflow: hidden; }

@media (max-width: 480px) {
  body { padding: 0; display: block; }
  .screen { width: 100vw; }
}

/* 실제 단말처럼 보이도록 고정 크기 프레임으로 두고, 내용은 프레임 안에서 스크롤한다.
   높이를 min-height로 두면 내용이 길어질 때 페이지가 통째로 늘어난다. */
.screen {
  width: 390px;
  height: 844px;
  max-height: calc(100vh - 48px);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: 44px;
  border: 10px solid #10131a;
  box-shadow:
    0 2px 0 1px rgba(255, 255, 255, 0.35) inset,
    0 28px 60px -12px rgba(15, 23, 42, 0.42),
    0 8px 20px -6px rgba(15, 23, 42, 0.22);
}
/* 상단 노치 */
.screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 132px;
  height: 26px;
  background: #10131a;
  border-radius: 0 0 16px 16px;
  z-index: 80;
  pointer-events: none;
}
/* 하단 홈 인디케이터 */
.screen::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 128px;
  height: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.28);
  z-index: 80;
  pointer-events: none;
}
.screen__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
}
.screen__scroll::-webkit-scrollbar { display: none; }


/* ── 상단 Safe Area ─────────────────────────────────────────────
   노치·상태바 영역을 별도 밴드가 차지한다. 스크롤 영역에 padding 을 주면
   콘텐츠가 노치 밑으로 파고들며 스크롤된다. */
.screen__status {
  flex: 0 0 auto;
  height: calc(28px + env(safe-area-inset-top, 0px));
  padding: 0 26px;
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-card);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 30;
}
.screen__status-icons { display: flex; align-items: center; gap: 5px; }
.screen__status-icons svg { display: block; }

/* 좌우 안전영역: 노치 단말의 가로 인셋 */
.screen__scroll,
.tabbar {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
/* 하단 홈 인디케이터 영역 */
.tabbar { padding-bottom: max(8px, env(safe-area-inset-bottom, 0px)); }

/* 프레임 안에 갇혀야 하는 요소들. viewport 기준(fixed)이면 프레임을 벗어난다. */
.sheet-overlay { position: absolute; }
.toast { position: absolute; bottom: 96px; }

/* 실제 모바일에서 볼 때는 프레임을 걷어내고 화면을 꽉 채운다. */
@media (max-width: 460px), (max-height: 720px) {
  body { padding: 0; background: var(--surface); align-items: stretch; }
  .screen {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .screen::before, .screen::after { display: none; }
  .screen__status { height: calc(20px + env(safe-area-inset-top, 0px)); }
}

button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

/* 금액·잔액·수량 등 모든 숫자 표기는 자릿수가 흔들리지 않도록 tabular-nums 고정 */
.balance-card__amount,
.wallet-pill strong,
.wallet-hero__amount,
.wallet-bucket__amount,
.mall-pill__balance,
.product-card__price-list,
.product-card__price-sale,
.pd-info__price-list,
.pd-info__discount,
.pd-info__price-sale,
.pd-total-row strong,
.stepper__value,
.order-item__price,
.charge-preview strong,
.pay-summary-box .row span,
.timedeal__timer,
.amount-btn,
.reward-badge,
.balance-mini strong,
.txn-row__amount,
.qr-balance strong {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* 히어로급 금액(잔액·최종가)은 더 굵고 타이트하게 - 디스플레이 처리 */
.balance-card__amount,
.wallet-hero__amount,
.pd-info__price-sale,
.wallet-pill strong {
  letter-spacing: var(--tracking-display);
}

/* ── 인터랙션 전환(최소 적용, 0.15~0.2s) ───────────────────────── */
.cat-chip,
.amount-btn,
.pay-option,
.product-card,
.tab,
.icon-btn,
.pd-tab {
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

/* ── 유지/제안 라벨 칩 ───────────────────────── */
.chip-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  z-index: 5;
  white-space: nowrap;
}
.chip-tag--keep {
  background: #e9eaee;
  color: #6b7280;
}
.chip-tag--suggest {
  background: var(--primary);
  color: #ffffff;
}
.chip-tag--static { position: static; }

/* ── 상단바 ───────────────────────── */
.topbar {
  height: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--surface-card);
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.topbar .logo {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.topbar .logo-img {
  height: 22px;
  width: auto;
  display: block;
}
.icon-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--ink);
  padding: 0;
  text-decoration: none;
  flex: 0 0 auto;
}
.icon-btn svg { width: 20px; height: 20px; display: block; }

/* ── 상단바: 지갑 잔액 상시 노출 (계좌 탭 분리 문제 해결) ───── */
.topbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.wallet-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px 0 9px;
  border-radius: 999px;
  background: var(--primary-wash);
  color: var(--primary-ink);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.wallet-pill svg { width: 13px; height: 13px; flex: 0 0 auto; }
.wallet-pill strong { font-weight: 800; }

.topbar--sub { justify-content: flex-start; gap: 4px; position: relative; }
.topbar--sub h1 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}

/* ── 검색바 ───────────────────────── */
.searchbar {
  flex: 0 0 auto;
  margin: 12px 16px 0;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 600;
}
.searchbar svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* ── 홈: 통합 몰 스위처 (씨드림몰/공구샵/포인트몰/기프트쿠폰 단일 컴포넌트) ─────
   클라이언트 피드백: "몰 4개가 제각각 다르게 보인다" → 동일 카드/타이포로 통일 */
.mall-switcher {
  position: relative;
  margin: 14px 16px 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex: 0 0 auto;
}
.mall-pill {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 7px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface-card);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.mall-pill.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}
.mall-pill__flag {
  width: 6px;
  height: 6px;
  margin-left: 3px;
  border-radius: 50%;
  background: #e5a33c;
  font-size: 0;
  color: transparent;
  flex: 0 0 6px;
  align-self: center;
}

/* ── 홈: 서비스 진입 아이콘 그리드 (QR·충전·지갑·CS 복원) ───── */
/* 기존 씨드림 홈의 큐레이션 진입 8종 (2x4). 서비스 이동(service-grid)과
   성격이 달라 시각적으로 분리한다. */
.entry-grid {
  position: relative;
  margin: 12px 16px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 12px 8px 10px;
  background: var(--surface-2, #f6f8fb);
  border-radius: 14px;
  flex: 0 0 auto;
}
.entry-grid__item {
  appearance: none;
  border: none;
  background: none;
  padding: 7px 2px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2, #475569);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.entry-grid__item:hover,
.entry-grid__item:focus-visible { background: #fff; color: var(--blue); }

.service-grid {
  position: relative;
  margin: 14px 16px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  flex: 0 0 auto;
}
.service-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  background: none;
  border: none;
  padding: 8px 2px;
  border-radius: 14px;
  color: var(--ink);
  font-family: inherit;
}
.service-grid__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-wash);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.service-grid__icon svg { width: 21px; height: 21px; }
.service-grid__item--qr .service-grid__icon { background: var(--accent-wash); color: var(--accent); }
.service-grid__label { font-size: 11.5px; font-weight: 700; }

/* ── 버튼 공통 ───────────────────────── */
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary:disabled { background: #c6ccd6; cursor: default; }
.btn-outline {
  background: #ffffff;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-block { width: 100%; height: 52px; }

/* ── 홈: 잔액 카드 ───────────────────────── */
.balance-card {
  position: relative;
  margin: 12px 16px 0;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-ink) 100%);
  border-radius: 16px;
  color: #ffffff;
  box-shadow: var(--shadow-md);
  flex: 0 0 auto;
}
.balance-card__label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
}
.balance-card__amount {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}
.balance-card__amount span {
  font-size: 15px;
  font-weight: 600;
  margin-left: 2px;
}
.balance-card__row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.balance-card .btn-charge {
  height: 38px;
  padding: 0 18px;
  font-size: 14px;
  background: #ffffff;
  color: var(--primary-ink);
}
.balance-card__reward {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
}
/* 헤더의 전체 지갑 금액과 이 카드의 충전금이 어떻게 이어지는지 한 줄로 밝힌다.
   두 숫자가 설명 없이 나란히 놓이면 오류처럼 읽힌다. */
.balance-card__breakdown {
  margin: 6px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
}
.balance-card__total {
  margin-left: auto;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.45);
  white-space: nowrap;
}

/* ── 홈: 충전 달성 게이지 (현행 유지 기능) ───────────────────────── */
.charge-gauge {
  position: relative;
  margin: 12px 16px 0;
  padding: 14px 16px 16px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
}
.charge-gauge__title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}
.charge-gauge__bar {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-sunken);
  overflow: hidden;
}
.charge-gauge__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, #1c7a44 100%);
}
.charge-gauge__labels {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-faint);
}
.charge-gauge__note {
  margin: 10px 0 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}
.charge-gauge__note strong { color: var(--accent); font-size: 14px; }
.charge-gauge__remain {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ── 홈: 라이브 커머스 (추후 단계 제안) ───────────────────────── */
.live-commerce {
  position: relative;
  margin-top: 16px;
  padding: 0 16px;
  flex: 0 0 auto;
}
.section-note {
  margin-left: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-faint);
  background: var(--surface-sunken);
  padding: 2px 6px;
  border-radius: 5px;
  vertical-align: middle;
}
.more-link {
  font-size: 11px;
  color: var(--ink-faint);
  font-weight: 600;
  text-decoration: none;
}
.live-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}
.live-card {
  flex: 0 0 124px;
  text-decoration: none;
  color: inherit;
}
.live-card__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: repeating-linear-gradient(45deg, #dfe2e7, #dfe2e7 7px, #d3d7de 7px, #d3d7de 14px);
  background-image: var(--shot, none);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.live-card__badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(15,23,42,0.75);
  color: #fff;
}
.live-card__badge--live { background: var(--live-red); }
.live-card__title {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-card__meta {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--ink-faint);
}

/* ── 홈: 통합 카테고리 칩 ───────────────────────── */
.cat-scroll {
  position: relative;
  margin-top: 16px;
  padding: 24px 16px 0;
  flex: 0 0 auto;
}
.cat-scroll .chip-tag { top: 0; }
.cat-scroll__track {
  position: relative;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.cat-scroll::after {
  content: '';
  position: absolute;
  top: 24px;
  right: 0;
  bottom: 0;
  width: 28px;
  background: linear-gradient(to right, rgba(244, 245, 247, 0), var(--surface) 75%);
  pointer-events: none;
}
.cat-chip {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-card);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.cat-chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}
.cat-chip[disabled] { opacity: 0.55; }
.cat-chip--link { background: var(--accent-wash); color: var(--accent); border-color: transparent; }

/* ── 홈: 배너 ───────────────────────── */
.banner-placeholder {
  margin: 14px 16px 0;
  height: 64px;
  border-radius: 12px;
  background: repeating-linear-gradient(135deg, #e2e5ea, #e2e5ea 8px, #dadde3 8px, #dadde3 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 600;
  flex: 0 0 auto;
}
/* 실제 배너 원본은 394x436(0.904:1) 세로형이다. 이전에 쓰던 768x432 파일은
   원본을 가로로 잘라낸 것이라 사과가 잘려 보였다.
   1:1 박스에 contain 으로 담아 잘림 없이 정사각으로 보여준다. */
.banner {
  position: relative;
  margin: 12px 16px 0;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: #fabec2;
  flex: 0 0 auto;
}
.banner__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.banner__track::-webkit-scrollbar { display: none; }
.banner__img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  scroll-snap-align: center;
  display: block;
}
.banner__dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}
.banner__dots button {
  width: 6px; height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.25);
  cursor: pointer;
}
.banner__dots button.is-active { background: rgba(15, 23, 42, 0.7); width: 16px; border-radius: 999px; }

/* ── 홈: 타임특가 ───────────────────────── */
.timedeal {
  position: relative;
  margin-top: 16px;
  padding: 0 16px;
  flex: 0 0 auto;
}
.timedeal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.timedeal__head h3 { margin: 0; font-size: 15px; font-weight: 800; }
.timedeal__timer {
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  background: var(--ink);
  border-radius: 6px;
  padding: 3px 8px;
}

/* ── 홈: 큐레이션 / 상품 카드 ───────────────────────── */
.curation {
  position: relative;
  margin-top: 16px;
  padding: 0 16px;
  flex: 0 0 auto;
}
.curation__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.curation__head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}
.curation__empty {
  display: none;
  font-size: 12px;
  color: var(--ink-faint);
  padding: 18px 0;
  text-align: center;
  background: var(--surface-card);
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.curation.is-empty .product-row { display: none; }
.curation.is-empty .curation__empty { display: block; }

.product-row {
  display: flex;
  gap: 10px;
}
.product-card {
  flex: 1 1 0;
  min-width: 0;
  background: var(--surface-card);
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.product-card.is-hidden { display: none; }
.product-card__img {
  aspect-ratio: 1 / 1;   /* 크롤링 원본이 1:1 정사각이라 비율을 맞춰 잘림 방지 */
  background: repeating-linear-gradient(45deg, #e7e9ee, #e7e9ee 7px, #dde0e6 7px, #dde0e6 14px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.product-card__img--photo {
  background-image: var(--shot);
  background-size: cover;
}
.product-card__body {
  padding: 8px 9px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card__name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__price-row {
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.product-card__price-list {
  font-size: 11px;
  color: var(--ink-faint);
  text-decoration: line-through;
  text-decoration-color: var(--danger-strike);
}
.product-card__price-sale {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-ink);
}
.product-card__badge {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--accent-wash);
  color: var(--accent);
}
.product-card__badge--reward {
  background: var(--reward-wash);
  color: var(--reward);
}

/* ── 홈/크리에이터: 프로필 원형 ───────────────────────── */
.creator-preview, .creator-list {
  position: relative;
  margin-top: 16px;
  padding: 0 16px;
  flex: 0 0 auto;
}
.creator-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 4px;
}
.creator-avatar {
  flex: 0 0 auto;
  width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
.creator-avatar__img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: repeating-linear-gradient(45deg, #e2e5ea, #e2e5ea 6px, #d6d9e0 6px, #d6d9e0 12px);
  border: 2px solid var(--surface-card);
  box-shadow: 0 0 0 1.5px var(--line), var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  position: relative;
}
.creator-avatar__img--tone-a { background: var(--primary-wash); color: var(--primary); }
.creator-avatar__img--tone-b { background: var(--accent-wash); color: var(--accent); }
.live-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── 홈: 하단 탭바 ───────────────────────── */
.tabbar {
  position: sticky;
  padding-bottom: 8px;
  bottom: 0;
  margin-top: auto;
  height: 68px;
  min-height: 68px;
  display: flex;
  background: var(--surface-card);
  border-top: 1px solid var(--line);
  z-index: 20;
  flex: 0 0 auto;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--ink-faint);
  font-size: 10.5px;
  font-weight: 600;
  padding: 6px 0 8px;
  text-decoration: none;
}
.tab svg { width: 20px; height: 20px; }
.tab.is-active { color: var(--primary); }

/* 실제 씨드림 앱의 중앙 QR 원형 버튼 구조를 그대로 복원 (하단탭 5개 고정, 전 화면 동일) */
.tab--qr { color: var(--ink-faint); }
.tab--qr .tab__fab {
  width: 44px;
  height: 44px;
  margin-top: -20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, #1c7a44 100%);
  color: #ffffff;
  border: 4px solid var(--surface-card);
  box-shadow: 0 6px 14px rgba(40, 160, 88, 0.38), 0 2px 4px rgba(15, 23, 42, 0.12);
}
.tab--qr .tab__fab svg { width: 19px; height: 19px; }
.tab--qr.is-active { color: var(--accent); }

/* ── 충전/결제: 공통 서브 요소 ───────────────────────── */
.balance-mini {
  margin: 16px 16px 0;
  padding: 14px 16px;
  background: var(--primary-wash);
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
}
.balance-mini strong { color: var(--primary-ink); font-size: 19px; font-weight: 800; margin-left: 4px; }

.amount-grid {
  margin: 20px 16px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  flex: 0 0 auto;
}
.amount-btn {
  position: relative;
  height: 84px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface-card);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
}
.amount-btn.is-selected {
  border-color: var(--primary);
  background: var(--primary-wash);
  color: var(--primary-ink);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-sm);
}
.amount-btn__recommend {
  position: absolute;
  top: -1.5px;
  left: -1.5px;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 8px 0 8px 0;
  background: var(--primary);
  color: #ffffff;
  letter-spacing: 0.02em;
}
.amount-btn .reward-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--reward-wash);
  color: var(--reward);
  white-space: nowrap;
}
.amount-btn .reward-badge--hero {
  font-size: 10.5px;
  padding: 3px 8px;
}
.amount-btn .chip-tag {
  top: -7px;
  right: -7px;
}

.amount-custom-input {
  margin: 10px 16px 0;
  display: none;
  flex: 0 0 auto;
}
.amount-custom-input.is-open { display: block; }
.amount-custom-input input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1.5px solid var(--primary);
  background: var(--primary-wash);
  padding: 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-ink);
  font-family: inherit;
}
.amount-custom-input input::placeholder { color: var(--ink-faint); font-weight: 600; }

.reward-note {
  margin: 12px 16px 0;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
  flex: 0 0 auto;
}

.charge-goal-note {
  margin: 10px 16px 0;
  padding: 10px 12px;
  background: var(--accent-wash);
  color: #1c7a44;
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  text-align: center;
  flex: 0 0 auto;
}

.cta-fixed {
  position: sticky;
  bottom: 60px;
  margin-top: auto;
  padding-top: 16px;
}
.cta-fixed, .pd-cta-fixed {
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 14px;
  background: var(--surface-card);
  border-top: 1px solid var(--line);
  z-index: 15;
  flex: 0 0 auto;
}
.cta-fixed + .tabbar,
.pd-cta-fixed + .tabbar {
  margin-top: 0;
}
.charge-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-soft);
  padding: 3px 2px;
}
.charge-preview strong { color: var(--ink); font-size: 13.5px; }
.charge-preview--reward strong { color: var(--reward); }
.cta-fixed .footnote {
  margin: 8px 0 0;
  font-size: 10.5px;
  color: var(--ink-faint);
  line-height: 1.5;
  text-align: center;
}

/* ── 결제 화면 ───────────────────────── */
.shipping-card {
  margin: 16px 16px 0;
  padding: 12px 14px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.shipping-card__icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-wash);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.shipping-card__icon svg { width: 16px; height: 16px; }
.shipping-card__body { flex: 1; min-width: 0; }
.shipping-card__label { font-size: 10.5px; font-weight: 700; color: var(--ink-faint); }
.shipping-card__addr {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shipping-card__action {
  flex: 0 0 auto;
  background: none;
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
  padding: 4px 0 4px 6px;
}

.order-summary {
  margin: 16px 16px 0;
  padding: 12px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
}
.order-item { display: flex; align-items: center; gap: 10px; }
.thumb-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  flex: 0 0 auto;
  background: repeating-linear-gradient(45deg, #e7e9ee, #e7e9ee 6px, #dde0e6 6px, #dde0e6 12px);
  background-image: var(--shot, none);
  background-size: cover;
  background-position: center;
}
.order-item__info { flex: 1; min-width: 0; }
.order-item__name {
  font-size: 13.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-item__qty {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--ink-faint);
}
.order-item__price {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.section-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.section-head h3 { margin: 0; font-size: 14px; font-weight: 800; }
.section-head .chip-tag { position: static; }

.pay-method { margin: 16px 16px 0; flex: 0 0 auto; }
.pay-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface-card);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  margin-top: 8px;
  cursor: pointer;
}
.pay-option:first-of-type { margin-top: 0; }
.pay-option.is-selected {
  border-color: var(--primary);
  background: var(--primary-wash);
}
.pay-option input { accent-color: var(--primary); width: 16px; height: 16px; flex: 0 0 auto; }
.pay-option__main { flex: 1; min-width: 0; }
.pay-option__title { display: block; font-size: 14px; font-weight: 800; color: var(--ink); }
.pay-option__sub { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-faint); font-weight: 600; }
.pay-option.is-selected .pay-option__sub { color: var(--primary-ink); }
.pay-option__benefit {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}
.badge-default {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  flex: 0 0 auto;
}

.incentive-banner {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 10px 16px 0;
  padding: 10px 12px;
  background: var(--reward-wash);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--reward);
  line-height: 1.5;
}
.incentive-banner.is-visible { display: flex; }
.incentive-banner__action {
  margin-left: auto;
  text-decoration: underline;
  cursor: pointer;
  flex: 0 0 auto;
}

.reward-toggle {
  margin: 16px 16px 0;
  padding: 12px 14px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
}
.reward-toggle__title { font-size: 13.5px; font-weight: 700; }
.reward-toggle__sub { margin-top: 2px; font-size: 11.5px; color: var(--ink-faint); }
.switch {
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: var(--line);
  position: relative;
  flex: 0 0 auto;
  border: none;
  padding: 0;
}
.switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15,23,42,0.25);
  transition: left 0.15s ease;
}
.switch.is-on { background: var(--primary); }
.switch.is-on .switch__knob { left: 19px; }

.pay-summary-box {
  margin: 16px 16px 0;
  padding: 14px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
}
.pay-summary-box .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 4px 0;
}
.pay-summary-box .row--total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1.5px solid var(--line);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}
.pay-summary-box .row--total span:last-child { font-size: 19px; color: var(--primary-ink); }

/* ── 상품 상세 ───────────────────────── */
.pd-image {
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  background: repeating-linear-gradient(45deg, #e7e9ee, #e7e9ee 10px, #dde0e6 10px, #dde0e6 20px);
  background-image: var(--shot, none);
  background-size: cover;
  background-position: center;
}
.pd-info { padding: 16px; flex: 0 0 auto; }
.pd-info__name { font-size: 16px; font-weight: 800; line-height: 1.4; }
.pd-info__price-list {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-faint);
  text-decoration: line-through;
  text-decoration-color: var(--danger-strike);
}
.pd-info__price-sale-row {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pd-info__discount { font-size: 18px; font-weight: 800; color: var(--primary); }
.pd-info__price-sale { font-size: 24px; font-weight: 800; color: var(--ink); }

.pd-banner {
  position: relative;
  margin: 0 16px;
  padding: 12px 14px;
  background: var(--reward-wash);
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--reward);
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.pd-options {
  margin: 16px 16px 0;
  padding: 14px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
}
.pd-option-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
}
.pd-option-row + .pd-option-row { border-top: 1px solid var(--line); }
.pd-option-row__label { font-size: 13px; font-weight: 700; color: var(--ink-soft); flex: 0 0 auto; }
.pd-select {
  flex: 1;
  min-width: 0;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 8px;
  font-size: 12px;
  font-family: inherit;
  color: var(--ink);
}
.stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stepper__btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.stepper__value { font-size: 14px; font-weight: 800; min-width: 18px; text-align: center; }
.pd-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}
.pd-total-row strong { font-size: 16px; color: var(--primary-ink); }

.pd-tabs {
  margin-top: 16px;
  display: flex;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.pd-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-faint);
  border-bottom: 2px solid transparent;
}
.pd-tab.is-active { color: var(--ink); border-bottom-color: var(--primary); }
.pd-tab-panels { padding: 18px 16px 24px; flex: 0 0 auto; }
.pd-tab-panel {
  display: none;
  flex-direction: column;
}
.pd-tab-panel.is-active { display: flex; }
.pd-tab-panel--placeholder {
  height: 140px;
  border-radius: 12px;
  background: repeating-linear-gradient(135deg, #eef0f3, #eef0f3 10px, #e6e8ec 10px, #e6e8ec 20px);
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 600;
  align-items: center;
  justify-content: center;
}
.pd-tab-panel.pd-tab-panel--placeholder.is-active { display: flex; }

/* ── 상품 상세: 상세정보 테이블 ───────────────────────── */
.pd-detail-table { border-top: 1px solid var(--line); }
.pd-detail-row {
  display: flex;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.pd-detail-row__label {
  flex: 0 0 84px;
  color: var(--ink-faint);
  font-weight: 600;
}
.pd-detail-row__value {
  flex: 1;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
}

.pd-cta-fixed {
  position: sticky;
  bottom: 60px;
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  gap: 10px;
}
.pd-cta-fixed .btn-outline { flex: 0 0 118px; height: 52px; }
.pd-cta-fixed .btn-primary { flex: 1; height: 52px; }

/* ── 크리에이터 ───────────────────────── */
.preview-badge {
  margin: 12px 16px 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
}
.preview-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
  flex: 0 0 auto;
}
.creator-feature {
  position: relative;
  margin-top: 16px;
  padding: 0 16px;
  flex: 0 0 auto;
}
.creator-feature__card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.creator-feature__img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  flex: 0 0 auto;
  background: repeating-linear-gradient(45deg, #e7e9ee, #e7e9ee 6px, #dde0e6 6px, #dde0e6 12px);
  background-image: var(--shot, none);
  background-size: cover;
  background-position: center;
}
.creator-feature__title { font-size: 13.5px; font-weight: 800; }
.creator-feature__sub { margin-top: 4px; font-size: 11.5px; color: var(--ink-faint); font-weight: 600; }

.short-videos {
  position: relative;
  margin-top: 16px;
  padding: 0 16px 20px;
  flex: 0 0 auto;
}
.short-videos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.short-video {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  background: repeating-linear-gradient(135deg, #dfe2e7, #dfe2e7 9px, #d3d7de 9px, #d3d7de 18px);
  background-image: var(--shot, none);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.short-video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.06) 0%, rgba(15,23,42,0.1) 60%, rgba(15,23,42,0.4) 100%);
}
.short-video svg {
  position: relative;
  width: 26px;
  height: 26px;
  color: rgba(255,255,255,0.95);
  filter: drop-shadow(0 1px 3px rgba(15,23,42,0.4));
}

/* ── 토스트 ───────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 150px;
  transform: translateX(-50%) translateY(8px);
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 60;
  white-space: nowrap;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── 완료 시트 / 오버레이 ───────────────────────── */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
  padding: 0;
}
.sheet-overlay.is-open { display: flex; }
.sheet {
  width: 100%;
  max-width: 390px;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  padding: 28px 22px 26px;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.14);
  text-align: center;
}
.sheet__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
}
.sheet h3 { margin: 0; font-size: 17px; font-weight: 800; }
.sheet p { margin: 8px 0 0; font-size: 13.5px; color: var(--reward); font-weight: 700; }
.sheet__actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}
.sheet__actions a { flex: 1; height: 48px; }
.sheet__actions button.btn-primary,
.sheet__actions button.btn-outline { flex: 1; height: 48px; border: none; }
.sheet__actions button.btn-outline { border: 1.5px solid var(--line); }

/* ── QR 스캔 화면 ───────────────────────── */
.qr-mode-toggle {
  margin: 14px 16px 0;
  display: flex;
  background: var(--surface-sunken);
  border-radius: 12px;
  padding: 4px;
  flex: 0 0 auto;
}
.qr-mode-btn {
  flex: 1;
  height: 38px;
  border: none;
  background: none;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  font-family: inherit;
}
.qr-mode-btn.is-active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.qr-stage.is-hidden { display: none; }

.qr-viewport {
  position: relative;
  margin: 18px 16px 0;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background: radial-gradient(120% 90% at 30% 15%, #1c2a44 0%, #0b1220 60%, #070c16 100%);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  flex: 0 0 auto;
}
.qr-viewport::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 16px 16px;
}
.qr-frame { position: absolute; inset: 16%; }
.qr-frame span {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 3px solid var(--accent);
  filter: drop-shadow(0 0 5px rgba(40, 160, 88, 0.6));
}
.qr-frame span:nth-child(1) { top: 0; left: 0; border-right: none; border-bottom: none; border-radius: 10px 0 0 0; }
.qr-frame span:nth-child(2) { top: 0; right: 0; border-left: none; border-bottom: none; border-radius: 0 10px 0 0; }
.qr-frame span:nth-child(3) { bottom: 0; left: 0; border-right: none; border-top: none; border-radius: 0 0 0 10px; }
.qr-frame span:nth-child(4) { bottom: 0; right: 0; border-left: none; border-top: none; border-radius: 0 0 10px 0; }
.qr-scanline {
  position: absolute;
  left: 16%;
  right: 16%;
  top: 16%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, #baf5cf 50%, var(--accent) 80%, transparent);
  box-shadow: 0 0 10px 1px rgba(40, 160, 88, 0.85);
  animation: qr-scan 2.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes qr-scan {
  0% { top: 16%; opacity: 0; }
  8% { opacity: 1; }
  50% { top: 84%; opacity: 1; }
  92% { opacity: 0; }
  100% { top: 16%; opacity: 0; }
}
.qr-viewport__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  margin: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.qr-actions {
  margin: 14px 16px 0;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex: 0 0 auto;
}
.qr-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
}
.qr-action-btn__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-card);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.qr-action-btn__icon svg { width: 19px; height: 19px; }
.qr-action-btn.is-on .qr-action-btn__icon { background: var(--ink); color: #ffd166; border-color: var(--ink); }

.qr-card {
  margin: 18px 16px 0;
  padding: 26px 20px 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  text-align: center;
  flex: 0 0 auto;
}
.qr-pattern { width: 176px; height: 176px; margin: 0 auto; display: block; }
.qr-card__name { margin: 16px 0 0; font-size: 15px; font-weight: 800; }
.qr-card__sub { margin: 4px 0 0; font-size: 12px; color: var(--ink-faint); font-weight: 600; }

.qr-balance {
  margin: 18px 16px 0;
  padding: 14px 16px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  flex: 0 0 auto;
}
/* 크기 지정이 없으면 flex 안에서 아이콘이 카드를 가득 채운다 */
.qr-balance > svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--ink-soft);
}
.qr-balance strong { margin-left: auto; font-size: 16px; font-weight: 800; color: var(--ink); }
.qr-balance__link {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  flex: 0 0 auto;
}

/* ── 지갑 화면 ───────────────────────── */
.wallet-hero {
  position: relative;
  margin: 12px 16px 0;
  padding: 18px 18px 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-ink) 100%);
  border-radius: 18px;
  color: #ffffff;
  box-shadow: var(--shadow-md);
  flex: 0 0 auto;
}
.wallet-hero__label { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.8); }
.wallet-hero__amount { margin-top: 6px; font-size: 30px; font-weight: 800; line-height: 1.1; }
.wallet-hero__amount span { font-size: 16px; font-weight: 600; margin-left: 2px; }
.wallet-hero__row { margin-top: 14px; display: flex; gap: 10px; }
.wallet-hero__row .btn-primary,
.wallet-hero__row .btn-outline { flex: 1; height: 42px; font-size: 13.5px; }
.wallet-hero__row .btn-primary { background: #ffffff; color: var(--primary-ink); }
.wallet-hero__row .btn-outline { background: rgba(255, 255, 255, 0.12); color: #ffffff; border-color: rgba(255, 255, 255, 0.4); }

.wallet-buckets {
  position: relative;
  margin-top: 16px;
  padding: 0 16px;
  flex: 0 0 auto;
}
.wallet-buckets__row { display: flex; gap: 10px; overflow-x: auto; }
.wallet-bucket {
  flex: 0 0 128px;
  padding: 12px 13px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.wallet-bucket__label { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--ink-faint); }
.wallet-bucket__dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.wallet-bucket__amount { display: block; margin-top: 8px; font-size: 15.5px; font-weight: 800; color: var(--ink); letter-spacing: var(--tracking-display); }
.wallet-bucket__note { display: block; margin-top: 3px; font-size: 10px; color: var(--ink-faint); font-weight: 600; }

.wallet-policy {
  position: relative;
  margin: 14px 16px 0;
  padding: 12px 14px;
  background: var(--surface-sunken);
  border-radius: 12px;
  font-size: 11.5px;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.6;
  flex: 0 0 auto;
}
.wallet-policy strong { color: var(--ink); font-weight: 800; }
/* 출금(C)과 환불(S)은 대상 포인트도 정책도 다르다. 한 줄로 뭉치면
   사용자가 자기 잔액으로 무엇을 할 수 있는지 알 수 없다. */
.wallet-policy__row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.wallet-policy__row + .wallet-policy__row { margin-top: 7px; }
.wallet-policy__tag {
  flex: 0 0 auto;
  min-width: 34px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  text-align: center;
  color: #fff;
}
.wallet-policy__tag--out { background: var(--primary); }
.wallet-policy__tag--refund { background: #2878c0; }
.wallet-policy__body { flex: 1 1 auto; }
.wallet-policy__note {
  margin: 8px 0 0;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-soft);
}

/* 출금/환불 시트: 실제 화면의 [출금]↔[환불] 토글을 그대로 따른다. */
.wd-seg {
  display: flex;
  gap: 4px;
  margin: 12px 0 10px;
  padding: 4px;
  background: var(--surface-sunken);
  border-radius: 10px;
}
.wd-seg__btn {
  flex: 1 1 0;
  appearance: none;
  border: none;
  background: none;
  padding: 8px 6px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
}
.wd-seg__btn.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.wd-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
}
.wd-panel__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 4px 0;
}
.wd-panel__row strong {
  color: var(--ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
/* 신청을 막는 안내다. 시트가 상속시키는 초록(성공) 색을 그대로 두면
   차단 사유가 완료 메시지처럼 읽히므로 경고 색으로 고정한다. */
.wd-note {
  margin: 9px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fdf4e3;
  color: #8a5a00 !important;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  line-height: 1.5;
}

/* 잔액 카드마다 '이 돈으로 무엇이 되는지'를 배지로 밝힌다. */
.wallet-bucket__use {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.wallet-bucket__use--out { background: var(--primary-wash, #eef3fa); color: var(--primary); }
.wallet-bucket__use--refund { background: #e8f1fa; color: #2878c0; }
.wallet-bucket__use--send { background: var(--accent-wash, #e8f6ed); color: var(--accent, #28a058); }

.wallet-history {
  position: relative;
  margin-top: 18px;
  padding: 0 16px 20px;
  flex: 0 0 auto;
}
.txn-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.txn-row:last-child { border-bottom: none; }
.txn-row__icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-sunken);
  color: var(--ink-soft);
}
.txn-row__icon svg { width: 16px; height: 16px; }
.txn-row__body { flex: 1; min-width: 0; }
.txn-row__title { font-size: 13px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txn-row__meta { margin-top: 2px; font-size: 11px; color: var(--ink-faint); font-weight: 600; }
.txn-row__amount { flex: 0 0 auto; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.txn-row__amount--plus { color: var(--accent); }
.txn-row__amount--minus { color: var(--ink-soft); }

/* ══════════════════════════════════════════════════════════════
   카테고리 화면: 좌측 대분류 레일 + 우측 목록 (2단)
   ══════════════════════════════════════════════════════════════ */
.cat-split {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}
.cat-rail {
  flex: 0 0 96px;
  overflow-y: auto;
  background: var(--surface-sunken);
  border-right: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}
.cat-rail__item {
  display: block;
  width: 100%;
  appearance: none;
  border: none;
  background: none;
  padding: 15px 8px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  text-align: center;
  cursor: pointer;
  border-left: 3px solid transparent;
}
.cat-rail__item.is-active {
  background: #fff;
  color: var(--primary);
  border-left-color: var(--primary);
}
.cat-panel {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 14px 8px;
  -webkit-overflow-scrolling: touch;
}
.cat-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.cat-panel__head h2 { margin: 0; font-size: 16px; font-weight: 800; }
.cat-panel__count { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); }
.cat-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 12px;
}
.cat-sub__chip {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
}
.cat-sub__chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.cat-list { display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; }
.cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px;
}
.cat-item__img {
  flex: 0 0 58px;
  width: 58px;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  background-color: var(--surface-sunken);
  background-image: var(--shot);
  background-size: cover;
  background-position: center;
}
.cat-item__body { flex: 1 1 auto; min-width: 0; }
.cat-item__name {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cat-item__price {
  display: inline;
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.cat-item__tag {
  display: inline-block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
}
.cat-empty { padding: 26px 0; text-align: center; font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }

/* ══════════════════════════════════════════════════════════════
   마이 화면
   ══════════════════════════════════════════════════════════════ */
.my-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 12px 16px 0;
  padding: 14px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  flex: 0 0 auto;
}
.my-profile__avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
}
.my-profile__body { flex: 1 1 auto; min-width: 0; }
.my-profile__name { font-size: 14.5px; font-weight: 800; }
.my-profile__meta { margin-top: 2px; font-size: 11.5px; font-weight: 600; color: var(--ink-soft); }
.my-profile__wallet {
  flex: 0 0 auto;
  text-align: right;
  text-decoration: none;
  color: inherit;
}
.my-profile__wallet span { display: block; font-size: 10.5px; font-weight: 700; color: var(--ink-soft); }
.my-profile__wallet strong { font-size: 14px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }

.my-orders { margin: 14px 16px 0; flex: 0 0 auto; }
.my-orders__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
  padding: 12px 6px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.my-order-step {
  appearance: none;
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  padding: 2px;
}
.my-order-step strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.my-order-step span { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 700; color: var(--ink-soft); }

.my-menu { margin: 16px 16px 0; flex: 0 0 auto; }
.my-menu:last-of-type { margin-bottom: 12px; }
.my-menu__title { margin: 0 0 7px; font-size: 12px; font-weight: 800; color: var(--ink-soft); }
.my-menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  appearance: none;
  border: none;
  border-bottom: 1px solid var(--line);
  background: none;
  padding: 13px 2px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.my-menu__item:last-child { border-bottom: none; }
.my-menu__item em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
}
.my-menu__item::after {
  content: '›';
  color: var(--ink-soft);
  font-size: 15px;
  margin-left: 2px;
}

/* ══════════════════════════════════════════════════════════════
   전체 화면 오버레이(검색·알림·장바구니 등) — 하단탭 위를 덮는다
   ══════════════════════════════════════════════════════════════ */
.ov {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: var(--surface-app, #f4f6fa);
  display: none;
  flex-direction: column;
}
.ov.is-open { display: flex; }
.ov__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.ov__head h2 { flex: 1 1 auto; margin: 0; font-size: 15px; font-weight: 800; text-align: center; }
.ov__body { flex: 1 1 auto; overflow-y: auto; padding: 14px; -webkit-overflow-scrolling: touch; }
.ov__input {
  flex: 1 1 auto;
  min-width: 0;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface-sunken);
}
.ov__input:focus { outline: 2px solid var(--primary); outline-offset: -1px; background: #fff; }

.ov-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ov-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px 11px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
}
.ov-sec-title { margin: 0 0 8px; font-size: 12px; font-weight: 800; color: var(--ink-soft); }

.notify-row {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.notify-row__dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.notify-row__dot--read { background: var(--line); }
.notify-row__body { flex: 1 1 auto; min-width: 0; }
.notify-row__title { font-size: 12.5px; font-weight: 700; line-height: 1.4; }
.notify-row__meta { margin-top: 3px; font-size: 11px; font-weight: 600; color: var(--ink-soft); }

.cart-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row__img {
  flex: 0 0 52px;
  width: 52px;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  background-color: var(--surface-sunken);
  background-image: var(--shot);
  background-size: cover;
  background-position: center;
}
.cart-row__body { flex: 1 1 auto; min-width: 0; }
/* span 이라 block 을 주지 않으면 이름과 금액이 한 줄에 붙는다.
   상품명이 짧을 때만 우연히 줄이 나뉘어 보이던 자리다. */
.cart-row__name { display: block; font-size: 12.5px; font-weight: 700; line-height: 1.35; }
.cart-row__price { display: block; margin-top: 3px; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cart-row__del {
  appearance: none;
  border: none;
  background: none;
  color: var(--ink-soft);
  font-size: 17px;
  cursor: pointer;
  padding: 4px 6px;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.cart-total strong { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ov__foot {
  flex: 0 0 auto;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: #fff;
}
.ov__foot .btn-primary { display: block; width: 100%; text-align: center; }

/* 라이브 시청 스테이지 */
.live-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: linear-gradient(150deg, #0e2a52 0%, #06101f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.live-stage__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 5px;
  background: #e5484d;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.live-stage__play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.live-stage__play svg { width: 24px; height: 24px; margin-left: 3px; }
.live-stage__meta {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: rgba(255,255,255,0.86);
  font-size: 11px;
  font-weight: 700;
}

/* QR 갤러리 */
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gal-cell {
  appearance: none;
  border: none;
  padding: 0;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  background-color: var(--surface-sunken);
  background-image: var(--shot);
  background-size: cover;
  background-position: center;
  cursor: pointer;
}
.ov-chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 진입 아이콘: 실제 씨드림 메뉴 아이콘 사용 */
.entry-grid { grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 14px 6px 12px; }
.entry-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 2px;
}
.entry-grid__item img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}
.entry-grid__label { font-size: 11px; font-weight: 600; line-height: 1.2; }

/* 마이: 실제 마이페이지 상단 빠른 진입 8종 */
.my-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 12px 16px 0;
  padding: 12px 6px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  flex: 0 0 auto;
}
.my-quick__item {
  appearance: none;
  border: none;
  background: none;
  padding: 8px 2px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.my-quick__item:hover { background: var(--surface-sunken); color: var(--primary); }

/* ── QR 실제 카메라 스캐너 ───────────────────────────────── */
.qr-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 0;
}
.qr-viewport.is-live .qr-video { opacity: 1; }
.qr-viewport.is-live .qr-scanline { opacity: 1; }
.qr-viewport:not(.is-live) .qr-scanline { opacity: 0.35; }
.qr-viewport .qr-frame,
.qr-viewport__hint { position: relative; z-index: 2; }

.qr-action-btn--start.is-on { color: var(--accent); }
.qr-action-btn.is-on .qr-action-btn__icon { background: var(--accent-wash, #e8f6ed); color: var(--accent); }

.qr-result {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(6, 16, 31, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
}
.qr-result[hidden] { display: none; }
.qr-result__label {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent, #28a058);
  letter-spacing: 0.04em;
}
.qr-result__value {
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  word-break: break-all;
  max-height: 40%;
  overflow-y: auto;
}
/* 어두운 결과 오버레이 위에서는 기본 버튼 스타일이 읽히지 않는다. */
.qr-result .btn-primary {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--accent, #28a058);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

/* 생성된 내 QR: 뒤에 오는 규칙이 앞의 176px 고정값을 덮어써
   카드를 뚫고 나가던 문제를 막는다. */
.qr-pattern {
  width: 200px;
  height: 200px;
  max-width: 100%;
  margin: 0 auto 14px;
  display: block;
}
.qr-pattern svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ══════════════════════════════════════════════════════════════
   마이페이지 패널: 상단바에서 아래로 내려온다
   ══════════════════════════════════════════════════════════════ */
.my-panel {
  position: absolute;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}
.my-panel__scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 30, 0.44);
  opacity: 0;
  transition: opacity 0.28s ease;
  backdrop-filter: blur(2px);
}
.my-panel__sheet {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: var(--surface-card);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 22px 46px -14px rgba(15, 23, 42, 0.4);
  transform: translateY(-102%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.my-panel.is-open { pointer-events: auto; }
.my-panel.is-open .my-panel__scrim { opacity: 1; }
.my-panel.is-open .my-panel__sheet { transform: translateY(0); }

.my-panel__grab {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  margin: 14px auto 0;
}
.my-panel__head { display: flex; align-items: center; gap: 11px; }
.my-panel__avatar {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--primary) 0%, #2878c0 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
}
.my-panel__id { flex: 1 1 auto; min-width: 0; }
.my-panel__id strong { display: block; font-size: 14.5px; font-weight: 800; }
.my-panel__id span { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 600; color: var(--ink-soft); }

.my-panel__wallet {
  display: block;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, #10366a 100%);
  color: #fff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.my-panel__wallet::after {
  content: '';
  position: absolute;
  right: -26px;
  top: -34px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
}
.my-panel__wallet-label { font-size: 11px; font-weight: 700; opacity: 0.82; }
.my-panel__wallet-amt {
  display: block;
  margin-top: 2px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.my-panel__wallet-sub { font-size: 11px; font-weight: 600; opacity: 0.8; font-variant-numeric: tabular-nums; }

.my-panel__orders {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 12px;
  padding: 10px 4px;
  background: var(--surface-sunken);
  border-radius: 14px;
}
.my-panel__order {
  appearance: none; border: none; background: none; cursor: pointer;
  font-family: inherit; padding: 2px;
}
.my-panel__order strong {
  display: block; font-size: 16px; font-weight: 800; color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.my-panel__order span { display: block; margin-top: 1px; font-size: 10.5px; font-weight: 700; color: var(--ink-soft); }

.my-panel__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 12px;
}
.my-panel__cell {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface-card);
  border-radius: 11px;
  padding: 11px 2px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.my-panel__cell:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.my-panel__all {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.icon-btn { position: relative; }
.icon-btn__dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #e5484d;
  border: 1.5px solid var(--surface-card);
}

/* ══════════════════════════════════════════════════════════════
   AI 추천 섹션 — 개인화 근거를 드러내 신뢰와 욕구를 동시에 만든다
   ══════════════════════════════════════════════════════════════ */
.ai-pick {
  position: relative;
  margin: 16px 16px 0;
  padding: 15px 15px 16px;
  border-radius: 18px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(40, 160, 88, 0.13) 0%, transparent 58%),
    linear-gradient(150deg, #16233c 0%, #0d1626 100%);
  color: #fff;
  overflow: hidden;
  flex: 0 0 auto;
}
.ai-pick::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 14px 14px;
  pointer-events: none;
}
.ai-pick__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ai-pick__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent, #28a058), #1f7f45);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.ai-pick__badge svg { width: 13px; height: 13px; }
.ai-pick__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.76);
  font-variant-numeric: tabular-nums;
}
.ai-pick__live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #e5484d;
  animation: aiPulse 1.6s ease-in-out infinite;
}
.ai-pick__live b { color: #fff; font-weight: 800; }
@keyframes aiPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.55); }
  50% { opacity: 0.75; box-shadow: 0 0 0 5px rgba(229, 72, 77, 0); }
}
.ai-pick__title {
  position: relative;
  z-index: 1;
  margin: 10px 0 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.ai-pick__row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -15px;
  padding: 0 15px 2px;
}
.ai-pick__row::-webkit-scrollbar { display: none; }
.ai-card {
  flex: 0 0 148px;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 13px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.ai-card:hover { transform: translateY(-2px); border-color: rgba(40,160,88,0.6); }
.ai-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #1b2740;
  background-image: var(--shot);
  background-size: cover;
  background-position: center;
}
.ai-card__body { padding: 9px 10px 11px; display: flex; flex-direction: column; gap: 3px; }
.ai-card__match {
  align-self: flex-start;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(40,160,88,0.22);
  color: #6fd79a;
  font-size: 9.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.ai-card__name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ai-card__price { font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ai-card__why {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  line-height: 1.35;
}

/* ── 진입 모션: 위에서부터 순차적으로 나타난다 ── */
@media (prefers-reduced-motion: no-preference) {
  .screen__scroll > * {
    animation: riseIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .screen__scroll > *:nth-child(1) { animation-delay: 0.02s; }
  .screen__scroll > *:nth-child(2) { animation-delay: 0.06s; }
  .screen__scroll > *:nth-child(3) { animation-delay: 0.1s; }
  .screen__scroll > *:nth-child(4) { animation-delay: 0.14s; }
  .screen__scroll > *:nth-child(5) { animation-delay: 0.18s; }
  .screen__scroll > *:nth-child(6) { animation-delay: 0.22s; }
  .screen__scroll > *:nth-child(n+7) { animation-delay: 0.26s; }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* 누를 때 반응 */
.product-card, .ai-card, .cat-item, .service-grid__item, .entry-grid__item, .mall-pill {
  -webkit-tap-highlight-color: transparent;
}
.product-card:active, .cat-item:active, .ai-card:active { transform: scale(0.985); }

/* 통합 몰: 좌측 레일 그룹 캡션 */
.cat-rail__cap {
  display: block;
  padding: 11px 8px 5px;
  font-size: 9.5px;
  font-weight: 800;
  color: var(--ink-faint, #94a3b8);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--line);
}
.cat-rail__cap:first-child { border-top: 0; }
.shop-merge {
  margin: 0 0 10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--accent-wash, #e8f6ed);
  color: #1f7f45;
  font-size: 11px;
  font-weight: 700;
}
/* 종합몰 표기 방식(할인율·정가 취소선) 흡수 */
.cat-item__img { position: relative; }
.cat-item__off {
  position: absolute;
  top: 0; left: 0;
  padding: 2px 5px;
  border-radius: 9px 0 8px 0;
  background: #e5484d;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.cat-item__was {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-faint, #94a3b8);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
  margin-right: 6px;
}

/* 몰 기능 계승: 정렬 · 카테고리 내 검색 · 보기 전환 */
.shop-tools { margin: 0 0 10px; }
.shop-search {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-sunken);
}
.shop-search:focus { outline: 2px solid var(--primary); outline-offset: -1px; background: #fff; }
.shop-tools__row { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.shop-sort {
  flex: 1 1 auto;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.shop-sort::-webkit-scrollbar { display: none; }
.shop-sort__btn {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: 5px 9px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
}
.shop-sort__btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.shop-view {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  cursor: pointer;
}
.shop-view svg { width: 15px; height: 15px; }
.shop-view.is-on { border-color: var(--primary); color: var(--primary); }

/* 그리드 보기 */
.cat-list.is-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cat-list.is-grid .cat-item { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; }
.cat-list.is-grid .cat-item__img { flex: none; width: 100%; border-radius: 0; }
.cat-list.is-grid .cat-item__body { padding: 8px 9px 10px; }
.cat-empty small { display: block; margin-top: 5px; font-size: 10.5px; color: var(--ink-faint, #94a3b8); font-weight: 600; }

/* 공구샵: 판매 수익 표기 (실제 화면의 '예상 수익'을 계승) */
.cat-item__rev {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--accent-wash, #e8f6ed);
  color: #1f7f45;
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.cat-item__rev em { font-style: normal; opacity: 0.72; margin-left: 2px; }

/* 공동구매 진행률 - 현행 공구샵에는 없는 지표라 신규 제안 */
.cat-item__gb { display: block; margin-top: 5px; }
.cat-item__gb-bar {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.cat-item__gb-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent, #28a058), #6fd79a);
}
.cat-item__gb-txt {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* 정렬 칩은 가로 스크롤이라 끝이 잘린다. 잘림이 고장처럼 보이지 않게 페이드를 준다. */
.shop-sort {
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), transparent 100%);
}

/* 몰 스위처: 실제 씨드림 홈의 서비스 아이콘 사용 */
.mall-pill__ico {
  width: 15px;
  height: 15px;
  object-fit: contain;
  display: block;
  flex: 0 0 15px;
}
.mall-pill__txt { display: block; }

/* 포인트 선물 · 전환: 보유 포인트 선택 */
.gift-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gift-picks:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
.gift-pick {
  appearance: none;
  border: 1.5px solid var(--line);
  background: var(--surface-card);
  border-radius: 11px;
  padding: 10px 6px;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
}
.gift-pick.is-active { border-color: var(--primary); background: var(--primary-wash, #eef3fa); }
.gift-pick__k { display: block; font-size: 10.5px; font-weight: 700; color: var(--ink-soft); }
.gift-pick__v {
  display: block; margin-top: 3px; font-size: 13px; font-weight: 800;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.gift-pick.is-active .gift-pick__v { color: var(--primary); }
.gift-hint { margin: 7px 0 0; font-size: 11px; font-weight: 600; color: var(--ink-soft); }
.gift-hint.is-warn { color: #b4451f; }
.gift-idrow { display: flex; gap: 6px; align-items: center; }
.gift-idrow .btn-outline { flex: 0 0 auto; height: 36px; padding: 0 12px; font-size: 12px; }
.ov__foot .btn-primary[disabled] { opacity: 0.45; pointer-events: none; }

/* 찜 해제 */
.wish-off {
  appearance: none; border: none; background: none;
  color: #e5484d; font-size: 17px; cursor: pointer; padding: 4px 6px;
}

/* 주문 상세 */
.od-head strong { display: block; font-size: 14px; font-weight: 800; }
.od-head .notify-row__meta { margin-top: 3px; }
.od-steps { display: flex; gap: 4px; margin-top: 12px; }
.od-step {
  flex: 1 1 0; text-align: center; padding: 7px 2px;
  border-radius: 8px; background: var(--surface-sunken);
  font-size: 10.5px; font-weight: 700; color: var(--ink-faint, #94a3b8);
}
.od-step.is-done { background: var(--primary-wash, #eef3fa); color: var(--primary); }

/* 이용내역 행을 버튼으로 바꿔도 목록처럼 보이게 */
button.txn-row {
  width: 100%; appearance: none; border: none; background: none;
  font-family: inherit; text-align: left; cursor: pointer;
}

/* ── 쇼핑 서브셸 하단탭 (토스 증권 패턴) ──────────────────
   도메인 전용 탭으로 바꾸되, 좌측에 상위 셸로 돌아가는 버튼을 반드시 둔다.
   현행 씨드림의 문제는 탭이 바뀌는 것 자체가 아니라 '돌아갈 길이 없는 것'이었다. */
.tabbar--sub { padding-left: 6px; }
.tab-back {
  flex: 0 0 44px;
  align-self: center;
  width: 40px;
  height: 40px;
  margin-right: 2px;
  border-radius: 50%;
  background: var(--surface-sunken);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.tab-back svg { width: 19px; height: 19px; }
.tab-back:hover { background: var(--line); }
.cat-rail.is-flash { animation: railFlash 0.9s ease; }
@keyframes railFlash {
  0%, 100% { background: var(--surface-sunken); }
  35% { background: var(--primary-wash, #eef3fa); }
}

/* ══════════════════════════════════════════════════════════════
   라이브 커머스 — 대표 방송 1개를 크게, 예정 방송은 옆으로
   ══════════════════════════════════════════════════════════════ */
.live { margin: 18px 0 0; flex: 0 0 auto; }
.live__head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 16px 10px;
}
.live__title {
  display: flex; align-items: center; gap: 7px;
  margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -0.01em;
}
.live__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #e5484d; animation: liveDot 1.6s ease-in-out infinite;
}
@keyframes liveDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(229,72,77,0); }
}

/* 대표 방송 */
.live-hero {
  position: relative;
  display: block;
  margin: 0 16px;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(15,23,42,0.35);
}
.live-hero__thumb {
  position: absolute; inset: 0;
  background-image: var(--shot);
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.live-hero:hover .live-hero__thumb { transform: scale(1.04); }
.live-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,15,30,0.5) 0%, transparent 34%, rgba(8,15,30,0.86) 100%);
}
.live-hero__top {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; align-items: center; justify-content: space-between;
}
/* 이전 라이브 카드용 .live-badge 가 position:absolute 를 남겨두어
   대표 방송의 flex 배치에서 뱃지가 흐름 밖으로 빠졌다. 여기서 되돌린다. */
.live-hero .live-badge {
  position: static;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 6px;
  background: #e5484d; color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.05em;
  top: auto; left: auto; right: auto; bottom: auto;
}
.live-badge i {
  width: 5px; height: 5px; border-radius: 50%; background: #fff;
  animation: liveDot 1.4s ease-in-out infinite;
}
.live-hero__viewers {
  padding: 4px 9px; border-radius: 999px;
  background: rgba(8,15,30,0.5);
  backdrop-filter: blur(6px);
  font-size: 10.5px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.live-hero__body { position: absolute; left: 13px; right: 13px; bottom: 12px; }
.live-hero__name {
  display: block; font-size: 15.5px; font-weight: 800; line-height: 1.3;
  letter-spacing: -0.01em; text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.live-hero__host { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 600; opacity: 0.82; }
.live-hero__deal {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px;
  margin-top: 7px;
}
.live-hero__price { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.live-hero__was {
  font-size: 12px; font-weight: 600; opacity: 0.66; text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.live-hero__off { font-size: 13px; font-weight: 800; color: #ff8a8f; }
.live-hero__only {
  margin-left: auto;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(255,255,255,0.16);
  font-size: 10px; font-weight: 800;
}

/* 예정 방송 */
.live-row {
  display: flex; gap: 9px;
  margin-top: 10px; padding: 0 16px 2px;
  overflow-x: auto; scrollbar-width: none;
}
.live-row::-webkit-scrollbar { display: none; }
.live-up {
  flex: 0 0 116px;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.live-up__thumb {
  width: 100%; aspect-ratio: 1 / 1;
  border-radius: 12px;
  background-color: var(--surface-sunken);
  background-image: var(--shot);
  background-size: cover; background-position: center;
}
.live-up__when {
  display: inline-block; align-self: flex-start;
  margin-top: 7px; padding: 2px 7px;
  border-radius: 5px;
  background: var(--ink); color: #fff;
  font-size: 10px; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.live-up__name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 5px; font-size: 12px; font-weight: 700; line-height: 1.35;
}
.live-up__alarm { margin-top: 3px; font-size: 10.5px; font-weight: 600; color: var(--ink-soft); }

/* 충전 게이지를 진입점으로 */
a.charge-gauge { display: block; text-decoration: none; color: inherit; }
.charge-gauge__go {
  display: block; margin-top: 8px;
  font-size: 12px; font-weight: 800; color: var(--primary);
  text-align: right;
}

/* ══════════════════════════════════════════════════════════════
   몰별 패널 — 하단탭이 몰 선택이므로 화면 구성 자체가 바뀐다
   ══════════════════════════════════════════════════════════════ */
.mall-panel { display: none; flex: 1 1 auto; min-height: 0; flex-direction: column; }
.mall-panel.is-active { display: flex; }

/* ── 공구샵 ── */
.gong-intro {
  margin: 12px 16px 0;
  padding: 14px 15px;
  border-radius: 14px;
  background: linear-gradient(140deg, #16233c 0%, #0d1626 100%);
  color: #fff;
  flex: 0 0 auto;
}
.gong-intro__tag {
  display: inline-block; padding: 3px 8px; border-radius: 999px;
  background: var(--accent, #28a058); font-size: 10.5px; font-weight: 800;
}
.gong-intro__t { margin: 8px 0 4px; font-size: 14.5px; font-weight: 800; line-height: 1.4; }
.gong-intro__d { margin: 0; font-size: 11.5px; font-weight: 600; opacity: 0.72; line-height: 1.5; }

.gong-list { padding: 12px 16px 8px; display: flex; flex-direction: column; gap: 10px; }
.gong-card {
  display: flex; gap: 11px;
  padding: 11px; border-radius: 14px;
  background: var(--surface-card); border: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.gong-card__img {
  flex: 0 0 84px; width: 84px; aspect-ratio: 1/1;
  border-radius: 10px;
  background-color: var(--surface-sunken);
  background-image: var(--shot); background-size: cover; background-position: center;
}
.gong-card__body { flex: 1 1 auto; min-width: 0; }
.gong-card__name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 12.5px; font-weight: 700; line-height: 1.35;
}
.gong-card__price {
  display: block; margin-top: 3px;
  font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.gong-card__rev {
  display: inline-block; margin-top: 4px; padding: 2px 6px; border-radius: 5px;
  background: var(--accent-wash, #e8f6ed); color: #1f7f45;
  font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.gong-card__rev em { font-style: normal; opacity: 0.7; margin-left: 2px; }
.gong-card__bar {
  display: block; height: 5px; margin-top: 8px;
  border-radius: 999px; background: var(--line); overflow: hidden;
}
.gong-card__bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent, #28a058), #6fd79a);
}
.gong-card__meta {
  display: flex; align-items: center; gap: 3px;
  margin-top: 5px; font-size: 10.5px; font-weight: 600; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.gong-card__meta b { color: var(--ink); font-weight: 800; }
.gong-card__meta em {
  margin-left: auto; font-style: normal;
  padding: 2px 6px; border-radius: 5px;
  background: var(--ink); color: #fff; font-weight: 800;
}

/* ── 포인트몰 ── */
.pt-hero {
  position: relative;
  margin: 12px 16px 0; padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, #10366a 100%);
  color: #fff; overflow: hidden; flex: 0 0 auto;
}
.pt-hero::after {
  content: ''; position: absolute; right: -30px; top: -38px;
  width: 124px; height: 124px; border-radius: 50%;
  background: rgba(255,255,255,0.09);
}
.pt-hero__label { font-size: 11px; font-weight: 700; opacity: 0.82; }
.pt-hero__v {
  display: block; margin-top: 2px;
  font-size: 27px; font-weight: 800; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.pt-hero__v span { font-size: 16px; margin-left: 2px; }
.pt-hero__sub { display: block; margin-top: 3px; font-size: 11px; font-weight: 600; opacity: 0.8; }
.pt-hero__go {
  position: relative; z-index: 1;
  display: inline-block; margin-top: 10px;
  font-size: 12px; font-weight: 800; color: #fff; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.5);
}
.pt-chips { display: flex; gap: 6px; margin: 12px 16px 0; overflow-x: auto; scrollbar-width: none; flex: 0 0 auto; }
.pt-chips::-webkit-scrollbar { display: none; }
.pt-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  padding: 12px 16px 8px;
}
.pt-card { text-decoration: none; color: inherit; display: block; }
.pt-card__img {
  display: block; width: 100%; aspect-ratio: 1/1;
  border-radius: 12px;
  background-color: var(--surface-sunken);
  background-image: var(--shot); background-size: cover; background-position: center;
}
.pt-card__name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 6px; font-size: 12px; font-weight: 600; line-height: 1.35;
}
.pt-card__p {
  display: block; margin-top: 3px;
  font-size: 14px; font-weight: 800; color: var(--primary);
  font-variant-numeric: tabular-nums;
}

/* ── 기프트쿠폰 (점검 중) ── */
.gift-down { padding: 40px 26px; text-align: center; }
.gift-down__icon {
  width: 54px; height: 54px; margin: 0 auto 14px;
  border-radius: 50%; background: #fdf4e3; color: #b47a12;
  display: flex; align-items: center; justify-content: center;
}
.gift-down__icon svg { width: 26px; height: 26px; }
.gift-down__t { margin: 0 0 8px; font-size: 15.5px; font-weight: 800; }
.gift-down__d { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.6; }
.gift-down__brands {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 20px 0 10px;
}
.gift-down__brands span {
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-card);
  font-size: 11px; font-weight: 700; color: var(--ink-faint, #94a3b8);
}
.gift-down__note { margin: 0; font-size: 11px; font-weight: 600; color: var(--ink-faint, #94a3b8); }

/* 하단탭 점검중 표시 */
.tab__flag {
  position: absolute; top: 6px; right: 50%; margin-right: -18px;
  width: 6px; height: 6px; border-radius: 50%; background: #e5a33c;
}
.tabbar .tab { position: relative; }

/* ══════════════════════════════════════════════════════════════
   씨드림몰 상단 세그먼트 (쇼핑홈 · 카테고리 · 특가 · 제철)
   ══════════════════════════════════════════════════════════════ */
.seg {
  display: flex; gap: 2px;
  padding: 6px 12px 8px;
  overflow-x: auto; scrollbar-width: none;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--line);
}
.seg::-webkit-scrollbar { display: none; }
.seg__btn {
  flex: 0 0 auto;
  appearance: none; border: none; background: none;
  padding: 8px 12px; border-radius: 10px;
  font-family: inherit; font-size: 14px; font-weight: 700;
  color: var(--ink-soft); cursor: pointer; white-space: nowrap;
}
.seg__btn.is-active { background: var(--surface-sunken); color: var(--ink); font-weight: 800; }

.seg-panel { display: none; flex: 1 1 auto; min-height: 0; flex-direction: column; }
.seg-panel.is-active { display: flex; }

/* 쇼핑홈 · 특가 · 제철 공용 2열 그리드 */
.sh-head {
  display: flex; align-items: center; gap: 7px;
  margin: 14px 16px 0;
}
.sh-head h3 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.sh-tag {
  padding: 2px 7px; border-radius: 5px;
  border: 1px solid var(--line);
  font-size: 10px; font-weight: 800; color: var(--ink-soft);
}
.sh-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 10px;
  padding: 12px 16px 10px;
}
.sh-card { text-decoration: none; color: inherit; display: block; }
.sh-card__img {
  position: relative; display: block;
  width: 100%; aspect-ratio: 1 / 1;
  border-radius: 12px;
  background-color: var(--surface-sunken);
  background-image: var(--shot); background-size: cover; background-position: center;
}
.sh-card__off {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 7px; border-radius: 6px;
  background: #e5484d; color: #fff;
  font-size: 10.5px; font-weight: 800;
}
.sh-card__name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 7px; font-size: 12.5px; font-weight: 600; line-height: 1.38;
}
.sh-card__was {
  display: inline-block; margin-top: 3px; margin-right: 5px;
  font-size: 11px; font-weight: 600; color: var(--ink-faint, #94a3b8);
  text-decoration: line-through; font-variant-numeric: tabular-nums;
}
.sh-card__price {
  display: inline; font-size: 14.5px; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.sh-card__meta {
  display: block; margin-top: 4px;
  font-size: 10.5px; font-weight: 700; color: var(--accent, #28a058);
}

/* 카테고리: 좌측 대분류 + 우측 소분류 목록 */
.cate-split { flex: 1 1 auto; display: flex; min-height: 0; }
.cate-rail {
  flex: 0 0 104px; overflow-y: auto;
  background: var(--surface-sunken);
  border-right: 1px solid var(--line);
  scrollbar-width: none;
}
.cate-rail::-webkit-scrollbar { display: none; }
.cate-rail__item {
  display: block; width: 100%;
  appearance: none; border: none; background: none;
  padding: 15px 8px;
  font-family: inherit; font-size: 12.5px; font-weight: 700;
  color: var(--ink-soft); text-align: center; cursor: pointer;
  border-left: 3px solid transparent;
}
.cate-rail__item.is-active {
  background: #fff; color: var(--primary); border-left-color: var(--primary);
}
.cate-list { flex: 1 1 auto; overflow-y: auto; padding: 14px 14px 10px; scrollbar-width: none; }
.cate-list::-webkit-scrollbar { display: none; }
.cate-list__h { margin: 0 0 8px; font-size: 15px; font-weight: 800; }
.cate-row {
  display: flex; align-items: center; gap: 11px;
  width: 100%; appearance: none; border: none; background: none;
  padding: 9px 2px; font-family: inherit; cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.cate-row:last-child { border-bottom: none; }
.cate-row__img {
  flex: 0 0 40px; width: 40px; height: 40px;
  border-radius: 50%;
  background-color: var(--surface-sunken);
  background-image: var(--shot); background-size: cover; background-position: center;
}
.cate-row__n { flex: 1 1 auto; text-align: left; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cate-row__c { color: var(--ink-faint, #94a3b8); font-size: 17px; }

/* ══════════════════════════════════════════════════════════════
   마이페이지(전체메뉴) 재설계
   기존: 텍스트만 나열된 17줄 목록 → 아이콘 · 정렬 · 위계를 부여한다.
   ══════════════════════════════════════════════════════════════ */
.my-hero {
  margin: 12px 16px 0;
  padding: 16px 16px 14px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  flex: 0 0 auto;
}
.my-hero__top { display: flex; align-items: center; gap: 11px; }
.my-hero__avatar {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}
.my-hero__id { flex: 1 1 auto; min-width: 0; }
.my-hero__name { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; }
.my-hero__grade {
  padding: 2px 7px; border-radius: 999px;
  background: var(--surface-sunken); color: var(--ink-soft);
  font-size: 10px; font-weight: 800; letter-spacing: -0.01em;
}
.my-hero__meta { margin-top: 3px; font-size: 11.5px; font-weight: 600; color: var(--ink-soft); }
.my-hero__acct {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 10px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; color: var(--ink);
  font-size: 10.5px; font-weight: 800;
}
.my-hero__acct svg { width: 19px; height: 19px; color: var(--primary); }
.my-hero__acct:active { background: var(--surface-sunken); }

.my-hero__wallet {
  display: block; margin-top: 13px; padding-top: 13px;
  border-top: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.my-hero__total { display: flex; align-items: baseline; justify-content: space-between; }
.my-hero__total span { font-size: 11.5px; font-weight: 700; color: var(--ink-soft); }
.my-hero__total strong {
  font-size: 20px; font-weight: 800; color: var(--primary);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.my-hero__split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.my-hero__split span {
  display: flex; align-items: center; gap: 4px;
  padding: 7px 7px; border-radius: 9px; background: var(--surface-sunken);
  font-size: 10px; font-weight: 700; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden;
}
.my-hero__split b {
  margin-left: auto; font-size: 11.5px; font-weight: 800; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.my-hero__split .dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px; }
.dot--c { background: var(--primary); }
.dot--s { background: #2878c0; }
.dot--r { background: var(--accent); }

/* 빠른 진입 8종 — 아이콘 그리드 */
.my-quick__item .my-quick__ic {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin: 0 auto 6px;
  border-radius: 12px; background: var(--surface-sunken); color: var(--primary);
}
.my-quick__item .my-quick__ic svg { width: 20px; height: 20px; }
.my-quick__item:hover .my-quick__ic { background: rgba(20,105,66,0.1); }

/* 메뉴 행 — 아이콘 + 라벨(좌) / 값(우) / 셰브런 */
.my-menu__item {
  display: flex; align-items: center; gap: 11px;
  text-align: left;
}
.my-menu__ic {
  flex: 0 0 30px; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px; background: var(--surface-sunken); color: var(--ink-soft);
}
.my-menu__ic svg { width: 17px; height: 17px; }
.my-menu__item:hover .my-menu__ic { background: rgba(20,105,66,0.1); color: var(--primary); }
.my-menu__label { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 700; }
.my-menu__item em {
  flex: 0 0 auto; margin-left: auto; padding-right: 4px;
  text-align: right; white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════
   계좌 서브셸 (account.html)
   실제 씨드림의 계좌 탭(하단탭이 통째로 바뀌던 곳)을 쇼핑과 같은
   서브셸 패턴으로 통일했다. 하위 4종: 계좌등록·출금환불·예약이체·거래내역
   ══════════════════════════════════════════════════════════════ */
[data-acct-panel] { display: none; }
[data-acct-panel].is-active { display: block; }

.acct-summary {
  margin: 12px 16px 0;
  padding: 14px 16px 12px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  flex: 0 0 auto;
}
.acct-summary__row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 4px 0;
}
.acct-summary__row span { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.acct-summary__row strong {
  font-size: 16px; font-weight: 800; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.acct-summary__note {
  margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line);
  font-size: 11px; font-weight: 600; line-height: 1.5; color: var(--ink-soft);
}

.acct-sec { margin: 14px 16px 0; flex: 0 0 auto; }
.acct-sec:last-child { margin-bottom: 14px; }
.acct-sec__cta { width: 100%; margin-top: 10px; }
.acct-hint {
  margin: 9px 0 0; font-size: 11.5px; font-weight: 600;
  line-height: 1.6; color: var(--ink-soft);
}
.acct-field { width: 100%; margin-top: 6px; }

.acct-empty {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  margin-top: 8px; padding: 26px 16px;
  background: var(--surface-card);
  border: 1px dashed var(--line);
  border-radius: 14px;
  text-align: center;
}
.acct-empty svg { width: 30px; height: 30px; color: var(--line-strong, #c9ccd1); }
.acct-empty p { margin: 4px 0 0; font-size: 13px; font-weight: 800; color: var(--ink); }
.acct-empty span { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); }
.acct-empty--sm { padding: 18px 16px; }
.acct-empty--sm p { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }

.acct-txn {
  margin-top: 10px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 14px;
}

/* ══════════════════════════════════════════════════════════
   사진을 아직 못 받은 상품
   씨드림몰에 원본이 올라와 있지 않아 채우지 못한 자리다.
   회색 박스만 두면 로딩 실패로 읽혀서 이유를 적어 둔다.
   ══════════════════════════════════════════════════════════ */
.is-noshot {
  position: relative;
  background-image: none !important;
  background-color: var(--surface-sunken);
}
.is-noshot::after {
  content: '이미지 준비 중';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
