/* Shared member typography and controls: Montserrat display, Roboto body. */
.referral-public{margin-bottom:24px}.referral-public ol{padding-left:22px;margin:0}.referral-public li{padding:0 0 14px 5px;color:#b6ada0;line-height:1.7}.referral-public li strong{color:#eee5d7}.referral-public p{color:#9f978b;font-size:13px;line-height:1.8;margin:12px 0 0}.referral-public a{color:#e8c573;text-underline-offset:3px}
.referral-page{width:min(100%,1120px);margin:auto;padding:48px 28px 92px;font:500 14px/1.6 var(--body)}
.referral-page [hidden]{display:none!important}.referral-card{min-width:0}.referral-back{display:inline-block;margin-bottom:22px;color:#b8ad9e;font-size:12px;text-decoration:none}.referral-back:hover{color:#e8b544}
.referral-heading{margin-bottom:24px}.referral-heading>span,.referral-panel-head>span{color:#d8aa46;font:800 10px/1.3 var(--display);letter-spacing:1px}
.referral-page h1{margin:10px 0 12px;font:800 clamp(34px,5vw,56px)/1.1 var(--display);letter-spacing:-1.5px;text-transform:none}.referral-heading p{margin:0;color:#9f978b;font-size:16px}
.referral-offers{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:20px}.referral-offers p{display:flex;align-items:center;gap:18px;margin:0;padding:20px 24px;border:1px solid rgba(229,177,66,.18);border-radius:16px;background:rgba(229,177,66,.035)}.referral-offers strong{flex-shrink:0;color:#e8b544;font:800 28px/1.15 var(--display)}.referral-offers span{max-width:230px;color:#b6ada0;font-size:13px;line-height:1.5}
.referral-page [data-referral-message]{margin:12px 0 20px;color:#9f978b;font-size:13px}.referral-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;margin-bottom:20px}.referral-stats>div{display:grid;gap:7px;padding:18px 22px;border:1px solid rgba(255,255,255,.1);border-radius:16px;background:rgba(8,9,13,.72)}.referral-stats span{color:#9f978b;font-size:12px}.referral-stats strong{color:#eee5d7;font:800 24px/1.2 var(--display)}
.referral-panel{min-width:0;padding:0 24px 24px;border:1px solid rgba(255,255,255,.1);border-radius:20px;background:rgba(8,9,13,.72)}.referral-panel-head{min-height:76px;margin:0 -24px 20px;padding:18px 24px;display:grid;align-content:center;gap:6px;border-bottom:1px solid rgba(255,255,255,.09)}.referral-page h2{margin:0;color:#eee5d7;font:800 21px/1.25 var(--display);letter-spacing:0;word-spacing:normal;text-transform:none}
.referral-note{display:block;margin:0 0 14px;color:#9f978b;font-size:12px;line-height:1.6}.referral-page a{color:#d8aa46;text-underline-offset:3px}.referral-invite{margin-bottom:20px}.referral-card input{box-sizing:border-box;min-width:0;width:100%;height:48px;padding:0 14px;border:1px solid rgba(255,255,255,.14);border-radius:11px;outline:0;background:#0e1119;color:#f8eee0;font:500 14px var(--body)}.referral-card input:focus{border-color:#d6a53c;box-shadow:0 0 0 3px rgba(214,165,60,.12)}
.referral-actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 0}.referral-page button{min-height:46px;padding:10px 18px;border:0;border-radius:11px;background:linear-gradient(135deg,#f0c65e,#b77a18);color:#140d04;font:800 12px/1.4 var(--display);cursor:pointer;transition:filter .18s,transform .18s}.referral-page button:hover:not(:disabled){filter:brightness(1.08);transform:translateY(-1px)}.referral-page button:focus-visible,.referral-page summary:focus-visible{outline:2px solid #e8b544;outline-offset:3px}.referral-page button:disabled{opacity:.4;cursor:default}.referral-page [data-referral-prev],.referral-page [data-referral-next]{border:1px solid rgba(232,181,68,.28);background:rgba(232,181,68,.05);color:#e8c573}
.referral-lists{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:20px;align-items:start}.referral-lists ul{list-style:none;margin:0;padding:0}.referral-lists li{display:grid;gap:8px;min-width:0;padding:18px 0;overflow-wrap:anywhere;border-bottom:1px solid rgba(255,255,255,.07)}.referral-lists li:last-child{border-bottom:0}.referral-lists li>strong:first-child{color:#eee5d7;font-size:14px;font-weight:700}.referral-friend-earned{color:#e8c573;font:700 17px/1.4 var(--body)}.referral-lists li>span{color:#9f978b;font-size:12px}.referral-lists li>.referral-friend-review{color:#dfb477}
.referral-task-progress{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:6px 0}.referral-task-progress span{display:block;padding:9px 10px;border:1px solid rgba(255,255,255,.06);border-radius:9px;background:rgba(255,255,255,.018);color:#8e887f;font:500 11px/1.5 var(--body)}.referral-task-progress .is-complete{border-color:rgba(229,177,66,.14);background:rgba(229,177,66,.035);color:#d9bd7d}.referral-page [data-referral-rewards] strong{font-size:13px;font-weight:700}.referral-page [data-referral-rewards] span{color:#8e887f;font-size:11px}
.referral-rules{margin-top:20px;padding:20px 24px}.referral-rules summary{color:#b6ada0;font:700 13px/1.6 var(--body);cursor:pointer}.referral-rules p{color:#9f978b;font-size:12px;line-height:1.8;margin:16px 0 0}
/* AMOE entry and Admin styles retain their existing scope. */
.amoe-referral-entry{align-self:flex-start;margin-top:auto;padding:12px 20px;border-radius:10px;background:linear-gradient(135deg,#f2d27d,#dba647);color:#17120b;font-weight:800;text-decoration:none}.amoe-referral-entry:hover{filter:brightness(1.08)}.referral-admin{margin-top:24px}.referral-admin form{display:flex;flex-wrap:wrap;gap:10px;align-items:end}.referral-admin table{min-width:680px}.referral-admin input{max-width:100%}
@media(max-width:760px){.referral-lists{grid-template-columns:1fr}.referral-page{padding:30px 18px 72px}.referral-offers{gap:12px}.referral-offers p{padding:18px;flex-direction:column;align-items:flex-start;gap:10px}.referral-offers strong{font-size:25px}.referral-offers span{font-size:12px}}
@media(max-width:480px){.referral-page{padding:24px 14px 64px}.referral-heading p{font-size:14px}.referral-panel{padding:0 18px 20px;border-radius:16px}.referral-panel-head{margin:0 -18px 18px;padding:18px;min-height:72px}.referral-page h2{font-size:18px}.referral-stats{grid-template-columns:1fr 1fr;gap:10px}.referral-stats>div{padding:16px}.referral-stats strong{font-size:21px}.referral-actions button{flex:1 1 auto}.referral-card input{font-size:13px}.referral-rules{padding:18px}.referral-task-progress{gap:6px}.referral-task-progress span{padding:8px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.referral-page button{transition:none}}

/* Each list has its own bounded scroll area and pagination footer. */
.referral-lists>.referral-panel{display:flex;flex-direction:column;height:620px;max-height:75vh;min-height:360px}.referral-lists>.referral-panel>.referral-panel-head,.referral-lists>.referral-panel>.referral-note,.referral-lists>.referral-panel>.referral-actions{flex-shrink:0}.referral-lists ul{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:8px;scrollbar-width:thin;scrollbar-color:#796030 transparent}.referral-lists>.referral-panel>.referral-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;border-top:1px solid rgba(255,255,255,.07);padding-top:14px}.referral-lists .referral-actions button{min-height:36px;padding:8px 12px;font-size:11px;border:1px solid rgba(232,181,68,.28);background:rgba(232,181,68,.05);color:#e8c573;flex:0 0 auto}.referral-page-label{color:#8e887f;font-size:11px;white-space:nowrap}.referral-friend-details summary{color:#b5a580;font-size:12px;cursor:pointer}.referral-friend-details>span{color:#9f978b;font-size:12px}.referral-friend-details[open] summary{margin-bottom:10px}.referral-lists ul:focus-visible{outline:2px solid #b9913e;outline-offset:3px;border-radius:4px}@media(max-width:760px){.referral-lists>.referral-panel{height:520px;max-height:70vh}}@media(max-width:480px){.referral-lists>.referral-panel{height:500px;max-height:70vh;min-height:350px}}

.referral-lists li>.referral-reminder{color:#d8bd7f;font-size:12px}.referral-lists li>.referral-reward-friend{color:#d8bd7f;font-size:12px;font-weight:700}
