/* Crowdfundme Referrals — public referral program, dashboard and payout transparency. */
.cf-referrals-public{background:#F7FAF5;color:var(--cf-text)}
.cf-referral-kicker{display:inline-flex;align-items:center;gap:9px;font-size:11px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:var(--cf-forest)}
.cf-referral-kicker:before{content:"";width:26px;height:2px;border-radius:99px;background:var(--cf-lime)}
.cf-referral-hero{padding:clamp(52px,7vw,96px) 0;background:linear-gradient(135deg,#F7FAF5 0%,#ECF6EF 100%);overflow:hidden}
.cf-referral-hero__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,.9fr);gap:clamp(34px,6vw,84px);align-items:center}
.cf-referral-hero__copy h1,.cf-referral-heading h2,.cf-referral-example h2,.cf-referral-value h2,.cf-referral-final h2{font-family:var(--cf-display);color:var(--cf-ink);letter-spacing:-.045em;line-height:1.02}
.cf-referral-hero__copy h1{font-size:clamp(45px,6vw,82px);max-width:11ch;margin:16px 0 20px}
.cf-referral-hero__copy>p{max-width:62ch;font-size:clamp(17px,1.45vw,21px);line-height:1.72;color:var(--cf-muted);margin:0}
.cf-referral-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}.cf-referral-actions .cf-btn{min-height:52px}
.cf-referral-trust{display:flex;flex-wrap:wrap;gap:22px;margin-top:28px;color:#315B52;font-size:13px;font-weight:700}.cf-referral-trust span{display:flex;align-items:center;gap:8px}.cf-referral-trust svg{width:18px;height:18px;color:var(--cf-forest)}
.cf-referral-hero__visual{position:relative;min-height:520px;border-radius:34px;overflow:hidden;box-shadow:0 30px 70px rgba(4,28,30,.16)}.cf-referral-hero__visual>img{width:100%;height:100%;min-height:520px;object-fit:cover;display:block}.cf-referral-hero__visual:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 50%,rgba(4,28,30,.42))}
.cf-referral-hero__float{position:absolute;z-index:2;right:22px;bottom:22px;max-width:285px;padding:20px 22px;border-radius:22px;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);box-shadow:0 18px 44px rgba(4,28,30,.18)}.cf-referral-hero__float span,.cf-referral-hero__float small,.cf-referral-hero__float strong{display:block}.cf-referral-hero__float span{font-size:10px;letter-spacing:.1em;text-transform:uppercase;font-weight:800;color:var(--cf-muted)}.cf-referral-hero__float strong{font-family:var(--cf-display);font-size:42px;color:var(--cf-ink);margin:5px 0}.cf-referral-hero__float small{font-size:12px;line-height:1.55;color:var(--cf-muted)}
.cf-referral-how,.cf-referral-value,.cf-referral-rules{padding:clamp(68px,8vw,112px) 0}.cf-referral-heading{max-width:820px}.cf-referral-heading h2,.cf-referral-value h2{font-size:clamp(36px,4.6vw,62px);margin:14px 0 16px}.cf-referral-heading p,.cf-referral-value p{font-size:17px;line-height:1.75;color:var(--cf-muted)}
.cf-referral-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:40px}.cf-referral-steps article{position:relative;padding:26px;border:1px solid var(--cf-line);border-radius:24px;background:#fff;box-shadow:var(--cf-shadow-sm)}.cf-referral-steps article>span{position:absolute;top:20px;right:20px;font-family:var(--cf-display);font-size:13px;font-weight:800;color:#A6B7B2}.cf-referral-icon{width:50px;height:50px;border-radius:16px;display:grid;place-items:center;background:#EAF8EF;color:var(--cf-forest)}.cf-referral-icon svg{width:23px;height:23px}.cf-referral-steps h3{font-family:var(--cf-display);font-size:20px;color:var(--cf-ink);margin:22px 0 9px}.cf-referral-steps p{margin:0;color:var(--cf-muted);font-size:13px;line-height:1.65}
.cf-referral-example{padding:0 0 clamp(68px,8vw,112px)}.cf-referral-example__card{padding:clamp(30px,5vw,58px);border-radius:34px;background:#082E2B;color:#DCE9E5;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.65fr);gap:34px;align-items:center;box-shadow:0 24px 60px rgba(4,28,30,.17)}.cf-referral-example .cf-referral-kicker{color:var(--cf-lime)}.cf-referral-example h2{color:#fff;font-size:clamp(32px,4vw,52px);margin:13px 0}.cf-referral-example p{color:#B8CCC6;line-height:1.72;margin:0}.cf-referral-example__card>.cf-btn{grid-column:1/-1;justify-self:start}.cf-referral-math{display:grid;grid-template-columns:1fr auto 1fr;gap:14px;align-items:center}.cf-referral-math span{padding:20px;border-radius:20px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.10)}.cf-referral-math small,.cf-referral-math strong{display:block}.cf-referral-math small{font-size:10px;text-transform:uppercase;letter-spacing:.09em;color:#9DB7B0}.cf-referral-math strong{font-family:var(--cf-display);font-size:28px;color:#fff;margin-top:5px}.cf-referral-math b{color:var(--cf-lime)}
.cf-referral-value{background:#fff}.cf-referral-value__grid{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1fr);gap:clamp(34px,6vw,74px);align-items:center}.cf-referral-value__visual{border-radius:30px;overflow:hidden;min-height:470px}.cf-referral-value__visual img{display:block;width:100%;height:100%;min-height:470px;object-fit:cover}.cf-referral-value ul{list-style:none;padding:0;margin:28px 0 0;display:grid;gap:13px}.cf-referral-value li{position:relative;padding:14px 16px 14px 46px;border-radius:15px;background:#F4F9F4;color:#33534E;line-height:1.55}.cf-referral-value li:before{content:"✓";position:absolute;left:16px;top:14px;width:21px;height:21px;border-radius:50%;background:#DDF7E7;color:var(--cf-forest);display:grid;place-items:center;font-size:12px;font-weight:900}
.cf-referral-rules{background:#EEF5EF}.cf-referral-rule-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:34px}.cf-referral-rule-grid article{padding:25px;border-radius:22px;background:#fff;border:1px solid var(--cf-line)}.cf-referral-rule-grid h3{font-family:var(--cf-display);font-size:20px;margin:0 0 9px;color:var(--cf-ink)}.cf-referral-rule-grid p{margin:0;font-size:13px;line-height:1.65;color:var(--cf-muted)}
.cf-referral-final{padding:clamp(68px,8vw,112px) 0;background:#F7FAF5}.cf-referral-final__card{display:flex;justify-content:space-between;gap:28px;align-items:center;padding:clamp(32px,5vw,58px);border-radius:34px;background:linear-gradient(135deg,#0B3B33,#041C1E);color:#fff}.cf-referral-final .cf-referral-kicker{color:var(--cf-lime)}.cf-referral-final h2{color:#fff;font-size:clamp(34px,4.5vw,58px);margin:13px 0;max-width:14ch}.cf-referral-final p{max-width:64ch;margin:0;color:#AFC3BD;line-height:1.7}
/* Referral dashboard */
.cf-referral-dashboard{max-width:1500px}.cf-referral-dashboard-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:26px;padding:clamp(28px,4vw,44px);border-radius:30px;background:linear-gradient(135deg,#fff,#F0FAF3);border:1px solid var(--cf-line);box-shadow:var(--cf-shadow-sm)}.cf-referral-dashboard-hero h1{font-family:var(--cf-display);font-size:clamp(30px,3.6vw,48px);line-height:1.05;letter-spacing:-.04em;color:var(--cf-ink);margin:9px 0}.cf-referral-dashboard-hero p{margin:0;max-width:72ch;color:var(--cf-muted);line-height:1.65}.cf-referral-notice{margin-bottom:16px;padding:13px 16px;border-radius:13px;font-weight:700}.cf-referral-notice.is-success{background:#E7F8ED;color:#12563D;border:1px solid #BCE6CB}
.cf-referral-share-card{margin-top:18px;padding:26px;border-radius:26px;background:#082E2B;color:#fff;display:grid;grid-template-columns:minmax(260px,.65fr) minmax(0,1.35fr);gap:24px;align-items:center}.cf-referral-share-card h2{font-family:var(--cf-display);font-size:26px;margin:8px 0;color:#fff}.cf-referral-share-card p{color:#AFC3BD;margin:0;line-height:1.6}.cf-referral-copy-grid{display:grid;gap:12px}.cf-referral-copy-grid>div>small{display:block;margin-bottom:7px;font-size:10px;text-transform:uppercase;letter-spacing:.09em;color:#9AB6AE;font-weight:800}.cf-copy-field{display:flex;gap:8px;padding:7px;border-radius:15px;background:#fff}.cf-copy-field input{min-width:0;flex:1;border:0!important;box-shadow:none!important;background:transparent!important;color:#24413B!important;padding:9px 10px!important}.cf-copy-field button{display:flex;align-items:center;gap:6px;border:0;border-radius:11px;padding:9px 13px;background:#E8F7EC;color:#0A4A36;font-weight:800;cursor:pointer;white-space:nowrap}.cf-copy-field button svg{width:16px;height:16px}.cf-copy-field button.is-copied{background:var(--cf-lime);color:#062725}
.cf-referral-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:18px}.cf-referral-stat-grid article{padding:20px;border-radius:20px;background:#fff;border:1px solid var(--cf-line);box-shadow:var(--cf-shadow-sm)}.cf-referral-stat-grid span,.cf-referral-stat-grid strong,.cf-referral-stat-grid small{display:block}.cf-referral-stat-grid span{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--cf-muted);font-weight:800}.cf-referral-stat-grid strong{font-family:var(--cf-display);font-size:23px;color:var(--cf-ink);margin:8px 0}.cf-referral-stat-grid small{font-size:10.5px;line-height:1.5;color:#83958F}
.cf-referrer-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:17px;align-items:center;margin-top:18px;padding:20px;border-radius:22px;background:#FFFDF3;border:1px solid #E8DFC0}.cf-referrer-avatar,.cf-referral-person-avatar{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:linear-gradient(135deg,var(--cf-mint),var(--cf-lime));font-family:var(--cf-display);font-weight:900;color:#062725}.cf-referrer-card h2{font-family:var(--cf-display);font-size:20px;margin:4px 0;color:var(--cf-ink)}.cf-referrer-card p{margin:0;color:var(--cf-muted);font-size:12px}
.cf-referral-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(330px,.8fr);gap:18px;margin-top:18px}.cf-referral-people-panel,.cf-referral-chat-panel{padding:24px;border-radius:24px;background:#fff;border:1px solid var(--cf-line);box-shadow:var(--cf-shadow-sm)}.cf-referral-count{min-width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:#EAF8EF;color:var(--cf-forest);font-weight:900}.cf-referral-people-list{display:grid;gap:10px;margin-top:20px}.cf-referral-people-list article{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:13px;padding:13px;border-radius:17px;background:#F8FAF7;border:1px solid #E5ECE6}.cf-referral-person-main strong,.cf-referral-person-main small{display:block}.cf-referral-person-main strong{color:var(--cf-ink)}.cf-referral-person-main small{margin-top:3px;color:var(--cf-muted);font-size:10.5px}.cf-referral-source{padding:6px 9px;border-radius:999px;background:#E9F6EF;color:#23664D;font-size:10px;font-weight:800}.cf-referral-empty{text-align:center;padding:46px 22px}.cf-referral-empty>div{width:54px;height:54px;margin:0 auto 14px;display:grid;place-items:center;border-radius:17px;background:#EAF8EF;color:var(--cf-forest)}.cf-referral-empty svg{width:25px;height:25px}.cf-referral-empty h3{font-family:var(--cf-display);color:var(--cf-ink);margin:0}.cf-referral-empty p{max-width:48ch;margin:8px auto 0;color:var(--cf-muted);font-size:12px;line-height:1.6}
.cf-referral-chat-panel{display:flex;flex-direction:column;min-height:520px}.cf-referral-chat-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.cf-referral-chat-head h2{font-family:var(--cf-display);font-size:22px;margin:5px 0;color:var(--cf-ink)}.cf-referral-chat-head>a{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#F0F5F1;color:var(--cf-muted);font-size:20px}.cf-referral-chat-thread{flex:1;max-height:470px;overflow:auto;display:flex;flex-direction:column;gap:10px;margin:18px 0;padding-right:4px}.cf-referral-chat-thread article{max-width:84%;display:grid;gap:4px}.cf-referral-chat-thread article>div{padding:11px 13px;border-radius:15px;background:#EEF4F0;color:#23443C;font-size:12px;line-height:1.55}.cf-referral-chat-thread article.is-mine{align-self:flex-end}.cf-referral-chat-thread article.is-mine>div{background:#0B3B33;color:#fff;border-bottom-right-radius:5px}.cf-referral-chat-thread article.is-theirs>div{border-bottom-left-radius:5px}.cf-referral-chat-thread time{font-size:9px;color:#91A19C}.cf-referral-chat-thread article.is-mine time{text-align:right}.cf-referral-chat-form label span{display:block;font-size:11px;font-weight:800;color:var(--cf-ink);margin-bottom:7px}.cf-referral-chat-form textarea{width:100%;resize:vertical}.cf-referral-chat-form .cf-btn{margin-top:9px}.cf-referral-chat-placeholder{margin:auto;text-align:center;max-width:290px;color:var(--cf-muted)}.cf-referral-chat-placeholder svg{width:42px;height:42px;color:var(--cf-forest)}.cf-referral-chat-placeholder h2{font-family:var(--cf-display);color:var(--cf-ink);font-size:21px}.cf-referral-chat-placeholder p,.cf-referral-chat-empty{font-size:12px;line-height:1.65;color:var(--cf-muted)}
/* Withdrawal referral disclosure */
.cf-referral-fee-notice{margin:0 0 14px;padding:14px 15px;border-radius:14px;background:#FFF9E8;border:1px solid #E8D89E;color:#5E4D12}.cf-referral-fee-notice strong{display:block;color:#3C320E}.cf-referral-fee-notice p{margin:4px 0 0;font-size:11px;line-height:1.55}.cf-referral-fee-breakdown{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.cf-referral-fee-breakdown span{padding:12px;border-radius:12px;background:#F2F7F3;border:1px solid #E0EAE2}.cf-referral-fee-breakdown small,.cf-referral-fee-breakdown strong{display:block}.cf-referral-fee-breakdown small{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:var(--cf-muted)}.cf-referral-fee-breakdown strong{margin-top:4px;color:var(--cf-ink)}.cf-payout-referral-line{margin-top:4px!important;color:#A66D12!important}
@media(max-width:1080px){.cf-referral-hero__grid,.cf-referral-value__grid{grid-template-columns:1fr}.cf-referral-hero__copy h1{max-width:13ch}.cf-referral-hero__visual{min-height:440px}.cf-referral-hero__visual>img{min-height:440px}.cf-referral-steps{grid-template-columns:repeat(2,1fr)}.cf-referral-example__card{grid-template-columns:1fr}.cf-referral-example__card>.cf-btn{grid-column:auto}.cf-referral-stat-grid{grid-template-columns:repeat(2,1fr)}.cf-referral-dashboard-grid{grid-template-columns:1fr}}
@media(max-width:760px){.cf-referral-hero{padding-top:36px}.cf-referral-hero__grid{gap:28px}.cf-referral-hero__copy h1{font-size:clamp(38px,12vw,58px)}.cf-referral-hero__visual,.cf-referral-hero__visual>img{min-height:360px}.cf-referral-hero__float{left:14px;right:14px;bottom:14px;max-width:none}.cf-referral-trust{display:grid;gap:10px}.cf-referral-steps,.cf-referral-rule-grid{grid-template-columns:1fr}.cf-referral-math{grid-template-columns:1fr}.cf-referral-math>b{text-align:center}.cf-referral-final__card,.cf-referral-dashboard-hero{display:block}.cf-referral-final__card .cf-btn,.cf-referral-dashboard-hero .cf-btn{margin-top:22px}.cf-referral-share-card{grid-template-columns:1fr}.cf-referral-stat-grid{grid-template-columns:1fr 1fr}.cf-referrer-card{grid-template-columns:auto 1fr}.cf-referrer-card .cf-btn{grid-column:1/-1}.cf-referral-people-list article{grid-template-columns:auto 1fr}.cf-referral-source,.cf-referral-people-list article>.cf-btn{grid-column:2}.cf-copy-field{display:grid}.cf-copy-field button{justify-content:center}}
@media(max-width:520px){.cf-referral-stat-grid{grid-template-columns:1fr}.cf-referral-hero__visual,.cf-referral-hero__visual>img{min-height:320px}.cf-referral-hero__float strong{font-size:34px}}
