/* FEBRY.OPS referral and point UI, responsive mobile / desktop */
.referral-dashboard{min-width:0;margin:12px 0}.referral-dashboard:empty{display:none}.ref-card{box-sizing:border-box;padding:16px;border:1px solid rgba(182,255,64,.32);border-radius:17px;background:linear-gradient(155deg,#09150d,#0c130c);color:#F5F9F3;min-width:0;max-width:100%;box-shadow:0 10px 24px rgba(0,0,0,.1)}.ref-head{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.ref-head span,.ref-modal-eyebrow{font-size:10px;letter-spacing:.08em;font-weight:900;color:#F5F9F3}.ref-head h3,.ref-modal h3{font-size:18px;margin:5px 0 2px;color:#F5F9F3}.ref-head>strong{font-size:24px;font-weight:900;color:#B6FF40;white-space:nowrap}.ref-head strong small{font-size:10px;color:#F5F9F3}.ref-intro{font-size:12px;line-height:1.65;color:#F5F9F3;margin:11px 0 16px}.ref-intro b{color:#B6FF40}.ref-code{border:1px solid rgba(182,255,64,.35);background:#142416;padding:12px;border-radius:12px;display:flex;justify-content:space-between;gap:9px;align-items:center;min-width:0}.ref-code small{display:block;font-size:9px;color:#F5F9F3;letter-spacing:.06em}.ref-code strong{display:block;font-size:15px;color:#F5F9F3;word-break:break-word;margin-top:4px}.ref-code button,.ref-card button:not(.ref-primary):not(.ref-cashout),.ref-modal-close{border-radius:9px;border:1px solid #44753a;background:#1a2b1b;color:#F5F9F3;cursor:pointer;padding:9px 13px;font-size:12px;font-weight:800;flex-shrink:0}.ref-rate{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.ref-rate span{border:1px solid #304a31;padding:6px 7px;border-radius:9px;font-size:10px;color:#F5F9F3}.ref-exchange{margin-top:14px;border-top:1px solid #243b24;padding-top:13px}.ref-exchange h4{font-size:13px;margin:0 0 10px;color:#F5F9F3}.ref-segment{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ref-card .ref-segment button{width:100%}.ref-card .ref-segment button[aria-pressed="true"]{background:#B6FF40;color:#090D0B;border-color:#B6FF40}.ref-slider-info{display:flex;align-items:center;justify-content:space-between;font-size:11px;gap:7px;margin:16px 0 6px}.ref-slider-info strong{color:#B6FF40;font-size:13px}.ref-slider{width:100%;accent-color:#B6FF40;cursor:pointer;display:block;min-height:26px;margin:2px 0 10px}.ref-convert-preview{background:#132216;border-radius:9px;padding:12px;font-size:12px;margin:8px 0;color:#F5F9F3}.ref-convert-preview b{font-size:14px;color:#B6FF40}.ref-card .ref-primary,.ref-card .ref-cashout{min-height:42px;border-radius:11px;padding:10px 13px;cursor:pointer;font-size:12px;font-weight:900;width:100%;margin-top:9px}.ref-card .ref-primary{background:#B6FF40!important;color:#090D0B !important;border:1px solid #B6FF40!important}.ref-card button:disabled{opacity:.5;cursor:not-allowed}.ref-card .ref-cashout{background:transparent;border:1px solid #6b9b44;color:#B6FF40}.ref-muted{font-size:10.5px;line-height:1.6;color:#F5F9F3;margin:12px 0 0}.ref-history{margin-top:11px;border-top:1px solid #263a28;padding-top:9px}.ref-history summary{color:#F5F9F3;cursor:pointer;font-weight:700;font-size:11px}.ref-history p{display:flex;flex-direction:column;gap:2px;border-bottom:1px solid #243627;padding-bottom:8px;font-size:11px}.ref-history p span{color:#F5F9F3}.ref-inline-status{font-size:11px;color:#B6FF40;line-height:1.45;margin-top:8px}.ref-inline-status.error{color:#F5F9F3}.ref-overlay{position:fixed;inset:0;z-index:250000;background:rgba(0,0,0,.78);display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}.ref-modal{max-width:480px;width:100%;background:#0b150d;border:1px solid rgba(182,255,64,.36);border-radius:20px;padding:21px;box-sizing:border-box;color:#F5F9F3;box-shadow:0 20px 70px rgba(0,0,0,.5);position:relative}.ref-modal h3{margin:8px 0}.ref-modal>p{font-size:12px;color:#F5F9F3;line-height:1.65}.ref-modal-money{border:1px solid #436332;border-radius:12px;background:#122016;padding:13px;margin:13px 0}.ref-modal-money small{display:block;color:#F5F9F3;font-size:10px}.ref-modal-money strong{display:block;font-size:18px;color:#B6FF40;margin-top:5px}.ref-modal-close{position:absolute;top:13px;right:13px}.ref-modal-links{display:grid;grid-template-columns:1fr;gap:10px}.ref-modal-links a{display:block;text-align:center;padding:12px;border-radius:12px;background:#B6FF40;color:#090D0B !important;font-size:12px;font-weight:900;text-decoration:none}.ref-modal-links a+ a{background:#152b1b;color:#F5F9F3 !important;border:1px solid #5c9851}.referral-dashboard-desktop .ref-card{padding:14px}.referral-dashboard-desktop .ref-head h3{font-size:16px}@media(max-width:375px){.ref-card{padding:12px}.ref-head strong{font-size:20px}.ref-code strong{font-size:13px}.ref-rate span{font-size:9px}}

/* V315: the entire referral block folds into a compact summary; content remains intact. */
.ref-fold{box-sizing:border-box;max-width:100%;min-width:0;margin:0;border:1px solid #385931;border-radius:14px;background:#0c170e;color:#F5F9F3;overflow:hidden}
.ref-fold-summary{display:flex;align-items:center;gap:10px;min-height:67px;cursor:pointer;padding:11px 13px;list-style:none;user-select:none}
.ref-fold-summary::-webkit-details-marker{display:none}
.ref-fold-summary:focus-visible{outline:2px solid #B6FF40;outline-offset:-3px;border-radius:13px}
.ref-fold-heading{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}
.ref-fold-kicker{color:#F5F9F3;font-size:9px;font-weight:900;letter-spacing:.09em}
.ref-fold-heading strong{color:#F5F9F3;font-size:14px;line-height:1.2}
.ref-fold-total{flex-shrink:0;font-size:16px;font-weight:800;color:#B6FF40;white-space:nowrap}
.ref-fold-total small{font-size:9px;color:#F5F9F3}
.ref-fold-arrow{font-size:20px;line-height:1;color:#B6FF40;transition:transform .18s}
.ref-fold[open]>.ref-fold-summary .ref-fold-arrow{transform:rotate(180deg)}
.ref-fold-body{padding:0 9px 10px;min-width:0}
.ref-fold-body>.ref-card{margin:0;border-radius:12px;border-color:#263f28}
.ref-fold-body .ref-card .ref-head{display:none}
@media(max-width:390px){.ref-fold-summary{padding:10px;gap:7px}.ref-fold-heading strong{font-size:13px}.ref-fold-total{font-size:14px}}
@media(prefers-reduced-motion:reduce){.ref-fold-arrow{transition:none}}
