/* wallet-recharge.css — Compact SaaS dashboard recharge cards V3
 * 6-column grid on desktop, 188px cards, qualified portrait QR zone
 * Scoped: all classes use wallet-recharge- prefix */

/* ═══════════════════════════════════════════════════════
   RECHARGE GRID
   Desktop: 6 columns in one row
   Tablet:  3 columns
   Mobile:  1 column
   ═══════════════════════════════════════════════════════ */
.wallet-recharge-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 20px;
}

@media (max-width: 1500px) {
  .wallet-recharge-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .wallet-recharge-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    gap: 16px;
  }
}

/* ═══════════════════════════════════════════════════════
   RECHARGE CARD — Compact SaaS dashboard card
   ═══════════════════════════════════════════════════════ */
.wallet-recharge-card {
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  border: 2px solid #3b82f6;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.06);
  transition: all 0.2s ease;
  max-width: 210px;
  min-width: 170px;
  justify-self: center;
  width: 100%;
}

.wallet-recharge-card:hover {
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.14);
  transform: translateY(-2px);
  border-color: #2563eb;
}

.wallet-recharge-card-inner {
  padding: 16px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ═══════════════════════════════════════════════════════
   HEADER — "TOKEN 积分充值"
   ═══════════════════════════════════════════════════════ */
.wallet-recharge-header {
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.3;
  white-space: nowrap;
}

.wallet-recharge-header-token {
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1.5px;
}

.wallet-recharge-header-sub {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

/* ═══════════════════════════════════════════════════════
   AMOUNT SECTION
   ═══════════════════════════════════════════════════════ */
.wallet-recharge-amount {
  text-align: center;
  margin-bottom: 1px;
  line-height: 1.1;
}

.wallet-recharge-yuan {
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.wallet-recharge-unit {
  font-size: 14px;
  color: #64748b;
  margin-left: 2px;
  font-weight: 500;
}

.wallet-recharge-bonus {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 12px;
  text-align: center;
  white-space: nowrap;
}

.wallet-recharge-bonus strong {
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════
   QR CODE FRAME — Qualified portrait QR zone (130×175px)
   Image display: 110×149px preserving 498:674 ratio
   ═══════════════════════════════════════════════════════ */
.wallet-recharge-qr-frame {
  width: 130px;
  height: 175px;
  flex-shrink: 0;
  border: 2px solid #3b82f6;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  margin-bottom: 12px;
}

.wallet-recharge-qr-frame img {
  width: 110px;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.wallet-recharge-qr-placeholder {
  text-align: center;
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.5;
  width: 110px;
  height: 149px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════
   FEATURE TAGS — Compact inline
   ═══════════════════════════════════════════════════════ */
.wallet-recharge-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 9px;
  color: #94a3b8;
  flex-wrap: wrap;
}

.wallet-recharge-tag {
  position: relative;
  padding-left: 8px;
}

.wallet-recharge-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3b82f6;
}

/* ═══════════════════════════════════════════════════════
   FOOTER — Single line
   ═══════════════════════════════════════════════════════ */
.wallet-recharge-footer {
  text-align: center;
  font-size: 9px;
  color: #94a3b8;
}

/* ═══════════════════════════════════════════════════════
   COMPACT BALANCE CARD (wallet page top — unchanged)
   ═══════════════════════════════════════════════════════ */
.wt-balance-compact {
  max-width: 280px;
  min-width: 240px;
  flex-shrink: 0;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f0f7ff, #fff);
  border: 2px solid #3b82f6;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.06);
}

.wt-balance-compact .wt-balance-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.wt-balance-compact .wt-balance-amount {
  font-size: 32px;
  font-weight: 800;
  color: #1e293b;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Tablet (3 columns)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1500px) {
  .wallet-recharge-card {
    max-width: 220px;
    min-width: 180px;
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Mobile (1 column)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .wallet-recharge-card {
    max-width: 320px;
    min-width: 200px;
  }

  .wallet-recharge-qr-frame {
    width: 140px;
    height: 188px;
  }

  .wallet-recharge-qr-frame img {
    width: 120px;
    height: 162px;
  }

  .wallet-recharge-yuan {
    font-size: 34px;
  }
}

/* ═══════════════════════════════════════════════════════
   ORDER SUBMISSION MODAL — wallet-recharge-modal- prefix
   ═══════════════════════════════════════════════════════ */
.wallet-recharge-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(2px);
}

.wallet-recharge-modal {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  width: 440px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
}

.wallet-recharge-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  padding: 20px 24px 0;
  margin: 0 0 4px;
}

.wallet-recharge-modal-subtitle {
  font-size: 12px;
  color: #94a3b8;
  padding: 0 24px;
  margin: 0 0 16px;
}

.wallet-recharge-modal-body {
  padding: 0 24px 20px;
}

.wallet-recharge-modal-group {
  margin-bottom: 16px;
}

.wallet-recharge-modal-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.wallet-recharge-modal-select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #1e293b;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s;
}

.wallet-recharge-modal-select:focus {
  outline: none;
  border-color: #3b82f6;
}

.wallet-recharge-modal-file-wrap {
  position: relative;
}

.wallet-recharge-modal-file-input {
  width: 100%;
  padding: 10px 12px;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  color: #64748b;
  background: #f8fafc;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s;
}

.wallet-recharge-modal-file-input:hover {
  border-color: #3b82f6;
}

.wallet-recharge-modal-file-name {
  font-size: 11px;
  color: #3b82f6;
  margin-top: 4px;
  word-break: break-all;
}

.wallet-recharge-modal-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  color: #1e293b;
  background: #fff;
  resize: vertical;
  min-height: 60px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.wallet-recharge-modal-textarea:focus {
  outline: none;
  border-color: #3b82f6;
}

.wallet-recharge-modal-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 12px;
  display: none;
}

.wallet-recharge-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 24px 20px;
}

.wallet-recharge-modal-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  border: none;
  transition: all 0.2s;
}

.wallet-recharge-modal-btn-cancel {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.wallet-recharge-modal-btn-cancel:hover {
  background: #e2e8f0;
}

.wallet-recharge-modal-btn-submit {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
}

.wallet-recharge-modal-btn-submit:hover {
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.wallet-recharge-modal-btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════
   TOP ACTIONS ROW — balance card + order submit button
   ═══════════════════════════════════════════════════════ */
.wallet-top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════
   ORDER SUBMIT BUTTON — beside balance card
   ═══════════════════════════════════════════════════════ */
.wallet-recharge-submit-btn {
  flex-shrink: 0;
  height: fit-content;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.wallet-recharge-submit-btn:hover {
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}
