/* Affiliates and invites (136) — #/affiliates/apply, #/portal/affiliate, #/portal/invite only, loaded with referrals.js.
   The panels, fields, tables and buttons are the site's; only the layout of these screens lives here. */
.rf{max-width:820px;padding-top:30px;padding-bottom:64px}
.rf-head{margin-bottom:18px}
.rf-head h1{font-size:clamp(26px,4vw,34px);margin:6px 0 8px;overflow-wrap:anywhere}
.rf-head .lead{margin:0;max-width:640px}
.rf-back{display:inline-block;font-size:13.5px;font-weight:700;color:var(--hz-muted);text-decoration:none;margin-bottom:10px}
.rf-back:hover{color:var(--hz-ink)}
.rf-card{margin-top:14px;min-width:0}
.rf-card h3{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.rf-warn{border-color:#ff9e1b;background:#fffaf1}
.rf-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:4px 16px}
.rf-row>*{min-width:0}
.rf-form select,.rf-form input,.rf-form textarea{width:100%}
.rf-check{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.5;margin:6px 0 4px}
.rf-check input{accent-color:#ff9e1b;margin-top:3px;width:16px;height:16px;flex:none}
.rf-err{font-size:13.5px;color:#c0362c;margin-top:8px}
.rf-err:empty{display:none}
.rf-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:14px}
.rf-link{display:flex;gap:10px;align-items:center;flex-wrap:wrap;border:1px solid var(--hz-line-strong);border-radius:14px;padding:10px 12px;background:var(--hz-surface-2)}
.rf-link code{flex:1 1 240px;min-width:0;overflow-wrap:anywhere;font-size:14px;background:none}
.rf-link-actions{display:flex;gap:8px;flex-wrap:wrap}
.rf-hint{margin:10px 0 0;font-size:13px;color:var(--hz-muted);overflow-wrap:anywhere}
.rf-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(140px,100%),1fr));gap:10px}
.rf-tile{border:1px solid var(--hz-line-strong);border-radius:14px;padding:12px 14px;display:grid;gap:4px;min-width:0}
.rf-tile b{font-size:22px;line-height:1.1;font-variant-numeric:tabular-nums}
.rf-tile span{font-size:12.5px;color:var(--hz-muted)}
.rf-tbl small{color:var(--hz-muted);font-size:12px}
.rf-st{display:inline-block;border-radius:999px;padding:2px 10px;font-size:12.5px;font-weight:700;background:var(--hz-surface-2)}
.rf-st-cleared,.rf-st-paid{background:#e8f6ee;color:#1c6b3c}
.rf-st-reversed,.rf-st-clawback,.rf-st-void{background:#f6ecec;color:#8a2a22}
.rf-rules{margin:0;padding-left:18px;display:grid;gap:6px;font-size:14px;line-height:1.5}
/* The friend's code (06.10.2026): the box on Invite friends, and the sheet a phone without the app sees for /?invite= */
.rf-code-inline{font-family:"DM Mono",ui-monospace,monospace;letter-spacing:.08em;color:var(--hz-ink)}
.rf-friend{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.rf-friend input{flex:1 1 180px;min-width:0;height:48px;padding:0 14px;border:1px solid var(--hz-line-strong);border-radius:12px;background:#fff;color:var(--hz-ink);font-family:inherit;font-size:16px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.rf-friend input:focus{outline:none;border-color:#ff9e1b;box-shadow:0 0 0 3px rgba(255,158,27,.22)}
.rf-friend input::placeholder{text-transform:none;letter-spacing:normal;font-weight:400;color:var(--hz-muted)}
.rf-friend .btn{height:48px}
/* Redeem a code (06.10.2026): the invite already on the account, and the line for an account that can no longer redeem */
.rf-ok{display:flex;gap:12px;align-items:flex-start;margin-top:14px;background:#e8f6ee;border:1px solid #bfe3cc;border-radius:16px;padding:16px 18px;line-height:1.5}
.rf-ok b{display:block;color:#1c6b3c;font-size:16px;margin-bottom:2px}
.rf-ok div span{color:#244a33}
.rf-ok-tick{flex:none;width:28px;height:28px;border-radius:50%;background:#1c6b3c;color:#fff;display:grid;place-items:center;font-weight:800}
.rf-closed{margin-top:14px;background:var(--hz-surface-2);border-radius:16px;padding:16px 18px;line-height:1.5;overflow-wrap:anywhere}
.rf-closed a{font-weight:700;white-space:nowrap}
/* "Your codes" (06.10.2026, approved preview v3): each code with who it came from, when it was activated, what it gives */
.rf-codes{display:grid;gap:10px}
.rf-code{border:1px solid var(--hz-line-strong);border-radius:14px;padding:14px 16px;display:grid;gap:6px;min-width:0}
.rf-code-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.rf-avatar{width:28px;height:28px;border-radius:50%;background:#e6eeff;color:#1d4ed8;display:grid;place-items:center;font-weight:800;font-size:13px;flex:none}
.rf-kind{font-size:11.5px;font-weight:800;border-radius:999px;padding:3px 9px;background:#e6eeff;color:#1d4ed8}
.rf-kind-offer{background:#fff3e0;color:#a34e00}
.rf-the-code{letter-spacing:.12em;color:var(--hz-ink);overflow-wrap:anywhere}
.rf-when{margin-left:auto;font-size:13px;color:var(--hz-muted)}
.rf-by{font-size:14px}
.rf-by b,.rf-gives{color:var(--hz-ink)}
.rf-gives{font-weight:700}
.rf-st-pill{display:inline-flex;align-items:center;gap:6px;width:fit-content;max-width:100%;font-size:13px;font-weight:700;border-radius:999px;padding:3px 10px;overflow-wrap:anywhere}
.rf-st-wait{background:#fff7e6;color:#8a5300}
.rf-st-done{background:#e8f6ee;color:#1c6b3c}
.rf-st-no{background:#f6ecec;color:#8a2a22;border-radius:12px}
@media (max-width:560px){.rf-when{margin-left:0;flex-basis:100%}}
.rf-landing{display:grid;gap:12px}
.rf-landing h2{margin:2px 0 0;font-size:clamp(22px,5vw,28px);line-height:1.15;overflow-wrap:anywhere}
.rf-landing-lead{margin:0;color:var(--hz-muted);line-height:1.5}
.rf-landing .rf-hint{margin:0}
.rf-landing .btn-full{text-align:center;text-decoration:none}
.rf-codebox{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:1px dashed #ff9e1b;border-radius:14px;padding:12px 14px;background:#fffaf1}
.rf-codebox span{font-size:12.5px;color:var(--hz-muted);flex:1 0 100%}
.rf-codebox b{flex:1 1 auto;min-width:0;font:700 24px/1.1 "DM Mono",ui-monospace,monospace;letter-spacing:.14em;color:#1b1f2a;overflow-wrap:anywhere}
/* /affiliates/ — the static program page (partners-landing.css gives the wl- frame; these are its own lists) */
.af-hero{position:relative;padding:clamp(40px,5vw,72px) 20px clamp(28px,3.5vw,44px)}
.af-hero h1{max-width:900px}
.af-steps{list-style:none;counter-reset:af;margin:24px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:16px}
.af-steps li{counter-increment:af;border:1px solid var(--wl-line);border-radius:16px;padding:20px;background:var(--wl-card);display:grid;gap:8px;min-width:0}
.af-steps li::before{content:counter(af);font:700 13px/1 "DM Mono",ui-monospace,monospace;color:#a34e00}
.af-steps b{font-size:18px}
.af-steps span{color:var(--wl-ink-2);line-height:1.55}
.af-note{color:var(--wl-muted);font-size:14px;margin:16px 0 0}
.af-list,.af-terms{margin:18px 0 0;padding-left:20px;display:grid;gap:10px;line-height:1.6;color:var(--wl-ink-2);max-width:860px}
.af-terms b{color:var(--wl-ink)}
.af code{overflow-wrap:anywhere}
