/* Earn with PyProxy.
   A money page, not a statement: one violet hero with the earned figure and the link, three steps, a calculator you
   can drag, then the ledger. Loads after py-theme.css and leans on its tokens. */

.dash__badge {
  margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .02em;
  background: #eafbe7; color: #1f7a3a;
}
.dash__nav a.dash__nav--earn { color: #3a2fb0 !important; }

.rf-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 26px;
  margin-bottom: 20px; padding: 28px 30px; border-radius: 20px; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #7b5cff 0%, #5a4bdf 45%, #3e35b8 100%);
  box-shadow: 0 22px 50px rgba(90, 75, 223, .30);
  position: relative; overflow: hidden;
}
.rf-hero::after {
  content: ""; position: absolute; inset: auto -60px -120px auto; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 70%); pointer-events: none;
}
.rf-hero__l { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.rf-hero__num b { display: block; font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -2.5px; font-variant-numeric: tabular-nums; }
.rf-hero__num small { display: block; margin-top: 14px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .82); max-width: 32ch; }

.rf-pill {
  display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 16px;
  border-radius: 999px; background: #fff; color: #241f47; box-shadow: 0 10px 26px rgba(23, 19, 53, .22);
}
.rf-pill input {
  flex: 1 1 auto; min-width: 0; border: 0; background: transparent; outline: none;
  font: 600 15px/38px 'Inter', ui-monospace, Menlo, Consolas, monospace; color: #241f47; letter-spacing: -.1px;
}
.rf-pill button {
  flex: 0 0 auto; height: 38px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 14px 'Inter', sans-serif; color: #fff; background: #241f47; transition: background .15s;
}
.rf-pill button:hover { background: #3a2fb0; }
.rf-pill button.is-done { background: #1f9d55; }
.rf-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.rf-share span { font-size: 13px; color: rgba(255, 255, 255, .72); margin-right: 4px; }
.rf-share a {
  padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
}
.rf-share a:hover { background: rgba(255, 255, 255, .26); }

.rf-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 20px; padding: 0; list-style: none; }
.rf-steps li {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px;
  background: #fff; border: 1px solid #eee9fb; box-shadow: 0 8px 26px rgba(23, 25, 48, .05);
}
.rf-steps li b {
  flex: 0 0 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #5a4bdf, #7b5cff);
}
.rf-steps li span { font-size: 14px; line-height: 1.55; color: #4a4d6b; }
.rf-steps li strong { color: #201b3d; }
.rf-steps li em { font-style: normal; font-weight: 800; color: #4b3fca; }

.rf-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; }
.rf-grid .pcard { margin-bottom: 20px; }

.rf-calc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 6px 0 8px; font-size: 14px; color: #4a4d6b; font-weight: 600; }
.rf-calc__row output { font-size: 22px; font-weight: 800; color: #201b3d; font-variant-numeric: tabular-nums; }
.rf-calc__row--select { flex-direction: column; align-items: stretch; margin-top: 18px; }
.rf-calc__row--select select {
  margin-top: 6px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid #ded6fb;
  font: 600 14px 'Inter', sans-serif; color: #201b3d; background: #faf9ff;
}
.rf-calc input[type=range] { width: 100%; accent-color: #5a4bdf; margin: 4px 0 2px; }
.rf-calc__out {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 10px;
  margin-top: 20px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(135deg, #f3f0ff, #eef1ff); border: 1px solid #e7e1ff;
}
.rf-calc__out b { font-size: 38px; font-weight: 800; letter-spacing: -1.5px; color: #4b3fca; font-variant-numeric: tabular-nums; line-height: 1; }
.rf-calc__out > span { font-size: 15px; font-weight: 700; color: #4a4d6b; }
.rf-calc__out small { grid-column: 1 / -1; font-size: 13px; color: #6b7092; line-height: 1.5; }
.rf-calc__out small em { font-style: normal; font-weight: 800; color: #201b3d; }

.rf-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.rf-mini div { padding: 12px 6px; border-radius: 12px; background: #faf9ff; border: 1px solid #eee9fb; text-align: center; }
.rf-mini b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -1px; color: #201b3d; font-variant-numeric: tabular-nums; }
.rf-mini span { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: #7b7f9c; }
.rf-lines { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; margin: 0 0 14px; }
.rf-lines dt { font-size: 14px; color: #6b7092; }
.rf-lines dd { margin: 0; font-size: 14.5px; font-weight: 800; color: #201b3d; text-align: right; font-variant-numeric: tabular-nums; }
.rf-fine { margin: 0; font-size: 13px; line-height: 1.55; color: #7b7f9c; }

.rf-payout__form { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 16px; align-items: end; }
.rf-payout__form .field { margin-bottom: 12px; }
.rf-payout__go { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.rf-hint { font-size: 13.5px; color: #6b7092; line-height: 1.5; }
.rf-msg { grid-column: 1 / -1; margin: 10px 0 0; font-size: 14px; color: #1f7a3a; }
.rf-msg--bad { color: #c0344d; }
.rf-msg:empty { display: none; }
.rf-payouts { margin-top: 16px; min-width: 0; }
.rf-payouts th, .rf-payouts td { padding: 9px 10px; font-size: 13.5px; }
.rf-status { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #f1f2fb; color: #4a4d6b; }
.rf-status--paid { background: #eafbe7; color: #1f7a3a; }
.rf-status--requested { background: #fff3d6; color: #8a5a00; }

.table-wrap--flat { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
.table-wrap--flat .ptable { min-width: 0; }
.table-wrap--flat .ptable th { background: transparent; border-bottom: 2px solid #e7e1ff; color: #4b3fca; }
.table-wrap--flat .ptable th:first-child, .table-wrap--flat .ptable td:first-child { padding-left: 0; }
.table-wrap--flat .ptable th:last-child, .table-wrap--flat .ptable td:last-child { padding-right: 0; text-align: right; }
.rf-empty { color: #7b7f9c; font-size: 14px; text-align: left !important; }

.rf-rules ul { margin: 0 0 14px; padding-left: 20px; }
.rf-rules li { margin-bottom: 8px; font-size: 14.5px; line-height: 1.55; color: #4a4d6b; }
.rf-rules li::marker { color: #7b5cff; }
.rf-rules li b { color: #4b3fca; }

@media (max-width: 900px) {
  .rf-hero { grid-template-columns: 1fr; padding: 24px; }
  .rf-hero__num b { font-size: 46px; }
  .rf-steps { grid-template-columns: 1fr; }
  .rf-grid { grid-template-columns: 1fr; }
  .rf-payout__form { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .rf-pill { flex-wrap: wrap; border-radius: 16px; padding: 8px; }
  .rf-pill input { width: 100%; padding: 0 8px; }
  .rf-pill button { width: 100%; }
}
