/* 포인트 충전 창(charge.js) — XEX 충전 창과 같은 구조. 인지도 규칙대로 단색만: 그라데이션·테두리 선·빛번짐 없음.
   고른 칸은 옅은 파랑 바탕 + 채운 체크로만 보인다. 폰(520px 이하)은 공용 .modal 처럼 아래에서 올라오는 시트 */
.modal.charge { max-width: 460px; display: flex; flex-direction: column; overflow: hidden; }
.modal.charge .mh { flex: none; padding-bottom: 4px; }
.modal.charge .mh h2:empty { visibility: hidden; }
.modal.charge .mb { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0; }
.ch { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ch-loading { min-height: 240px; display: grid; place-items: center; }
.ch-spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--panel-2); border-top-color: var(--brand); animation: ch-spin .8s linear infinite; }
.ch-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 20px; scrollbar-width: none; }
.ch-scroll::-webkit-scrollbar { display: none; }
.ch-foot { flex: none; padding: 12px 20px 18px; background: var(--panel); }
.ch-foot-2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.btn.ch-big { width: 100%; min-height: 52px; font-size: 16px; font-weight: 700; border-radius: 14px; }
.ch-foot .btn:disabled { opacity: .45; cursor: not-allowed; }
.ch-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: ch-spin .8s linear infinite; }
@keyframes ch-spin { to { transform: rotate(360deg); } }

/* 포인트 동전 그림(ui.js coinImg) — 숫자 왼쪽. 크기를 안 주면 글자 높이만큼 */
.pcoin { flex: none; display: inline-block; width: 1.05em; height: 1.05em; margin-right: .28em; vertical-align: -.17em; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.balance .pcoin { margin-right: 5px; }
.ch-bal .pcoin, .ch-done-mark .pcoin { margin: 0; }
.ch-bal { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); font-size: 14px; }
.ch-bal > span { flex: 1; color: var(--muted); }
.ch-bal b { font-size: 16px; font-variant-numeric: tabular-nums; }
.ch-wait { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); font-size: 13px; line-height: 1.45; }
.ch-wait .i { flex: none; display: grid; width: 16px; height: 16px; margin-top: 1px; color: var(--brand-2); }
.ch-h { margin: 22px 0 10px; font-size: 15px; font-weight: 700; }

/* 금액 넷 */
.ch-packs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ch-pack { position: relative; display: grid; justify-items: start; gap: 2px; padding: 14px 14px 12px; border: 0; border-radius: 12px; background: var(--panel-2); color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.ch-pack:hover { background: var(--line); }
.ch-pack b { font-size: 22px; font-weight: 800; letter-spacing: -.3px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ch-pack b small { margin-left: 2px; font-size: 15px; font-weight: 700; color: var(--brand-2); }
.ch-won { font-size: 14px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ch-vat { margin-left: 3px; font-size: 11px; font-weight: 500; color: var(--faint); }
.ch-hint { font-size: 12px; color: var(--faint); }
.ch-tick { position: absolute; right: 10px; top: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: transparent; }
.ch-tick svg, .ch-tick .i { width: 14px; height: 14px; display: grid; }
.ch-pack[aria-checked="true"] { background: rgba(255, 61, 127, .24); }
.ch-pack[aria-checked="true"] .ch-tick { background: var(--brand); color: #fff; }

/* 결제 수단 */
.ch-main { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ch-method { position: relative; display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 78px; padding: 10px 4px; border: 0; border-radius: 12px;
  background: var(--panel-2); color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ch-method:hover { background: var(--line); color: var(--text); }
.ch-method .ic svg { width: 28px; height: 28px; display: block; }
.ch-method[aria-checked="true"] { background: rgba(255, 61, 127, .24); color: var(--text); }
.ch-method[aria-checked="true"] .ic { color: var(--brand-2); }
.ch-method[data-soon] { opacity: .5; }
.ch-method[data-soon]:hover { background: var(--panel-2); color: var(--muted); }
.ch-soon-tag { position: absolute; right: 5px; top: 5px; padding: 1px 6px; border-radius: 999px; background: var(--line); color: var(--muted); font-size: 10px; font-style: normal; font-weight: 700; }
.ch-easy-h { display: flex; align-items: center; gap: 6px; margin: 14px 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ch-easy-h .ic svg { width: 18px; height: 18px; display: block; }
.ch-easy-h .ch-soon-tag { position: static; margin-left: 2px; }
.ch-easy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ch-pill { min-height: 44px; padding: 0 4px; border-radius: 22px; }
.ch-note { margin: 10px 2px 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* 계좌이체 */
.ch-bankpick { margin-top: 12px; }
.ch-bank { display: grid; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--brand-soft); font-size: 14px; }
.ch-bank-row { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.ch-bank-row span { flex: none; width: 64px; color: var(--muted); white-space: nowrap; }
.ch-bank-row b { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.ch-bank-no { font-size: 16px; letter-spacing: .2px; font-variant-numeric: tabular-nums; }
.ch-bank-copy { flex: none; height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--panel-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ch-bank-copy:hover { background: var(--line); }
.ch-bank-row.ch-bank-won b { font-size: 16px; color: var(--brand-2); font-variant-numeric: tabular-nums; }
.ch-depositor { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 0 12px 0 16px; border-radius: 12px; background: var(--panel-2); font-size: 14px; }
.ch-depositor:focus-within { background: var(--line); }
.ch-depositor span { flex: none; width: 64px; color: var(--muted); white-space: nowrap; }
.ch-depositor input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; font-weight: 600; }
.ch-depositor input::placeholder { color: var(--faint); font-weight: 500; }
.ch-depositor.bad { background: rgba(248, 113, 113, .16); }
.ch-dep-err { margin: 6px 2px 0; font-size: 13px; line-height: 1.5; color: var(--danger); }
.ch-dep-err em { margin-right: 6px; font-style: normal; font-weight: 700; }
.ch-bank-hint { margin: 8px 2px 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.ch-bank-hint b { color: var(--text); }

/* 합계 */
.ch-sum { display: grid; gap: 8px; margin-top: 20px; padding: 16px; border-radius: 12px; background: var(--panel-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.ch-sum > div { display: flex; justify-content: space-between; gap: 12px; }
.ch-sum span { color: var(--muted); }
.ch-sum b.plus { color: var(--brand-2); }
.ch-sum .total { margin-top: 4px; padding-top: 12px; align-items: baseline; box-shadow: 0 -1px 0 var(--line); }
.ch-sum .total span { color: var(--text); font-weight: 600; }
.ch-sum .total span small { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--faint); }
.ch-sum .total b { font-size: 22px; font-weight: 800; }
.ch-fine { margin: 14px 0 0; padding: 0 0 0 18px; font-size: 12px; line-height: 1.6; color: var(--faint); }
.ch-fine a { color: var(--muted); }
.ch-agree { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; padding: 2px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.ch-agree input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--brand); }
.ch-agree em { margin-right: 6px; font-style: normal; font-weight: 700; color: var(--brand-2); }

/* 입금 안내 · 완료 · 준비 중 */
.ch-bank-ok { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.ch-bank-ok .i { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--ok); color: #04210f; display: grid; }
.ch-bank-amt { display: grid; justify-items: center; gap: 2px; margin-bottom: 14px; text-align: center; }
.ch-bank-amt span { font-size: 13px; color: var(--muted); }
.ch-bank-amt b { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ch-bank-amt small { font-size: 12px; color: var(--faint); }
.ch-bank-fine b { color: var(--text); font-weight: 600; }
.ch-dl { width: 100%; display: grid; gap: 8px; margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--panel-2); font-size: 14px; text-align: left; }
.ch-dl > div { display: flex; justify-content: space-between; gap: 12px; }
.ch-dl dt { color: var(--muted); }
.ch-dl dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.ch-dl .strong dt { color: var(--text); font-weight: 600; }
.ch-dl .strong dd { font-weight: 800; color: var(--brand-2); }
.ch-msg .ch-scroll, .ch-done .ch-scroll { display: grid; justify-items: center; align-content: start; text-align: center; padding-top: 16px; }
.ch-msg h3, .ch-done h3 { margin: 14px 0 6px; font-size: 20px; }
.ch-msg p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.ch-msg p b { color: var(--text); font-weight: 600; }
.charge-soon .ch-scroll { padding-bottom: 24px; }
.ch-soon-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-2); }
.ch-soon-ic .i svg { width: 32px; height: 32px; display: block; }
.ch-done-mark { position: relative; margin-top: 8px; }
.ch-done-mark > .i { position: absolute; right: -4px; bottom: -2px; width: 28px; height: 28px; padding: 6px; border-radius: 50%; display: grid; background: var(--ok); color: #04210f; }
.ch-done-amt { font-size: 34px; font-weight: 800; color: var(--brand-2); letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.ch .i svg { width: 100%; height: 100%; display: block; }

@media (max-width: 520px) {
  .modal.charge { max-height: calc(100dvh - 24px); }
  .ch-scroll { padding: 4px 16px 16px; }
  .ch-foot { padding: 10px 16px calc(12px + var(--safe-b)); }
  .modal.charge { padding-bottom: 0; }
  .ch-pack { padding: 12px 10px 10px; }
  .ch-pack b { font-size: 20px; }
  .ch-method { font-size: 12px; }
}
@media (max-width: 400px) { .ch-vat { margin-left: 2px; font-size: 10px; letter-spacing: -.3px; } }

/* 내 포인트 · 내 정보 · 선물 가게의 충전 자리 */
.gs-balbox { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.topup-row { display: flex; gap: 8px; flex-wrap: wrap; }
.bank-head { margin-top: 20px; }
.bank-list li { align-items: center; }
.bank-list .pill { margin-left: 6px; }
