/* Web wallet summary, top-up form, payment controls and ledger rows. */
.md-wallet-summary,
.md-referral-card,
.md-referral-stats > div,
.md-ledger-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: #181a20;
}

.md-wallet-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px;
}

.md-wallet-summary span,
.md-referral-card span,
.md-referral-stats span,
.md-ledger-item span {
  color: #aeb4c1;
  font-size: 13px;
}

.md-wallet-summary strong,
.md-referral-card strong,
.md-referral-stats strong {
  display: block;
  margin-top: 4px;
  color: #f7f8ff;
  font-size: 28px;
  line-height: 1;
}

.md-wallet-summary .md-soft-btn,
.md-topup-form .md-primary-btn,
.md-referral-card .md-soft-btn {
  min-height: 48px;
  font-size: 15px;
}

.md-topup-form {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: #181a20;
}

.md-topup-form label {
  color: #f7f8ff;
  font-size: 18px;
  font-weight: 700;
}

.md-topup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
}

.md-topup-row input {
  min-width: 0;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  background: #24272f;
  color: #f7f8ff;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
}

.md-preset-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.md-preset-row button {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: #282a30;
  color: #f7f8ff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.md-form-status {
  min-height: 20px;
  margin: 0;
  color: #c8ccd7;
  font-size: 14px;
  line-height: 1.35;
}

.md-form-status.is-error {
  color: #ff8c9a;
}

.md-payment-controls {
  display: grid;
  gap: 8px;
}

.md-payment-controls:empty {
  display: none;
}

.md-payment-controls a {
  min-height: 46px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #282a30;
  color: #f7f8ff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.md-ledger-list {
  display: grid;
  gap: 10px;
}

.md-ledger-list:empty {
  display: none;
}

.md-ledger-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px 16px;
}

.md-ledger-item strong {
  display: block;
  min-width: 0;
  color: #f7f8ff;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.md-ledger-item em {
  color: #7cf0b1;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.md-ledger-item em.md-ledger-amount--paid {
  color: #7cf0b1;
}

.md-ledger-item em.md-ledger-amount--pending {
  color: #ffd166;
}

.md-ledger-item em.md-ledger-amount--failed {
  color: #ff8c9a;
}

.md-ledger-item em.md-ledger-amount--canceled {
  color: #9aa3b2;
}

.md-ledger-item em.md-ledger-amount--refunded {
  color: #7dd3fc;
}

.md-ledger-item em.md-ledger-amount--neutral {
  color: #d7dae4;
}

