/* Referrals use the shared green, yellow, white and dark-mode palette. */
.referral-heading-icon{display:inline-flex;width:48px;height:48px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:50%;color:var(--green);background:var(--theme-surface);flex-shrink:0}
.referral-hero{display:grid;grid-template-columns:.8fr 1.2fr;gap:35px;border-radius:15px;padding:34px;background:var(--brand-primary,#146b3a);color:var(--theme-on-primary,#fff);margin-bottom:24px;align-items:center;overflow:hidden}
.referral-hero-copy{min-width:0}
.referral-hero .eyebrow,.referral-hero-copy>p{color:var(--theme-on-primary,#fff)!important;opacity:.86}
.referral-hero h2{font-size:34px;letter-spacing:-.045em;color:var(--theme-on-primary,#fff);margin-bottom:18px}
.referral-hero-copy>p{font-size:13px;line-height:1.8}
.referral-reward-pill,.referral-community-tag{display:inline-flex;align-items:center;gap:10px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.17);padding:11px 13px;border-radius:9px;margin-top:6px;font-size:12px;color:var(--theme-on-primary,#fff)}
.referral-reward-pill>.icon,.referral-community-tag>.icon{color:var(--brand-accent,#facc15)}
.referral-reward-pill strong{display:block;font-size:22px;line-height:1.3;color:var(--brand-accent,#facc15)}
.referral-invite-card{background:var(--theme-surface,#fff);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:24px;min-width:0;box-shadow:0 10px 35px rgba(0,0,0,.07)}
.referral-code-row{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--theme-soft);border:1px solid var(--line);border-radius:8px;padding:12px 14px;min-width:0}
.referral-code-input{width:100%;min-width:0;max-width:250px;border:0;background:transparent;color:var(--green);font-size:21px;font-weight:750;letter-spacing:.12em;outline-offset:3px}
.referral-copy-button{border:0;background:var(--brand-accent,#facc15);color:var(--theme-on-accent,#102419);border-radius:6px;padding:7px 10px;white-space:nowrap;font-size:11px;font-weight:650}
.referral-copy-button:disabled{opacity:.5;cursor:not-allowed}
.referral-link-row{display:flex;gap:9px;align-items:stretch}
.referral-link-row>.form-control{min-width:0;font-size:12px}
.referral-link-row>.btn{padding-inline:14px;font-size:12px;flex-shrink:0}
.referral-share-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}
.referral-share-actions .btn{font-size:11px;padding:8px 11px}
.referral-share-actions .icon{width:14px;height:14px}
.referral-copy-status{min-height:20px;font-size:11px;color:var(--green)!important;margin-top:7px}
.referral-share-help{font-size:10px!important;line-height:1.7}
.referral-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:24px}
.referral-stats .stat-card{padding:20px}
.referral-stats .stat-card strong{font-size:27px;overflow-wrap:anywhere}
.referral-stats .stat-card>span{font-size:10px;color:var(--muted)}
.referral-stats .stat-card>a{display:inline-flex;align-items:center;gap:6px;font-size:11px}
.referral-stats .stat-card>a .icon{width:14px;height:14px;margin:0}
.referral-stats .referral-earned{border-top:3px solid var(--brand-accent,#facc15)}
.referral-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px;margin-top:25px}
.referral-steps>div>span{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--theme-soft);color:var(--green);font-size:11px;font-weight:650;margin-bottom:15px}
.referral-steps h3{font-size:15px;letter-spacing:-.02em;margin-bottom:10px}
.referral-steps p{font-size:12px;line-height:1.8;margin:0}
.referral-origin{display:flex;align-items:center;gap:10px;color:var(--muted);padding:1px 4px 24px;font-size:12px}
.referral-origin>.icon{width:18px;height:18px;color:var(--green)}
.referral-table td{min-width:100px}
.referral-table td small{white-space:normal;max-width:280px;line-height:1.6}
.referral-status-joined{background:var(--theme-soft);color:var(--muted)}
.referral-status-qualified{background:var(--theme-yellow-soft);color:#695310}
.referral-status-rewarded{background:var(--theme-soft);color:var(--green)}
.referral-status-rejected{background:#fae7df;color:#a7573e}
.referral-admin-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:25px;margin:0 0 24px}
.referral-admin-heading h2{font-size:26px;margin-bottom:10px}
.referral-admin-heading p{font-size:13px;margin-bottom:0}
.referral-budget{padding:16px 20px;border:1px solid var(--line);border-radius:10px;background:var(--theme-soft);flex-shrink:0}
.referral-budget small{display:block;color:var(--muted);font-size:10px}
.referral-budget strong{display:block;font-size:23px;margin-top:3px}
.referral-review-form{min-width:240px;max-width:330px}
.referral-review-form .form-control{font-size:11px;min-height:36px;padding:8px 10px}
.referral-review-form .btn{font-size:10px;padding:6px 9px}
html[data-theme="dark"] .referral-hero{background:#183f29;border:1px solid #366c48}
html[data-theme="dark"] .referral-hero h2,html[data-theme="dark"] .referral-hero-copy>p,html[data-theme="dark"] .referral-hero .eyebrow,html[data-theme="dark"] .referral-community-tag,html[data-theme="dark"] .referral-reward-pill{color:#eef8f0!important}
html[data-theme="dark"] .referral-code-input{color:var(--brand-accent,#facc15)}
html[data-theme="dark"] .referral-status-qualified{background:#3a3419;color:#ffe477}
html[data-theme="dark"] .referral-status-rejected{background:#472820;color:#ffb9a6}
@media(max-width:1199px){.referral-hero{gap:24px;padding:26px;grid-template-columns:.8fr 1.2fr}.referral-hero h2{font-size:29px}.referral-invite-card{padding:19px}.referral-stats .stat-card{padding:16px}.referral-stats .stat-card strong{font-size:24px}}
@media(max-width:767px){.referral-heading-icon{display:none}.referral-hero{grid-template-columns:1fr;padding:23px;gap:22px}.referral-hero h2{font-size:31px}.referral-hero-copy>p{max-width:420px}.referral-invite-card{padding:18px}.referral-code-row{padding:10px}.referral-code-input{font-size:18px;letter-spacing:.08em}.referral-link-row{flex-wrap:wrap}.referral-link-row>.form-control{flex-basis:100%}.referral-link-row>.btn{width:100%}.referral-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.referral-stats .stat-card{padding:16px}.referral-stats .stat-card small{font-size:10px}.referral-stats .stat-card strong{font-size:23px}.referral-stats .stat-card>span{font-size:9px}.referral-steps{grid-template-columns:1fr;gap:22px}.referral-steps>div{position:relative;padding-left:45px}.referral-steps>div>span{position:absolute;left:0;top:0}.referral-admin-heading{display:block}.referral-budget{margin-top:20px;display:inline-block}.referral-review-form{min-width:230px}.referral-hero .referral-community-tag{font-size:11px}}
