.rewards-content { display: grid; gap: 22px; }
.rewards-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.rewards-heading h1 { margin-bottom: 8px; }
.qa-badge { flex: 0 0 auto; border: 1px solid #b4dcff; border-radius: 999px; background: #e8f4ff; color: #005eb8; padding: 9px 14px; font-size: 13px; font-weight: 800; }
.simulation-banner { display: flex; gap: 13px; align-items: flex-start; border: 1px solid #ffdb91; border-radius: 16px; background: #fff9ec; padding: 16px 18px; color: #624008; }
.simulation-banner p { margin: 0; line-height: 1.6; }
.simulation-icon { display: grid; place-items: center; width: 23px; height: 23px; flex: 0 0 23px; border: 1px solid currentColor; border-radius: 50%; font-size: 13px; font-weight: 800; }
.reward-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.reward-metric { display: flex; min-height: 145px; flex-direction: column; justify-content: space-between; gap: 12px; border: 1px solid #d6e5f5; border-radius: 18px; background: #fff; padding: 19px; }
.reward-metric span { color: #54708f; font-size: 14px; font-weight: 700; }
.reward-metric strong { color: #082a53; font-size: clamp(23px, 2.4vw, 31px); line-height: 1.05; }
.reward-metric small { color: #7187a0; font-size: 12px; }
.reward-metric-primary { background: linear-gradient(145deg, #f0f8ff, #fff); border-color: #b8d9ff; }
.client-leader-card { padding: 20px 22px; }
.client-leader-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.client-leader-heading h2 { margin: 5px 0 0; color: #0a2f5d; font-size: 21px; }
.client-leader-card > .muted { margin: 10px 0 0; line-height: 1.55; }
.client-leader-progress { height: 10px; margin: 15px 0 9px; overflow: hidden; border-radius: 999px; background: #e6f0fa; }
.client-leader-progress > span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #33b6e9, #0873d2); transition: width .2s ease; }
.client-leader-turnover { display: flex; justify-content: space-between; gap: 14px; margin: 0; color: #54708f; font-size: 13px; }
.client-leader-turnover strong { color: #082a53; text-align: right; }
.client-leader-card > small { display: block; margin-top: 10px; color: #7187a0; }
.rewards-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 18px; align-items: stretch; }
.withdrawal-card, .quote-card, .history-card { padding: 24px; }
.withdrawal-card h2, .quote-card h2, .history-card h2 { margin: 0 0 9px; color: #0a2f5d; font-size: 23px; }
.withdrawal-card > p.muted, .quote-card > p.muted { line-height: 1.6; }
.withdrawal-card form { display: grid; gap: 12px; margin-top: 20px; }
.withdrawal-card label { color: #153b66; font-size: 14px; font-weight: 700; }
.amount-control { display: flex; align-items: center; border: 1px solid #bdd3ed; border-radius: 12px; background: #fff; overflow: hidden; }
.amount-control:focus-within { outline: 3px solid #cfe5ff; border-color: #1474d4; }
.amount-control input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #102f55; padding: 14px 15px; font: inherit; font-size: 17px; }
.amount-control span { padding: 0 15px; color: #6a8099; font-size: 14px; font-weight: 700; }
.withdrawal-breakdown { display: flex; justify-content: space-between; gap: 12px; margin: 0; color: #55708e; font-size: 14px; }
.withdrawal-breakdown strong { color: #153b66; text-align: right; }
.withdrawal-message { border-radius: 10px; padding: 12px 14px; line-height: 1.45; }
.withdrawal-message[data-kind="error"] { background: #fff0f0; color: #9c2727; }
.withdrawal-message[data-kind="success"] { background: #eaf8ef; color: #216a3d; }
.withdrawal-message[data-kind="info"] { background: #eff7ff; color: #194c80; }
.form-footnote { margin: 0; font-size: 12px; line-height: 1.5; }
.quote-card { display: flex; flex-direction: column; align-items: flex-start; }
.quote-card .text-link { margin-top: auto; padding-top: 24px; }
.history-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.history-heading .card-kicker { margin-bottom: 7px; }
.history-empty { display: grid; place-items: center; gap: 8px; min-height: 150px; border: 1px dashed #c8dbef; border-radius: 14px; color: #6a8099; text-align: center; }
.history-empty p { margin: 0; }
.rewards-history { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.history-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid #e1eaf4; border-radius: 14px; background: #fff; padding: 14px 16px; }
.history-item-details { display: grid; gap: 5px; min-width: 0; }
.history-item-details > strong { color: #153b66; }
.history-item time { color: #758aa2; font-size: 12px; }
.history-item-amount { flex: 0 0 auto; color: #0b5eaf; font-size: 16px; font-weight: 800; text-align: right; }
.history-item-amount.is-negative { color: #884848; }
.status-pill { justify-self: start; border-radius: 999px; background: #eff6fc; color: #536e8b; padding: 4px 9px; font-size: 11px; font-weight: 800; }
.status-requested, .status-review, .status-waiting_for_funds { background: #fff5df; color: #8a5c04; }
.status-approved { background: #eaf3ff; color: #245c94; }
.status-sent, .status-paid { background: #e8f7ed; color: #266640; }
.status-rejected { background: #fff0f0; color: #9c3535; }
.history-item-reason { color: #8a4444; font-size: 12px; line-height: 1.45; }

@media (max-width: 900px) {
  .reward-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rewards-grid { grid-template-columns: 1fr; }
  .quote-card .text-link { margin-top: 0; }
}

@media (max-width: 520px) {
  .rewards-content { gap: 15px; }
  body[data-page="account-rewards"] .account-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  body[data-page="account-rewards"] .account-nav a { min-width: 0; padding-inline: 8px; }
  body[data-page="account-rewards"] .account-nav .nav-exchange { grid-column: 1 / -1; }
  .rewards-heading { align-items: flex-start; }
  .rewards-heading h1 { font-size: 28px; }
  .qa-badge { padding: 7px 10px; font-size: 11px; white-space: nowrap; }
  .simulation-banner { padding: 13px; font-size: 13px; }
  .reward-metrics { gap: 9px; }
  .reward-metric { min-height: 125px; border-radius: 14px; padding: 14px; }
  .reward-metric span { font-size: 12px; }
  .reward-metric strong { font-size: 21px; }
  .reward-metric small { font-size: 10px; }
  .withdrawal-card, .quote-card, .history-card { padding: 18px 15px; }
  .withdrawal-card h2, .quote-card h2, .history-card h2 { font-size: 20px; }
  .client-leader-card { padding: 17px 15px; }
  .client-leader-heading h2 { font-size: 18px; }
  .client-leader-turnover { display: grid; gap: 6px; font-size: 12px; }
  .client-leader-turnover strong { text-align: left; }
  .history-heading { align-items: flex-start; }
  .history-heading > .muted { font-size: 12px; }
  .history-item { align-items: flex-start; padding: 13px 12px; }
  .history-item-amount { max-width: 115px; font-size: 14px; }
}
