.referrals-page{background:#061210;color:#eef7f4}.referrals-page main .k-button{background:#182b28;color:#97fce4;border-color:#526d69}.referrals-page main .k-button:hover{background:#25433e}.referrals-page main a{color:#97fce4;text-underline-offset:4px}
.referrals-page main{max-width:1280px;margin:0 auto;padding:clamp(32px,6vw,88px) 24px 88px}.referral-intro{padding-bottom:56px;border-bottom:1px solid #344744}.referral-intro h1{font-family:Unbounded,sans-serif;font-size:clamp(32px,5vw,64px);line-height:1.16;letter-spacing:-.04em;margin:0 0 24px;text-wrap:balance;max-width:18ch}.referral-intro>p{font-size:20px;color:#b7c9c7;max-width:42ch;line-height:1.65}.referral-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr);gap:64px;padding-top:48px}.referral-layout h2{font-size:clamp(22px,2.5vw,30px);letter-spacing:-.03em;margin:0 0 20px}.referral-layout p{line-height:1.7;color:#b7c9c7}.referral-workspace,.referral-explainer{min-width:0}.referral-actions,.referral-share-actions{display:flex;flex-wrap:wrap;gap:12px}.referral-actions{margin:24px 0}.referral-workspace label{display:block;font-weight:700;margin:28px 0 12px}.referral-workspace textarea,.referral-workspace input{width:100%;min-width:0;background:#101f1d;border:1px solid #526d69;border-radius:12px;padding:16px;color:#eef7f4;font:inherit;caret-color:#97fce4}.referral-workspace textarea{resize:vertical;line-height:1.7;min-height:150px}.referral-message-meta{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:#b7c9c7;padding-top:8px}.referral-link-row{display:flex;gap:12px}.referral-link-row input{font-size:14px}.referral-share-actions{margin-top:24px}.referral-social{display:inline-flex;align-items:center;gap:10px;color:#97fce4;background:#182b28;border:1px solid #526d69;border-radius:12px;padding:14px 18px;font-weight:700;text-decoration:none}.referral-social svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.referral-social:hover{background:#25433e}.referral-share-note{font-size:13px;max-width:55ch}.referral-explainer{padding:30px;background:#112220;border-radius:16px;align-self:start}.referral-explainer strong{color:#eef7f4}.referral-explainer dl{margin:32px 0}.referral-explainer dl>div{border-top:1px solid #344744;padding:20px 0}.referral-explainer dt{font-weight:700}.referral-explainer dd{margin:8px 0 0;color:#b7c9c7;line-height:1.65}.referral-reward-status{font-size:14px}#referral-invited{margin-top:32px;padding-top:24px;border-top:1px solid #344744}#referral-invited h3{font-size:20px}#referral-owner,#referral-candidate{overflow-wrap:anywhere;font-size:14px}.referrals-page :focus-visible{outline:2px solid #97fce4;outline-offset:4px}.referrals-page ::selection{background:#97fce4;color:#061210}.referrals-page button:disabled{opacity:.55;cursor:not-allowed}@media(max-width:760px){.referrals-page main{padding:36px 20px 56px}.referral-layout{grid-template-columns:1fr;gap:36px;padding-top:32px}.referral-intro{padding-bottom:24px}.referral-intro>p{font-size:17px}.referral-link-row{flex-wrap:wrap}.referral-link-row input{flex-basis:100%}.referral-explainer{padding:24px}.referral-share-actions{flex-direction:column;align-items:stretch}.referral-social{justify-content:center}.referral-message-meta{font-size:12px}}

.referrals-page [hidden]{display:none!important}
.referral-link-row button{flex-shrink:0;white-space:nowrap}

/* Referral workspace: the invitation is the visual focus. */
.referral-intro{padding-bottom:40px;position:relative}
.referral-intro h1{font-size:clamp(32px,4.6vw,60px);max-width:22ch;letter-spacing:-.035em}
.referral-intro h1 span{color:#aff7e4;background:linear-gradient(110deg,#97fce4,#91bcdc);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.referral-intro>p{max-width:50ch;margin-bottom:16px}
.referral-layout{gap:48px;padding-top:40px;align-items:start}
.referral-workspace{padding:32px;border:1px solid #344744;border-radius:16px;background:linear-gradient(135deg,#11201e,#0d1817)}
.referral-actions{gap:10px}.referrals-page main #referral-signin,.referrals-page main #referral-create,.referrals-page main #referral-accept{background:linear-gradient(115deg,#a8f2de,#99c0dd);border-color:transparent;color:#10201e;font-weight:800}
.referrals-page main #referral-refresh,.referrals-page main #referral-signout{background:transparent;border-color:#48605c;color:#c5d3d1}
.referral-workspace textarea{min-height:118px;background:#0b1715;transition:border-color .15s ease}
.referral-workspace textarea:focus,.referral-workspace input:focus{border-color:#97fce4}
.referral-post-preview{margin-top:28px;border-radius:14px;overflow:hidden;background:#0a1413;border:1px solid #344744}
.referral-post-brand{display:flex;gap:10px;align-items:center;padding:18px 20px 0}.referral-post-brand img{border-radius:9px}.referral-post-brand strong{font-size:18px;letter-spacing:-.04em}.referral-post-brand span{margin-left:auto;font-size:12px;color:#b7c9c7}
.referral-post-preview>p{padding:0 20px;margin:14px 0 18px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;color:#e8f1ef}
.referral-post-art{aspect-ratio:1200/630;background:#142220}.referral-post-art img{display:block;width:100%;height:auto}
.referral-post-caption{padding:16px 20px;display:flex;flex-direction:column;gap:5px}.referral-post-caption strong{font-size:15px}.referral-post-caption span{font-size:12px;color:#b7c9c7}
.referral-share-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.referral-social{justify-content:center;min-height:50px;font-size:14px;padding:13px 12px;transition:background .15s ease,border-color .15s ease}.referral-social:hover{border-color:#97fce4}.referral-share-actions>button{grid-column:1/-1}
.referral-explainer{padding:8px 0;background:none;border-radius:0}.referral-explainer dl{margin:28px 0}.referral-explainer h2{max-width:13ch}.referral-reward-status{padding-top:18px;border-top:1px solid #344744}
.referrals-page textarea{scrollbar-color:#526d69 #0b1715;scrollbar-width:thin}.referral-message-meta{font-variant-numeric:tabular-nums}
@media(max-width:760px){.referral-layout{gap:32px}.referral-workspace{padding:22px 18px}.referral-intro{padding-bottom:28px}.referral-post-brand{padding:16px 16px 0}.referral-post-preview>p{padding:0 16px}.referral-post-caption{padding:14px 16px}.referral-explainer{padding:0 4px}.referral-social{font-size:13px;gap:7px}.referral-share-note{font-size:12px}}
@media(prefers-reduced-motion:reduce){.referral-social,.referral-workspace textarea{transition:none}}
/* A compact operating workspace, with real reward states kept distinct from program terms. */
.referrals-page main{padding-top:48px;max-width:1280px}.referral-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;padding-bottom:32px;border:0}.referral-intro h1{font-size:clamp(32px,3.8vw,50px);line-height:1.2;margin-bottom:18px}.referral-intro>div>p{font-size:17px;line-height:1.7;color:#b7c9c7;max-width:48ch;margin:0}.referral-back{display:inline-flex;align-items:center;gap:12px;font-size:14px;flex-shrink:0;padding-bottom:6px;text-decoration:none}.referral-back svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6}.referral-sections{display:flex;gap:28px;border-top:1px solid #344744;border-bottom:1px solid #344744;overflow:auto}.referral-sections a{padding:18px 0;white-space:nowrap;font-size:14px;font-weight:700;text-decoration:none}.referral-sections a:hover{color:#effcf9}.referral-layout{grid-template-columns:minmax(0,1.65fr) minmax(240px,1fr);gap:48px;padding-top:36px}.referral-workspace{background:#101c1a}.referral-workspace h2{font-size:24px}.referral-workspace>p{font-size:14px}.referral-welcome{margin-top:28px;border-top:1px solid #344744;padding-top:24px}.referral-welcome>img{display:block;width:100%;height:auto;aspect-ratio:1200/630;border-radius:12px}.referral-welcome>div{padding:20px 0 0}.referral-welcome h3{margin:0 0 8px;font-size:18px}.referral-welcome p{margin:0;font-size:14px;max-width:50ch}.referral-explainer{padding-top:12px}.referral-explainer h2{font-size:24px;max-width:14ch}.referral-explainer>p{font-size:15px}.referral-explainer dt{font-size:14px}.referral-explainer dd{font-size:14px}.referral-rewards{margin-top:56px;padding-top:32px;border-top:1px solid #344744;scroll-margin-top:140px}.referral-rewards-heading{display:flex;align-items:baseline;justify-content:space-between;gap:20px}.referral-rewards-heading h2{font-size:26px;letter-spacing:-.03em;margin:0}.referral-rewards-heading>span{color:#b7c9c7;font-size:13px}.referral-rewards-empty{display:flex;align-items:flex-start;gap:20px;padding:36px 0}.referral-rewards-empty>svg{width:32px;height:32px;flex-shrink:0;fill:none;stroke:#b7c9c7;stroke-width:1.4}.referral-rewards-empty h3{font-size:17px;margin:0 0 8px}.referral-rewards-empty p{font-size:14px;color:#b7c9c7;max-width:60ch;line-height:1.7;margin:0}#invitation,#referral-how{scroll-margin-top:140px}.referrals-page .account-dialog{color:#eef7f4}.referrals-page main .k-button{min-height:46px}
@media(max-width:760px){.referrals-page main{padding-top:28px}.referral-intro{display:block;padding-bottom:24px}.referral-intro>div>p{font-size:16px}.referral-back{margin-top:18px}.referral-sections{gap:24px}.referral-sections a{font-size:13px;padding:16px 0}.referral-layout{grid-template-columns:1fr;padding-top:24px;gap:32px}.referral-workspace h2{font-size:22px}.referral-explainer h2{max-width:none}.referral-rewards{margin-top:32px;padding-top:28px}.referral-rewards-heading{align-items:flex-start;flex-direction:column;gap:8px}.referral-rewards-empty{padding:26px 0;gap:16px}.referral-rewards-empty>svg{width:26px;height:26px}.referral-workspace .referral-actions>button{flex:1}.referral-message-meta{flex-wrap:wrap}}

.referral-rewards-records{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;padding:28px 0;font-variant-numeric:tabular-nums;color:#c5d3d1}
/* What makes a platform fee eligible, in one line under the 20% rate. */
.referral-explainer .referral-eligible{font-size:14px;color:#b7c9c7;line-height:1.65}

/* The page around the invitation: the first screen and its route are in money-pages.css. */
.referrals-page main .referral-back{display:inline-flex;align-items:center;gap:10px;min-height:46px;margin-top:20px;padding:0 20px;border-radius:12px;background:linear-gradient(115deg,#c1fded,#a5d8ec);color:#0d2320;font-weight:800;text-decoration:none;box-shadow:0 14px 30px -20px #97fce4;transition:transform .18s,box-shadow .18s}
.referrals-page main .referral-back svg{transition:transform .2s cubic-bezier(.2,.8,.2,1)}
.referrals-page main .referral-back:hover{transform:translateY(-1px);box-shadow:0 18px 34px -18px #97fce4}
.referrals-page main .referral-back:hover svg{transform:translateX(3px)}
.referrals-page main .referral-back:active{transform:scale(.97)}
.referral-sections{gap:6px;max-width:560px;padding:5px;border:1px solid #2b4642;border-radius:14px;background:#081312;scrollbar-width:none}
.referral-sections::-webkit-scrollbar{display:none}
.referrals-page main .referral-sections a{display:inline-flex;align-items:center;justify-content:center;flex:1;min-height:44px;padding:0 14px;border-radius:10px;color:#b5c9c6;font-size:14px;transition:background-color .18s,color .18s}
.referrals-page main .referral-sections a:hover{background:#ffffff0a;color:#eaf7f3}
.referral-workspace.money-card{border:0;border-radius:20px;background:linear-gradient(150deg,#12251f,#0c1a1a 55%,#121d2c);box-shadow:inset 0 0 0 1px #2a4541,0 30px 60px -44px #000}
.referral-welcome>img{border:1px solid #2b4642}
.referrals-page main .k-button{transition:transform .15s,background-color .18s,border-color .18s,color .18s}
.referrals-page main .k-button:active{transform:scale(.97)}
.referrals-page main .k-button.is-done{border-color:#97fce4;background:#97fce41f;color:#c1fded}
.referral-post-preview{box-shadow:0 24px 50px -40px #000}
/* The share of the fee, drawn: a fifth of the ring, filling in when it comes into view. */
.referral-rate{position:relative;display:grid;place-items:center;width:76px;height:76px;margin-bottom:14px}
.referral-rate svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.referral-rate b{font-size:17px;font-weight:800;font-variant-numeric:tabular-nums;color:#c1fded}
.rate-track,.rate-share{fill:none;stroke-width:7}
.rate-track{stroke:#22352f}
.rate-share{stroke:#97fce4;stroke-linecap:round;stroke-dasharray:20 100;animation:rate-fill 1.1s cubic-bezier(.2,.8,.2,1) .3s both}
@keyframes rate-fill{from{stroke-dasharray:0 100}}
/* Three promises, each with its mark. */
.referral-explainer dl>div{position:relative;padding:16px 0 16px 50px}
.referral-explainer dl>div:before{content:'';position:absolute;left:0;top:17px;width:36px;height:36px;border-radius:11px;background:#97fce40f center/18px no-repeat}
.referral-explainer dl>div:nth-child(1):before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2397fce4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 4.500 3.400 8.300 8 9 4.600-.7 8-4.500 8-9V6l-8-3Zm-3.500 9 2.500 2.500 4.500-5'/%3E%3C/svg%3E")}
.referral-explainer dl>div:nth-child(2):before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2399c8ed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.500.5l3-3a5 5 0 0 0-7-7l-1.700 1.700M14 11a5 5 0 0 0-7.500-.5l-3 3a5 5 0 0 0 7 7l1.700-1.700'/%3E%3C/svg%3E")}
.referral-explainer dl>div:nth-child(3):before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8b5ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.700 5.600 6.300.9-4.500 4.400 1 6.100L12 17.100 6.500 20l1-6.100L3 9.500l6.300-.9L12 3Z'/%3E%3C/svg%3E")}
/* Rewards: one card, the wallet mark breathing while it waits for the first one. */
.referral-rewards{padding:24px;border:1px solid #2b4642;border-radius:20px;background:radial-gradient(110% 80% at 100% 0%,#8ff1f10f,transparent 60%),#0a1715}
.referral-rewards-heading>span{padding:4px 11px;border-radius:999px;border:1px solid #97fce433;background:#97fce40d;color:#bff7ea;font-weight:700}
.referral-rewards-empty{padding:22px 0 4px}
.referral-rewards-empty>svg{flex:none;width:48px;height:48px;padding:12px;box-sizing:border-box;border-radius:14px;background:#97fce40f;stroke:#97fce4;stroke-width:1.7;animation:rate-breathe 3.6s ease-in-out infinite}
@keyframes rate-breathe{50%{transform:scale(1.07)}}
.referral-rewards-records{padding:18px 0 4px}
#referral-invited .k-button{margin:6px 8px 0 0}
@media(max-width:760px){
 .referrals-page main{padding-left:18px;padding-right:18px}
 .referral-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .referral-workspace .referral-actions>#referral-signin{grid-column:1/-1}
 .referral-link-row .k-button{flex:1}
 #referral-invited .k-button{width:100%;margin:6px 0 0}
 .referral-sections{gap:2px}
 .referrals-page main .referral-sections a{padding:0 8px;font-size:13px}
 .referral-workspace.money-card{padding:20px 16px}
 .referral-rewards{margin-top:28px;padding:18px 16px}
 .referral-rewards-empty>svg{width:44px;height:44px;padding:11px}
}
@media(prefers-reduced-motion:reduce){.rate-share,.referral-rewards-empty>svg{animation:none}.referrals-page main .k-button,.referrals-page main .referral-back,.referrals-page main .referral-back svg,.referrals-page main .referral-sections a{transition:none}.referrals-page main .k-button:active,.referrals-page main .referral-back:active{transform:none}}
