/* ===================================================================
   Refer & Earn (team.html) — colour scheme from the new mock:
   light page, dark glossy hero / banner cards, white content cards,
   violet pill tabs + buttons, soft amber notice.
   Colours follow the admin accent (--ac-h / --ac-sat) like every other page.
=================================================================== */
:root{
  --rv-a:   hsl(var(--ac-h,262),calc(83%*var(--ac-sat,1)),58%);
  --rv-a-hi:hsl(var(--ac-h,262),calc(90%*var(--ac-sat,1)),66%);
  --rv-a-lo:hsl(var(--ac-h,262),calc(70%*var(--ac-sat,1)),42%);
  --rv-a-xl:hsl(var(--ac-h,262),calc(95%*var(--ac-sat,1)),85%);
  --rv-tint:hsl(var(--ac-h,262),calc(100%*var(--ac-sat,1)),97%);
  --rv-tint2:hsl(var(--ac-h,262),calc(90%*var(--ac-sat,1)),93%);
  --rv-line:hsla(var(--ac-h,262),calc(70%*var(--ac-sat,1)),60%,.22);
  --rv-dark:hsl(var(--ac-h,262),calc(18%*var(--ac-sat,1)),9%);
  --rv-dark2:hsl(var(--ac-h,262),calc(38%*var(--ac-sat,1)),17%);
  --rv-ink:var(--eb57-token-17141f,#17141f); --rv-muted:var(--eb57-token-5f5877,#5f5877); --rv-dim:var(--eb57-token-8a84a3,#8a84a3);
}
html{color-scheme:light!important;background:var(--eb57-surface-fbf9ff,#fbf9ff)!important}
html body{background:radial-gradient(120% 40% at 85% -6%,hsla(var(--ac-h,262),calc(83%*var(--ac-sat,1)),58%,.10),transparent 62%),var(--eb57-surface-fbf9ff,#fbf9ff)!important;color:var(--rv-ink)!important}

/* ---------- top bar: same look as the Account page (white round buttons, logo, divider, title) ---------- */
html body .top{position:sticky!important;top:0;z-index:200!important;max-width:none!important;margin:0!important;width:100%;
  padding:calc(10px + env(safe-area-inset-top,0px)) max(14px,calc((100% - 540px)/2 + 14px)) 8px!important;gap:12px!important;
  background:linear-gradient(180deg,var(--eb57-surface-fbf9ff,#fbf9ff) 0%,var(--eb57-surface-fbf9ff,#fbf9ff) 82%,var(--eb57-surface-fbf9ff-940000,rgba(251,249,255,.94)) 100%)!important;
  border:0!important;border-bottom:1px solid var(--eb57-border-efeaf9,#efeaf9)!important;border-radius:0!important;box-shadow:0 6px 16px -14px hsla(var(--ac-h,262),60%,30%,.5)!important;overflow:visible}
html body .top::before,html body .top::after{display:none!important}
html body .top .back{width:46px!important;height:46px!important;border-radius:50%!important;background:var(--eb57-surface-ffffff-920000,rgba(255,255,255,.92))!important;color:var(--rv-a)!important;border:1.5px solid hsla(var(--ac-h,262),calc(83%*var(--ac-sat,1)),66%,.45)!important;box-shadow:0 6px 14px -8px var(--rv-a)!important}
html body .top .back svg{width:22px;height:22px;stroke:currentColor}
html body .top .brand-mark{flex:none;width:46px;height:46px;border-radius:50%;object-fit:cover;background:var(--eb57-surface-ffffff,#fff);border:2px solid var(--eb57-border-b6e36b,#b6e36b);box-shadow:0 0 12px var(--eb57-shadow-b6e36b-350000,rgba(182,227,107,.35));margin-left:2px}
html body .top h1{position:relative;flex:1;padding-left:14px;font-size:1.3rem!important;font-weight:700!important;color:var(--rv-ink)!important;letter-spacing:.01em}
html body .top h1::before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:1px;background:var(--rv-line)}
html body .top .hbtn{width:46px!important;height:46px!important;background:var(--eb57-surface-ffffff-920000,rgba(255,255,255,.92))!important;border:1.5px solid hsla(var(--ac-h,262),calc(83%*var(--ac-sat,1)),66%,.45)!important;color:var(--rv-a)!important;box-shadow:0 6px 14px -8px var(--rv-a)}

/* ---------- cards ---------- */
html body .card{background:var(--eb57-surface-ffffff,#fff)!important;border:1px solid var(--eb57-border-efeaf9,#efeaf9)!important;border-radius:20px!important;box-shadow:0 8px 24px -14px hsla(var(--ac-h,262),60%,30%,.28)!important;color:var(--rv-ink)!important}
html body .card h2{color:var(--rv-ink)!important}
html body .card p.d,html body .empty,html body .mt{color:var(--rv-muted)!important}
html body .mt b{color:var(--rv-ink)!important}

/* ---------- hero: dark "Your Referral Rewards" card ---------- */
html body .hero{background:radial-gradient(90% 130% at 100% 50%,hsla(var(--ac-h,262),calc(83%*var(--ac-sat,1)),58%,.50),transparent 62%),linear-gradient(135deg,var(--rv-dark),var(--rv-dark2))!important;border:0!important;box-shadow:0 14px 30px -14px hsla(var(--ac-h,262),60%,20%,.6)!important;color:var(--eb57-text-ffffff,#fff)!important}
html body .hero .hero-name,html body .hero .hero-role{color:var(--eb57-text-ffffff,#fff)!important}
html body .avatar{background:var(--eb57-surface-ffffff,#fff)!important;border:3px solid var(--eb57-border-ffffff-900000,rgba(255,255,255,.9))!important;box-shadow:0 0 0 4px hsla(var(--ac-h,262),80%,70%,.25)!important}
html body .gift{filter:drop-shadow(0 8px 16px hsla(var(--ac-h,262),80%,50%,.55))!important}

/* ---------- tabs / role switcher: white pills, violet when active ---------- */
html body .tab,html body .qrsw button,html body .chip,html body .certs a{background:var(--eb57-surface-ffffff,#fff)!important;color:var(--rv-ink)!important;border:1px solid var(--eb57-border-efeaf9,#efeaf9)!important;box-shadow:0 5px 14px -8px hsla(var(--ac-h,262),60%,30%,.3)!important}
html body .tab i{background:var(--rv-tint2)!important;color:var(--rv-a-lo)!important}
html body .tab.on,html body .qrsw button.on,html body .chip.on{background:linear-gradient(180deg,var(--rv-a-hi),var(--rv-a-lo))!important;color:var(--eb57-text-ffffff,#fff)!important;border-color:transparent!important;box-shadow:0 8px 18px -8px var(--rv-a)!important}
html body .tab.on i{background:var(--eb57-surface-ffffff-250000,rgba(255,255,255,.25))!important;color:var(--eb57-text-ffffff,#fff)!important}
html body .tsep{background:var(--rv-line)!important}
html body .certs a svg{color:var(--rv-a)!important}

/* ---------- invite / QR card: soft lavender with dark text ---------- */
html body .qrwrap{background:linear-gradient(135deg,var(--rv-tint),var(--rv-tint2))!important;border:1px solid var(--rv-line)!important;box-shadow:0 10px 26px -16px var(--rv-a)!important}
html body .qrwrap::after{border-color:hsla(var(--ac-h,262),80%,70%,.25)!important;border-bottom-color:transparent!important;border-left-color:transparent!important}
html body .qrbox{background:var(--eb57-surface-ffffff,#fff)!important;box-shadow:0 8px 20px -10px hsla(var(--ac-h,262),60%,20%,.35)!important}
html body .qrcard .vd{background:var(--rv-line)!important}
html body .qrcard h2{color:var(--rv-ink)!important}
html body .qrcard p.d{color:var(--rv-ink)!important}
html body .qrcard p.d b{color:var(--rv-a-lo)!important}
html body .qbtn{background:linear-gradient(180deg,var(--rv-a-hi),var(--rv-a-lo))!important;color:var(--eb57-text-ffffff,#fff)!important;border:0!important;box-shadow:0 8px 18px -8px var(--rv-a)!important}

/* ---------- link rows ---------- */
html body .lrow{background:var(--eb57-surface-ffffff,#fff)!important;border:1px solid var(--eb57-border-efeaf9,#efeaf9)!important;box-shadow:0 6px 16px -12px hsla(var(--ac-h,262),60%,30%,.3)}
html body .lrow .lt b{color:var(--rv-ink)!important}
html body .lrow .lc{color:var(--rv-a-lo)!important}
html body .lrow button{background:var(--rv-tint)!important;color:var(--rv-a-lo)!important;border:1px solid var(--rv-line)!important}
html body .lrow button.wa{background:linear-gradient(180deg,var(--eb57-surface-22c55e,#22c55e),var(--eb57-surface-15803d,#15803d))!important;color:var(--eb57-text-ffffff,#fff)!important;border-color:var(--eb57-border-4ade80,#4ade80)!important}

/* ---------- "More Friends, More Rewards" style banner (guide / widget cards) ---------- */
html body .wcard{background:radial-gradient(70% 130% at 0% 50%,hsla(var(--ac-h,262),calc(83%*var(--ac-sat,1)),58%,.45),transparent 70%),linear-gradient(135deg,var(--rv-dark),var(--rv-dark2))!important;border:0!important;color:var(--eb57-text-ffffff,#fff)!important;box-shadow:0 14px 30px -14px hsla(var(--ac-h,262),60%,20%,.6)!important}
html body .wcard .wt{color:var(--eb57-text-e9e4fb,#e9e4fb)!important}
html body .wcard .wt b{color:var(--eb57-text-ffffff,#fff)!important}
html body .wcard .qbtn{background:var(--eb57-surface-ffffff,#fff)!important;color:var(--rv-a-lo)!important;box-shadow:none!important}

/* ---------- section heads / icons ---------- */
html body .cico{background:linear-gradient(160deg,var(--rv-a-hi),var(--rv-a-lo))!important;box-shadow:0 6px 14px -6px var(--rv-a)!important}
html body .cico.ok{background:linear-gradient(160deg,var(--eb57-surface-22c55e,#22c55e),var(--eb57-surface-15803d,#15803d))!important;box-shadow:0 6px 14px -6px var(--eb57-shadow-22c55e,#22c55e)!important}

/* ---------- notice = soft amber (Fair Use Policy look) ---------- */
html body .notice{background:var(--eb57-surface-fff4d9,#fff4d9)!important;border:0!important;color:var(--eb57-text-6b4300,#6b4300)!important;border-radius:14px!important}

/* ---------- lists, badges, buttons ---------- */
html body .row{border-top-color:var(--eb57-border-f0ecf8,#f0ecf8)!important}
html body .nm{color:var(--rv-ink)!important}
html body .badge{background:var(--eb57-surface-e8f9ee,#e8f9ee)!important;color:var(--eb57-text-15803d,#15803d)!important;border:0!important}
html body .want,html body .warn{background:var(--eb57-surface-fff1c9,#fff1c9)!important;color:var(--eb57-text-8a5a00,#8a5a00)!important;border:0!important}
html body button.ap{background:linear-gradient(180deg,var(--rv-a-hi),var(--rv-a-lo))!important;color:var(--eb57-text-ffffff,#fff)!important;border:0!important}
html body button.ap.alt{background:linear-gradient(180deg,var(--eb57-surface-a855f7,#a855f7),var(--eb57-surface-7e22ce,#7e22ce))!important}
html body button.ap.alt2{background:linear-gradient(180deg,var(--eb57-surface-f59e0b,#f59e0b),var(--eb57-surface-b45309,#b45309))!important}
html body .grp{color:var(--rv-a-lo)!important}
html body .grp::after{background:var(--eb57-surface-efeaf9,#efeaf9)!important}
html body .prog-bar{background:var(--rv-tint2)!important}
html body .prog-fill{background:linear-gradient(90deg,var(--rv-a-lo),var(--rv-a-hi))!important}

/* ---------- stats + table ---------- */
html body .stat{background:var(--rv-tint)!important;border:1px solid var(--rv-line)!important}
html body .stat b{color:var(--rv-a-lo)!important}
html body .stat span{color:var(--rv-muted)!important}
html body .acts a{background:var(--rv-tint)!important;border:1px solid var(--rv-line)!important;color:var(--rv-a-lo)!important}
html body .acts a.wa{background:var(--eb57-surface-e8f9ee,#e8f9ee)!important;border-color:var(--eb57-border-86efac,#86efac)!important}
html body table.r th{background:var(--rv-tint2)!important;color:var(--rv-a-lo)!important}
html body table.r td{border-bottom-color:var(--eb57-border-f0ecf8,#f0ecf8)!important;color:var(--rv-ink)!important}
html body table.r td b{color:var(--eb57-text-15803d,#15803d)!important}
html body .cert-h h2{color:var(--rv-ink)!important}

/* footer scene text on the violet hills */
html body .foot p{color:var(--eb57-text-ffffff,#fff)!important;text-shadow:0 2px 8px var(--eb57-shadow-280a64-550000,rgba(40,10,100,.55))}
html body .foot p *{color:var(--eb57-text-ffffff,#fff)!important}
