/* ============================================================
   자미두수 - 디자인 토큰
   night-sky purple / star gold, Song Myung + Noto Sans KR
   ============================================================ */
:root {
  --bg: #fdfbf4;
  --bg-deep: #f3e9d6;
  --surface: #ffffff;
  --surface-soft: #faf3e4;
  --border: #e3d3b3;
  --border-soft: #eee2c9;

  --text: #2c2117;
  --text-muted: #7c6c54;
  --text-faint: #a89a82;

  --accent: #b3382c;
  --accent-strong: #8f2a20;
  --gold: #c9a227;
  --gold-soft: #b8924a;
  --jade: #2f7a5c;

  --danger: #c0392b;
  --success: #2f7a5c;

  --font-display: "Song Myung", serif;
  --font-body: "Noto Sans KR", -apple-system, sans-serif;

  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 8px;

  --shadow-card: 0 18px 40px -20px rgba(120, 90, 40, 0.25);
  --shadow-glow: 0 0 50px rgba(201, 162, 39, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(60% 45% at 85% 0%, rgba(201, 162, 39, 0.06) 0%, transparent 60%),
    radial-gradient(120% 90% at 50% -10%, #ffffff 0%, var(--bg) 45%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ============================================================
   헤더 / 네비게이션
   ============================================================ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(20px, 5vw, 56px);
  border-bottom: 1px solid var(--border-soft);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.logo-mark {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--text-muted);
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav .guest-only--cta,
.site-nav a[href="/register"] {
  color: var(--accent);
}

.link-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.link-btn:hover {
  color: var(--text);
}

/* ============================================================
   본문 / 풋터
   ============================================================ */
.page {
  flex: 1;
  display: flex;
}

.site-footer {
  padding: 24px clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--border-soft);
  color: var(--text-faint);
  font-size: 12.5px;
  text-align: center;
}

.site-footer p {
  margin: 4px 0;
}

/* ============================================================
   12궁 휠 (시그니처 장식)
   ============================================================ */
.zodiac-wheel {
  --size: 560px;
  position: absolute;
  width: var(--size);
  height: var(--size);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  animation: wheel-spin 220s linear infinite;
}

.zodiac-wheel__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.zodiac-wheel__ring--outer {
  inset: 0;
}

.zodiac-wheel__ring--inner {
  inset: 64px;
  border-style: dashed;
  border-color: var(--jade);
  opacity: 0.35;
}

.zodiac-wheel__core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.4;
}

.zodiac-wheel .palace {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
}

.zodiac-wheel .palace span {
  position: absolute;
  transform-origin: center;
  display: inline-block;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--accent);
  white-space: nowrap;
  opacity: 0.55;
}

@keyframes wheel-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .zodiac-wheel {
    animation: none;
  }
}

@media (max-width: 640px) {
  .zodiac-wheel {
    --size: 380px;
  }
  .zodiac-wheel .palace span {
    font-size: 11px;
  }
}

/* ============================================================
   인증(로그인/회원가입) 페이지
   ============================================================ */
.auth-page {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 56px 20px;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 408px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 40px clamp(24px, 6vw, 44px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.auth-card__eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.18em;
  color: var(--gold-soft);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}

.auth-card__desc {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 28px;
}

/* ============================================================
   폼 요소
   ============================================================ */
.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-field input {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input::placeholder {
  color: var(--text-faint);
}

.form-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(179, 56, 44, 0.14);
}

.form-field__hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-faint);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fdf6ec;
}

.btn-primary:hover:not(:disabled) {
  opacity: 0.92;
}

.auth-card__footer {
  margin-top: 22px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
}

.auth-card__footer a {
  color: var(--gold);
  font-weight: 600;
}

.auth-card__footer a:hover {
  text-decoration: underline;
}

/* ============================================================
   알림 메시지
   ============================================================ */
.alert {
  display: none;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}

.alert.is-visible {
  display: block;
}

.alert-error {
  background: rgba(192, 57, 43, 0.08);
  border-color: rgba(192, 57, 43, 0.3);
  color: var(--danger);
}

.alert-success {
  background: rgba(47, 122, 92, 0.08);
  border-color: rgba(47, 122, 92, 0.3);
  color: var(--success);
}

/* ============================================================
   보조 버튼 / 와이드 버튼
   ============================================================ */
.btn-wide {
  width: auto;
  padding: 13px 28px;
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   홈 페이지 - 히어로
   ============================================================ */
.home {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 560px;
  padding: 64px clamp(20px, 6vw, 64px);
}

.hero .zodiac-wheel {
  --size: 720px;
  right: -180px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 900px) {
  .hero .zodiac-wheel {
    --size: 460px;
    right: -160px;
    opacity: 0.6;
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.eyebrow,
.section__eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 14px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.2vw, 52px);
  line-height: 1.3;
  margin: 0 0 20px;
  letter-spacing: 0.01em;
}

.hero__title--accent {
  background: linear-gradient(135deg, var(--gold) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__desc {
  color: var(--text-muted);
  font-size: 15.5px;
  max-width: 460px;
  margin: 0 0 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ============================================================
   섹션 공통
   ============================================================ */
.section {
  padding: 72px clamp(20px, 6vw, 64px);
}

.section--alt {
  background: linear-gradient(180deg, rgba(47, 122, 92, 0.05), transparent 60%);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 32px);
  margin: 0 0 36px;
  letter-spacing: 0.01em;
}

.section__note {
  margin-top: 28px;
  color: var(--text-faint);
  font-size: 13.5px;
}

/* ============================================================
   제품 소개 카드
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.product-card__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 18px;
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 12px;
}

.product-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0 0 20px;
}

.product-card__link {
  color: var(--jade);
  font-size: 14px;
  font-weight: 600;
}

.product-card__link:hover {
  text-decoration: underline;
}

/* ============================================================
   이용 방법 (단계)
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 10px;
}

.step h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

/* ============================================================
   요금 카드
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
}

.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 4px;
}

.pricing-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}

.pricing-card__row:last-of-type {
  border-bottom: none;
}

.pricing-card__label {
  color: var(--text-muted);
  font-size: 14px;
}

.pricing-card__price {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold);
}

.pricing-card .btn {
  margin-top: 6px;
}

/* ============================================================
   자미두수 입력/결과 페이지 (jami.html)
   ============================================================ */
.jami-page {
  width: 100%;
  padding: 48px clamp(16px, 5vw, 56px) 80px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.jami-page__header {
  text-align: center;
}

.jami-page__header h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 34px);
  margin: 0 0 8px;
}

.jami-page__header p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0;
}

/* ----- 입력 카드 ----- */
.input-card {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px clamp(20px, 5vw, 36px);
  box-shadow: var(--shadow-card);
}

.calendar-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
}

.calendar-tabs button {
  padding: 12px;
  border: none;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

.calendar-tabs button.is-active {
  background: var(--accent);
  color: #fdf6ec;
}

.date-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.date-row .form-field {
  margin-bottom: 0;
}

.form-field select {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  appearance: none;
}

.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(179, 56, 44, 0.14);
}

.leap-month-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.leap-month-check input {
  width: 16px;
  height: 16px;
}

.gender-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 6px 0 24px;
}

.gender-tabs button {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

.gender-tabs button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fdf6ec;
}

.notice-box {
  display: none;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(192, 57, 43, 0.3);
  background: rgba(192, 57, 43, 0.06);
  color: var(--danger);
  font-size: 13px;
  margin-bottom: 18px;
}

.notice-box.is-visible {
  display: flex;
}

/* ----- 결과 영역 ----- */
.result-section {
  display: none;
  flex-direction: column;
  gap: 28px;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}

.result-section.is-visible {
  display: flex;
}

.result-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 14px;
  text-align: center;
  letter-spacing: 0.16em;
  color: var(--gold-soft);
}

/* ----- 사주팔자 카드 ----- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px 8px;
  text-align: center;
}

.pillar-card__label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pillar-card__ganji {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.5;
  color: var(--accent);
}

.pillar-card__hangul {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 6px;
}

@media (max-width: 640px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ----- 명반 12궁 그리드 ----- */
.palace-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, minmax(120px, 1fr));
  grid-template-areas:
    "jin sa  o   mi"
    "myo center center sin"
    "in  center center yu"
    "chuk ja hae sul";
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.palace {
  background: var(--surface);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  transition: background 0.15s ease;
}

.palace.is-life {
  background: var(--surface-soft);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.palace__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.palace__name {
  font-size: 12px;
  color: var(--jade);
  font-weight: 600;
}

.palace__life-tag {
  display: none;
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
}

.palace.is-life .palace__life-tag {
  display: inline;
}

.palace__branch {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 2px 0;
}

.palace__stars {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  word-break: keep-all;
}

.palace__stars .star-main {
  color: var(--accent);
  font-weight: 600;
}

.palace__stars .star-hwagi {
  color: var(--gold);
}

.palace--jin { grid-area: jin; }
.palace--sa { grid-area: sa; }
.palace--o { grid-area: o; }
.palace--mi { grid-area: mi; }
.palace--sin { grid-area: sin; }
.palace--yu { grid-area: yu; }
.palace--sul { grid-area: sul; }
.palace--hae { grid-area: hae; }
.palace--ja { grid-area: ja; }
.palace--chuk { grid-area: chuk; }
.palace--in { grid-area: in; }
.palace--myo { grid-area: myo; }

.palace-center {
  grid-area: center;
  background: var(--surface-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 16px;
}

.palace-center__mark {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--accent);
}

.palace-center__row {
  font-size: 13px;
  color: var(--text-muted);
}

.palace-center__row strong {
  color: var(--text);
}

@media (max-width: 640px) {
  .palace-grid {
    grid-template-rows: repeat(4, minmax(86px, 1fr));
  }
  .palace {
    padding: 6px;
  }
  .palace__branch {
    font-size: 18px;
  }
  .palace__name {
    font-size: 10.5px;
  }
  .palace__stars {
    font-size: 10.5px;
  }
  .palace-center__mark {
    font-size: 22px;
  }
  .palace-center__row {
    font-size: 11px;
  }
}

/* ----- 결과 액션 (저장/AI 해석) ----- */
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.result-actions .btn {
  width: auto;
  padding: 13px 26px;
}

/* ----- AI 해석 패널 ----- */
.ai-panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px clamp(20px, 5vw, 36px);
  box-shadow: var(--shadow-card);
}

.ai-panel__locked {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.ai-panel__locked .price {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 18px;
  margin: 10px 0 18px;
}

.ai-result {
  white-space: pre-wrap;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text);
}

.ai-followup {
  margin-top: 24px;
  border-top: 1px solid var(--border-soft);
  padding-top: 20px;
}

.ai-followup__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.ai-followup__qa {
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
}

.ai-followup__qa .q {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}

.ai-followup__qa .a {
  color: var(--text);
  white-space: pre-wrap;
}

.ai-followup form {
  display: flex;
  gap: 8px;
}

.ai-followup form input {
  flex: 1;
}

.ai-followup form button {
  width: auto;
  padding: 0 20px;
}

/* ----- 로딩 ----- */
.loading-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin: 0 2px;
  animation: loading-blink 1.2s infinite ease-in-out;
}

.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes loading-blink {
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}

@keyframes starSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

.star-loader {
  display: inline-block;
}



/* ============================================================
   궁합(goonghap.html) 전용 스타일
   ============================================================ */
.goonghap-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}

.goonghap-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.goonghap-chart-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (max-width: 700px) {
  .goonghap-charts { grid-template-columns: 1fr; }
}

/* ============================================================
   마이페이지(mypage.html) 전용 스타일
   ============================================================ */
.mypage {
  width: 100%;
  padding: 48px clamp(16px, 5vw, 56px) 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.mypage-section {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.mypage-section__title {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
  letter-spacing: 0.04em;
}

/* 내 정보 카드 */
.info-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.info-row__label {
  color: var(--text-muted);
  min-width: 70px;
  flex-shrink: 0;
}

.info-row__value {
  color: var(--text);
  font-weight: 500;
  flex: 1;
}

.info-row__btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12.5px;
  padding: 5px 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.info-row__btn:hover { border-color: var(--accent); color: var(--accent); }

/* 목록 카드 (명반/궁합/결제 내역) */
.list-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.list-empty {
  padding: 32px;
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
  transition: background 0.12s;
  cursor: pointer;
}

.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--surface-soft); }

.list-item__icon {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.list-item__main {
  flex: 1;
}

.list-item__title {
  font-weight: 600;
  margin-bottom: 3px;
}

.list-item__sub {
  color: var(--text-muted);
  font-size: 12.5px;
}

.list-item__badge {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 20px;
  flex-shrink: 0;
}

.badge-ai { background: rgba(47,122,92,0.12); color: var(--jade); border: 1px solid rgba(47,122,92,0.3); }
.badge-no-ai { background: var(--surface-soft); color: var(--text-faint); border: 1px solid var(--border-soft); }
.badge-paid { background: rgba(47,122,92,0.12); color: var(--jade); border: 1px solid rgba(47,122,92,0.3); }
.badge-ready { background: rgba(201,162,39,0.1); color: var(--gold); border: 1px solid rgba(201,162,39,0.3); }
.badge-cancelled { background: var(--surface-soft); color: var(--text-faint); border: 1px solid var(--border-soft); }
.badge-active { background: rgba(47,122,92,0.12); color: var(--jade); border: 1px solid rgba(47,122,92,0.3); }

/* 로딩 스피너 */
.list-loading {
  padding: 28px;
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
}

/* 비밀번호 변경 인라인 폼 */
.pw-change-form {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.pw-change-form.is-open { display: flex; }

/* 구독 현황 */
.sub-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.sub-card__info { flex: 1; }
.sub-card__product { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.sub-card__detail { color: var(--text-muted); font-size: 13px; }

