/* Invite rewards use one page stylesheet and the shared site header. */
:root { color-scheme: light; --reward-ink: #142e46; --reward-muted: #5e788d; --reward-line: #dae8f0; }
* { box-sizing: border-box; }
html { min-width: 0; scroll-padding-top: 148px; background: #f2f9fb; }
body.rewards-page { margin: 0; color: var(--reward-ink); background: radial-gradient(ellipse at 90% 0, #d8edff, transparent 700px), #f2f9fb; font: 14px/1.65 Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: #087899; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
:is(button, a, input, summary):focus-visible { outline: 3px solid #197ad4; outline-offset: 3px; }
.rewards-page [hidden] { display: none !important; }
.rewards-main { width: min(100%, 1248px); margin: auto; padding: 0 24px 56px; }
.rewards-page-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 12px 26px; }
.eyebrow { margin: 0 0 7px; color: #0893a5; font-size: 12px; font-weight: 750; letter-spacing: .1em; }
.rewards-page-head h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.25; letter-spacing: -.03em; }
.rewards-lead { margin: 12px 0 10px; color: #52778e; font-size: 16px; }
.rewards-page-head > img { width: 144px; height: 144px; object-fit: contain; }
.rewards-network { display: inline-flex; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 650; }
.rewards-card { min-width: 0; margin-bottom: 20px; padding: 26px; border: 1px solid var(--reward-line); border-radius: 21px; background: #fff; box-shadow: 0 8px 26px #194d750b; }
.rewards-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.rewards-card h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; line-height: 1.5; }
.rewards-muted { margin: 10px 0; color: var(--reward-muted); font-size: 13px; line-height: 1.8; }
.rewards-text-button { border: 0; padding: 6px 0; background: none; color: #087b96; font-weight: 650; }
.invite-center { background: linear-gradient(130deg, #ffffff 60%, #f2fbff); }
.invite-center-grid { display: grid; grid-template-columns: minmax(0, 1fr) 190px; align-items: center; gap: 32px; }
.invite-copy { min-width: 0; }
.invite-copy label { display: block; margin: 14px 0 7px; font-size: 13px; font-weight: 650; }
.rewards-input { display: block; min-width: 0; width: 100%; border: 1px solid #d5e5ee; border-radius: 11px; padding: 13px 14px; background: #f7fbfd; color: #245675; outline-offset: 1px; }
.wallet-address { font-variant-numeric: tabular-nums; font-size: 13px; }
.invite-input-row { display: flex; align-items: stretch; gap: 12px; }
.rewards-primary { display: flex; align-items: center; justify-content: center; min-height: 48px; width: 100%; padding: 12px 20px; border: 0; border-radius: 11px; color: white; background: linear-gradient(110deg, #00bbb8, #098feb 72%, #146cf2); font-size: 15px; font-weight: 750; text-align: center; }
.rewards-primary:hover:not(:disabled) { box-shadow: 0 5px 16px #1580bc26; filter: brightness(1.035); }
.invite-input-row .rewards-primary { flex: 0 0 auto; width: auto; white-space: nowrap; }
.rewards-status { margin: 12px 0 0; color: #60798b; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.rewards-status a { font-weight: 650; }
.invite-qr-card { display: grid; gap: 8px; justify-items: center; text-align: center; color: #56788f; }
.invite-qr-card > div { display: grid; place-items: center; width: 166px; height: 166px; padding: 10px; border: 1px solid #dbe9f3; border-radius: 16px; background: #fff; }
.invite-qr-card canvas { display: block; max-width: 100%; height: auto; }
.invite-qr-card [data-qr-empty] { padding: 16px; font-size: 12px; }
.invite-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.invite-metrics > div { display: grid; gap: 9px; padding: 17px; background: #f0f7fc; border-radius: 12px; }
.invite-metrics span { color: #54778d; font-size: 12px; }
.invite-metrics strong { font-size: 25px; line-height: 1.3; color: #1267a2; font-variant-numeric: tabular-nums; }
.rewards-benefits-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rewards-tag { display: inline-block; padding: 4px 10px; border-radius: 99px; color: #078377; background: #e8f8f2; font-size: 11px; font-weight: 700; }
.rewards-benefit--wow .rewards-tag { color: #217bc5; background: #eaf4ff; }
.rewards-balance { display: grid; gap: 8px; margin: 24px 0 18px; }
.rewards-balance > span { color: var(--reward-muted); font-size: 13px; }
.rewards-balance > strong { color: #087f83; font-size: clamp(24px, 3vw, 32px); line-height: 1.35; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rewards-benefit--wow .rewards-balance > strong { color: #1173c8; }
.rewards-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.rewards-stats > div { display: grid; gap: 7px; }
.rewards-stats span { color: var(--reward-muted); font-size: 12px; }
.rewards-stats strong { font-size: 14px; overflow-wrap: anywhere; }
.rewards-adjustments { margin-top: 18px; border-top: 1px solid #e8f0f5; padding-top: 14px; }
.rewards-adjustments summary { color: #6b8294; font-size: 12px; cursor: pointer; }
.rewards-inline-link { display: inline-block; margin-top: 18px; font-weight: 650; font-size: 13px; }
.friend-list, .ledger-list, .settlement-list { margin-top: 12px; }
.friend-list > p, .ledger-list > p { margin: 0; padding: 16px 0; color: var(--reward-muted); font-size: 13px; }
.reward-friend-row, .reward-ledger-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid #e8f0f5; }
.reward-friend-row:first-child, .reward-ledger-row:first-child { border-top: 0; }
.reward-friend-row > span:first-child, .reward-ledger-main { display: grid; min-width: 0; gap: 5px; }
.reward-friend-row strong, .reward-ledger-row strong { font-size: 13px; }
.reward-friend-row small, .reward-ledger-row small { color: var(--reward-muted); font-size: 12px; overflow-wrap: anywhere; }
.reward-friend-row > span:last-child { flex: 0 0 auto; border-radius: 99px; padding: 3px 9px; background: #eef7fa; color: #187c88; font-size: 11px; }
.reward-ledger-amount { flex: 0 0 auto; color: #0e8590; text-align: right; }
.ledger-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 17px 0 8px; }
.ledger-tabs button { border: 1px solid #dce8f0; border-radius: 9px; padding: 7px 12px; color: #647e90; background: #f8fbfd; font-size: 12px; }
.ledger-tabs button.active { color: #08759b; border-color: #b5dfe8; background: #eaf7fa; font-weight: 700; }
.settlement-list > p { padding: 13px; margin: 8px 0; border-radius: 10px; background: #f1f8fc; color: #386780; font-size: 12px; overflow-wrap: anywhere; }
.rewards-footnote { margin: 24px 0; color: #6b8798; font-size: 12px; text-align: center; }
.rewards-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; padding: 24px 0; border-top: 1px solid #dbe8ef; color: #8296a4; font-size: 12px; }
.mobile-bottom-nav { display: none; }
@media (max-width: 767px) {
  .rewards-main { padding: 0 16px 104px; }
  .rewards-page-head { gap: 12px; padding: 12px 0 22px; }
  .rewards-page-head > img { width: 90px; height: 100px; }
  .rewards-lead { font-size: 13px; }
  .eyebrow { font-size: 10px; }
  .rewards-card { padding: 20px; border-radius: 18px; margin-bottom: 16px; }
  .rewards-card h2 { font-size: 18px; }
  .invite-center-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .invite-qr-card { display: none; }
  .invite-input-row { flex-direction: column; gap: 10px; }
  .invite-input-row .rewards-primary { width: 100%; }
  .invite-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
  .invite-metrics > div { padding: 14px; }
  .rewards-benefits-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .reward-ledger-row { flex-wrap: wrap; gap: 8px; }
  .reward-ledger-amount { margin-left: auto; }
  .rewards-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  .mobile-bottom-nav { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); min-height: 60px; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); border-top: 1px solid #e1edf1; background: rgba(255,255,255,.98); box-shadow: 0 -8px 24px rgba(32,68,92,.08); backdrop-filter: blur(18px); }
  .mobile-bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; border-radius: 10px; color: #7a8e9a; text-decoration: none; font-size: 10px; font-weight: 700; }
  .mobile-bottom-nav a > span { font-size: 22px; line-height: 1; }
  .mobile-bottom-nav a > b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .mobile-bottom-nav a.active { color: #0ea77c; background: rgba(14,167,124,.1); }
}
@media (max-width: 359px) {
  .rewards-main { padding-inline: 12px; }
  .rewards-card { padding: 16px; }
  .rewards-page-head > img { width: 66px; }
  .rewards-card-heading { gap: 8px; }
}
