/* ========================================= */
/* Points Page Styles                       */
/* ========================================= */

.points-container {
  padding: 16px 16px;
  background: var(--bg-default);
  min-height: 100vh;
}

/* Points Summary */
.points-summary-section { margin: 0 0 20px; }

.points-summary {
  display: flex;
  flex-direction: column;
  padding: 16px;   /* 사방 16 (10-22, 전 위만 20) */
  background: var(--bg-muted);          /* 흰 카드 → 연회색 면 (10-20 사용자 "박스 흰색 말고"). 빨강은 CTA·배지만 (26-08-30) */
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
}

.points-content {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.points-left, .points-right { flex: 1; text-align: center; }

.points-divider {
  width: 1px;
  height: 40px;
  background: var(--border-subtle);
  margin: 0 16px;
}

.points-label {
  font: var(--t-caption);
  color: var(--fg-secondary);
  margin-bottom: 4px;
}

.points-value {
  font: var(--t-headline);
  color: var(--fg-primary);
}
.points-right .points-value { font: var(--t-title); font-weight: 600; }   /* 누적은 참고 숫자 — 쓸 수 있는 잔액(24/700)이 먼저 읽히게 20/600 (10-22 Astra) */

.points-note { margin-top: 12px; text-align: center; }

.points-note .note-box {   /* 포인트 화면 안으로 한정 — main.css 로 전 화면에 실려 공용 .note-box(form-page.css) 를 덮던 것 (10-25: 탈퇴·휴면·국가 추가 안내 상자 제목이 12 회색으로 작아지고 목록과 어긋남) */
  background: var(--bg-muted);
  border: none;
  border-radius: var(--r-12);   /* 큰 면 = 8 (26-09-02 모서리 규칙) */
  padding: var(--space-card);   /* 16 — 공용 .note-box 와 같게 (10-25 통일, 옛 12·24) */
  display: block;
  width: 100%;
}
.points-note .note-box p { font: var(--t-caption); color: var(--fg-secondary); margin: 0; }

/* 인출 버튼 = 공용 .btn.btn-inverse.w100 M 44 (10-22 Astra — 화면의 주 행동이라 36→44, 색은 10-19 확정대로 검정) (10-22 버튼 정리, 전 .withdraw-btn — 값 같음) */

/* 출금 시트 (26-09-12 승격, 컨셉 03-withdraw-sheet) */
/* 금액 칸 — 단위 P 와 Max 를 칸 안 오른쪽에. 32 버튼이 48 칸 위아래 8 로 가운데 선다 */
.withdraw-amount { position: relative; }
.withdraw-amount .form-input { padding-right: calc(var(--gutter) * 5); font-variant-numeric: tabular-nums; }
.withdraw-amount-end { position: absolute; top: 0; right: var(--space-control); bottom: 0; display: flex; align-items: center; gap: var(--space-control); }
.withdraw-unit { font: var(--t-body-lg); color: var(--fg-secondary); }
/* 읽기 전용 칸 — .form-input 상자를 그대로 쓰고 회색 면 + 오른쪽 글자 버튼 */
.withdraw-readonly { display: flex; align-items: center; justify-content: space-between; gap: var(--space-control); padding-right: var(--space-control); background: var(--bg-sunken); border-color: transparent; }   /* 10-18 규칙: 회색 면 = 테두리 없음 · 흰 상자 = 테두리 · 사진 = 안쪽 1px 그림자 */
.withdraw-readonly-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.withdraw-readonly .btn { flex: none; }
/* 받는 금액·지급일 요약 */
.withdraw-summary { display: flex; flex-direction: column; gap: var(--space-control); padding: var(--space-content) var(--gutter); background: var(--bg-muted); border-radius: var(--r-12); }
.withdraw-kv { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-content); font: var(--t-body); color: var(--fg-secondary); }
.withdraw-kv b { font-weight: 600; color: var(--fg-primary); font-variant-numeric: tabular-nums; text-align: right; }
.withdraw-kv.is-lead { margin-bottom: var(--space-card); }

/* 출금 내역 여러 건 (26-09-12, 컨셉 03-withdraw-done) */
.withdrawal-list { display: flex; flex-direction: column; gap: var(--space-content); }

/* Withdrawal Progress */
.withdrawal-progress-section { margin: 20px 0 16px; }
.section-title {
  font: var(--t-body-lg);   /* 본문 구간 제목 16/24 700 (10-25) */
  font-weight: 700;
  color: var(--fg-primary);
  margin-bottom: 12px;
}

.withdrawal-item {
  background: linear-gradient(135deg, var(--bg-default) 0%, var(--bg-muted) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-12);   /* 큰 면 = 8 (26-09-02 모서리 규칙) */
  padding: 12px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.withdrawal-item:hover { transform: translateY(-1px); }

.withdrawal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.withdrawal-left { display: flex; flex-direction: column; gap: 12px; }
.withdrawal-date { font-size: 14px; line-height: 20px; color: var(--fg-primary); font-weight: 400; }
.withdrawal-amount { font: var(--t-label); font-weight: 600; color: var(--fg-primary); }   /* 목록 금액 = 14/20 600 (10-21 사용자 확정, 전 16/700) */

.withdrawal-details { display: flex; justify-content: flex-end; align-items: flex-start; gap: 8px; }
.withdrawal-status-info { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.withdrawal-account-text { font-size: 14px; line-height: 20px; color: var(--fg-secondary); font-weight: 400; }
.change-info { font-size: 14px; line-height: 20px; color: var(--fg-secondary); font-weight: 400; text-align: right; }
/* 옛 상태 카드(.withdrawal-status-card · .status-*)·주황 상태 글자는 배지 목록으로 대체돼 삭제 (26-09-12) */

/* Important Notes */
.important-notes { background: var(--bg-muted); border-radius: var(--r-12); overflow: hidden; }
.notes-header { background: var(--bg-sunken); color: var(--fg-primary); font-size: 14px; line-height: 20px; font-weight: 500; padding: 12px 16px; }
.notes-content { padding: 16px; }
.note-item { display: flex; align-items: flex-start; margin-bottom: 12px; gap: 8px; }
.note-item:last-child { margin-bottom: 0; }
.note-bullet { color: var(--fg-brand); font-weight: 500; flex-shrink: 0; }
.note-text { font-size: 14px; color: var(--fg-primary); line-height: 20px; font-weight: 400; }

/* History List */
.history-list {
  background: linear-gradient(135deg, var(--bg-default) 0%, var(--bg-muted) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-12);   /* 6 폐기 → 큰 면 8 (26-09-02) */
  overflow: hidden;
}
.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  position: relative;
}
.history-item:hover { background: rgba(0, 0, 0, 0.02); }
.history-item:last-child { border-bottom: none; }
.history-date { font-size: 14px; line-height: 20px; color: var(--fg-primary); font-weight: 400; }
.history-points { font: var(--t-label); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }   /* 목록 금액 = 14/20 600 (10-21, 전 16/700) */
.history-points.positive { color: var(--fg-primary); }     /* 적립 = 검정 (10-21 사용자 확정, 전 빨강 — 빨강은 CTA·배지·오류만) */
.history-points.negative { color: var(--fg-secondary); }   /* 차감 = 회색 (10-21 사용자 확정) */
