.cash-modal {
  position: fixed;
  inset: 0;
  z-index: 14000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 31, 47, .46);
  backdrop-filter: blur(3px);
}
.cash-modal[hidden] { display: none; }
.cash-modal-box {
  width: min(460px, 100%);
  overflow: hidden;
  border: 1px solid #a7bacb;
  border-top: 5px solid #294a69;
  border-radius: 5px;
  background: #fffefb;
  box-shadow: 0 22px 52px rgba(16, 36, 56, .28);
}
.cash-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px 16px;
  border-bottom: 1px solid #d7e0e8;
  background: #eef3f7;
}
.cash-overline { display: block; margin-bottom: 4px; color: #58718a; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.cash-modal-head h2 { margin: 0; color: #173b5a; font-family: "Noto Serif KR", serif; font-size: 1.28rem; letter-spacing: -.04em; }
.cash-close { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; margin: 0; padding: 0; border: 1px solid #b9c9d6; border-radius: 50%; background: rgba(255,255,255,.8); color: #40627e; cursor: pointer; transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease; }
.cash-close svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.cash-close:hover { border-color: #315d88; background: #fff; color: #173b5a; }
.cash-wallet-box { width: min(492px, 100%); max-height: min(90vh, 860px); overflow-y: auto; }
.cash-wallet-head { align-items: center; padding-bottom: 15px; }
.cash-wallet-balance { position: relative; margin: 20px 22px 0; padding: 18px 19px 17px; overflow: hidden; border: 1px solid #aebfd0; border-top: 3px solid #294a69; background: #f7fafc; color: #657b90; }
.cash-wallet-balance > span { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.cash-wallet-amount { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 6px; }
.cash-wallet-mark { display: inline-grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border: 1px solid #9baebe; border-radius: 50%; color: #315d88; font: 700 12px/1 Georgia, serif; font-style: normal; letter-spacing: -.06em; transform: translateY(-1px); }
.cash-wallet-balance strong { color: #173b5a; font: 700 32px/1 Georgia, "Noto Serif KR", serif; letter-spacing: -.03em; }
.cash-wallet-balance em { position: relative; z-index: 1; margin-left: 0; color: #41627e; font-size: 13px; font-style: normal; font-weight: 800; }
.cash-wallet-balance p { position: relative; z-index: 1; margin: 9px 0 0; color: #71879a; font-size: 11px; font-weight: 600; }
.cash-pending-rewards { margin: 12px 22px 0; padding: 14px 15px 13px; border: 1px solid #c5d2dd; border-left: 3px solid #a1844d; background: #fffdf8; }
.cash-pending-rewards[hidden] { display: none; }
.cash-pending-rewards[aria-busy="true"] { border-left-color: #91a7ba; }
.cash-pending-rewards.is-verification-needed { border-left-color: #91a7ba; background: #f8fafc; }
.cash-pending-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.cash-pending-head span { display: block; margin-bottom: 3px; color: #8a7651; font: 700 9px/1.2 Georgia, serif; letter-spacing: .11em; }
.cash-pending-head h3 { margin: 0; color: #24445f; font-family: "Noto Serif KR", serif; font-size: .95rem; letter-spacing: -.035em; }
.cash-pending-head > b { min-width: 25px; padding: 3px 6px; border: 1px solid #cfbf9f; color: #765e32; font-size: 10px; text-align: center; }
.cash-pending-head > b:empty { display: none; }
.cash-pending-status { margin: 10px 0 0; color: #718397; font-size: 11px; line-height: 1.5; }
.cash-pending-status:empty { display: none; }
.cash-pending-list { display: grid; gap: 7px; margin: 11px 0 0; padding: 0; list-style: none; }
.cash-pending-list:empty { display: none; }
.cash-pending-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; padding: 11px 11px 10px; border: 1px solid #d6dee5; background: #fff; transition: opacity .16s ease, border-color .16s ease, background .16s ease; }
.cash-pending-item.is-claiming { border-color: #bdcbd7; background: #f7fafc; }
.cash-pending-item.is-claimed { border-color: #aecbb7; background: #f3faf5; }
.cash-pending-summary { min-width: 0; }
.cash-pending-game-line { display: flex; min-width: 0; align-items: center; gap: 7px; }
.cash-pending-game { overflow: hidden; color: #213f59; font-size: 12px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.cash-pending-rank { flex: 0 0 auto; padding-left: 7px; border-left: 1px solid #d7dfe6; color: #86692f; font-size: 11px; font-weight: 850; }
.cash-pending-period { display: block; margin-top: 4px; color: #7a8b9a; font-size: 10px; }
.cash-pending-value { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.cash-pending-amount { color: #765a24; font: 700 15px/1 Georgia, "Noto Serif KR", serif; white-space: nowrap; }
.cash-pending-amount::after { content: " 캐시"; color: #7a8b98; font: 650 9px/1 Pretendard, sans-serif; }
.cash-pending-claim { min-width: 54px; height: 34px; padding: 0 10px; border: 1px solid #294a69; border-radius: 3px; background: #315d88; color: #fff; font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }
.cash-pending-claim:hover:not(:disabled), .cash-pending-claim:focus-visible:not(:disabled) { background: #244d75; }
.cash-pending-claim:disabled { cursor: wait; opacity: .58; }
.cash-pending-item-status { grid-column: 1 / -1; margin: -1px 0 0; color: #327044; font-size: 10px; line-height: 1.45; }
.cash-pending-item-status:empty { display: none; }
.cash-wallet-send { display: flex; width: calc(100% - 44px); align-items: center; justify-content: space-between; gap: 14px; margin: 12px 22px 0; padding: 14px 16px; border: 1px solid #315d88; border-radius: 3px; background: #315d88; color: #fff; text-align: left; cursor: pointer; box-shadow: 0 7px 14px rgba(35,75,115,.14); transition: transform .16s ease, background .16s ease, box-shadow .16s ease; }
.cash-wallet-send:hover { background: #244d75; box-shadow: 0 10px 18px rgba(35,75,115,.2); transform: translateY(-1px); }
.cash-wallet-send-copy small, .cash-wallet-send-copy strong { display: block; }
.cash-wallet-send-copy small { margin-bottom: 3px; color: #cddce8; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.cash-wallet-send-copy strong { font-size: 14px; letter-spacing: -.02em; }
.cash-wallet-send-arrow { font: 400 22px/1 Georgia, serif; }
.cash-earn-guide { margin: 21px 22px 22px; padding-top: 18px; border-top: 1px solid #d9e2e9; }
.cash-earn-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.cash-earn-head span { display: block; margin-bottom: 4px; color: #73879a; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.cash-earn-head h3 { margin: 0; color: #173b5a; font-family: "Noto Serif KR", serif; font-size: 1.05rem; letter-spacing: -.035em; }
.cash-earn-head > b { padding: 4px 7px; border: 1px solid #b7c7d7; color: #315d88; font-size: 10px; letter-spacing: .02em; }
.cash-earn-steps { display: grid; gap: 8px; margin: 14px 0 13px; padding: 0; list-style: none; }
.cash-earn-steps li { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 8px; color: #526a80; font-size: 11px; line-height: 1.55; }
.cash-earn-steps li > span { display: grid; width: 18px; height: 18px; place-items: center; border: 1px solid #a9bdcf; color: #315d88; font: 700 10px/1 Georgia, serif; }
.cash-earn-steps p { margin: 1px 0 0; }
.cash-rank-rewards { display: grid; grid-template-columns: repeat(5, 1fr); overflow: hidden; border: 1px solid #c6d3de; background: #fff; }
.cash-rank-rewards span { display: grid; min-height: 50px; place-content: center; gap: 2px; border-right: 1px solid #dce5ec; border-bottom: 1px solid #dce5ec; text-align: center; }
.cash-rank-rewards span:nth-child(5n) { border-right: 0; }
.cash-rank-rewards span:nth-child(n+6) { border-bottom: 0; }
.cash-rank-rewards b { color: #6e8294; font-size: 10px; }
.cash-rank-rewards b::after { content: "위"; margin-left: 1px; font-size: 9px; font-weight: 600; }
.cash-rank-rewards em { color: #244b70; font: 700 13px/1 Georgia, "Noto Serif KR", serif; font-style: normal; }
.cash-rank-rewards em::after { content: " 캐시"; color: #71869a; font: 600 8px/1 Pretendard, sans-serif; }
.cash-rank-rewards span:nth-child(1) { background: #f5f0e3; }
.cash-rank-rewards span:nth-child(1) em { color: #8a6b2c; }
.cash-rank-rewards span:nth-child(2) { background: #f5f8fa; }
.cash-rank-rewards span:nth-child(3) { background: #f8f4f0; }
.cash-earn-note { margin: 10px 0 0; color: #778b9d; font-size: 10px; line-height: 1.5; }
.cash-transfer-step { padding: 20px 22px 22px; }
.cash-balance-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; padding: 11px 12px; border: 1px solid #d4e0e9; background: #f8fafc; color: #617489; font-size: .82rem; }
.cash-balance-row strong { color: #1e466b; font-size: 1rem; }
.cash-field { display: block; margin-top: 14px; color: #314d65; font-size: .83rem; font-weight: 800; }
.cash-field input { box-sizing: border-box; width: 100%; height: 43px; margin-top: 7px; padding: 0 12px; border: 1px solid #b9c8d5; border-radius: 3px; background: #fff; color: #192f43; font: inherit; font-weight: 600; outline: none; }
.cash-field input:focus { border-color: #315d88; box-shadow: 0 0 0 3px rgba(49,93,136,.12); }
.cash-field small { display: block; margin-top: 6px; color: #74879a; font-size: 11px; font-weight: 500; }
.cash-amount-wrap { position: relative; }
.cash-amount-wrap input { padding-right: 55px; }
.cash-amount-wrap span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: #60758a; font-size: .82rem; font-weight: 800; }
.cash-recipient-results { min-height: 0; margin-top: 8px; }
.cash-recipient-results:empty { display: none; }
.cash-recipient-option { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid #d5e0e8; border-bottom: 0; background: #fff; color: #1a344c; text-align: left; cursor: pointer; }
.cash-recipient-option:first-child { border-radius: 3px 3px 0 0; }
.cash-recipient-option:last-child { border-bottom: 1px solid #d5e0e8; border-radius: 0 0 3px 3px; }
.cash-recipient-option:hover { position: relative; border-color: #86a4bf; background: #f4f8fb; }
.cash-recipient-name { display: block; font-size: .88rem; font-weight: 800; }
.cash-recipient-email { display: block; margin-top: 2px; color: #718497; font-size: 11px; }
.cash-recipient-mark { color: #315d88; font-size: 12px; font-weight: 800; white-space: nowrap; }
.cash-recipient-empty { padding: 11px 12px; border: 1px solid #d5e0e8; color: #77899b; font-size: .8rem; }
.cash-recipient-selected { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; padding: 10px 12px; border: 1px solid #7798b5; border-left: 3px solid #315d88; background: #f1f6fa; color: #244965; }
.cash-recipient-selected strong { display: block; font-size: .86rem; }
.cash-recipient-selected small { display: block; margin-top: 2px; color: #6d8296; font-size: 11px; }
.cash-recipient-clear { border: 0; background: transparent; color: #315d88; font-size: 11px; font-weight: 800; cursor: pointer; }
.cash-message { margin: 13px 0 0; padding: 9px 11px; border: 1px solid #e4c2bd; background: #fff7f5; color: #a43e32; font-size: .8rem; line-height: 1.5; }
.cash-message.is-ok { border-color: #b9d5c0; background: #f3faf5; color: #27673a; }
.cash-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.cash-btn { min-height: 39px; padding: 0 14px; border-radius: 3px; font-size: .82rem; font-weight: 800; cursor: pointer; }
.cash-btn:disabled { cursor: default; opacity: .48; }
.cash-btn-plain { border: 1px solid #c4d0da; background: #fff; color: #536d83; }
.cash-btn-primary { border: 1px solid #294a69; background: #315d88; color: #fff; }
.cash-btn-primary:not(:disabled):hover { background: #234b73; }
.cash-btn-danger { border: 1px solid #783b35; background: #8f4940; color: #fff; }
.cash-btn-danger:not(:disabled):hover { background: #743931; }
.cash-confirm-kicker { margin: 0 0 12px; color: #4e687e; font-size: .84rem; font-weight: 700; }
.cash-confirm-list { margin: 0; border-top: 1px solid #d2dde6; }
.cash-confirm-list div { display: grid; grid-template-columns: 86px 1fr; gap: 12px; padding: 11px 4px; border-bottom: 1px solid #e2e9ee; }
.cash-confirm-list dt { color: #718496; font-size: .78rem; }
.cash-confirm-list dd { margin: 0; color: #1e405e; font-size: .84rem; font-weight: 800; word-break: break-all; }
.cash-warning { margin: 16px 0 0; padding: 12px 13px; border-left: 3px solid #a98a58; background: #fbf8f1; color: #675a43; font-size: .79rem; line-height: 1.6; }
.store-pay-cash { border-color: #8ca8c1; background: #f2f7fb; }
.store-pay-cash .store-pay-ic { background: #315d88; color: #fff; font-family: Georgia, serif; }
.store-pay-cash small { display: block; margin-top: 2px; color: #6a8092; font-size: 11px; font-weight: 600; }
@media (max-width: 640px) {
  .cash-modal { align-items: end; padding: 0; }
  .cash-modal-box { width: 100%; max-height: 92vh; overflow-y: auto; border-radius: 8px 8px 0 0; }
  .cash-modal-head, .cash-transfer-step { padding-left: 16px; padding-right: 16px; }
  .cash-wallet-balance { margin: 16px 16px 0; }
  .cash-pending-rewards { margin-right: 16px; margin-left: 16px; }
  .cash-pending-item { grid-template-columns: 1fr; }
  .cash-pending-value { justify-content: space-between; }
  .cash-pending-claim { min-width: 68px; }
  .cash-wallet-send { width: calc(100% - 32px); margin-right: 16px; margin-left: 16px; }
  .cash-earn-guide { margin-right: 16px; margin-bottom: 18px; margin-left: 16px; }
}
