/* 후원 페이지 전용 (site.css 위에 얹는다) — 다크 컨셉. 주소 블록은 항상 LTR. */

.support { max-width: 40rem; margin: 0 auto; }

.support header { text-align: center; width: auto; margin: 1.2rem auto clamp(1.6rem,4vw,2.2rem); }
.support h1 { font-size: clamp(1.6rem,4.5vw,2rem); font-weight: 800; letter-spacing: -.01em; }
.support .lead { color: var(--muted); font-size: 1.1rem; line-height: 1.6; margin: .9rem 0 0; }

/* 결제 수단 = 세로 아코디언 스택 */
.ways { display: block; }

.acc {
  background: var(--panel); border: 1px solid var(--panel-edge);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.acc + .acc { margin-top: 12px; }
.acc__head {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px;
}
.acc__head::-webkit-details-marker { display: none; }
.acc__title {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 1.22rem; font-weight: 700; color: var(--text);
}
.acc__head:hover .acc__title { color: var(--accent); }
.acc__chev {
  flex: none; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s ease;
}
.acc[open] .acc__chev { transform: rotate(-135deg); }
.acc__body { padding: 2px 20px 18px; }
.net {
  font-size: .78rem; font-weight: 600; letter-spacing: .03em; direction: ltr;
  padding: 3px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--panel-edge);
}

/* 주소 블록 — 라틴/기술 문자라 항상 LTR */
.addr {
  direction: ltr;
  display: flex; align-items: center; gap: 8px;
  background: rgba(20,40,80,.04); border: 1px solid var(--panel-edge); border-radius: 10px;
  padding: 8px 8px 8px 12px;
}
.addr code {
  flex: 1 1 auto; min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9rem; color: var(--text); word-break: break-all; line-height: 1.5;
}
.copy {
  flex: none; cursor: pointer; font: inherit; font-size: .86rem; font-weight: 600;
  color: var(--muted); background: rgba(20,40,80,.05);
  border: 1px solid var(--panel-edge); border-radius: 8px; padding: 6px 12px;
  transition: border-color .15s ease, color .15s ease; white-space: nowrap;
}
.copy:hover { border-color: var(--accent); color: var(--text); }
.copy.ok { color: #17924e; border-color: rgba(31,157,87,.45); background: rgba(31,157,87,.14); }

/* QR 은 스캔을 위해 흰 바탕 유지 */
.qr { display: flex; justify-content: center; margin: 14px 0 12px; }
.qrimg {
  width: 132px; height: 132px; display: block;
  border-radius: 10px; padding: 8px; background: #fff;
}

.warn {
  font-size: .9rem; color: #cf3a2e; line-height: 1.5; margin: auto 0 0;
  background: rgba(207,58,46,.07); border: 1px solid rgba(207,58,46,.28);
  border-radius: 8px; padding: 8px 11px;
}
/* Binance Pay 안내(빨간 경고 아님, 중립 파란톤). 하단 정렬로 카드 높이 맞춤 */
.note {
  font-size: .9rem; color: var(--muted); line-height: 1.5; margin: auto 0 0;
  background: var(--accent-soft); border: 1px solid var(--panel-edge);
  border-radius: 8px; padding: 8px 11px;
}
.minnote { font-size: .9rem; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.waytxt { font-size: 1rem; color: var(--muted); margin: 0 0 14px; }
.fiatnote { text-align: center; color: var(--faint); font-size: .92rem; margin: 14px 0 0; }

/* 법정화폐(Ko-fi) 카드 — 상단 전체 폭, 좌 텍스트 / 우 버튼 */
.way--wide {
  grid-column: 1 / -1;
  flex-direction: row; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px 20px;
}
.way__info { flex: 1 1 260px; }
.way--wide h2 { margin: 0; }
.way--wide .waytxt { margin: 6px 0 0; }
.btn-kofi { background: #ff5e5b; color: #fff; flex: none; }
.btn-kofi:hover { filter: brightness(1.07); transform: translateY(-1px); }

/* 임베디드 PayPal 결제 카드 — 다른 코인 카드와 같은 폭(3열 중 하나) */
/* way__info 의 flex-basis(260px) 를 해제해 빈 공간 제거 */
.way--pay .way__info { flex: 0 0 auto; margin-bottom: 4px; }
.way--pay .waytxt { margin: 6px 0 0; }
.amt-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 16px; }
.amt-label { font-size: .98rem; font-weight: 600; color: var(--muted); }
.amt-field {
  display: inline-flex; align-items: center; gap: 4px; direction: ltr;
  color: var(--muted); font-weight: 700;
  background: rgba(20,40,80,.04); border: 1px solid var(--panel-edge);
  border-radius: 10px; padding: 8px 12px;
}
.amt-field input {
  width: 72px; font: inherit; font-weight: 700; color: var(--text);
  background: transparent; border: none; outline: none; direction: ltr;
}
.amt-field input::placeholder { color: var(--faint); font-weight: 600; }
/* 숫자 입력 스피너(흰색 배경) 제거 */
.amt-field input::-webkit-outer-spin-button,
.amt-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amt-field input[type=number] { -moz-appearance: textfield; appearance: textfield; }
/* PayPal 버튼 + 카드 버튼(모달 트리거)을 둥근 흰 카드에. 하단 정렬로 카드 높이 맞춤 */
#paypal-buttons { margin-top: auto; background: #fff; border-radius: 12px; padding: 12px; }
#pp-paypal { margin-bottom: 8px; }
.btn-card {
  width: 100%; cursor: pointer; font: inherit; font-size: .95rem; font-weight: 700; color: #fff;
  background: #2c2e2f; border: none; border-radius: 22px; padding: 11px 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
}
.btn-card:hover { background: #1f2021; }
.btn-card::before { content: ""; width: 21px; height: 15px; border: 1.7px solid #fff; border-radius: 3px; }

/* 카드 결제 모달 — 별도 창이 아니라 페이지 위 오버레이. 카드 폼이 여기서 넓게 펼쳐진다 */
.pp-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pp-modal[hidden] { display: none; }
.pp-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.pp-modal__panel {
  position: relative; background: #fff; border-radius: 16px; padding: 22px 20px 16px;
  width: 100%; max-width: 440px; max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.pp-modal__x {
  position: absolute; top: 8px; inset-inline-end: 12px; border: none; background: transparent;
  font-size: 26px; line-height: 1; cursor: pointer; color: #555; z-index: 1;
}
.pp-modal__title { margin: 0 24px 16px 0; font-size: 1.05rem; font-weight: 800; color: #111; }
.pp-msg { margin: 12px 0 0; font-size: 1rem; font-weight: 600; }
.pp-msg.ok  { color: #17924e; }
.pp-msg.err { color: #cf3a2e; }

.support footer { margin-top: clamp(2rem,6vw,3rem); }
