/* ==========================================================================
   invite.css — 초대 · 크레딧 화면 (390px 폰 기준)
   클래스 앞머리 cr- (credit) — 기존 iv-/inv- 와 겹치지 않게 따로 둔다.
   ========================================================================== */

.cr-wrap { display: block; }

/* ── 잔액 ─────────────────────────────────────────────── */
.cr-bal {
  background: linear-gradient(160deg, rgba(123,232,176,.16), rgba(123,232,176,.05) 60%, transparent);
  border: 1px solid rgba(123,232,176,.34);
  border-radius: 16px;
  padding: 14px 15px 13px;
  margin: 0 0 12px;
}
.cr-bal-top { display: flex; align-items: baseline; gap: 8px; }
.cr-bal-num { font-size: 30px; font-weight: 800; letter-spacing: -.5px; color: #C9FFE0; line-height: 1.1; }
.cr-bal-unit { font-size: 13px; font-weight: 700; color: #9BE8C4; }
.cr-bal-sub { margin-top: 5px; font-size: 12.5px; color: #9AA3B2; line-height: 1.5; }
.cr-bal-row { display: flex; gap: 10px; margin-top: 10px; }
.cr-bal-cell { flex: 1; background: rgba(255,255,255,.04); border-radius: 10px; padding: 8px 9px; }
.cr-bal-cell b { display: block; font-size: 15px; font-weight: 800; color: #E8EAF0; }
.cr-bal-cell span { font-size: 11.5px; color: #9AA3B2; }

/* ── 진행바 ──────────────────────────────────────────── */
.cr-prog { margin: 12px 0 4px; }
.cr-prog-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: #9AA3B2; }
.cr-prog-head b { color: #C9FFE0; font-size: 13.5px; }
.cr-bar { position: relative; height: 9px; border-radius: 99px; background: rgba(255,255,255,.09); margin: 7px 0 6px; overflow: hidden; }
.cr-bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, #6FE0A8, #B9F5D4); }
.cr-marks { display: flex; justify-content: space-between; font-size: 11px; color: #6F7887; }
.cr-marks span.on { color: #9BE8C4; font-weight: 700; }

/* ── 섹션 ────────────────────────────────────────────── */
.cr-sec { margin: 16px 0 0; }
.cr-sec-h { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; }
.cr-sec-h b { font-size: 13px; font-weight: 800; color: #E8EAF0; letter-spacing: .1px; }
.cr-sec-h span { font-size: 11.5px; color: #7E8798; }

/* ── 코드·링크 ───────────────────────────────────────── */
.cr-code {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #12151C; border: 1px solid #262A34; border-radius: 13px; padding: 11px 12px;
}
.cr-code-t { font-size: 19px; font-weight: 800; letter-spacing: 1.6px; color: #E8EAF0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.cr-code-l { font-size: 11.5px; color: #7E8798; margin-top: 2px; word-break: break-all; }
.cr-copy {
  appearance: none; border: 1px solid rgba(123,232,176,.4); background: rgba(123,232,176,.12);
  color: #C9FFE0; font-size: 12.5px; font-weight: 800; border-radius: 10px; padding: 9px 12px;
  white-space: nowrap;
}
.cr-copy:active { transform: scale(.97); }
.cr-mini { display: flex; gap: 8px; margin-top: 9px; }
.cr-mini > button { flex: 1; }

/* ── QR ──────────────────────────────────────────────── */
.cr-qr { display: flex; align-items: center; gap: 13px; margin-top: 11px; background: rgba(255,255,255,.03); border-radius: 13px; padding: 11px; }
.cr-qr canvas { width: 108px; height: 108px; border-radius: 8px; background: #fff; flex: 0 0 auto; }
.cr-qr-t { font-size: 12.5px; line-height: 1.55; color: #B9C0CC; }
.cr-qr-t b { color: #E8EAF0; display: block; font-size: 13px; margin-bottom: 2px; }

/* ── 공유 앱 ─────────────────────────────────────────── */
.cr-apps { display: flex; gap: 9px; margin-top: 11px; }
.cr-app {
  flex: 1; appearance: none; border: 1px solid #262A34; background: #14171E; border-radius: 13px;
  padding: 10px 6px 9px; color: #C9CFDA; font-size: 11.5px; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.cr-app:active { transform: scale(.97); }
.cr-app svg { width: 22px; height: 22px; }
.cr-app.kakao svg { color: #FEE500; }
.cr-app.sms svg { color: #34C759; }
.cr-app.more svg { color: #9BE8C4; }

/* ── 내역 ────────────────────────────────────────────── */
.cr-list { list-style: none; margin: 0; padding: 0; }
.cr-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 2px; border-bottom: 1px solid #1D2129; font-size: 13px;
}
.cr-list li:last-child { border-bottom: 0; }
.cr-li-t { color: #DDE2EB; }
.cr-li-s { color: #7E8798; font-size: 11.5px; margin-top: 1px; }
.cr-li-n { font-weight: 800; font-size: 13.5px; color: #9BE8C4; white-space: nowrap; }
.cr-li-n.minus { color: #8C93A1; }
.cr-empty { font-size: 12.5px; color: #7E8798; padding: 10px 2px; }

/* ── 초대 목록 상태 ──────────────────────────────────── */
.cr-pill { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.cr-pill.wait { background: rgba(255,209,102,.14); color: #FFD166; }
.cr-pill.ok { background: rgba(123,232,176,.15); color: #9BE8C4; }
.cr-pill.hold { background: rgba(255,138,138,.14); color: #FF9A9A; }

/* ── 규칙 ────────────────────────────────────────────── */
.cr-rule { margin: 18px 0 0; padding: 13px 14px; background: rgba(255,255,255,.03); border-radius: 13px; }
.cr-rule b { display: block; font-size: 12.5px; color: #C9CFDA; margin-bottom: 6px; }
.cr-rule ul { margin: 0; padding-left: 16px; }
.cr-rule li { font-size: 12px; line-height: 1.62; color: #9AA3B2; }
.cr-rule li b { display: inline; color: #DDE2EB; font-size: 12px; }
.cr-warn { margin-top: 10px; font-size: 11.5px; line-height: 1.55; color: #FFB86B; }

/* ── 채팅 위 초대 안내 띠 ────────────────────────────── */
.cr-banner {
  margin: 8px 12px 2px; padding: 10px 12px; border-radius: 12px;
  background: rgba(123,232,176,.12); border: 1px solid rgba(123,232,176,.3);
  font-size: 12.5px; line-height: 1.5; color: #C9FFE0;
  display: flex; align-items: center; gap: 9px;
}
.cr-banner b { color: #EFFFF5; }
.cr-banner .cr-banner-x {
  margin-left: auto; appearance: none; border: 0; background: transparent;
  color: #9BE8C4; font-size: 16px; line-height: 1; padding: 4px 2px;
}

/* 라이트 테마 */
html[data-theme="light"] .cr-bal { background: linear-gradient(160deg, rgba(43,176,116,.14), rgba(43,176,116,.04)); border-color: rgba(43,176,116,.3); }
html[data-theme="light"] .cr-bal-num { color: #14724A; }
html[data-theme="light"] .cr-bal-unit, html[data-theme="light"] .cr-prog-head b { color: #1E8B5C; }
html[data-theme="light"] .cr-bal-sub { color: #5A6472; }
html[data-theme="light"] .cr-bal-cell { background: rgba(0,0,0,.035); }
html[data-theme="light"] .cr-bal-cell b { color: #1A1D24; }
html[data-theme="light"] .cr-code { background: #fff; border-color: #E3E7EE; }
html[data-theme="light"] .cr-code-t { color: #1A1D24; }
html[data-theme="light"] .cr-app { background: #fff; border-color: #E3E7EE; color: #33383F; }
html[data-theme="light"] .cr-list li { border-bottom-color: #EEF1F5; }
html[data-theme="light"] .cr-li-t { color: #22252B; }
html[data-theme="light"] .cr-rule { background: rgba(0,0,0,.03); }
html[data-theme="light"] .cr-banner { background: rgba(43,176,116,.1); color: #14724A; }
