/* Rewards page (rewards.php). Loaded after centfx.css.
   A payouts dashboard in the site theme: home card surfaces, DM Sans / Inter, brand cyan into aqua green. */

.rw-page {
    --rw-panel: #f5f6f9;
    --rw-panel-2: #eef1f5;
    --rw-line: rgba(15, 23, 42, 0.08);
    --rw-line-2: rgba(15, 23, 42, 0.14);
    --rw-head: #0b1f4b;
    --rw-text: #475569;
    --rw-muted: #64748b;
    --rw-faint: #94a3b8;
    --rw-cyan: #0b9bcc;
    --rw-aqua: #0d9488;
    --rw-glow: rgba(11, 155, 204, 0.12);
    --rw-chip: rgba(255, 255, 255, 0.85);
    --rw-paid: #0f766e;
    --rw-amber: #b45309;
    --rw-amount: #1a9a33; /* the window-dot green (#28c840), a shade deeper so it reads on the light panels */
}
[data-bs-theme="dark"] .rw-page {
    --rw-panel: #141619;
    --rw-panel-2: #1a1d21;
    --rw-line: rgba(255, 255, 255, 0.08);
    --rw-line-2: rgba(255, 255, 255, 0.14);
    --rw-head: #fff;
    --rw-text: #b9c4d2;
    --rw-muted: #94a3b8;
    --rw-faint: #64748b;
    --rw-cyan: #15ceff;
    --rw-aqua: #2dd4bf;
    --rw-glow: rgba(21, 206, 255, 0.14);
    --rw-chip: rgba(20, 22, 25, 0.82);
    --rw-paid: #5eead4;
    --rw-amber: #fbbf24;
    --rw-amount: #28c840; /* same green as the window-bar dot */
}
.rw-row {
    margin-top: 1rem;
}
@media (min-width: 1200px) {
    .rw-row {
        margin-top: 1.5rem;
    }
}
/* a Bootstrap row already spaces its cards with its own gutter, so it adds no extra margin on top */
.row.rw-row {
    margin-top: 0;
}

/* ───────── Shared bits ───────── */
.rw-panel {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: var(--rw-panel);
    border: 1px solid var(--rw-line);
}
@media (min-width: 1200px) {
    .rw-panel {
        padding: 1.75rem;
    }
}
.rw-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--rw-line);
}
/* small uppercase labels (the site's eyebrow style), brackets in brand cyan */
.rw-tag-label,
.rw-label,
.rw-cap {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rw-muted);
}
.rw-tag-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--rw-head);
    letter-spacing: 0.16em;
}
.rw-cap {
    font-weight: 500;
    color: var(--rw-faint);
}
.rw-cap b {
    font-weight: 600;
    color: var(--rw-head);
}
.rw-accent {
    color: var(--rw-head) !important;
}
.rw-demo-text {
    color: var(--rw-amber) !important;
}
.rw-flag {
    flex: none;
    width: 1.3rem;
    height: 0.975rem;
    line-height: 0.975rem;
    border-radius: 3px;
    background-size: cover;
    box-shadow: 0 0 0 1px var(--rw-line);
}

/* live dot */
.rw-live {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rw-cyan);
}
.rw-dot {
    position: relative;
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px var(--rw-glow);
}
.rw-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: currentColor;
    animation: rw-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.rw-dot-solid {
    color: var(--rw-cyan);
}
.rw-dot-green {
    color: var(--rw-aqua);
    box-shadow: none;
}
@keyframes rw-ping {
    75%,
    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

/* ───────── One card for the hero, stats and milestones: sections separated by space, no dividing lines ───────── */
.rw-board {
    overflow: hidden;
    border-radius: 1.5rem;
    background: var(--rw-panel);
    border: 1px solid var(--rw-line);
}
.rw-board .rw-panel {
    border: 0;
    border-radius: 0;
    background: transparent;
}
.rw-board .rw-hero {
    background: linear-gradient(180deg, var(--rw-panel-2) 0%, transparent 70%);
}
.rw-board .rw-panel-head {
    border-bottom: 0;
    padding-bottom: 0;
}

/* ───────── Demo note above the board ───────── */
.rw-status {
    margin: 0 0 1rem;
    font-size: 0.8rem;
    color: var(--rw-muted);
}
.rw-status i {
    margin-right: 0.15rem;
    vertical-align: -0.12em;
    font-size: 0.95rem;
    color: var(--rw-accent, #15ceff);
}
@media (min-width: 1200px) {
    .rw-status {
        margin-bottom: 1.25rem;
    }
}

/* ───────── Hero card ───────── */
.rw-hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 560px;
    padding: 2rem;
    background:
        linear-gradient(180deg, var(--rw-panel-2) 0%, var(--rw-panel) 60%);
}
@media (min-width: 1200px) {
    .rw-hero {
        padding: 2.5rem;
    }
}
/* hero: the copy sits in the middle of the card */
.rw-hero {
    justify-content: center;
}
.rw-hero-copy {
    position: relative;
}
/* phones and tablets: the card only needs to fit the copy */
@media (max-width: 991.98px) {
    .rw-hero {
        min-height: 0;
    }
}
.rw-title {
    font-size: clamp(2.4rem, 1rem + 2.6vw, 3.6rem);
    line-height: 1.04;
    margin: 1.1rem 0 1.25rem;
}
.rw-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.1em;
}
.rw-line > span {
    display: inline-block;
}
.rw-lead {
    max-width: 460px;
    margin-bottom: 1.75rem;
    color: var(--rw-text);
}
.rw-lead b {
    font-weight: 600;
    color: var(--rw-head);
}
.rw-rot {
    transform: rotate(45deg);
}

/* ───────── Headline stat cards ───────── */
.rw-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 170px;
}
.rw-label {
    position: relative;
    letter-spacing: 0.08em;
    color: var(--rw-text);
}
.rw-stat-num {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.2vw, 2.1rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--rw-head);
}
.rw-stat .rw-cap {
    position: relative;
    margin-top: auto;
}
/* phones: the three stats sit in one glass tile, one short row each (label and caption left, number right) */
@media (max-width: 767.98px) {
    .rw-board-stats {
        margin: 0.25rem 1.5rem 0;
        border-radius: 1rem;
        background: rgba(255, 255, 255, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.7);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }
    [data-bs-theme="dark"] .rw-board-stats {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.1);
    }
    .rw-board-stats > div + div .rw-stat {
        border-top: 1px solid var(--rw-line);
    }
    .rw-board .rw-stat {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "label num"
            "cap num";
        align-items: center;
        gap: 0.2rem 1rem;
        min-height: 0;
        padding: 0.9rem 1.1rem;
    }
    .rw-stat .rw-label {
        grid-area: label;
    }
    .rw-stat .rw-cap {
        grid-area: cap;
        margin-top: 0;
    }
    .rw-stat-num {
        grid-area: num;
        font-size: 1.5rem;
        text-align: right;
    }
}
/* ───────── Milestones + live total ───────── */
.rw-miles {
    display: flex;
    flex-direction: column;
}
/* progress rail: thin rounded track, solid fill with a slow light sweep, dots for milestones */
.rw-track {
    padding: 2.4rem 7px 0;
    margin-bottom: 1.1rem;
}
.rw-rail {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: var(--rw-line-2);
}
.rw-rail-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--p);
    overflow: hidden;
    border-radius: inherit;
    background: var(--rw-aqua);
    transform-origin: left;
}
.rw-rail-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%) no-repeat;
    background-size: 30% 100%;
    animation: rw-sweep 3.2s ease-in-out infinite;
}
@keyframes rw-sweep {
    from {
        background-position: -40% 0;
    }
    to {
        background-position: 140% 0;
    }
}
.rw-rail-dot {
    position: absolute;
    top: 50%;
    left: var(--x);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: var(--rw-aqua);
    box-shadow: 0 0 0 4px var(--rw-panel);
}
.rw-rail-dot.is-next {
    background: var(--rw-panel);
    border: 2px solid var(--rw-faint);
}
/* where today's total sits: a pulsing dot with a small tag above it */
.rw-rail-now {
    position: absolute;
    top: 50%;
    left: var(--x);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    box-shadow: 0 0 0 3px var(--rw-aqua);
}
.rw-rail-now::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--rw-aqua);
    animation: rw-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.rw-rail-now b {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.2rem 0.55rem;
    border-radius: 0.45rem;
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--rw-head);
    background: var(--rw-panel-2);
    border: 1px solid var(--rw-line-2);
}
.rw-rail-now b::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 7px;
    height: 7px;
    margin: -4px 0 0 -4px;
    transform: rotate(45deg);
    background: var(--rw-panel-2);
    border-right: 1px solid var(--rw-line-2);
    border-bottom: 1px solid var(--rw-line-2);
}
.rw-mile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.rw-mile {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.rw-mile:last-child {
    text-align: right;
}
.rw-mile-date {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rw-muted);
}
.rw-mile strong {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--rw-head);
}
.rw-mile-text {
    font-size: 0.8rem;
    color: var(--rw-text);
}
.rw-mile.is-next .rw-mile-date,
.rw-mile.is-next strong,
.rw-mile.is-next .rw-mile-text {
    color: var(--rw-faint);
}
@media (max-width: 767.98px) {
    .rw-mile-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 1.25rem;
    }
    .rw-mile:last-child {
        text-align: left;
    }
    .rw-track {
        display: none;
    }
}
/* live total: a plain, slightly raised surface */
.rw-total {
    position: relative;
    margin-bottom: 1.75rem;
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    text-align: center;
    background: var(--rw-panel-2);
    border: 1px solid var(--rw-line);
}
.rw-total-head,
.rw-total-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rw-faint);
}
.rw-total-num {
    font-family: var(--font-display);
    display: inline-block;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    margin: 0.6rem 0 0.75rem;
}
/* odometer: each digit is a 0-9 strip that rolls inside its own window; silver like the site's metal text */
.rw-total-num {
    height: 1.1em;
}
.rw-odo-digit,
.rw-odo-char {
    display: inline-block;
    height: 1.1em;
    line-height: 1.1em;
    vertical-align: top;
}
.rw-odo-digit {
    overflow: hidden;
}
.rw-odo-strip {
    display: block;
    transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rw-odo.is-instant .rw-odo-strip {
    transition: none;
}
.rw-odo-strip,
.rw-odo-char {
    background: linear-gradient(180deg, #6a757e 0%, #3a434a 50%, #161b1f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
[data-bs-theme="dark"] .rw-odo-strip,
[data-bs-theme="dark"] .rw-odo-char {
    background-image: linear-gradient(180deg, #ffffff 0%, #e6ecef 45%, #a9b4bc 100%);
}
/* the strip is ten digits tall: repeat the gradient once per digit */
.rw-odo-strip {
    background-size: 100% 10%;
    background-repeat: repeat-y;
}
.rw-total-meta b {
    font-weight: 600;
    color: var(--rw-head);
}
/* ───────── Bento cards: payout methods, countries, records, latest payouts ───────── */
.rw-bento {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 460px;
    padding: 2rem;
}
.rw-bento-copy {
    position: relative;
    z-index: 1;
    max-width: 380px;
}
.rw-bento-title {
    font-size: clamp(1.9rem, 1.2rem + 1.6vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.rw-bento-copy p {
    font-size: 0.9rem;
    color: var(--rw-text);
    margin-bottom: 0;
}
.rw-mark-light,
[data-bs-theme="light"] .rw-mark-dark {
    display: none;
}
[data-bs-theme="light"] .rw-mark-light {
    display: block;
}

/* orbit: two rings turning slowly around the CentFX mark, icons stay upright */
.rw-orbit {
    position: absolute;
    top: -130px;
    left: 50%;
    width: 300px;
    height: 300px;
    margin-left: -150px;
    pointer-events: none;
}
.rw-orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--rw-line-2);
    animation: rw-spin 60s linear infinite;
}
.rw-orbit-1 {
    inset: 55px;
    --r: -95px;
}
.rw-orbit-2 {
    inset: 0;
    --r: -150px;
    animation-duration: 90s;
    animation-direction: reverse;
}
/* each icon sits on its ring; it turns back against the ring's spin so it stays upright */
.rw-orbit-ic {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    transform: rotate(var(--a)) translateY(var(--r)) rotate(calc(-1 * var(--a)));
}
.rw-orbit-ic i {
    position: absolute;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: -20px;
    border-radius: 11px;
    font-size: 1.25rem;
    color: var(--rw-head);
    background: var(--rw-panel-2);
    border: 1px solid var(--rw-line-2);
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.35);
    animation: rw-spin-rev 60s linear infinite;
}
.rw-orbit-2 .rw-orbit-ic i {
    animation: rw-spin 90s linear infinite;
}
.rw-orbit-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    transform: translate(-50%, -50%);
}
.rw-orbit-core img {
    width: 100%;
    height: auto;
}
@keyframes rw-spin {
    to {
        rotate: 360deg;
    }
}
@keyframes rw-spin-rev {
    to {
        rotate: -360deg;
    }
}
/* phones and tablets: the orbit gets its own band above the copy */
@media (max-width: 991.98px) {
    .rw-bento-orbit {
        min-height: 0;
        padding-top: 13rem;
    }
}
.rw-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}
.rw-split strong {
    display: block;
    margin: 0.2rem 0 0.1rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--rw-head);
}
.rw-split-meta {
    font-size: 0.78rem;
    color: var(--rw-muted);
}
.rw-balance-bar {
    height: 5px;
    margin-top: 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #15ceff 0%, #15ceff var(--p), var(--rw-line-2) var(--p), var(--rw-line-2) 100%);
}

/* countries: dotted map on the right, big figure under the copy */
.rw-bento-map {
    justify-content: space-between;
}
.rw-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}
.rw-bento-big {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(3rem, 2rem + 3vw, 4.5rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
}
.rw-map-top {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.rw-map-top li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem 0.35rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--rw-text);
    background: var(--rw-chip);
    border: 1px solid var(--rw-line);
}
.rw-map-top b {
    margin-left: auto;
    padding-left: 0.75rem;
    font-weight: 600;
    color: var(--rw-head);
}
@media (max-width: 575.98px) {
    .rw-map-top {
        display: none;
    }
}

/* records: icon dock, big record figure and trader photos */
.rw-bento-records {
    justify-content: space-between;
    min-height: 460px;
}
.rw-dock {
    display: inline-flex;
    align-self: flex-start;
    gap: 0.6rem;
    padding: 0.6rem;
    border-radius: 1.1rem;
    background: var(--rw-panel-2);
    border: 1px solid var(--rw-line);
    box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.45);
}
.rw-dock-btn {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 13px;
    border: 1px solid var(--rw-line);
    background: var(--rw-panel);
    font-size: 1.5rem;
    color: var(--rw-muted);
    transform-origin: 50% 100%;
    transition:
        transform 0.2s ease,
        color 0.2s,
        background-color 0.2s,
        border-color 0.2s;
}
.rw-dock-btn.is-active {
    color: var(--rw-head);
    border-color: var(--rw-line-2);
    background: var(--rw-chip);
}
.rw-record-big {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    max-width: 55%;
}
.rw-record-big .metal-text {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 1.6rem + 3vw, 4.25rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
}
.rw-record-label {
    margin-top: 0.6rem;
    font-weight: 600;
    color: var(--rw-head);
}
.rw-record-meta {
    font-size: 0.8rem;
    color: var(--rw-muted);
}
.rw-avatars {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 64px);
    gap: 0.85rem;
}
.rw-avatars img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(1);
    border: 2px solid var(--rw-panel);
    box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.5);
    transition:
        filter 0.3s,
        transform 0.3s;
}
.rw-avatars img:hover {
    filter: none;
    transform: scale(1.06);
}
@media (max-width: 767.98px) {
    .rw-record-big {
        position: relative;
        top: auto;
        right: auto;
        align-items: flex-start;
        text-align: left;
        max-width: none;
        margin: 1.75rem 0;
    }
    .rw-avatars {
        position: relative;
        right: auto;
        bottom: auto;
        margin-bottom: 1.75rem;
        grid-template-columns: repeat(3, 56px);
        gap: 0.6rem;
    }
    .rw-avatars img {
        width: 56px;
        height: 56px;
    }
    .rw-dock-btn {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
}

/* latest payouts: three stacked cards, the front one flips away to show the next */
.rw-bento-stack {
    justify-content: space-between;
    gap: 2rem;
}
.rw-stack {
    position: relative;
    height: 170px;
    margin: 0 0.5rem;
}
.rw-stack-card {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.1rem 1.25rem;
    border-radius: 1rem;
    background: var(--rw-panel-2);
    border: 1px solid var(--rw-line-2);
    box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.6);
    transition:
        transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 0.6s ease;
}
.rw-stack-card[data-pos="0"] {
    z-index: 3;
}
.rw-stack-card[data-pos="1"] {
    z-index: 2;
    transform: translateY(-14px) scale(0.95);
    opacity: 0.75;
}
.rw-stack-card[data-pos="2"] {
    z-index: 1;
    transform: translateY(-28px) scale(0.9);
    opacity: 0.45;
}
.rw-stack-card.no-anim {
    transition: none;
}
/* the front card swipes off to the left with a slight tilt */
.rw-stack-card.is-leaving {
    z-index: 4;
    transform: translateX(-70%) rotate(-6deg);
    opacity: 0;
}
.rw-stack-who {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
    font-weight: 600;
    color: var(--rw-head);
}
.rw-stack-av {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--rw-head);
    background: var(--rw-panel);
    border: 1px solid var(--rw-line-2);
}
.rw-stack-who .rw-cap {
    margin-left: auto;
}
.rw-stack-text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--rw-text);
}
.rw-stack-text b {
    color: var(--rw-head);
}
.rw-stack-text mark {
    padding: 0.1rem 0.4rem;
    border-radius: 0.35rem;
    font-weight: 600;
    color: var(--rw-paid);
    background: rgba(45, 212, 191, 0.14);
}

/* ───────── Live reward stream ───────── */
.rw-stream-panel {
    padding: 0;
}
.rw-stream-head {
    padding: 1rem 1.5rem;
    margin: 0;
}
.rw-stream {
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.rw-stream-track {
    display: flex;
    width: max-content;
    animation: rw-scroll 90s linear infinite;
}
.rw-stream:hover .rw-stream-track {
    animation-play-state: paused;
}
@keyframes rw-scroll {
    to {
        transform: translateX(-50%);
    }
}
.rw-cell {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.5rem;
    border-right: 1px solid var(--rw-line);
    white-space: nowrap;
    transition: background-color 0.2s;
}
.rw-cell:hover {
    background: var(--rw-glow);
}
.rw-cell .rw-flag {
    width: 1.75rem;
    height: 1.3rem;
    line-height: 1.3rem;
}
.rw-cell-name {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--rw-head);
}
.rw-cell-method {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rw-faint);
}
.rw-cell-right {
    margin-left: 1rem;
    text-align: right;
}
.rw-cell-amt {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    color: var(--rw-amount);
}
.rw-cell-right .rw-cap {
    font-size: 0.6rem;
}

/* ───────── Ledger ───────── */
.rw-ledger {
    padding: 0;
}
.rw-ledger-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--rw-line);
}
.rw-ledger-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rw-head);
}
.rw-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--rw-line);
}
.rw-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1 1 220px;
}
.rw-field-grow {
    flex: 1 1 280px;
}
.rw-field .form-select,
.rw-field .form-control {
    border-radius: 0.6rem;
    background-color: var(--rw-panel-2);
    border-color: var(--rw-line-2);
    color: var(--rw-head);
    font-size: 0.9rem;
}
.rw-search {
    position: relative;
    display: block;
}
.rw-search i {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    transform: translateY(-50%);
    color: var(--rw-faint);
}
.rw-search .form-control {
    padding-left: 2.3rem;
}
.rw-reset {
    padding: 0.6rem 1.4rem;
    border-radius: 0.6rem;
    border: 1px solid var(--rw-line-2);
    background: var(--rw-panel-2);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rw-head);
}
.rw-reset:disabled {
    opacity: 0.4;
}
.rw-table {
    width: 100%;
    font-size: 0.875rem;
    color: var(--rw-text);
}
.rw-table th {
    padding: 0.9rem 1rem;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--rw-faint);
    border-bottom: 1px solid var(--rw-line);
}
.rw-table td {
    padding: 0.95rem 1rem;
    white-space: nowrap;
    border-bottom: 1px solid var(--rw-line);
}
.rw-table th:first-child,
.rw-table td:first-child {
    padding-left: 1.5rem;
}
.rw-table th:last-child,
.rw-table td:last-child {
    padding-right: 1.5rem;
}
.rw-table tbody tr {
    transition: background-color 0.2s;
}
.rw-table tbody tr:hover {
    background: var(--rw-glow);
}
.rw-trader {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: var(--rw-head);
}
.rw-size {
    font-variant-numeric: tabular-nums;
}
.rw-plan {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rw-head);
}
.rw-amt {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--rw-amount);
}
.rw-hash {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8rem;
    color: var(--rw-muted);
    border-bottom: 1px dashed var(--rw-line-2);
}
@media (max-width: 575.98px) {
    .rw-table thead {
        display: none;
    }
    .rw-table,
    .rw-table tbody {
        display: block;
    }
    .rw-table tbody tr {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "trader trader amount"
            "size   plan   date";
        align-items: center;
        gap: 0.35rem 1rem;
        padding: 0.9rem 1.25rem;
        border-bottom: 1px solid var(--rw-line);
    }
    .rw-table td,
    .rw-table td:first-child,
    .rw-table td:last-child {
        display: block;
        padding: 0;
        border: 0;
    }
    .rw-table td:nth-child(1) {
        grid-area: date;
        justify-self: end;
        font-size: 0.75rem;
        color: var(--rw-faint);
    }
    .rw-table td:nth-child(2) {
        grid-area: trader;
    }
    .rw-table td:nth-child(3),
    .rw-table td:nth-child(4) {
        font-size: 0.75rem;
        color: var(--rw-muted);
    }
    /* second line: "10K · CentFX Instant" on the left, the date on the right */
    .rw-table td:nth-child(3) {
        grid-area: size;
    }
    .rw-table td:nth-child(4) {
        grid-area: plan;
        margin-left: -0.6rem;
    }
    .rw-table td:nth-child(4)::before {
        content: "· ";
    }
    .rw-table td:nth-child(5) {
        grid-area: amount;
        font-size: 1rem;
    }
    .rw-table td:nth-child(6) {
        display: none;
    }
    .rw-table td[colspan] {
        grid-column: 1 / -1;
        text-align: center;
    }
}
.rw-ledger-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
}
.rw-page-btn {
    padding: 0.35rem 0.8rem;
    border-radius: 0.5rem;
    border: 1px solid var(--rw-line-2);
    background: transparent;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rw-head);
    transition:
        border-color 0.2s,
        color 0.2s;
}
.rw-page-btn:hover:not(:disabled) {
    border-color: var(--rw-cyan);
    color: var(--rw-cyan);
}
.rw-page-btn:disabled {
    opacity: 0.35;
}

/* ───────── Methodology / why / last update: a glass panel on the right of the call to action ───────── */
.rw-cta-info {
    position: relative;
    display: grid;
    width: 100%;
    margin-top: 2.5rem;
    border-radius: 1.25rem;
    background: color-mix(in srgb, var(--rw-panel) 72%, transparent);
    border: 1px solid var(--rw-line-2);
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}
.rw-info-col {
    padding: 1.25rem 1.5rem;
    text-align: left;
}
.rw-info-col + .rw-info-col {
    border-top: 1px solid var(--rw-line);
}
.rw-info-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.6rem;
}
.rw-info-head h3 {
    font-size: 1.05rem;
    color: var(--rw-head);
}
.rw-info-head i {
    font-size: 1.5rem;
}
.rw-ic-cyan {
    color: #15ceff;
}
.rw-ic-blue {
    color: #0b9bcc;
}
.rw-info-col p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--rw-text);
}

/* ───────── Call to action over liquid light lines (same card surface as the home pom-card) ───────── */
.rw-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1.5rem 1.5rem;
    border-radius: 1.5rem;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
}
[data-bs-theme="dark"] .rw-cta {
    background: #141619;
    border-color: rgba(255, 255, 255, 0.08);
}
/* prism gradient behind the call to action (assets/js/prism.js) */
.rw-cta-prism {
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease;
    /* on phones the streaks sit under the copy and fade in toward the notes */
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.15) 25%, #000 55%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.15) 25%, #000 55%);
}
.rw-cta-prism.is-ready {
    opacity: 0.9;
}
[data-bs-theme="light"] .rw-cta-prism.is-ready {
    opacity: 0.6;
}
.rw-cta-prism canvas {
    display: block;
    width: 100%;
    height: 100%;
}
.rw-cta-copy {
    position: relative;
    max-width: 460px;
    margin: 0 auto;
    text-align: center;
}
.rw-cta-copy p {
    color: var(--rw-text);
}
@media (min-width: 992px) {
    .rw-cta {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
        align-items: center;
        gap: 3rem;
        min-height: 560px;
        padding: 3rem 3rem 3rem 4rem;
    }
    /* streaks run across the right of the card, fading out behind the copy */
    .rw-cta-prism {
        -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.06) 25%, #000 60%);
        mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.06) 25%, #000 60%);
    }
    .rw-cta-copy {
        margin: 0;
        text-align: left;
    }
    .rw-cta-info {
        margin-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rw-stream-track,
    .rw-dot::after,
    .rw-rail-fill::after,
    .rw-rail-now::after,

    .rw-orbit-ring,
    .rw-orbit-ic i {
        animation: none;
    }
    .rw-stream {
        overflow-x: auto;
    }
}

/* ───────── Demo mode: SAMPLE badge ───────── */
.rw-sample {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    vertical-align: middle;
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
}
[data-bs-theme="dark"] .rw-sample {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}
.rw-sample-lg {
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
}
/* the hero title is a full sentence here, so it runs a size smaller */
.rw-title-sm {
    font-size: clamp(2rem, 1rem + 2vw, 2.9rem);
}
h2.rw-ledger-title {
    line-height: 1.4;
}

/* cards fly in from beyond the page edges on load: no sideways scrollbar while they travel */
main:has(.rw-page) {
    overflow-x: clip;
}

/* ───────── Bento cards: 3D art, 14-day chart, quick figures, top countries ───────── */
.rw-bento-art {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}
/* keep the card's content above the art (the big figure is already absolutely placed) */
.rw-bento > :not(.rw-bento-art):not(.rw-record-big) {
    position: relative;
    z-index: 1;
}
.rw-record-big {
    z-index: 1;
}
/* metal candlesticks drift in from the bottom-right corner, fading into the card */
.rw-art-candles {
    right: -70px;
    bottom: -60px;
    width: 360px;
    height: auto;
    opacity: 0.55;
    -webkit-mask-image: radial-gradient(circle at 75% 75%, #000 35%, transparent 72%);
    mask-image: radial-gradient(circle at 75% 75%, #000 35%, transparent 72%);
}
/* account towers sit in the top-right corner, beside the title */
.rw-art-towers {
    top: 1.25rem;
    right: -10px;
    width: 170px;
    height: auto;
    opacity: 0.9;
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}

/* last 14 days: one bar per day, today highlighted */
.rw-glance {
    max-width: 62%;
    margin: 1.5rem 0;
}
.rw-spark-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.rw-spark {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 84px;
}
.rw-spark span {
    flex: 1;
    height: var(--h);
    border-radius: 4px 4px 2px 2px;
    /* light mode: aqua at the top, deepening to teal at the bottom (no white fade on the pale card) */
    background: linear-gradient(180deg, rgba(45, 212, 191, 0.7), rgba(13, 148, 136, 0.85));
}
[data-bs-theme="dark"] .rw-spark span {
    background: linear-gradient(180deg, rgba(45, 212, 191, 0.55), rgba(45, 212, 191, 0.12));
}
/* today: the reward-amount green so it stands out */
.rw-spark span.is-now {
    background: linear-gradient(180deg, #28c840, var(--rw-amount));
}
[data-bs-theme="dark"] .rw-spark span.is-now {
    background: linear-gradient(180deg, var(--rw-amount), rgba(40, 200, 64, 0.25));
}
.rw-mini {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.25rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--rw-line);
}
.rw-mini dt {
    margin-bottom: 0.2rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rw-muted);
}
.rw-mini dd {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rw-head);
}

/* top countries: flag, name with a share bar, percentage */
.rw-countries {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.rw-countries li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.85rem;
    color: var(--rw-text);
}
.rw-countries li div {
    flex: 1;
    min-width: 0;
}
.rw-countries li span {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: var(--rw-head);
}
/* grey bar on a faint track; it grows to its length when the list comes in (.is-in) */
.rw-countries li em {
    display: block;
    height: 4px;
    border-radius: 999px;
    background: var(--rw-line);
    overflow: hidden;
}
.rw-countries li i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #9aa5ae, #6a757e);
    transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s);
}
[data-bs-theme="dark"] .rw-countries li i {
    background: linear-gradient(90deg, #6a757e, #c3ccd2);
}
.rw-countries.is-in li i {
    width: var(--w);
}
/* period label beside the heading, and a quick fade while the list changes */
.rw-countries-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.5rem 0 0.6rem;
}
.rw-countries {
    transition: opacity 0.3s;
}
.rw-countries.is-swapping {
    opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
    .rw-countries li i {
        transition: none;
    }
}
.rw-countries li b {
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    color: var(--rw-head);
}

/* phones: art smaller, chart full width */
@media (max-width: 767.98px) {
    .rw-glance {
        max-width: none;
    }
    .rw-art-candles {
        width: 240px;
        opacity: 0.35;
    }
    .rw-art-towers {
        width: 120px;
    }
}
/* the towers sit top-right: keep the intro line clear of them */
.rw-bento-stack .rw-bento-copy > p {
    max-width: 260px;
}
/* narrow cards: the label stays on one line and the total drops below it */
.rw-spark-head {
    flex-wrap: wrap;
    row-gap: 0.25rem;
}
.rw-spark-head .rw-tag-label {
    white-space: nowrap;
}

/* ───────── Glass board: the top card is see-through glass over the prism ───────── */
.rw-board {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 30px 60px -30px rgba(15, 23, 42, 0.3);
}
[data-bs-theme="dark"] .rw-board {
    background: rgba(20, 22, 25, 0.45);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.rw-board .rw-hero {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 70%);
}
[data-bs-theme="dark"] .rw-board .rw-hero {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
}
/* inner tiles: lighter glass on the glass board */
.rw-board .rw-total,
.rw-board .rw-stack-card {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}
[data-bs-theme="dark"] .rw-board .rw-total,
[data-bs-theme="dark"] .rw-board .rw-stack-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}
/* the record cards are stacked, so they stay a little more solid to keep the one in front readable */
.rw-board .rw-stack-card {
    background: rgba(255, 255, 255, 0.72);
}
[data-bs-theme="dark"] .rw-board .rw-stack-card {
    background: rgba(26, 29, 33, 0.72);
}
