/* Referral program panel — same indigo/gold design as L1017n leaderboard. */
#referralsView{
  display:block;direction:rtl;
  min-height:calc(100dvh - 115px);
  padding:clamp(15px,4vw,42px) 14px 120px!important;
  background:radial-gradient(ellipse 72% 420px at 50% 0%,#503b7666,transparent 90%),
    linear-gradient(180deg,#14182e,#0d162b 72%,#111b31)!important;
}
#referralsView.hidden{display:none!important}
#referralsView .l1017-ref-page-top{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  max-width:880px;margin:0 auto 12px;padding:2px 0
}
#referralsView .l1017-ref-page-back{
  border:1px solid #9c8ac990;border-radius:11px;
  padding:9px 13px;min-height:38px;background:#262849;
  color:#e8e1fa;font:750 12px 'IBM Plex Sans Arabic',system-ui,sans-serif;
  cursor:pointer
}
#referralsView .l1017-ref-page-kicker{
  color:#bca8df;font:800 11px system-ui,sans-serif;letter-spacing:.8px
}
#referralsView #l1017Referrals{max-width:880px;width:100%;margin:0 auto!important}
#accountModern .l1017-account-referral-link{
  display:flex;align-items:center;gap:12px;justify-content:space-between;
  width:100%;margin:12px 0;
  border:1px solid #8e7ab36d;border-radius:14px;
  padding:13px 14px;background:linear-gradient(115deg,#4836614a,#252c484f);
  color:#f2e8ff;text-align:right;cursor:pointer;
  font-family:'IBM Plex Sans Arabic',system-ui,sans-serif
}
#accountModern .l1017-account-referral-link .l1017-icon{
  color:#e3c18f;width:22px;height:22px;flex:none
}
#accountModern .l1017-account-referral-link span{
  display:grid;gap:2px;flex:1;min-width:0
}
#accountModern .l1017-account-referral-link strong{font-size:13px;font-weight:900}
#accountModern .l1017-account-referral-link small{font-size:11px;color:#b9bfd4}
#accountModern .l1017-account-referral-link:focus-visible,
#referralsView .l1017-ref-page-back:focus-visible{outline:2px solid #eecf95;outline-offset:3px}
@media(max-width:520px){#referralsView{padding:14px 10px calc(112px + env(safe-area-inset-bottom,0px))!important}}

#l1017Referrals{
  direction:rtl;
  position:relative;max-width:980px;margin:20px auto 25px;
  padding:clamp(17px,3vw,25px);
  border:1px solid #b79ede7e;border-radius:22px;
  background:linear-gradient(122deg,rgba(51,48,90,.92),rgba(32,44,83,.93) 66%,rgba(61,52,105,.92));
  box-shadow:0 12px 34px #0a15302e,inset 0 1px #ffffff1a;
  color:#f7f4ff;text-align:right;font-family:'IBM Plex Sans Arabic',system-ui,sans-serif
}
#l1017Referrals *{box-sizing:border-box}
#l1017Referrals .hidden{display:none!important}
#l1017Referrals .l1017-ref-head{display:flex;align-items:flex-start;gap:13px;margin-bottom:12px}
#l1017Referrals .l1017-ref-brand{
  display:grid;place-items:center;flex:none;width:50px;height:50px;
  border:1px solid #cab0ec88;border-radius:16px;
  background:linear-gradient(130deg,#8869c7,#554b92);color:#fff
}
#l1017Referrals .l1017-ref-brand .l1017-icon{width:25px;height:25px}
#l1017Referrals .l1017-ref-head small{
  font:750 10px system-ui,sans-serif;letter-spacing:.75px;color:#b7a6e6
}
#l1017Referrals .l1017-ref-head h2{
  margin:2px 0 4px;font-size:clamp(19px,4vw,25px);font-weight:900;color:#fff;line-height:1.4
}
#l1017Referrals .l1017-ref-head p{margin:0;font-size:12px;color:#d4d6e8;line-height:1.85}
#l1017Referrals .l1017-ref-head p strong{color:#f0cf96}
#l1017Referrals .l1017-ref-rules{
  display:flex;gap:7px;align-items:flex-start;
  border:1px solid #c0abd43b;border-radius:12px;
  padding:10px 12px;background:#ffffff07;
  color:#c1c9df;font-size:11px;line-height:1.9;margin-bottom:16px
}
#l1017Referrals .l1017-ref-rules .l1017-icon{color:#accdb3;width:16px;height:16px;margin-top:3px}
#l1017Referrals .l1017-ref-guest{display:grid;gap:10px}
#l1017Referrals .l1017-ref-guest p{font-size:13px;color:#d1d6e9;margin:0}
#l1017Referrals button{
  min-height:41px;padding:9px 13px;border-radius:11px;
  font-family:inherit;font-weight:800;font-size:12px;cursor:pointer
}
#l1017Referrals button:disabled{opacity:.45;cursor:not-allowed}
#l1017Referrals button:focus-visible,#l1017Referrals input:focus-visible{
 outline:2px solid #efcc91;outline-offset:3px
}
#l1017Referrals .l1017-ref-guest button,
#l1017Referrals #l1017CreateRefCode,
#l1017Referrals #l1017ClaimRefSubmit{
  background:linear-gradient(135deg,#7d62c7,#6552ad);
  border:1px solid #bb9bea99;color:#fff
}
#l1017Referrals .l1017-ref-code{
  border:1px solid #ab97d356;border-radius:15px;padding:12px;
  background:#ffffff08;display:grid;gap:10px
}
#l1017Referrals .l1017-ref-code label,
#l1017Referrals #l1017ClaimReferralForm>label{
  font-size:12px;font-weight:800;color:#e6dcfa
}
#l1017Referrals .l1017-ref-code-value{
  display:flex;align-items:center;justify-content:space-between;gap:10px
}
#l1017Referrals .l1017-ref-code-value strong{
  letter-spacing:1px;font:900 clamp(16px,4vw,22px) system-ui,sans-serif;
  direction:ltr;overflow-wrap:anywhere;color:#f8dcab
}
#l1017Referrals .l1017-ref-code-value button{white-space:nowrap}
#l1017Referrals .l1017-ref-actions{display:flex;flex-wrap:wrap;gap:8px}
#l1017Referrals .l1017-ref-actions button{
  display:inline-flex;gap:6px;align-items:center;justify-content:center;
  min-width:112px;flex:1 1 120px;
  background:#584f81aa;border:1px solid #ac9acc80;color:#f0e8fd
}
#l1017Referrals .l1017-ref-actions .l1017-icon{width:16px;height:16px}
#l1017Referrals .l1017-ref-stats{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:14px 0
}
#l1017Referrals .l1017-ref-stats>div{
  padding:11px 8px;border:1px solid #a3a0c547;border-radius:12px;
  background:#ffffff09;display:grid;gap:5px;text-align:center;min-width:0
}
#l1017Referrals .l1017-ref-stats small{font-size:10px;color:#b6bfd7;line-height:1.65}
#l1017Referrals .l1017-ref-stats strong{font:800 18px 'IBM Plex Sans Arabic',system-ui,sans-serif;color:#f4dfba}
#l1017Referrals #l1017ClaimReferralForm{
  margin-top:5px;padding:12px 0 0;border-top:1px solid #ffffff26;
  display:grid;gap:9px
}
#l1017Referrals .l1017-ref-claim-row{display:flex;gap:9px;align-items:stretch}
#l1017Referrals .l1017-ref-claim-row input{
  flex:1;min-width:0;min-height:44px;border-radius:10px;
  border:1px solid #ad9fc88c;background:#1b2342;color:#f7edff;
  padding:10px 12px;font:800 14px system-ui,sans-serif;letter-spacing:.4px
}
#l1017Referrals .l1017-ref-claim-row button{flex:none;white-space:nowrap}
#l1017Referrals .l1017-ref-claim-help{color:#aeb9d3;font-size:11px;margin:0}
#l1017Referrals .l1017-ref-monthly{
  margin:12px 0 0;color:#afb8d1;font-size:11px;line-height:1.8
}
#l1017Referrals .l1017-ref-notice{
  margin:12px 0 0;font-size:12px;color:#aee7c4;line-height:1.8;min-height:0
}
#l1017Referrals .l1017-ref-notice[data-error="1"]{color:#ffd0c0}
#l1017Referrals .l1017-ref-notice:empty{display:none}
#l1017InviteLanding{
  display:flex;align-items:center;gap:9px;flex-wrap:wrap;
  background:linear-gradient(120deg,#494479,#34385d);
  border:1px solid #b49bd080;border-radius:14px;
  padding:12px 14px;color:#e7dffe;margin:12px 0 15px;
  font:700 12px/1.8 'IBM Plex Sans Arabic',system-ui,sans-serif
}
#l1017InviteLanding .l1017-icon{color:#f2d3a4;width:19px;height:19px}
#l1017InviteLanding span{flex:1;min-width:185px}
#l1017InviteLanding button{
  border:1px solid #cbb6ee95;border-radius:9px;background:#7359b7;color:#fff;
  font:800 12px 'IBM Plex Sans Arabic',system-ui,sans-serif;
  padding:9px 12px;cursor:pointer
}
@media(max-width:600px){
  #l1017Referrals{margin:13px 5px 22px;padding:15px 12px;border-radius:17px}
  #l1017Referrals .l1017-ref-brand{width:41px;height:41px;border-radius:12px}
  #l1017Referrals .l1017-ref-brand .l1017-icon{width:21px;height:21px}
  #l1017Referrals .l1017-ref-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  #l1017Referrals .l1017-ref-claim-row{flex-wrap:wrap}
  #l1017Referrals .l1017-ref-claim-row button{flex:1;width:100%}
  #l1017Referrals .l1017-ref-head p{font-size:11px}
}
@media(prefers-reduced-motion:reduce){#l1017Referrals *,#l1017InviteLanding *{transition:none!important}}

/* Sequential referral missions: three steps, same account color palette. */
#l1017Referrals .l1017-ref-tasks{
  border:1px solid rgba(193,165,238,.40);
  background:linear-gradient(145deg,rgba(90,71,144,.19),rgba(32,38,76,.32));
  padding:14px;border-radius:16px;margin:15px 0 18px;
}
#l1017Referrals .l1017-ref-tasks-heading{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  margin-bottom:13px;
}
#l1017Referrals .l1017-ref-tasks-heading small{
  display:block;color:#bca7df;font:800 10px system-ui,sans-serif;
  margin-bottom:3px;
}
#l1017Referrals .l1017-ref-tasks-heading h3{
  font-size:17px;font-weight:900;color:#f6efff;margin:0 0 3px;
}
#l1017Referrals .l1017-ref-tasks-heading p{
  margin:0;font-size:11px;color:#d5cce8;line-height:1.8;
}
#l1017Referrals #l1017TasksCompleted{
  display:inline-flex;align-items:center;white-space:nowrap;
  border:1px solid #b8a0d76e;padding:7px 9px;border-radius:30px;
  background:#ffffff0c;color:#f0ddfb;font:800 11px 'IBM Plex Sans Arabic',system-ui,sans-serif;
}
#l1017Referrals .l1017-ref-tasks-list{display:grid;gap:10px}
#l1017Referrals .l1017-ref-task{
  border:1px solid #8d83b24b;border-radius:14px;padding:13px;
  background:linear-gradient(135deg,rgba(32,38,72,.76),rgba(40,42,72,.83));
  transition:border-color .2s ease,background .2s ease;
}
#l1017Referrals .l1017-ref-task.is-active{
  border-color:#c69fffbb;
  background:linear-gradient(135deg,rgba(80,54,126,.67),rgba(45,37,84,.83));
  box-shadow:inset 0 1px #ead7ff2e,0 6px 18px #18113733;
}
#l1017Referrals .l1017-ref-task.is-done{
  border-color:#85c6a67a;background:linear-gradient(135deg,#214e4249,#2b426b5c);
}
#l1017Referrals .l1017-ref-task.is-locked{opacity:.76}
#l1017Referrals .l1017-ref-task-line{display:flex;align-items:center;gap:10px;min-width:0}
#l1017Referrals .l1017-ref-task-mark{
  display:grid;place-items:center;flex:none;width:42px;height:42px;
  border-radius:12px;color:#b9a8d2;
  background:#74688b2b;border:1px solid #d1bff235;
}
#l1017Referrals .is-active .l1017-ref-task-mark{
  color:#f2d3a3;background:#b190e62a;border-color:#d3b1ed77;
}
#l1017Referrals .is-done .l1017-ref-task-mark{
  color:#b1efcf;background:#4a9b7950;border-color:#83c3a883;
}
#l1017Referrals .l1017-ref-task-mark .l1017-icon{width:21px;height:21px}
#l1017Referrals .l1017-ref-task-main{
  min-width:0;flex:1;display:grid;gap:1px;line-height:1.5;
}
#l1017Referrals .l1017-ref-task-main small{
  color:#aeb3cf;font-size:10px;font-weight:700;
}
#l1017Referrals .l1017-ref-task-main strong{
  color:#f7ecff;font-size:14px;font-weight:900;
}
#l1017Referrals .l1017-ref-task-main span{
  color:#b9bed6;font-size:11px;
}
#l1017Referrals .l1017-ref-task-state{
  flex:none;white-space:nowrap;color:#bfc3d8;font-size:10px;
  border-radius:20px;border:1px solid #9b91bf66;padding:5px 8px;
}
#l1017Referrals .is-active .l1017-ref-task-state{
  color:#efdcff;border-color:#c19de6a3;background:#7a56a83b;
}
#l1017Referrals .is-done .l1017-ref-task-state{
  color:#b9f1d5;border-color:#71b38f8f;background:#275a403f;
}
#l1017Referrals .l1017-ref-task-track{
  margin-top:11px;height:7px;overflow:hidden;
  background:#8d83b13b;border-radius:8px;
}
#l1017Referrals .l1017-ref-task-track span{
  display:block;height:100%;max-width:100%;border-radius:8px;
  background:linear-gradient(90deg,#987ad9,#dfbaff);
}
#l1017Referrals .is-done .l1017-ref-task-track span{
  background:linear-gradient(90deg,#66b796,#abefd0);
}
#l1017Referrals .l1017-ref-tasks-disclaimer{
  margin:12px 0 0;color:#b3bdd2;font-size:10.5px;line-height:1.9;
}
@media(max-width:460px){
 #l1017Referrals .l1017-ref-tasks{padding:11px;margin:12px 0 16px}
 #l1017Referrals .l1017-ref-task{padding:11px}
 #l1017Referrals .l1017-ref-task-mark{width:35px;height:35px;border-radius:10px}
 #l1017Referrals .l1017-ref-task-mark .l1017-icon{width:19px;height:19px}
 #l1017Referrals .l1017-ref-task-main strong{font-size:12px}
 #l1017Referrals .l1017-ref-task-state{font-size:9px;padding:4px 6px}
 #l1017Referrals .l1017-ref-tasks-heading h3{font-size:15px}
}

/* Mission refresh: prominent reward totals and balanced mobile cards */
#l1017Referrals .l1017-ref-earn-hero{
  display:grid;grid-template-columns:minmax(105px,.7fr) minmax(0,1.65fr);
  align-items:center;gap:12px;margin:16px 0 18px;padding:15px;
  border:1px solid rgba(231,197,148,.5);border-radius:17px;
  background:linear-gradient(112deg,rgba(119,81,168,.35),rgba(83,69,127,.46) 55%,rgba(104,71,95,.23));
  box-shadow:inset 0 1px rgba(255,255,255,.1);
}
#l1017Referrals .l1017-ref-earn-hero>div:first-child{
  display:grid;justify-content:start;gap:4px;
  border-left:1px solid rgba(221,204,238,.22);
  padding-left:13px
}
#l1017Referrals .l1017-ref-earn-hero small{
  display:block;color:#e3d5fa;font-size:10.5px;font-weight:750;line-height:1.65;
}
#l1017Referrals .l1017-ref-earn-hero>div:first-child>strong{
  color:#f6d99d;font-size:clamp(28px,6vw,39px);font-weight:900;line-height:1.2;
  font-variant-numeric:tabular-nums
}
#l1017Referrals .l1017-ref-earn-hero strong span{font-size:14px}
#l1017Referrals .l1017-ref-earn-hero-side{
  display:grid;gap:3px;align-content:center;min-width:0
}
#l1017Referrals .l1017-ref-earn-hero-side strong{
  font-size:19px;font-weight:900;color:#f7ebff
}
#l1017Referrals .l1017-ref-earn-hero-side>span{
  font-size:10.5px;line-height:1.7;color:#c9c3da
}
#l1017Referrals .l1017-ref-tasks{
  margin:0 0 20px;padding:15px;
  background:linear-gradient(135deg,rgba(60,46,109,.32),rgba(23,39,74,.4));
  border:1px solid #b39ed66c;border-radius:17px
}
#l1017Referrals .l1017-ref-tasks-heading{margin-bottom:11px}
#l1017Referrals .l1017-ref-tasks-heading h3{
  font-size:19px;line-height:1.45;letter-spacing:-.15px
}
#l1017Referrals .l1017-ref-tasks-heading small{color:#d9b9f8;letter-spacing:1px}
#l1017Referrals .l1017-ref-tasks-heading p{color:#c8cce4}
#l1017Referrals #l1017TasksCompleted{
  color:#f4dba5;border-color:#c5a97a89;background:#a27e5330
}
#l1017Referrals .l1017-ref-overall{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;
  margin-bottom:13px;padding:10px 12px;
  background:#151f3b57;border:1px solid #b0a1cd43;border-radius:11px
}
#l1017Referrals .l1017-ref-overall span{
  font-size:11px;font-weight:800;color:#e4d9f4
}
#l1017Referrals .l1017-ref-overall strong{
  font:900 14px system-ui,sans-serif;color:#f2d89c
}
#l1017Referrals .l1017-ref-overall small{
  grid-column:1/-1;color:#b7bed7;font-size:10.5px;line-height:1.65
}
#l1017Referrals .l1017-ref-tasks-list{gap:10px}
#l1017Referrals .l1017-ref-task{
  padding:14px;
  border-radius:15px;
  border:1px solid #968ebc6c;
  background:linear-gradient(120deg,rgba(32,40,75,.83),rgba(44,42,82,.89));
  overflow:hidden
}
#l1017Referrals .l1017-ref-task.is-active{
  background:linear-gradient(120deg,rgba(95,61,147,.77),rgba(46,42,89,.9));
  border-color:#d3abe8b8;
  box-shadow:0 7px 21px rgba(23,12,43,.25),inset 0 1px #ffffff20
}
#l1017Referrals .l1017-ref-task.is-done{
  background:linear-gradient(115deg,rgba(45,91,78,.52),rgba(46,65,105,.73));
  border-color:#92cfb7aa
}
#l1017Referrals .l1017-ref-task.is-locked{opacity:.86}
#l1017Referrals .l1017-ref-task-top{
  display:flex;align-items:center;gap:11px;min-width:0
}
#l1017Referrals .l1017-ref-task-mark{
  display:grid;place-items:center;flex:none;
  width:43px;height:43px;border-radius:12px;
  background:#655b8552;border:1px solid #b6a1d677;
  color:#d9c2f1
}
#l1017Referrals .l1017-ref-task.is-active .l1017-ref-task-mark{
  color:#ffe7b7;background:#a374cf53;border-color:#d5abeb99
}
#l1017Referrals .l1017-ref-task.is-done .l1017-ref-task-mark{
  color:#c1f7d9;background:#528e6c68;border-color:#8cccab92
}
#l1017Referrals .l1017-ref-task-main{
  min-width:0;flex:1;gap:3px
}
#l1017Referrals .l1017-ref-task-main small{
  color:#b8bad9;font-size:10px;font-weight:700
}
#l1017Referrals .l1017-ref-task-main strong{
  display:block;color:#fff2ff;font-weight:900;
  font-size:clamp(12px,2.9vw,16px);line-height:1.6
}
#l1017Referrals .l1017-ref-task-reward{
  display:grid;align-content:center;justify-items:center;gap:1px;
  min-width:92px;min-height:62px;padding:8px 10px;flex:none;
  border:1px solid #e6c99775;border-radius:12px;
  background:linear-gradient(140deg,#cfb27624,#e5b65e15)
}
#l1017Referrals .l1017-ref-task-reward small{
  font-size:9px;font-weight:800;color:#efdbb6;white-space:nowrap
}
#l1017Referrals .l1017-ref-task-reward strong{
  color:#ffdfa2;font-size:26px;font-weight:950;
  line-height:1.25;font-variant-numeric:tabular-nums;
}
#l1017Referrals .l1017-ref-task-reward strong span{
  font-size:11px;font-weight:850
}
#l1017Referrals .l1017-ref-task-details{
  display:flex;align-items:center;justify-content:space-between;
  gap:8px;margin:11px 0 8px
}
#l1017Referrals .l1017-ref-task-state{
  display:inline-flex;align-items:center;justify-content:center;
  color:#c4c5df;font-size:10px;font-weight:800;
  border:1px solid #9b91bf66;background:#ffffff09;
  padding:5px 11px;border-radius:99px
}
#l1017Referrals .is-active .l1017-ref-task-state{
  color:#ffe4b2;border-color:#dcbd929c;background:#cf9d5550
}
#l1017Referrals .is-done .l1017-ref-task-state{
  color:#c1f9d6;border-color:#8dccb19e;background:#368a6252
}
#l1017Referrals .l1017-ref-task-count{
  display:inline-flex;align-items:center;gap:7px;
  color:#d4d0e5;font-size:10.5px
}
#l1017Referrals .l1017-ref-task-count b{
  color:#fff0be;font:900 12px system-ui,sans-serif
}
#l1017Referrals .l1017-ref-task-track{
  width:100%;height:9px;margin:0;
  border-radius:999px;background:#aba1c131;
  box-shadow:inset 0 1px 4px #0a102e5e
}
#l1017Referrals .l1017-ref-task-track span{
  border-radius:999px;
  background:linear-gradient(90deg,#ac8ce9,#e4c8fc)
}
#l1017Referrals .is-done .l1017-ref-task-track span{
  background:linear-gradient(90deg,#5caf88,#b6f5d2)
}
#l1017Referrals .l1017-ref-task-detail{
  margin:8px 0 0;color:#b9c5dd;font-size:10.5px;
  line-height:1.7
}
#l1017Referrals .l1017-ref-tasks-disclaimer{
  display:block;padding:11px 11px 1px;
  margin:9px 0 0;color:#c2c5dd;
  border-top:1px solid #ffffff25;
  font-size:10.5px;line-height:1.9
}
#l1017Referrals .l1017-ref-tasks-disclaimer .l1017-icon{
  display:inline-block;width:14px;height:14px;
  margin-inline-end:4px;color:#a6dfc0
}
#l1017Referrals .l1017-ref-tasks-disclaimer strong{color:#efdbb4}
@media(max-width:520px){
 #l1017Referrals .l1017-ref-earn-hero{
   grid-template-columns:minmax(100px,.85fr) minmax(0,1.45fr);
   gap:10px;padding:11px;
 }
 #l1017Referrals .l1017-ref-earn-hero>div:first-child{padding-left:9px}
 #l1017Referrals .l1017-ref-earn-hero-side strong{font-size:17px}
 #l1017Referrals .l1017-ref-tasks{padding:10px}
 #l1017Referrals .l1017-ref-task{padding:10px}
 #l1017Referrals .l1017-ref-task-top{gap:8px}
 #l1017Referrals .l1017-ref-task-mark{
   width:34px;height:34px;border-radius:10px
 }
 #l1017Referrals .l1017-ref-task-reward{
   min-width:80px;min-height:54px;padding:6px
 }
 #l1017Referrals .l1017-ref-task-reward strong{font-size:23px}
 #l1017Referrals .l1017-ref-task-reward small{font-size:8px}
 #l1017Referrals .l1017-ref-task-main strong{font-size:12px}
 #l1017Referrals .l1017-ref-task-count{font-size:10px}
 #l1017Referrals .l1017-ref-earn-hero-side>span{font-size:9.5px}
 #l1017Referrals .l1017-ref-tasks-heading h3{font-size:17px}
}
@media(max-width:360px){
 #l1017Referrals .l1017-ref-task-mark{display:none}
 #l1017Referrals .l1017-ref-task-reward{min-width:70px}
 #l1017Referrals .l1017-ref-tasks-heading{flex-wrap:wrap}
 #l1017Referrals .l1017-ref-earn-hero{grid-template-columns:1fr}
 #l1017Referrals .l1017-ref-earn-hero>div:first-child{
   border-left:none;border-bottom:1px solid #ffffff24;
   padding:0 0 10px
 }
}
@media(prefers-reduced-motion:reduce){
 #l1017Referrals .l1017-ref-task{transition:none}
}


/* ── 2026-11-03 Referrals palette: midnight / orchid / champagne ──
   Deliberately scoped: the leaderboard and other store pages are unchanged.
   Reduced gradients, consistent contrast, meaningful completed/active states. */
#referralsView{
  --ref-bg:#0d1428;
  --ref-surface:#151e35;
  --ref-surface-2:#1c2741;
  --ref-line:#384461;
  --ref-text:#f2f5fc;
  --ref-muted:#b9c5da;
  --ref-accent:#af9af4;
  --ref-gold:#f1cd8b;
  --ref-good:#80debc;
  background:
    radial-gradient(ellipse 95% 33% at 50% 0%,rgba(96,74,164,.18),transparent 90%),
    linear-gradient(180deg,#0c1122,#10182c 75%,#0d1428)!important;
  color:var(--ref-text)
}
#referralsView .l1017-ref-page-back{
  background:#1b2640;border-color:#425171;color:#e7ecfa
}
#referralsView .l1017-ref-page-kicker{color:#c5b3f4}
#referralsView .l1017-ref-page-back:hover{background:#263451;border-color:#8d84cb}
#referralsView #l1017Referrals{
  background:linear-gradient(155deg,#19213b,#121b30 75%);
  color:var(--ref-text);
  border:1px solid #465274;
  box-shadow:0 12px 32px #04091542,inset 0 1px #ffffff0b
}
#referralsView #l1017Referrals .l1017-ref-brand{
  background:#44376d;border-color:#9b86d0;color:#f6ecff;
  box-shadow:inset 0 1px #ffffff16
}
#referralsView #l1017Referrals .l1017-ref-head h2{color:#f5f4ff}
#referralsView #l1017Referrals .l1017-ref-head small{color:#bfa7ef}
#referralsView #l1017Referrals .l1017-ref-head p{color:var(--ref-muted)}
#referralsView #l1017Referrals .l1017-ref-head p strong{color:var(--ref-gold)}
#referralsView #l1017Referrals .l1017-ref-rules{
  background:#1e2943;border-color:#3c4965;color:#c9d2e5
}
#referralsView #l1017Referrals .l1017-ref-rules .l1017-icon{color:var(--ref-good)}
#referralsView #l1017Referrals .l1017-ref-earn-hero{
  background:linear-gradient(112deg,#252842,#31304d);
  border-color:#766c70;box-shadow:inset 0 1px #ffffff14
}
#referralsView #l1017Referrals .l1017-ref-earn-hero small{color:#d2d9ea}
#referralsView #l1017Referrals .l1017-ref-earn-hero>div:first-child{
  border-left-color:#ffffff28
}
#referralsView #l1017Referrals .l1017-ref-earn-hero>div:first-child>strong,
#referralsView #l1017Referrals .l1017-ref-earn-hero-side strong{color:var(--ref-gold)}
#referralsView #l1017Referrals .l1017-ref-earn-hero-side>span{color:#bbc5d8}
#referralsView #l1017Referrals .l1017-ref-tasks{
  background:#111c31;border-color:#364666;
  box-shadow:inset 0 1px #ffffff09
}
#referralsView #l1017Referrals .l1017-ref-tasks-heading h3,
#referralsView #l1017Referrals .l1017-ref-task-main strong{color:#f1f4ff}
#referralsView #l1017Referrals .l1017-ref-tasks-heading small{color:#b9a7ee}
#referralsView #l1017Referrals .l1017-ref-tasks-heading p,
#referralsView #l1017Referrals .l1017-ref-overall small{color:#b7c4da}
#referralsView #l1017Referrals #l1017TasksCompleted{
  background:#322d43;border-color:#685b71;color:var(--ref-gold)
}
#referralsView #l1017Referrals .l1017-ref-overall{
  background:#1a263d;border-color:#344762
}
#referralsView #l1017Referrals .l1017-ref-overall span{color:#dfe5f3}
#referralsView #l1017Referrals .l1017-ref-overall strong{color:var(--ref-gold)}
#referralsView #l1017Referrals .l1017-ref-task{
  background:#19263c;border-color:#3c4d69;
  box-shadow:none;opacity:1
}
#referralsView #l1017Referrals .l1017-ref-task.is-active{
  background:#222743;border-color:#9888dc;
  box-shadow:inset 3px 0 #af9af4,0 5px 15px #070d2030
}
#referralsView #l1017Referrals .l1017-ref-task.is-done{
  background:#1b303a;border-color:#497e72;
  box-shadow:inset 3px 0 #80debc
}
#referralsView #l1017Referrals .l1017-ref-task.is-locked{
  background:#182238;border-color:#35435e;opacity:.83
}
#referralsView #l1017Referrals .l1017-ref-task-mark{
  background:#28344f;border-color:#445572;color:#a9b4d0
}
#referralsView #l1017Referrals .is-active .l1017-ref-task-mark{
  background:#43375f;border-color:#8673c4;color:#d6c6ff
}
#referralsView #l1017Referrals .is-done .l1017-ref-task-mark{
  background:#285248;border-color:#477f70;color:#a6eed2
}
#referralsView #l1017Referrals .l1017-ref-task-main small{color:#aebcd6}
#referralsView #l1017Referrals .l1017-ref-task-reward{
  background:#2b2b3e;border-color:#76674f
}
#referralsView #l1017Referrals .l1017-ref-task-reward small{color:#e0cba7}
#referralsView #l1017Referrals .l1017-ref-task-reward strong{color:var(--ref-gold)}
#referralsView #l1017Referrals .l1017-ref-task-state{
  color:#bbc7df;border-color:#45526c;background:#25314b
}
#referralsView #l1017Referrals .is-active .l1017-ref-task-state{
  color:#e5d7ff;border-color:#7667ae;background:#40365f
}
#referralsView #l1017Referrals .is-done .l1017-ref-task-state{
  color:#b7efd7;border-color:#497e6e;background:#24463f
}
#referralsView #l1017Referrals .l1017-ref-task-count,
#referralsView #l1017Referrals .l1017-ref-task-detail{color:#b9c7dc}
#referralsView #l1017Referrals .l1017-ref-task-count b{color:#f1e8ff}
#referralsView #l1017Referrals .l1017-ref-task-track{
  background:#33415a;box-shadow:none
}
#referralsView #l1017Referrals .l1017-ref-task-track span{
  background:linear-gradient(90deg,#8976d7,#bba9f2)
}
#referralsView #l1017Referrals .is-done .l1017-ref-task-track span{
  background:linear-gradient(90deg,#4db08a,#8bdfbf)
}
#referralsView #l1017Referrals .l1017-ref-tasks-disclaimer{
  color:#acbcd6;border-top-color:#34435f
}
#referralsView #l1017Referrals .l1017-ref-tasks-disclaimer strong{color:var(--ref-gold)}
#referralsView #l1017Referrals .l1017-ref-tasks-disclaimer .l1017-icon{color:var(--ref-good)}
#referralsView #l1017Referrals .l1017-ref-code{
  background:#18243c;border-color:#455373
}
#referralsView #l1017Referrals .l1017-ref-code label,
#referralsView #l1017Referrals #l1017ClaimReferralForm>label{color:#e5e9f6}
#referralsView #l1017Referrals .l1017-ref-code-value strong{color:var(--ref-gold)}
#referralsView #l1017Referrals .l1017-ref-guest button,
#referralsView #l1017Referrals #l1017CreateRefCode,
#referralsView #l1017Referrals #l1017ClaimRefSubmit{
  background:#6752ac;border:1px solid #9884dd;color:#fff
}
#referralsView #l1017Referrals .l1017-ref-guest button:hover,
#referralsView #l1017Referrals #l1017CreateRefCode:hover,
#referralsView #l1017Referrals #l1017ClaimRefSubmit:hover{
  background:#7a62c5
}
#referralsView #l1017Referrals .l1017-ref-actions button{
  background:#253452;border-color:#4d5c83;color:#e6eafa
}
#referralsView #l1017Referrals .l1017-ref-actions button:hover{
  background:#344467;border-color:#7c81b9
}
#referralsView #l1017Referrals .l1017-ref-stats>div{
  background:#1c2941;border-color:#40516f
}
#referralsView #l1017Referrals .l1017-ref-stats small{color:#bdc9de}
#referralsView #l1017Referrals .l1017-ref-stats strong{color:#f3d4a0}
#referralsView #l1017Referrals .l1017-ref-claim-row input{
  background:#121d33;border-color:#556584;color:#f4f5fc
}
#referralsView #l1017Referrals .l1017-ref-monthly{color:#b2c3da}
#referralsView #l1017Referrals button:focus-visible,
#referralsView #l1017Referrals input:focus-visible{outline-color:#e6c783}
#accountModern .l1017-account-referral-link{
  background:#202c43;border-color:#455475;color:#eef0f9
}
#accountModern .l1017-account-referral-link .l1017-icon{color:#e7c58c}
#accountModern .l1017-account-referral-link small{color:#b5c5da}

/* Referral missions: full-width readable rows, visible requirements and clear mobile hierarchy. */
#referralsView #l1017Referrals .l1017-ref-tasks{min-width:0}
#referralsView #l1017Referrals .l1017-ref-tasks-list{
  display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0
}
#referralsView #l1017Referrals .l1017-ref-task{
  width:100%;min-width:0;padding:15px 16px;border-radius:14px
}
#referralsView #l1017Referrals .l1017-ref-task-top{
  display:grid;grid-template-columns:42px minmax(0,1fr) minmax(105px,auto);
  align-items:center;gap:12px;min-width:0
}
#referralsView #l1017Referrals .l1017-ref-task-mark{
  width:42px;height:42px
}
#referralsView #l1017Referrals .l1017-ref-task-main{
  min-width:0;overflow-wrap:break-word
}
#referralsView #l1017Referrals .l1017-ref-task-main strong{
  display:block;font-size:15px;line-height:1.55
}
#referralsView #l1017Referrals .l1017-ref-task-required{
  display:block;margin-top:3px;color:#c4d1e7;font-size:11px;line-height:1.6
}
#referralsView #l1017Referrals .l1017-ref-task-required b{
  color:#e9eef9;font-weight:800
}
#referralsView #l1017Referrals .l1017-ref-task-reward{
  min-width:105px;max-width:150px;min-height:65px;
  padding:8px 10px;text-align:center
}
#referralsView #l1017Referrals .l1017-ref-task-reward small{
  white-space:normal;font-size:10px;line-height:1.35
}
#referralsView #l1017Referrals .l1017-ref-task-details{
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:7px 10px;margin:12px 0 10px
}
#referralsView #l1017Referrals .l1017-ref-task-count{white-space:nowrap}
#referralsView #l1017Referrals .l1017-ref-task-track{height:8px}
#referralsView #l1017Referrals .l1017-ref-task-detail{
  margin-top:8px;font-size:11px;line-height:1.6
}
#referralsView #l1017Referrals .l1017-ref-tasks-heading>div{min-width:0}
@media(max-width:520px){
  #referralsView #l1017Referrals .l1017-ref-tasks{padding:11px}
  #referralsView #l1017Referrals .l1017-ref-tasks-list{gap:9px}
  #referralsView #l1017Referrals .l1017-ref-task{padding:12px 10px}
  #referralsView #l1017Referrals .l1017-ref-task-top{
    grid-template-columns:34px minmax(0,1fr) 87px;gap:8px
  }
  #referralsView #l1017Referrals .l1017-ref-task-mark{width:34px;height:34px}
  #referralsView #l1017Referrals .l1017-ref-task-main strong{font-size:13px}
  #referralsView #l1017Referrals .l1017-ref-task-main small{font-size:9px}
  #referralsView #l1017Referrals .l1017-ref-task-required{font-size:10px}
  #referralsView #l1017Referrals .l1017-ref-task-reward{
    min-width:0;width:87px;min-height:60px;padding:7px 4px
  }
  #referralsView #l1017Referrals .l1017-ref-task-reward small{font-size:9px}
  #referralsView #l1017Referrals .l1017-ref-task-reward strong{font-size:23px}
  #referralsView #l1017Referrals .l1017-ref-tasks-heading{align-items:flex-start;flex-wrap:wrap;gap:8px}
}
@media(max-width:365px){
  #referralsView #l1017Referrals .l1017-ref-task-top{
    grid-template-columns:minmax(0,1fr) 84px;gap:8px
  }
  #referralsView #l1017Referrals .l1017-ref-task-mark{display:none}
  #referralsView #l1017Referrals .l1017-ref-task-reward{width:84px}
  #referralsView #l1017Referrals .l1017-ref-task-main strong{font-size:12px}
}


/* 2026-11-03 — Referral page in the supplied Souq & Earn mobile reference style.
   All changes scoped to referralsView so the rest of the store is unaffected. */
#referralsView{
  background:#060c18!important;
  color:#f7f8ff;
  padding:18px 12px calc(110px + env(safe-area-inset-bottom,0px))!important;
}
#referralsView .l1017-ref-page-top{
  max-width:760px;margin:0 auto 20px;padding:0;
  display:flex;justify-content:flex-start;align-items:center
}
#referralsView .l1017-ref-page-back{
  display:inline-flex;align-items:center;justify-content:flex-start;
  flex-direction:row;gap:10px;min-height:42px;padding:0 2px;
  background:transparent;border:0;border-radius:0;
  box-shadow:none;color:#f4f6ff;
  font-size:clamp(20px,4.4vw,28px);font-weight:900;
}
#referralsView .l1017-ref-page-back:hover{background:transparent;color:#fff}
#referralsView .l1017-ref-page-back svg{
  width:25px;height:25px;stroke:currentColor;stroke-width:2.7;
  fill:none;stroke-linecap:round;stroke-linejoin:round
}
#referralsView #l1017Referrals{
  width:100%;max-width:760px;margin:0 auto!important;padding:0!important;
  background:transparent!important;border:none!important;
  border-radius:0!important;box-shadow:none!important;
  color:#f6f7fd;overflow:visible
}
#referralsView #l1017Referrals .l1017-ref-earn-hero{
  display:flex;flex-direction:row;align-items:center;justify-content:space-between;
  gap:16px;min-width:0;margin:0 0 16px;padding:24px 22px;
  min-height:185px;border:0!important;border-radius:25px;
  background:linear-gradient(105deg,#e24587 0%,#b647bf 45%,#8642f7 100%)!important;
  box-shadow:0 15px 28px rgba(105,45,156,.15);
}
#referralsView #l1017Referrals .l1017-ref-hero-copy{
  flex:1;min-width:0;display:grid;gap:11px;
  padding:0!important;margin:0;border:none!important;
  text-align:right
}
#referralsView #l1017Referrals .l1017-ref-hero-copy h2{
  margin:0;color:#fff;font-size:clamp(19px,4vw,31px);
  line-height:1.3;font-weight:900
}
#referralsView #l1017Referrals .l1017-ref-hero-copy p{
  margin:0;color:#fff4ff;font-size:clamp(12px,2.7vw,17px);
  line-height:1.8;font-weight:500
}
#referralsView #l1017Referrals .l1017-ref-hero-copy p strong{color:#fff;font-weight:900}
#referralsView #l1017Referrals .l1017-ref-hero-badge{
  width:clamp(89px,23vw,154px);aspect-ratio:1;flex:none;
  border:3px solid rgba(255,255,255,.43);border-radius:50%;
  background:rgba(255,255,255,.12);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:6px;text-align:center;
}
#referralsView #l1017Referrals .l1017-ref-hero-badge strong{
  color:#fff;font:900 clamp(37px,7.4vw,54px)/1.1 system-ui,sans-serif
}
#referralsView #l1017Referrals .l1017-ref-hero-badge span{
  color:#fff;font-size:clamp(12px,3vw,18px);font-weight:800;line-height:1.65
}
#referralsView #l1017Referrals .l1017-ref-guest{
  border:1px solid #263654;border-radius:20px;padding:24px 20px;
  margin:0 0 18px;background:#0c1526
}
#referralsView #l1017Referrals .l1017-ref-guest p{line-height:1.8}
#referralsView #l1017Referrals .l1017-ref-code-card{
  border:1px solid #263654;border-radius:22px;
  background:#0c1526;padding:21px 19px 19px;margin-bottom:14px;
  box-shadow:inset 0 1px rgba(255,255,255,.035)
}
#referralsView #l1017Referrals .l1017-ref-code{
  display:grid;gap:12px;border:0;background:transparent;
  padding:0;border-radius:0
}
#referralsView #l1017Referrals .l1017-ref-code label{
  display:block;color:#96a6c1;font-size:clamp(13px,3.25vw,18px);
  font-weight:850
}
#referralsView #l1017Referrals .l1017-ref-code-value{
  display:flex;flex-direction:row;align-items:center;justify-content:space-between;
  min-width:0;gap:8px;padding:10px 11px;min-height:65px;
  border:1.5px solid #3979ae;border-radius:16px;background:#102b4c
}
#referralsView #l1017Referrals .l1017-ref-code-value strong{
  display:block;flex:1;min-width:0;text-align:center;
  direction:ltr;unicode-bidi:isolate;overflow-wrap:anywhere;
  color:#55b4ff;font:900 clamp(15px,3.8vw,27px)/1.45 system-ui,sans-serif;
  letter-spacing:1.4px
}
#referralsView #l1017Referrals #l1017CopyRefCode{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  flex:none;min-height:43px;padding:8px 10px;border:none;border-radius:999px;
  background:#09172c;color:#59b8ff;font-size:12px;font-weight:850;
  white-space:nowrap;transition:background .2s ease
}
#referralsView #l1017Referrals #l1017CopyRefCode .l1017-icon{width:17px;height:17px}
#referralsView #l1017Referrals #l1017CopyRefCode:hover{background:#152e50}
#referralsView #l1017Referrals #l1017CreateRefCode{
  width:100%;padding:11px 13px;min-height:46px;border-radius:12px;
  background:#6950bf;border:1px solid #8d79cb;color:#fff
}
#referralsView #l1017Referrals .l1017-ref-actions{
  display:flex;flex-direction:column;gap:10px;align-items:stretch
}
#referralsView #l1017Referrals .l1017-ref-actions button{
  display:flex;align-items:center;justify-content:center;gap:10px;
  flex:none;min-height:54px;width:100%;padding:11px 14px;
  border-radius:15px;font-size:clamp(13px,3.3vw,17px);
  font-weight:900;white-space:normal;transition:transform .2s ease,filter .2s ease
}
#referralsView #l1017Referrals .l1017-ref-actions button:active{transform:scale(.985)}
#referralsView #l1017Referrals #l1017ShareRef{
  color:#fff;background:#18cb64;border:1px solid #23db74
}
#referralsView #l1017Referrals #l1017ShareRef:hover{background:#13b858;border-color:#23db74}
#referralsView #l1017Referrals #l1017ShareRef svg{
  flex:none;width:23px;height:23px;color:#fff
}
#referralsView #l1017Referrals #l1017CopyRefLink{
  color:#f4f6ff;background:#0b1629;border:1px solid #324663
}
#referralsView #l1017Referrals #l1017CopyRefLink:hover{
  background:#172640;border-color:#59759c
}
#referralsView #l1017Referrals .l1017-ref-actions .l1017-icon{
  width:21px;height:21px
}
#referralsView #l1017Referrals .l1017-ref-stats{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px;margin:0 0 24px
}
#referralsView #l1017Referrals .l1017-ref-stats>.l1017-ref-stat-card{
  display:flex;flex-direction:column;align-items:stretch;text-align:right;
  min-width:0;min-height:142px;padding:16px;
  border-radius:19px;border:1px solid #283a5a;
  background:#0d182c
}
#referralsView #l1017Referrals .l1017-ref-stat-icon{
  display:grid;place-items:center;align-self:flex-start;
  width:43px;height:43px;border-radius:13px
}
#referralsView #l1017Referrals .l1017-ref-stat-icon svg{width:25px;height:25px}
#referralsView #l1017Referrals .l1017-ref-stat-purple{
  background:#251e4c;color:#8959ff
}
#referralsView #l1017Referrals .l1017-ref-stat-green{
  background:#102f33;color:#42d7a0
}
#referralsView #l1017Referrals .l1017-ref-stats strong{
  display:block;margin-top:auto;color:#f1f3fb;
  font:900 clamp(25px,6.2vw,36px)/1.3 system-ui,sans-serif;
  overflow-wrap:anywhere
}
#referralsView #l1017Referrals .l1017-ref-stat-earn strong{
  color:#36d59c;font-size:clamp(18px,4.8vw,30px)
}
#referralsView #l1017Referrals .l1017-ref-stats small{
  color:#9baac6;font-size:clamp(11px,2.5vw,14px);
  font-weight:600;line-height:1.65
}
#referralsView #l1017Referrals .l1017-ref-how{margin:8px 0 17px}
#referralsView #l1017Referrals .l1017-ref-how h3{
  display:flex;align-items:center;gap:9px;margin:0 0 12px;
  color:#f5f7fd;font-size:clamp(19px,4.2vw,24px);font-weight:900
}
#referralsView #l1017Referrals .l1017-ref-how-bulb{
  width:23px;height:23px;display:grid;place-items:center;
  color:#4ab5ff
}
#referralsView #l1017Referrals .l1017-ref-how-bulb svg{
  width:23px;height:23px;stroke:currentColor;fill:none;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round
}
#referralsView #l1017Referrals .l1017-ref-steps{
  list-style:none;display:grid;gap:12px;margin:0;padding:20px 17px;
  border:1px solid #293b58;border-radius:21px;background:#0c1527
}
#referralsView #l1017Referrals .l1017-ref-steps li{
  display:grid;grid-template-columns:37px minmax(0,1fr) 24px;
  gap:11px;align-items:center;min-width:0;line-height:1.65
}
#referralsView #l1017Referrals .l1017-ref-step-number{
  display:grid;place-items:center;width:37px;height:37px;
  border-radius:50%;background:linear-gradient(135deg,#df4b9b,#9447ef);
  color:#fff;font:900 19px system-ui,sans-serif;
}
#referralsView #l1017Referrals .l1017-ref-step-text{
  color:#e8edf9;font-size:clamp(12px,3vw,16px);
  font-weight:600;min-width:0
}
#referralsView #l1017Referrals .l1017-ref-step-icon{
  color:#8fa6ca;display:grid;place-items:center
}
#referralsView #l1017Referrals .l1017-ref-step-icon .l1017-icon{
  width:22px;height:22px
}
#referralsView #l1017Referrals .l1017-ref-rules{
  margin:16px 0;color:#a9b7d0;background:#0d182b;border:1px solid #293955;
  border-radius:12px;padding:10px 12px;font-size:11px
}
#referralsView #l1017Referrals .l1017-ref-tasks{
  margin:18px 0 16px;background:#101a2e;border-color:#304463;border-radius:18px
}
#referralsView #l1017Referrals .l1017-ref-mini-stats{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;
  margin:0 0 15px
}
#referralsView #l1017Referrals .l1017-ref-mini-stats span{
  display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;
  gap:6px;padding:11px;background:#0e192c;border:1px solid #293a57;
  border-radius:12px;font-size:11px;color:#b2c1dd
}
#referralsView #l1017Referrals .l1017-ref-mini-stats b{
  color:#f8d99d;font:900 14px system-ui,sans-serif
}
#referralsView #l1017Referrals #l1017ClaimReferralForm{
  padding:18px;margin:16px 0;background:#101a2e;
  border:1px solid #304463;border-radius:16px
}
#referralsView #l1017Referrals .l1017-ref-monthly{
  margin:12px 3px;color:#b2c1da
}
@media(max-width:520px){
  #referralsView{padding:13px 12px calc(112px + env(safe-area-inset-bottom,0px))!important}
  #referralsView .l1017-ref-page-top{margin-bottom:16px}
  #referralsView #l1017Referrals .l1017-ref-earn-hero{
    min-height:166px;padding:21px 15px;gap:10px;border-radius:23px
  }
  #referralsView #l1017Referrals .l1017-ref-hero-copy{gap:6px}
  #referralsView #l1017Referrals .l1017-ref-code-card{
    padding:18px 15px;border-radius:19px
  }
  #referralsView #l1017Referrals .l1017-ref-stats>.l1017-ref-stat-card{
    min-height:135px;padding:13px 12px
  }
  #referralsView #l1017Referrals .l1017-ref-steps{padding:17px 13px}
  #referralsView #l1017Referrals .l1017-ref-steps li{gap:9px}
}
@media(max-width:365px){
  #referralsView #l1017Referrals .l1017-ref-earn-hero{padding:15px 12px;gap:8px}
  #referralsView #l1017Referrals .l1017-ref-hero-badge{width:80px}
  #referralsView #l1017Referrals .l1017-ref-hero-copy h2{font-size:17px}
  #referralsView #l1017Referrals .l1017-ref-hero-copy p{font-size:11px}
  #referralsView #l1017Referrals .l1017-ref-code-value{padding:8px}
  #referralsView #l1017Referrals #l1017CopyRefCode{padding:8px;font-size:10px}
  #referralsView #l1017Referrals .l1017-ref-stats{gap:8px}
  #referralsView #l1017Referrals .l1017-ref-stats>.l1017-ref-stat-card{padding:11px}
}
@media(prefers-reduced-motion:reduce){
  #referralsView #l1017Referrals .l1017-ref-actions button{transition:none}
}

/* Small, horizontal referral milestones: no additional wallet payouts. */
#referralsView #l1017Referrals .l1017-ref-compact-missions{
  margin:0 0 20px;padding:14px;
  background:#0c1527;border:1px solid #283a58;border-radius:18px;
}
#referralsView #l1017Referrals .l1017-ref-compact-heading{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;margin-bottom:11px;
}
#referralsView #l1017Referrals .l1017-ref-compact-heading h3{
  margin:0;font:900 clamp(15px,3.6vw,19px)/1.4 system-ui,sans-serif;color:#f6f7ff;
}
#referralsView #l1017Referrals .l1017-ref-compact-heading small{
  color:#9dabc7;font-size:11px;font-weight:750;white-space:nowrap;
}
#referralsView #l1017Referrals .l1017-ref-compact-list{
  display:grid;gap:8px;
}
#referralsView #l1017Referrals .l1017-ref-compact-row{
  display:flex;direction:rtl;align-items:center;
  gap:10px;min-width:0;min-height:66px;
  border-radius:13px;border:1px solid #283955;
  background:#121e33;padding:10px 12px;
}
#referralsView #l1017Referrals .l1017-ref-compact-row.is-current{
  border-color:#8b6bd5;background:#241d40;
}
#referralsView #l1017Referrals .l1017-ref-compact-row.is-done{
  border-color:#2a6959;background:#112a2c;
}
#referralsView #l1017Referrals .l1017-ref-compact-check{
  flex:0 0 27px;display:grid;place-items:center;
  width:27px;height:27px;border-radius:9px;
  background:#283250;color:#b9b6e9;
  font:900 12px/1 system-ui,sans-serif;
}
#referralsView #l1017Referrals .l1017-ref-compact-row.is-current .l1017-ref-compact-check{
  color:#fff;background:linear-gradient(145deg,#db4a99,#8b4ad9);
}
#referralsView #l1017Referrals .l1017-ref-compact-row.is-done .l1017-ref-compact-check{
  background:#167b60;color:white;font-size:16px;
}
#referralsView #l1017Referrals .l1017-ref-compact-description{
  flex:1;min-width:0;display:grid;gap:2px;text-align:right;
}
#referralsView #l1017Referrals .l1017-ref-compact-description strong{
  color:#f0f2fb;font-size:clamp(12px,3vw,15px);font-weight:850;line-height:1.4;
}
#referralsView #l1017Referrals .l1017-ref-compact-description small{
  color:#98a7c1;font-size:10px;line-height:1.4;
}
#referralsView #l1017Referrals .l1017-ref-compact-money{
  flex:none;min-width:72px;display:grid;gap:2px;text-align:left;direction:rtl;
  padding-right:11px;border-right:1px solid #354362;
}
#referralsView #l1017Referrals .l1017-ref-compact-money strong{
  color:#46dba4;font-size:clamp(14px,3.5vw,19px);font-weight:900;
  white-space:nowrap;line-height:1.35;
}
#referralsView #l1017Referrals .l1017-ref-compact-money small{
  color:#94a8bd;font-size:10px;
}
#referralsView #l1017Referrals .l1017-ref-compact-note{
  margin:10px 2px 0;color:#8f9cb7;
  font-size:10px;line-height:1.7;
}
@media(max-width:365px){
  #referralsView #l1017Referrals .l1017-ref-compact-missions{padding:10px}
  #referralsView #l1017Referrals .l1017-ref-compact-row{gap:7px;padding:9px 8px}
  #referralsView #l1017Referrals .l1017-ref-compact-money{min-width:65px;padding-right:7px}
}

/* 2026-11-03: Prevent the stats and missions panels from overlapping on mobile.
   Explicit document flow wins over older page rules and flex/float interference. */
#referralsView #l1017Referrals #l1017ReferralAccount:not(.hidden){
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:18px!important;
  position:relative!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  overflow:visible!important;
}
#referralsView #l1017Referrals #l1017ReferralAccount>.l1017-ref-code-card,
#referralsView #l1017Referrals #l1017ReferralAccount>.l1017-ref-stats,
#referralsView #l1017Referrals #l1017ReferralAccount>.l1017-ref-compact-missions,
#referralsView #l1017Referrals #l1017ReferralAccount>.l1017-ref-how,
#referralsView #l1017Referrals #l1017ReferralAccount>.l1017-ref-rules,
#referralsView #l1017Referrals #l1017ReferralAccount>#l1017ClaimReferralForm,
#referralsView #l1017Referrals #l1017ReferralAccount>#l1017RefMonthly{
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  float:none!important;
  clear:both!important;
  flex:0 0 auto!important;
  box-sizing:border-box!important;
  display:block;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:auto!important;
  margin:0!important;
}
#referralsView #l1017Referrals #l1017ReferralAccount>.l1017-ref-stats{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-rows:minmax(min-content,auto)!important;
  align-items:stretch!important;
  gap:12px!important;
}
#referralsView #l1017Referrals #l1017ReferralAccount .l1017-ref-stat-card{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  height:auto!important;
  min-height:150px!important;
  max-height:none!important;
  overflow:visible!important;
}
#referralsView #l1017Referrals #l1017ReferralAccount .l1017-ref-stat-card strong{
  max-width:100%!important;
  line-height:1.3!important;
  overflow-wrap:anywhere!important;
}
#referralsView #l1017Referrals #l1017ReferralAccount>.l1017-ref-compact-missions{
  isolation:isolate;
  z-index:auto!important;
  padding:16px 14px!important;
  border-radius:18px!important;
  overflow:hidden!important;
}
#referralsView #l1017Referrals .l1017-ref-compact-heading{
  display:flex!important;
  justify-content:space-between!important;
  align-items:flex-start!important;
  flex-wrap:wrap!important;
  row-gap:5px!important;
  margin-bottom:13px!important;
}
#referralsView #l1017Referrals .l1017-ref-compact-heading h3{
  min-width:0!important;
  overflow-wrap:anywhere!important;
}
#referralsView #l1017Referrals .l1017-ref-compact-heading small{
  white-space:normal!important;
  text-align:left!important;
}
#referralsView #l1017Referrals .l1017-ref-compact-list{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:10px!important;
  width:100%!important;
  min-width:0!important;
}
#referralsView #l1017Referrals .l1017-ref-compact-row{
  display:grid!important;
  grid-template-columns:28px minmax(0,1fr) minmax(69px,max-content)!important;
  align-items:center!important;
  gap:9px!important;
  width:100%!important;
  min-width:0!important;
  min-height:69px!important;
  height:auto!important;
  padding:11px!important;
  overflow:hidden!important;
}
#referralsView #l1017Referrals .l1017-ref-compact-check{
  min-width:0!important;
  flex:none!important;
}
#referralsView #l1017Referrals .l1017-ref-compact-description{
  display:grid!important;
  gap:3px!important;
  min-width:0!important;
  width:100%!important;
}
#referralsView #l1017Referrals .l1017-ref-compact-description strong{
  display:block!important;
  overflow-wrap:anywhere!important;
  white-space:normal!important;
}
#referralsView #l1017Referrals .l1017-ref-compact-money{
  display:grid!important;
  justify-items:start!important;
  gap:2px!important;
  width:auto!important;
  min-width:69px!important;
  max-width:100%!important;
  overflow:hidden!important;
  padding-right:9px!important;
  border-right:1px solid #354362!important;
  white-space:nowrap!important;
}
#referralsView #l1017Referrals .l1017-ref-compact-money strong{
  white-space:nowrap!important;
  font-size:clamp(13px,3.6vw,18px)!important;
}
#referralsView #l1017Referrals #l1017ReferralAccount>.l1017-ref-how{
  display:block!important;
  padding-top:2px!important;
}
#referralsView #l1017Referrals #l1017ReferralAccount>.l1017-ref-rules{
  display:flex!important;
  gap:8px!important;
}
#referralsView #l1017Referrals #l1017ReferralAccount>#l1017ClaimReferralForm{
  display:grid!important;
  gap:10px!important;
}
@media(max-width:390px){
  #referralsView #l1017Referrals #l1017ReferralAccount:not(.hidden){gap:14px!important}
  #referralsView #l1017Referrals #l1017ReferralAccount>.l1017-ref-stats{gap:8px!important}
  #referralsView #l1017Referrals #l1017ReferralAccount .l1017-ref-stat-card{
    min-height:140px!important;padding:12px 10px!important;
  }
  #referralsView #l1017Referrals #l1017ReferralAccount>.l1017-ref-compact-missions{
    padding:12px 10px!important;
  }
  #referralsView #l1017Referrals .l1017-ref-compact-row{
    grid-template-columns:25px minmax(0,1fr) minmax(62px,max-content)!important;
    gap:6px!important;padding:9px 8px!important;
  }
  #referralsView #l1017Referrals .l1017-ref-compact-money{
    min-width:62px!important;padding-right:6px!important;
  }
  #referralsView #l1017Referrals .l1017-ref-compact-money strong{
    font-size:13px!important;
  }
}

/* Invite LINKS (not standalone text codes): prominent, tappable, copyable.
   Keep existing manual code fallback for rare cases without URL support. */
#referralsView #l1017Referrals .l1017-ref-link-row{
  display:grid!important;gap:9px!important;min-width:0!important;
  padding:14px!important;margin:3px 0 4px!important;
  border:1px solid #59ae87!important;border-radius:15px!important;
  background:linear-gradient(130deg,#183e38,#152f39 80%)!important;
  box-shadow:inset 0 1px #aaffcc11!important;
}
#referralsView #l1017Referrals .l1017-ref-link-row small{
  display:block!important;white-space:normal!important;line-height:1.75!important;
  font-size:12px!important;font-weight:750!important;color:#c9f3df!important;
}
#referralsView #l1017Referrals #l1017RefLinkValue{
  display:block!important;direction:ltr!important;text-align:left!important;
  width:100%!important;min-height:45px!important;padding:11px 12px!important;
  border:1px solid #659f90!important;border-radius:10px!important;
  background:#102a2d!important;color:#b7fce1!important;
  font:700 clamp(11px,2.4vw,14px)/1.65 ui-monospace,SFMono-Regular,Consolas,monospace!important;
  overflow-wrap:anywhere!important;word-break:break-word!important;text-decoration:underline!important;
  text-decoration-color:#8febcd!important;text-underline-offset:3px!important;
}
#referralsView #l1017Referrals #l1017RefLinkValue[aria-disabled="true"]{
  opacity:.6!important;pointer-events:none!important;text-decoration:none!important;
}
#referralsView #l1017Referrals #l1017RefLinkValue:focus-visible{
  outline:2px solid #baffdb!important;outline-offset:3px!important;
}
#referralsView #l1017Referrals #l1017CopyRefLink{
  background:linear-gradient(130deg,#34c88a,#16966d)!important;
  border-color:#69f0ba!important;
  color:#08271f!important;
  box-shadow:0 7px 18px #0c90652e!important;
  min-height:48px!important;font-weight:900!important;
}
#referralsView #l1017Referrals #l1017CopyRefLink .l1017-icon{
  color:inherit!important;stroke:currentColor!important;
}
#referralsView #l1017Referrals #l1017ShareRef{
  min-height:48px!important;border-color:#549878!important;
  background:linear-gradient(125deg,#234f3e,#1e493b)!important;
  color:#edfff3!important;
}
#referralsView #l1017Referrals #l1017CopyRefCode{
  font-size:11px!important;font-weight:650!important;
  background:transparent!important;border:1px solid #635b7a!important;
  color:#b7b0c9!important;
}
#referralsView #l1017Referrals .l1017-ref-code-value{
  margin-bottom:1px!important;
}
@media(max-width:540px){
  #referralsView #l1017Referrals .l1017-ref-link-row{padding:11px!important}
  #referralsView #l1017Referrals #l1017RefLinkValue{font-size:11px!important;padding:11px 9px!important}
  #referralsView #l1017Referrals #l1017CopyRefLink{width:100%!important;flex-basis:100%!important}
}

/* The URL is the primary invitation; the bare code is a secondary fallback. */
#referralsView #l1017Referrals .l1017-ref-invite-label{
  display:block!important;font-size:14px!important;font-weight:900!important;
  color:#dcf9e9!important;line-height:1.7!important;margin:0!important;
}
#referralsView #l1017Referrals .l1017-ref-code-value{
  margin-top:6px!important;padding:10px 9px!important;
  border-radius:12px!important;border:1px dashed #554d74!important;
  background:#191e3040!important;
}
#referralsView #l1017Referrals .l1017-ref-code-value strong{
  font-size:clamp(13px,3.4vw,16px)!important;color:#a7a5bd!important;
  letter-spacing:.4px!important;
}
#referralsView #l1017Referrals .l1017-ref-actions{margin-top:1px!important}

/* Referral card v3: one neat link + inline copy to its right (RTL), no code row. */
#referralsView #l1017Referrals .l1017-ref-link-copy{
  display:flex!important;
  flex-direction:row!important;
  direction:rtl!important;
  align-items:stretch!important;
  gap:9px!important;
  min-width:0!important;
  width:100%!important;
}
#referralsView #l1017Referrals .l1017-ref-link-copy #l1017CopyRefLink{
  order:-1!important; /* Start of RTL row = RIGHT side. */
  flex:0 0 110px!important;
  width:110px!important;
  min-width:110px!important;
  max-width:110px!important;
  min-height:51px!important;
  height:auto!important;
  padding:10px 9px!important;
  margin:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  border-radius:12px!important;
  background:linear-gradient(140deg,#54e2ab,#1da778)!important;
  border:1px solid #83f6c8!important;
  color:#0c3125!important;
  box-shadow:0 6px 19px #0fb68032,inset 0 1px #fff7!important;
  font-size:12px!important;
  white-space:normal!important;
  line-height:1.3!important;
}
#referralsView #l1017Referrals .l1017-ref-link-copy #l1017CopyRefLink .l1017-icon{
  display:block!important;
  width:19px!important;height:19px!important;flex:none!important;
  color:inherit!important;stroke:currentColor!important;
}
#referralsView #l1017Referrals .l1017-ref-link-copy #l1017CopyRefLink span{
  font-weight:900!important;text-align:center!important;
}
#referralsView #l1017Referrals .l1017-ref-link-copy #l1017CopyRefLink:disabled{
  opacity:.58!important;cursor:not-allowed!important;filter:saturate(.5)!important;
}
#referralsView #l1017Referrals .l1017-ref-link-copy #l1017RefLinkValue{
  order:1!important;
  display:flex!important;
  flex:1 1 auto!important;
  align-items:center!important;
  min-width:0!important;
  width:auto!important;
  min-height:51px!important;
  margin:0!important;
  padding:10px 12px!important;
  direction:ltr!important;
  text-align:left!important;
  font-size:clamp(11px,2.3vw,13px)!important;
  word-break:break-all!important;
  overflow-wrap:anywhere!important;
  line-height:1.55!important;
}
#referralsView #l1017Referrals .l1017-ref-link-row{
  padding:12px!important;
  gap:10px!important;
  margin-bottom:6px!important;
}
#referralsView #l1017Referrals .l1017-ref-link-row small{
  font-size:11.5px!important;
}
#referralsView #l1017Referrals .l1017-ref-actions{
  display:grid!important;
  grid-template-columns:1fr!important;
}
#referralsView #l1017Referrals .l1017-ref-actions #l1017ShareRef{
  width:100%!important;
  min-height:46px!important;
  border-radius:12px!important;
}
@media(max-width:440px){
  #referralsView #l1017Referrals .l1017-ref-link-copy{gap:7px!important}
  #referralsView #l1017Referrals .l1017-ref-link-copy #l1017CopyRefLink{
    flex-basis:85px!important;width:85px!important;
    min-width:85px!important;max-width:85px!important;
    padding:9px 5px!important;font-size:11px!important;
  }
  #referralsView #l1017Referrals .l1017-ref-link-copy #l1017RefLinkValue{
    font-size:10.5px!important;padding:9px 8px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  #referralsView #l1017Referrals .l1017-ref-link-copy #l1017CopyRefLink{
    transition:none!important;
  }
}

/* Additional referral missions: thin underline, a real monthly progress bar,
   and separated compact rows (without implying extra currency payouts). */
#referralsView #l1017Referrals .l1017-ref-compact-heading{
  margin-bottom:9px!important;
  padding-bottom:1px!important;
}
#referralsView #l1017Referrals .l1017-ref-compact-heading h3{
  position:relative!important;
  display:inline-block!important;
  padding-bottom:5px!important;
}
#referralsView #l1017Referrals .l1017-ref-mission-underline{
  display:block!important;
  position:relative!important;
  width:100%!important;
  height:2px!important;
  border-radius:10px!important;
  margin:0 0 13px!important;
  background:linear-gradient(270deg,#bf9bff,#765ed5 32%,#4b5d7e80 78%,transparent)!important;
  box-shadow:0 2px 9px #9f73ff25!important;
}
#referralsView #l1017Referrals .l1017-ref-mission-progress{
  position:relative!important;
  display:block!important;
  height:7px!important;
  width:100%!important;
  margin:0 0 15px!important;
  border-radius:99px!important;
  border:1px solid #4d476e!important;
  background:#22243c!important;
  overflow:hidden!important;
  direction:rtl!important;
}
#referralsView #l1017Referrals .l1017-ref-mission-progress>span{
  display:block!important;
  width:0;
  height:100%!important;
  background:linear-gradient(90deg,#78eec0,#3fcf9a)!important;
  border-radius:99px!important;
  box-shadow:0 0 11px #41dca657!important;
  transition:width .3s ease!important;
}
#referralsView #l1017Referrals .l1017-ref-compact-list{
  gap:7px!important;
}
#referralsView #l1017Referrals .l1017-ref-compact-row{
  min-height:58px!important;
  padding:8px 11px!important;
  border-radius:11px!important;
  position:relative!important;
  overflow:visible!important;
}
#referralsView #l1017Referrals .l1017-ref-compact-row:not(:last-child)::after{
  content:""!important;
  display:block!important;
  position:absolute!important;
  left:12px!important;
  right:12px!important;
  bottom:-5px!important;
  height:1px!important;
  background:linear-gradient(90deg,transparent,#7581a745 20%,#7581a745 80%,transparent)!important;
  pointer-events:none!important;
}
#referralsView #l1017Referrals .l1017-ref-compact-row.is-current{
  border-color:#9472db!important;
  box-shadow:inset 3px 0 0 #c69bff22!important;
}
#referralsView #l1017Referrals .l1017-ref-compact-money strong{
  font-size:clamp(13px,3.35vw,17px)!important;
}
@media(max-width:390px){
  #referralsView #l1017Referrals .l1017-ref-compact-row{
    min-height:56px!important;
    padding:8px!important;
  }
  #referralsView #l1017Referrals .l1017-ref-mission-progress{
    margin-bottom:12px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  #referralsView #l1017Referrals .l1017-ref-mission-progress>span{
    transition:none!important;
  }
}

/* Three compact mission tabs: referrals, purchases, and login.
   The tabs are grouped in a single RTL row, even on narrow mobile screens. */
#referralsView #l1017Referrals .l1017-mission-tabs{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  direction:rtl!important;
  gap:7px!important;
  width:100%!important;
  margin:0 0 16px!important;
  padding:5px!important;
  border:1px solid #3a4266!important;
  border-radius:16px!important;
  background:#121b31!important;
  box-shadow:inset 0 1px #ffffff0a!important;
}
#referralsView #l1017Referrals .l1017-mission-tabs button{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-direction:column!important;
  min-width:0!important;
  min-height:66px!important;
  gap:6px!important;
  padding:9px 4px!important;
  border-radius:12px!important;
  border:1px solid transparent!important;
  background:transparent!important;
  color:#a9b6d4!important;
  font:800 clamp(10px,2.45vw,12px)/1.4 system-ui,sans-serif!important;
  text-align:center!important;
  cursor:pointer!important;
  touch-action:manipulation!important;
  transition:background .16s,border-color .16s,transform .16s,color .16s!important;
}
#referralsView #l1017Referrals .l1017-mission-tabs button span{
  display:block!important;
  width:100%!important;
  line-height:1.45!important;
  overflow-wrap:normal!important;
}
#referralsView #l1017Referrals .l1017-mission-tabs button svg{
  display:block!important;
  flex:none!important;
  width:19px!important;height:19px!important;
  color:currentColor!important;
}
#referralsView #l1017Referrals .l1017-mission-tabs button.is-active{
  color:#fff!important;
  border-color:#a68be360!important;
  background:linear-gradient(135deg,#7650bd,#4b397d)!important;
  box-shadow:0 4px 15px #654aba34,inset 0 1px #ffffff21!important;
}
#referralsView #l1017Referrals .l1017-mission-tabs button[data-l1017-mission-tab="purchases"].is-active{
  background:linear-gradient(135deg,#2d7286,#2c4c7b)!important;
  border-color:#64b5d1!important;
}
#referralsView #l1017Referrals .l1017-mission-tabs button[data-l1017-mission-tab="login"].is-active{
  background:linear-gradient(135deg,#238970,#23685f)!important;
  border-color:#5dcda4!important;
}
#referralsView #l1017Referrals .l1017-mission-tabs button:focus-visible{
  outline:2px solid #e6d0ff!important;outline-offset:2px!important;
}
#referralsView #l1017Referrals .l1017-mission-tabs button:active{
  transform:scale(.98)!important;
}
#referralsView #l1017Referrals :is(#l1017MissionPanelReferrals,#l1017MissionPanelPurchases,#l1017MissionPanelLogin){
  display:block;
  min-width:0!important;width:100%!important;
  animation:l1017-mission-tab-enter .17s ease-out both;
}
#referralsView #l1017Referrals :is(#l1017MissionPanelReferrals,#l1017MissionPanelPurchases,#l1017MissionPanelLogin)[hidden]{
  display:none!important;
}
#referralsView #l1017Referrals .l1017-mission-loading{
  margin:10px 0!important;
  padding:16px 13px!important;
  color:#b6bfda!important;
  background:#182036!important;
  border:1px dashed #3b476c!important;
  border-radius:13px!important;
  line-height:1.8!important;
  font-size:12px!important;
  text-align:center!important;
}
#referralsView #l1017Referrals .l1017-ref-compact-money.l1017-mission-counter{
  min-width:88px!important;
  border-right-color:#53617c!important;
  justify-items:center!important;
  text-align:center!important;
  padding-right:8px!important;
}
#referralsView #l1017Referrals .l1017-mission-counter strong{
  color:#a5d8ff!important;
  font-size:clamp(12px,3.1vw,16px)!important;
  font-weight:850!important;
}
#referralsView #l1017Referrals .l1017-ref-compact-row.is-done .l1017-mission-counter strong{
  color:#7be6b9!important;
}
#referralsView #l1017Referrals .l1017-mission-counter small{
  white-space:normal!important;
  font-size:10px!important;
  text-align:center!important;
}
#referralsView #l1017Referrals #l1017MissionPanelPurchases .l1017-ref-mission-progress>span{
  background:linear-gradient(100deg,#69d7ed,#5488df)!important;
}
#referralsView #l1017Referrals #l1017MissionPanelLogin .l1017-ref-mission-progress>span{
  background:linear-gradient(100deg,#78eebf,#42c8a2)!important;
}
@keyframes l1017-mission-tab-enter{
  from{opacity:.55;transform:translateY(4px)}
  to{opacity:1;transform:translateY(0)}
}
@media(max-width:425px){
  #referralsView #l1017Referrals .l1017-mission-tabs{
    gap:4px!important;padding:4px!important;
    border-radius:14px!important;
  }
  #referralsView #l1017Referrals .l1017-mission-tabs button{
    min-height:61px!important;
    padding:8px 2px!important;
    font-size:clamp(9px,2.6vw,10.5px)!important;
    gap:4px!important;
  }
  #referralsView #l1017Referrals .l1017-mission-tabs button svg{
    width:17px!important;height:17px!important;
  }
  #referralsView #l1017Referrals .l1017-ref-compact-money.l1017-mission-counter{
    min-width:68px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  #referralsView #l1017Referrals .l1017-mission-tabs button{
    transition:none!important;
  }
  #referralsView #l1017Referrals :is(#l1017MissionPanelReferrals,#l1017MissionPanelPurchases,#l1017MissionPanelLogin){
    animation:none!important;
  }
}

/* Claim a mission once: earned -> clickable claim -> permanently received. */
#referralsView #l1017Referrals .l1017-ref-compact-money .l1017-mission-claim-btn{
  display:inline-flex!important;
  width:100%!important;
  min-width:73px!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:32px!important;
  margin:7px 0 1px!important;
  padding:6px 9px!important;
  border:1px solid #79ecbc!important;
  border-radius:10px!important;
  background:linear-gradient(130deg,#65edb6,#28ae84)!important;
  color:#0a2c25!important;
  font:900 11.5px/1.2 system-ui,sans-serif!important;
  box-shadow:0 3px 13px #12bc853a!important;
  cursor:pointer!important;
  white-space:nowrap!important;
  touch-action:manipulation!important;
}
#referralsView #l1017Referrals .l1017-ref-compact-money .l1017-mission-claim-btn:disabled{
  cursor:wait!important;opacity:.62!important;
}
#referralsView #l1017Referrals .l1017-ref-compact-money .l1017-mission-claim-btn:focus-visible{
  outline:2px solid #fff!important;outline-offset:2px!important;
}
#referralsView #l1017Referrals .l1017-ref-compact-money .l1017-mission-received{
  display:block!important;
  margin-top:7px!important;
  padding:6px 3px!important;
  min-width:72px!important;
  border-radius:9px!important;
  border:1px solid #397c65!important;
  background:#1b4539!important;
  color:#abf0d0!important;
  text-align:center!important;
  font:800 10px/1.45 system-ui,sans-serif!important;
  white-space:normal!important;
}
#referralsView #l1017Referrals .l1017-ref-compact-money .l1017-mission-awaiting{
  display:block!important;
  margin-top:7px!important;
  font-size:9.5px!important;
  line-height:1.35!important;
  color:#8797b3!important;
  white-space:normal!important;
  text-align:center!important;
}
#referralsView #l1017Referrals .l1017-ref-compact-row.is-done{
  border-color:#34785e!important;
}
#referralsView #l1017Referrals .l1017-ref-compact-money{
  min-width:84px!important;
  max-width:114px!important;
}
#referralsView #l1017Referrals .l1017-mission-counter{
  min-width:84px!important;
}
@media(max-width:390px){
  #referralsView #l1017Referrals .l1017-ref-compact-money,
  #referralsView #l1017Referrals .l1017-mission-counter{
    min-width:71px!important;
    max-width:84px!important;
    padding-right:5px!important;
  }
  #referralsView #l1017Referrals .l1017-ref-compact-money .l1017-mission-claim-btn{
    min-width:64px!important;
    font-size:10px!important;
    padding:5px 4px!important;
  }
  #referralsView #l1017Referrals .l1017-ref-compact-money .l1017-mission-received{
    min-width:62px!important;font-size:9px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  #referralsView #l1017Referrals .l1017-mission-claim-btn{
    animation:none!important;transition:none!important;
  }
}

/* Purchase mission payouts: real one-time wallet credit confirmed by RPC. */
#referralsView #l1017Referrals #l1017MissionPanelPurchases .l1017-mission-counter.is-paid{
  min-width:87px!important;
  max-width:118px!important;
  border-right-color:#35876b!important;
}
#referralsView #l1017Referrals #l1017MissionPanelPurchases .l1017-mission-counter.is-paid strong,
#referralsView #l1017Referrals #l1017MissionPanelPurchases .l1017-ref-compact-row.is-done .l1017-mission-counter.is-paid strong{
  color:#7aefbd!important;
  font-size:clamp(13px,3.3vw,17px)!important;
  font-weight:900!important;
  white-space:nowrap!important;
  text-shadow:0 2px 12px #1cc68b27!important;
}
#referralsView #l1017Referrals #l1017MissionPanelPurchases .l1017-mission-counter.is-paid small{
  color:#9eb6b3!important;
  font-size:10px!important;
  line-height:1.5!important;
  text-align:center!important;
}
#referralsView #l1017Referrals #l1017MissionPanelPurchases .l1017-ref-compact-row.is-done{
  border-color:#368267!important;
  background:linear-gradient(120deg,#13352f,#162c37)!important;
}
#referralsView #l1017Referrals #l1017MissionPanelPurchases .l1017-mission-claim-btn{
  border-color:#78f0bf!important;
  background:linear-gradient(130deg,#88f5c7,#45d39b)!important;
}
@media(max-width:390px){
  #referralsView #l1017Referrals #l1017MissionPanelPurchases .l1017-mission-counter.is-paid{
    min-width:74px!important;max-width:86px!important;
  }
  #referralsView #l1017Referrals #l1017MissionPanelPurchases .l1017-mission-counter.is-paid strong{
    font-size:12px!important;
  }
}
