/* ============================================================
 * 93-recharge.css —— 充值面板
 * ============================================================ */

.modal.recharge-modal {
  width: 460px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.rc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 10px;
}
.rc-rate {
  font-size: 14px;
  font-weight: 700;
  color: #c0392b;
}
.rc-balance {
  font-size: 12.5px;
  color: var(--muted, #7b8794);
}

.rc-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.rc-chip {
  padding: 4px 9px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid var(--line, #e5e8ec);
  background: var(--panel-soft, #f6f8fa);
  color: var(--muted, #5b6875);
  white-space: nowrap;
}

.rc-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.rc-tip {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted, #7b8794);
}

.rc-hist-title {
  margin: 14px 0 6px;
  font-size: 13px;
  font-weight: 600;
}

.rc-history {
  max-height: 24vh;
  overflow-y: auto;
  border: 1px solid var(--line, #e5e8ec);
  border-radius: 10px;
  background: var(--panel-soft, #f8f9fb);
}
.rc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--line, #eceff3);
}
.rc-row:last-child { border-bottom: none; }
.rc-row-time {
  color: var(--muted, #9aa4af);
  white-space: nowrap;
}
.rc-row-code {
  flex: 1 1 auto;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  color: var(--muted, #6b7280);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rc-row-coins {
  color: #c0392b;
  white-space: nowrap;
}

/* 管理面板里的卡密生成区 */
.admin-code-list {
  max-height: 30vh;
  overflow-y: auto;
  border: 1px solid var(--line, #e5e8ec);
  border-radius: 10px;
  background: var(--panel-soft, #f8f9fb);
  margin-top: 8px;
}
.admin-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--line, #eceff3);
}
.admin-code-row:last-child { border-bottom: none; }
.admin-code-row .code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  flex: 1 1 auto;
}
.admin-code-row .used { color: var(--muted, #9aa4af); text-decoration: line-through; }
.admin-code-row .fresh { color: #1f7a45; font-weight: 600; }

/* 管理员生成区 */
.rc-admin {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line, #e5e8ec);
}
.rc-gen-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.rc-gen-sel,
.rc-gen-num,
.rc-gen-note {
  height: 34px;
  padding: 0 8px;
  font-size: 13px;
  border: 1px solid var(--line, #dfe3e8);
  border-radius: 8px;
  background: var(--panel, #fff);
}
.rc-gen-sel { flex: 0 0 auto; }
.rc-gen-num { width: 62px; flex: 0 0 auto; }
.rc-gen-note { flex: 1 1 120px; min-width: 100px; }
.rc-gen-out {
  margin-top: 8px;
  font-size: 12.5px;
}
.rc-gen-codes {
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: #f4f8f4;
  border: 1px solid #d8e6d8;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 1px;
  line-height: 1.9;
  word-break: break-all;
  user-select: all;
}

/* ---------- 收款方式 ---------- */
.rc-pay {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line, #e5e8ec);
  border-radius: 10px;
  background: var(--panel-soft, #f8f9fb);
}
.rc-pay-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.rc-pay-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.rc-pay-img {
  width: 132px;
  height: 132px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line, #e5e8ec);
  background: #fff;
  flex: 0 0 auto;
}
.rc-pay-text { flex: 1 1 auto; min-width: 0; }
.rc-pay-line {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted, #5b6875);
  word-break: break-word;
}
