:root {
  --bg: #f5f0e8;
  --surface: #ffffff;
  --primary: #1a1410;
  --accent: #8B6914;
  --accent-light: #c9a84c;
  --text-primary: #1a1410;
  --text-secondary: #5a4e42;
  --text-muted: #a09080;
  --border: rgba(0,0,0,0.07);
  --border-accent: rgba(139,105,20,0.25);
  /* 오행 */
  --wood: #2d6a2d;
  --fire: #c0392b;
  --earth: #b5651d;
  --metal: #8a8a8a;
  --water: #1a4fa0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 60px; /* tab-bar height */
}

body.sheet-open { overflow: hidden; }

.serif { font-family: 'Noto Serif KR', serif; }

a { color: inherit; text-decoration: none; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

.page { padding: 2.5rem 1.25rem; }
.page.narrow { max-width: 600px; }

.main-content { flex: 1; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border-accent);
  padding: 0.875rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { font-size: 1.375rem; font-weight: 700; color: var(--primary); }
.logo-gil { color: var(--accent); }
.logo-hanja {
  font-size: .52em;
  font-family: 'Noto Serif KR', serif;
  font-weight: 600;
  color: var(--accent-light, #c9a84c);
  vertical-align: super;
  margin-left: .05em;
  letter-spacing: 0;
}
.nav-links { display: flex; gap: 1rem; align-items: center; }
.nav-links a { color: var(--text-secondary); font-size: 0.9rem; transition: color 0.15s; }
.nav-links a:hover { color: var(--accent); }
.nav-links .btn-primary { color: #fff; }
.nav-links .btn-primary:hover { color: #fff; }
.nav-links .btn-outline { color: var(--accent); }
.nav-links .btn-outline:hover { color: #fff; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.15s;
}
.btn-primary  { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); }
.btn-outline  { background: transparent; border: 1px solid var(--border-accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-danger   { background: var(--fire); color: #fff; }
.btn-danger:hover { opacity: 0.85; }
.btn-kakao    { background: #FEE500; color: #3C1E1E; }
.btn-google   { background: #fff; color: #333; border: 1px solid var(--border); }
.btn-lg       { padding: 0.8rem 2rem; font-size: 1rem; }
.btn-sm       { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.btn-full     { width: 100%; display: block; }

/* ── Card ────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.card-title { font-size: 1.1rem; margin-bottom: 1rem; color: var(--accent); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  padding: 5rem 1.25rem;
  text-align: center;
  background: linear-gradient(160deg, var(--bg) 60%, #ede5d0);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.3; }
.hero .accent { color: var(--accent); }
.hero-sub { color: var(--text-secondary); margin: 1rem 0 2rem; font-size: 1.1rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Product Grid ────────────────────────────────────────────── */
.products { padding: 3rem 1.25rem; }
.section-title { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--text-primary); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(139,105,20,0.12);
}
.product-icon { font-size: 2.25rem; margin-bottom: 0.75rem; }
.product-card h3 { font-size: 1.1rem; color: var(--accent); margin-bottom: 0.4rem; }
.product-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.price { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }
.price-free { color: var(--accent); }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 500; color: var(--text-secondary); font-size: 0.9rem; }
.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
}
.form-control:focus { border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.date-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0.5rem; }

/* ── Pricing options (naming) ────────────────────────────────── */
.pricing-options { display: flex; gap: 1rem; }
.pricing-option {
  flex: 1;
  border: 2px solid var(--border-accent);
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: border-color 0.15s;
}
.pricing-option:has(input:checked) { border-color: var(--accent); background: #fdf8ec; }
.pricing-option input { display: none; }

/* ── People ──────────────────────────────────────────────────── */
.person-list { display: flex; flex-direction: column; gap: 0.75rem; }
.person-card { display: flex; justify-content: space-between; align-items: center; }
.person-info { display: flex; flex-direction: column; gap: 0.2rem; }

/* ── Order list ──────────────────────────────────────────────── */
.order-list { display: flex; flex-direction: column; gap: 0.75rem; }
.order-item { display: flex; justify-content: space-between; align-items: center; }
.order-meta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.order-type { font-weight: 600; }
.order-amount { color: var(--accent); font-weight: 700; }
.order-date { color: var(--text-muted); font-size: 0.85rem; }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-pending { background: #f0e6c0; color: #7a5c00; }
.badge-paid    { background: #d4edda; color: #155724; }
.badge-done    { background: #cce5ff; color: #004085; }

/* ── Result ──────────────────────────────────────────────────── */
.result-subject { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 1.25rem; }
.result-card { min-height: 200px; }
.report-content { line-height: 1.9; white-space: pre-wrap; }

/* ── Utilities ───────────────────────────────────────────────── */
.text-muted { color: var(--text-muted); }
.mb-2 { margin-bottom: 1.25rem; }
.mb-3 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1.25rem; }
.page-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 1.5rem; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--primary);
  color: var(--text-muted);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .form-row   { grid-template-columns: 1fr; }
  .date-row   { grid-template-columns: 2fr 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .order-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ═══════════════════════════════════════════════════════════════
   푸터
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--primary, #2c1810);
  padding: 1.4rem 1.25rem 1.2rem;
  margin-bottom: 60px; /* tab-bar 높이만큼 여백 */
}
.footer-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-row {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.3rem;
}
.footer-row .fd {
  opacity: 0.4;
  font-size: 0.65rem;
}
.footer-copy {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ═══════════════════════════════════════════════════════════════
   하단 탭바
   ═══════════════════════════════════════════════════════════════ */
.tab-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 200;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.62rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.tab-item.active, .tab-item:active { color: var(--accent); }
.tab-icon { font-size: 1.25rem; line-height: 1; }

/* ═══════════════════════════════════════════════════════════════
   My피플 페이지
   ═══════════════════════════════════════════════════════════════ */
.page-people {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.25rem 1rem 5rem;
}

.people-header { margin-bottom: 1.25rem; }
.people-header h1 { font-size: 1.6rem; font-weight: 700; }

.mode-hint { font-size: 0.875rem; margin-top: 0.2rem; }

/* 사람 목록 */
.person-list { display: flex; flex-direction: column; gap: 0.75rem; }

.person-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: border-color 0.15s, background 0.15s;
}
.person-card.selectable { cursor: pointer; user-select: none; }
.person-card.selected   { border-color: var(--accent); background: #fdf8ec; }

.person-card-body { flex: 1; min-width: 0; }

.person-identity {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}
.person-name { font-size: 1.05rem; font-weight: 700; }
.person-zodiac { font-size: 1.15rem; }
.person-gender {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}
.person-gender.male   { background: #dbeafe; color: #1d4ed8; }
.person-gender.female { background: #fce7f3; color: #9d174d; }

.person-birth {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.person-actions { display: flex; gap: 0.2rem; flex-shrink: 0; }

.btn-icon {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 8px;
  line-height: 1;
  transition: background 0.15s;
}
.btn-icon:hover { background: var(--bg); }

/* 궁합 모드 */
.compat-check {
  font-size: 1.4rem;
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 28px;
  text-align: center;
  line-height: 1;
}

.compat-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  margin-bottom: 1rem;
}
.compat-count { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }

/* FAB */
.fab {
  position: fixed;
  bottom: 76px; right: 1.25rem;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.75rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(139,105,20,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  line-height: 1;
  transition: transform 0.15s, background 0.15s;
}
.fab:hover { transform: scale(1.08); background: var(--accent-light); }

/* 빈 상태 */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-secondary);
}
.empty-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.empty-state p { margin-bottom: 0.35rem; }

/* 사람 없음 — 유료 상품 폼 */
.no-person-state {
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  background: linear-gradient(160deg, #fdfaf4 0%, #faf5e8 100%);
  border: 1.5px solid var(--border-accent);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(139,105,20,.07);
}
.np-emblem {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, #c9a84c, #e8c96a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 4px 16px rgba(201,168,76,.35);
}
.np-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .6rem;
  letter-spacing: -.3px;
}
.np-desc {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.np-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1.75rem;
  font-size: .95rem;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(139,105,20,.25);
  transition: transform .15s, box-shadow .15s;
}
.np-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139,105,20,.35);
}
.np-steps {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-accent);
}
.np-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  color: var(--text-muted);
}
.np-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-light);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── 바텀 시트 ─────────────────────────────────────────────────── */
.sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 300;
  animation: fadeIn 0.2s ease;
}
.sheet-overlay.show { display: block; }

.bottom-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  padding: 0.75rem 1.25rem 2.5rem;
  z-index: 400;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 480px;
  margin: 0 auto;
}
.bottom-sheet.show { transform: translateY(0); }

.sheet-handle {
  width: 40px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 1.1rem;
}
.sheet-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 1.25rem; }

/* 시트 내부 폼 레이아웃 */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ═══════════════════════════════════════════════════════════════
   랜딩 히어로
   ═══════════════════════════════════════════════════════════════ */
.hero-lp {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem 2.5rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg svg { width: 100%; height: 100%; }

.hero-lp-inner {
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: 100%;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(139,105,20,0.10);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero-title {
  font-size: clamp(1.65rem, 5vw, 2.3rem);
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.hero-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

/* 12띠 그리드 */
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem;
  max-width: 380px;
  margin: 0 auto 0.75rem;
}
.zodiac-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.2rem 0.45rem;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.15s;
}
.zodiac-btn span {
  font-size: 0.55rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
  white-space: nowrap;
}
.zodiac-btn:hover { border-color: var(--accent-light); background: #fdf8ec; transform: translateY(-2px); }
.zodiac-btn.active { border-color: var(--accent); background: #fdf8ec; }

/* 띠별 미리보기 */
.zodiac-preview {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  max-width: 380px;
  margin: 0 auto 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  animation: fadeIn 0.2s ease;
  text-align: left;
}
.zodiac-preview.show { display: block; }

/* CTA 버튼 */
.btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 2.25rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(139,105,20,0.30);
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(139,105,20,0.40); }

/* 신뢰 뱃지 */
.trust-row { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center; }
.trust-chip {
  font-size: 0.72rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   상품 그리드
   ═══════════════════════════════════════════════════════════════ */
.products-lp { padding: 2.5rem 0 3rem; }
.products-lp-title {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.25rem;
}
.pcard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.pcard-full { grid-column: 1 / -1; }

/* 상품 카드 공통 */
.pcard {
  border-radius: 14px;
  padding: 0.9rem 0.85rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  min-height: 152px;
}
.pcard:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.10); }

.pcard-kanji {
  font-size: 3.25rem;
  opacity: 0.20;
  line-height: 1;
  position: absolute;
  top: 0.6rem; right: 0.8rem;
  pointer-events: none;
}
.pcard-name  { font-size: 0.95rem; font-weight: 700; position: relative; }
.pcard-desc  { font-size: 0.77rem; line-height: 1.5; position: relative; flex: 1; }
.pcard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  position: relative;
}
.pcard-price {
  font-size: 1rem; font-weight: 800;
  background: rgba(0,0,0,0.07);
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
}
.pcard-price.free          { background: rgba(139,105,20,0.13); color: var(--accent); }
.pcard-price.premium-price { background: rgba(255,255,255,0.18); color: #f5e6a3; font-size: 1rem; }
.pcard-link { font-size: 0.78rem; font-weight: 600; color: var(--accent); }

/* 풀위드 카드 내부 레이아웃 */
.pcard-full-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex: 1;
  position: relative;
}
.pcard-full .pcard-name  { font-size: 1rem; }
.pcard-full .pcard-desc  { margin-top: 0.2rem; }
.pcard-full .pcard-footer { flex-direction: column; align-items: flex-end; gap: 0.4rem; }

.best-badge {
  font-size: 0.62rem;
  background: var(--accent);
  color: #fff;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 0.35rem;
}

/* 카드 그라디언트 */
.pcard-today   { background: linear-gradient(135deg, #fdf8ec 0%, #f5e6a3 100%); }
.pcard-monthly { background: linear-gradient(135deg, #fdf8ec 0%, #bfdbfe 100%); }
.pcard-saju    { background: linear-gradient(135deg, #fdf8ec 0%, #bbf7d0 100%); }
.pcard-compat  { background: linear-gradient(135deg, #fdf8ec 0%, #fecdd3 100%); }
.pcard-premium {
  background: linear-gradient(135deg, #2c1810 0%, #8B6914 100%);
  color: #f5e6a3;
}
.pcard-premium .pcard-name  { color: #f5e6a3; }
.pcard-premium .pcard-desc  { color: rgba(245,230,163,0.75); }
.pcard-premium .pcard-link  { color: #f5e6a3; }
.pcard-premium .pcard-kanji { opacity: 0.12; color: #f5e6a3; }
.pcard-naming3 { background: linear-gradient(135deg, #fdf8ec 0%, #ddd6fe 100%); }
.pcard-naming5 { background: linear-gradient(135deg, #f0ece3 0%, #c4b5fd 100%); }
.pcard-naming-premium {
  background: linear-gradient(135deg, #1a0a3c 0%, #5b21b6 60%, #7c3aed 100%);
  color: #ede9fe;
}
.pcard-naming-premium .pcard-name  { color: #ede9fe; }
.pcard-naming-premium .pcard-desc  { color: rgba(237,233,254,0.75); }
.pcard-naming-premium .pcard-link  { color: #c4b5fd; }
.pcard-naming-premium .pcard-kanji { opacity: 0.12; color: #ede9fe; }
.pcard-price.naming-price { background: rgba(255,255,255,0.15); color: #ede9fe; }

/* ═══════════════════════════════════════════════════════════════
   일일 운세 입력 폼 페이지
   ═══════════════════════════════════════════════════════════════ */
.page-form {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}
.form-hero { text-align: center; padding: 1.25rem 0 1.25rem; }
.form-hero-icon { font-size: 2.75rem; margin-bottom: 0.5rem; }
.form-hero h1 { font-size: 1.65rem; font-weight: 700; margin-bottom: 0.35rem; }
.form-card { padding: 1.5rem; }
.label-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 0.3rem;
}
.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.875rem;
  line-height: 1.7;
}

/* 로딩 오버레이 */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(245,240,232,0.96);
  z-index: 600;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.loading-overlay.show { display: flex; }
.loading-box { padding: 2rem; }
.loading-spin {
  font-size: 3.5rem;
  display: block;
  animation: spin360 2s linear infinite;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
@keyframes spin360 { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.loading-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.4rem; }
.loading-sub { font-size: 0.9rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════
   일일 운세 결과 페이지
   ═══════════════════════════════════════════════════════════════ */
.result-daily {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

/* 헤더 */
.rdaily-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0 1rem;
}
.rdaily-zodiac { font-size: 3rem; line-height: 1; }
.rdaily-zodiac-name { font-size: 1.15rem; font-weight: 700; color: var(--accent); }
.rdaily-date { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.15rem; }

/* 요약 박스 */
.rdaily-summary-box {
  background: linear-gradient(135deg, #fdf8ec, #f5e6a3);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1.25rem;
}
.rdaily-summary-label {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.rdaily-summary {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text-primary);
}

/* 운세 카드 4개 */
.rdaily-cards { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }

.rdaily-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid transparent;
}
.rdaily-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.rdaily-card-icon  { font-size: 1.2rem; }
.rdaily-card-title { font-weight: 700; font-size: 0.92rem; color: var(--text-primary); }
.rdaily-card-body  { font-size: 0.875rem; line-height: 1.85; color: var(--text-secondary); }

.rdaily-overall  { border-color: var(--water); }
.rdaily-wealth   { border-color: var(--earth); }
.rdaily-relation { border-color: var(--fire); }
.rdaily-health   { border-color: var(--wood); }

/* 업셀 박스 */
.rdaily-upsell {
  background: var(--primary);
  color: #f5f0e8;
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  margin-bottom: 1.25rem;
}
.rdaily-upsell-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.3rem; }
.rdaily-upsell-sub   { font-size: 0.83rem; color: rgba(245,240,232,0.65); margin-bottom: 1.1rem; }

.rdaily-upsell-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; }

.rdaily-upsell-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.85rem 0.5rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.15s;
}
.rdaily-upsell-btn.secondary {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: #f5f0e8;
}
.rdaily-upsell-btn.secondary:hover { background: rgba(255,255,255,0.16); }
.rdaily-upsell-btn.primary {
  background: var(--accent);
  color: #fff;
}
.rdaily-upsell-btn.primary:hover { background: var(--accent-light); }

.upsell-btn-icon  { font-size: 1.4rem; }
.upsell-btn-label { font-size: 0.82rem; font-weight: 600; }
.upsell-btn-price { font-size: 1rem; font-weight: 800; }

.upsell-login-note {
  font-size: 0.78rem;
  color: rgba(245,240,232,0.55);
  margin-bottom: 0.75rem;
}
.upsell-login-btns { display: flex; gap: 0.5rem; justify-content: center; }

/* ── 오늘의 행운 ───────────────────────────────────────────────── */
.lucky-section {
  background: linear-gradient(135deg, #fffdf5 0%, #fdf6e3 100%);
  border: 1.5px solid var(--border-accent);
  border-radius: 16px;
  padding: 1.25rem 1rem 1rem;
  margin-bottom: 1.5rem;
}
.lucky-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -.2px;
}
.lucky-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .6rem;
}
.lucky-card {
  background: #fff;
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 12px;
  padding: .75rem .4rem;
  text-align: center;
  box-shadow: 0 1px 6px rgba(139,105,20,.06);
  transition: transform .15s, box-shadow .15s;
}
.lucky-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(139,105,20,.12); }
.lucky-card--wide {
  grid-column: span 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .65rem 1rem;
}
.lucky-emoji { font-size: 1.6rem; line-height: 1; margin-bottom: .35rem; }
.lucky-card--wide .lucky-emoji { margin-bottom: 0; font-size: 1.4rem; }
.lucky-label {
  font-size: .65rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: .25rem;
}
.lucky-card--wide .lucky-label { margin-bottom: 0; white-space: nowrap; }
.lucky-value {
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
  word-break: keep-all;
}
.lucky-number { font-size: 1.3rem; color: var(--accent); }
.lucky-card--wide .lucky-value { font-size: .9rem; }

/* 하단 액션 */
.rdaily-actions { display: flex; gap: 0.75rem; justify-content: center; }

@media (max-width: 400px) {
  .pcard-grid { grid-template-columns: 1fr; }
  .pcard-full { grid-column: auto; }
  .pcard-full-body { flex-direction: column; align-items: flex-start; }
  .zodiac-grid { grid-template-columns: repeat(6, 1fr); gap: 0.25rem; }
  .zodiac-btn { font-size: 1.2rem; padding: 0.45rem 0.1rem; }
}

/* ── Checkout ────────────────────────────────────────────────── */
.checkout-header {
  text-align: center;
  padding: 2rem 0 1rem;
}
.checkout-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.checkout-header h1 { font-family: 'Noto Serif KR', serif; font-size: 1.6rem; }
.checkout-subject { color: var(--text-secondary); margin-top: 0.25rem; }
.checkout-summary { margin: 1.25rem 0; }
.checkout-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.checkout-row:last-child { border-bottom: none; }
.checkout-row.total { font-weight: 700; font-size: 1.05rem; padding-top: 0.8rem; }
.checkout-amount { color: var(--fire); font-size: 1.2rem; font-weight: 800; }
.checkout-notice {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.pricing-options { display: flex; gap: 0.75rem; }
.pricing-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.pricing-option:has(input:checked) { border-color: var(--accent); background: #fdf9f0; }
.pricing-option input { display: none; }

/* ── Result common ──────────────────────────────────────────── */
.result-hero {
  border-radius: 16px;
  color: #fff;
  padding: 2rem 1.25rem;
  text-align: center;
  margin-bottom: 1.25rem;
}
.result-hero-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.result-hero h1 { font-family: 'Noto Serif KR', serif; font-size: 1.6rem; font-weight: 700; }
.result-hero-sub { opacity: 0.85; margin-top: 0.25rem; font-size: 1rem; }
.result-hero-period { font-size: 0.85rem; opacity: 0.7; margin-top: 0.25rem; }
.result-hero-summary {
  margin-top: 0.75rem;
  font-family: 'Noto Serif KR', serif;
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.95;
}

.saju-pillars {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}
.pillar {
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  text-align: center;
  min-width: 54px;
}
.pillar-label { display: block; font-size: 0.7rem; opacity: 0.7; }
.pillar-val { font-size: 0.85rem; font-weight: 600; font-family: 'Noto Serif KR', serif; }

.result-section-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.result-section-header h2, .result-section-header h3 {
  font-family: 'Noto Serif KR', serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.result-section-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.75rem;
}
.result-section-body { font-size: 0.92rem; line-height: 1.75; color: var(--text-secondary); white-space: pre-line; }

.result-category-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--accent);
}
.premium-badge::after {
  content: " PREMIUM";
  font-size: 0.65rem;
  background: linear-gradient(90deg, #8a3a9a, #5a3a9a);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 0.4rem;
}
.premium-section { background: #fdf8ff; }

.result-week-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.result-week-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; }
.result-week-card p { font-size: 0.9rem; line-height: 1.7; color: var(--text-secondary); white-space: pre-line; }

.result-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.result-mini-card {
  background: var(--surface);
  border-radius: 10px;
  padding: 0.85rem 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.result-mini-title { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); margin-bottom: 0.35rem; }
.result-mini-card p { font-size: 0.83rem; line-height: 1.6; color: var(--text-secondary); white-space: pre-line; }

.result-advice-box {
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
}
.result-advice-box h3 { font-family: 'Noto Serif KR', serif; font-size: 1rem; margin-bottom: 0.5rem; }
.result-advice-box p { font-size: 0.9rem; line-height: 1.7; opacity: 0.9; white-space: pre-line; }

.result-upsell {
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  margin-bottom: 0.75rem;
}
.result-upsell p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.upsell-btns { display: flex; gap: 0.5rem; justify-content: center; }

.result-loading {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Compat ─────────────────────────────────────────────────── */
.compat-score-main {
  font-size: 3.5rem;
  font-weight: 900;
  font-family: 'Noto Serif KR', serif;
  line-height: 1;
  margin-top: 0.75rem;
}
.compat-score-main span { font-size: 1.2rem; margin-left: 0.1rem; }
.compat-scores { background: var(--surface); border-radius: 12px; padding: 1rem; margin-bottom: 0.75rem; }
.compat-score-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0; }
.compat-score-label { width: 64px; font-size: 0.8rem; color: var(--text-muted); flex-shrink: 0; }
.compat-score-bar { flex: 1; background: var(--bg); border-radius: 4px; height: 8px; overflow: hidden; }
.compat-score-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.compat-score-num { width: 30px; text-align: right; font-size: 0.85rem; font-weight: 700; }

/* ── Naming ─────────────────────────────────────────────────── */
.naming-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  position: relative;
}
.naming-card-best { border: 2px solid var(--accent); background: #fdf9f0; }
.naming-badge {
  position: absolute;
  top: -10px;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}
.naming-main { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.25rem; }
.naming-kr { font-family: 'Noto Serif KR', serif; font-size: 1.5rem; font-weight: 700; }
.naming-hanja { font-size: 0.95rem; color: var(--text-muted); }
.naming-meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.naming-score { font-weight: 700; color: var(--fire); }
.naming-score-bar { background: var(--bg); height: 4px; border-radius: 2px; margin-bottom: 0.6rem; overflow: hidden; }
.naming-meaning, .naming-reason { font-size: 0.85rem; line-height: 1.6; color: var(--text-secondary); margin-top: 0.3rem; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg); }

/* ── Result page wrapper ─────────────────────────────────────── */
.result-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 1rem 5rem;
}

/* ── Hero tags ──────────────────────────────────────────────── */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.75rem;
}
.hero-tag {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  color: #fff;
}
.hero-badge-premium {
  background: linear-gradient(90deg,#c9a84c,#8B6914);
  border-radius: 6px;
  padding: 0.15rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  margin-top: 0.5rem;
  display: inline-block;
}

/* ── Manseryeok Table ────────────────────────────────────────── */
.manseryeok-wrap {
  background: var(--surface);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  overflow-x: auto;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.manseryeok-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.mt {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
  font-family: 'Noto Serif KR', serif;
}
.mt th {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.25rem 0;
  text-align: center;
}
.mt .mt-cg, .mt .mt-jj {
  border-radius: 8px;
  padding: 0.55rem 0.25rem;
  text-align: center;
  min-width: 52px;
}
.mt .mt-cg {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.1;
}
.mt .mt-cg small { display: block; font-size: 0.68rem; font-weight: 400; margin-top: 2px; }
.mt .mt-jj {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.1;
}
.mt .mt-jj small { display: block; font-size: 0.68rem; font-weight: 400; margin-top: 2px; }
.mt .mt-row-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  width: 28px;
  text-align: center;
  padding: 0;
}
.mt .mt-extra { font-size: 0.72rem; color: var(--text-secondary); text-align: center; padding: 0.2rem 0; }
/* 오행 색상 배경 (연한) */
.oe-목 { background: #e8f5e9; color: #2d6a2d; }
.oe-화 { background: #ffebee; color: #c0392b; }
.oe-토 { background: #fff3e0; color: #b5651d; }
.oe-금 { background: #f5f5f5; color: #666; }
.oe-수 { background: #e3f2fd; color: #1a4fa0; }
.oe-unknown { background: #f0f0f0; color: #aaa; }

/* 오행 바 */
.ohaeng-bars { margin-top: 0.75rem; }
.ohaeng-bar-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
}
.ohaeng-bar-label { width: 20px; font-weight: 700; }
.ohaeng-bar-track { flex:1; height:6px; background:var(--bg); border-radius:3px; overflow:hidden; }
.ohaeng-bar-fill  { height:100%; border-radius:3px; }
.ohaeng-bar-num   { width:28px; text-align:right; color:var(--text-muted); font-size:0.75rem; }

/* ── Accordion ──────────────────────────────────────────────── */
.accordion { border-radius: 14px; overflow: hidden; margin-bottom: 0.75rem; }
.accordion-item {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.accordion-item:last-child { border-bottom: none; }
.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.accordion-header:hover { background: rgba(0,0,0,0.02); }
.accordion-color-bar { width: 4px; height: 36px; border-radius: 2px; flex-shrink: 0; }
.accordion-titles { flex: 1; }
.accordion-titles h3 { font-family:'Noto Serif KR',serif; font-size:0.95rem; font-weight:700; margin:0; }
.accordion-titles p { font-size:0.75rem; color:var(--text-muted); margin:0.1rem 0 0; font-style:italic; }
.accordion-arrow {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.accordion-item.open .accordion-arrow { transform: rotate(180deg); }
.accordion-body {
  display: none;
  padding: 0 1.1rem 1.1rem 2.1rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
  white-space: pre-line;
}
.accordion-item.open .accordion-body { display: block; }

/* ── Upsell section (결과 하단) ─────────────────────────────── */
.section-upsell {
  background: var(--primary);
  border-radius: 16px;
  padding: 1.4rem 1.1rem;
  text-align: center;
  margin: 1.5rem 0 0.75rem;
  color: #f5f0e8;
}
.section-upsell-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.section-upsell-sub { font-size: 0.8rem; opacity: 0.6; margin-bottom: 0.9rem; }
.upsell-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.upsell-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.75rem 0.5rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #f5f0e8;
  text-decoration: none;
  transition: background 0.15s;
}
.upsell-item:hover { background: rgba(255,255,255,0.17); }
.upsell-item.highlight {
  background: var(--accent);
  border-color: var(--accent);
}
.upsell-item-icon { font-size: 1.3rem; }
.upsell-item-name { font-size: 0.8rem; font-weight: 600; }
.upsell-item-price { font-size: 0.9rem; font-weight: 800; }

/* ── Mypage ─────────────────────────────────────────────────── */
.mypage-page { max-width: 480px; margin: 0 auto; padding: 0 0 5rem; }

.mypage-user-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.mypage-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg,var(--accent),#5a3a00);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.mypage-user-info h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.2rem; }
.mypage-provider-badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.mypage-provider-badge.kakao { background: #fee500; color: #391b1b; }
.mypage-provider-badge.google { background: #f1f1f1; color: #444; border: 1px solid #ddd; }

.mypage-tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}
.mypage-tab-btn {
  flex: 1;
  padding: 0.85rem 0.25rem;
  background: none;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.mypage-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.mypage-tab-panel { display: none; padding: 1rem 1.25rem; }
.mypage-tab-panel.active { display: block; }

.order-history-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.6rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.order-history-icon { font-size: 1.6rem; flex-shrink: 0; }
.order-history-info { flex: 1; min-width: 0; }
.order-history-name { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.15rem; }
.order-history-meta { font-size: 0.75rem; color: var(--text-muted); display: flex; gap: 0.4rem; flex-wrap: wrap; }
.order-history-meta span::before { content: "·"; margin-right: 0.4rem; }
.order-history-meta span:first-child::before { content: ""; margin: 0; }
.order-history-action { flex-shrink: 0; }

.order-status-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
.order-status-dot.done { background: var(--wood); }
.order-status-dot.paid { background: var(--earth); }
.order-status-dot.pending { background: var(--metal); }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.85rem;
}
.pagination a {
  padding: 0.4rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
}
.pagination a:hover { background: var(--bg); }
.pagination span { color: var(--text-muted); }

.mypage-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.mypage-empty-icon { font-size: 3rem; margin-bottom: 0.75rem; }

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); font-size: 0.82rem; }
.info-value { font-weight: 600; }

.btn-danger {
  background: #fff;
  color: var(--fire);
  border: 1.5px solid var(--fire);
}
.btn-danger:hover { background: #fff0f0; }

/* ═══════════════════════════════════════════════════════════════
   상품 소개 카드 (pi = product intro)
   ═══════════════════════════════════════════════════════════════ */
.pi-card {
  background: linear-gradient(135deg, #fffbf0 0%, #fff8e7 100%);
  border: 1.5px solid var(--border-accent);
  border-radius: 16px;
  padding: 1.5rem 1.25rem 1.25rem;
  margin-bottom: 1.25rem;
}
.pi-header {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  margin-bottom: 1.1rem;
}
.pi-emblem {
  font-size: 2.4rem;
  line-height: 1;
  flex-shrink: 0;
}
.pi-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .25rem;
}
.pi-tagline {
  font-size: .84rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.pi-price-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--accent);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: .28rem .7rem;
  border-radius: 20px;
  margin-top: .55rem;
}
.pi-divider {
  height: 1px;
  background: var(--border-accent);
  margin: 1rem 0;
  opacity: .5;
}
.pi-feats {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.pi-feat {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .6rem .8rem;
  background: rgba(255,255,255,.75);
  border-radius: 10px;
  border: 1px solid rgba(139,105,20,.1);
}
.pi-feat-icon { font-size: 1.15rem; line-height: 1.3; flex-shrink: 0; }
.pi-feat-text b  { display: block; font-size: .87rem; color: var(--primary); margin-bottom: .1rem; }
.pi-feat-text span { font-size: .79rem; color: var(--text-secondary); line-height: 1.5; }

/* ── 데스크탑 반응형 (640px+) ──────────────────────────────── */
.nav-menu-desktop { display: none; }

@media (min-width: 640px) {
  body { padding-bottom: 0; }

  .nav-menu-desktop {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-right: .75rem;
  }
  .nav-menu-link {
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    padding-bottom: 3px;
    transition: color .15s;
  }
  .nav-menu-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform .18s;
  }
  .nav-menu-link:hover { color: var(--accent); }
  .nav-menu-link:hover::after { transform: scaleX(1); }
  .nav-menu-link.active { color: var(--accent); }
  .nav-menu-link.active::after { transform: scaleX(1); }

  .tab-bar { display: none; }
}
