
/* 邀请页白蓝绿品牌主题：与 4.9.6 正式 --bp496-* Token 对齐；作用域严格限制在 Invite 页面。 */
#v18061ReferralScreen.bp-invite-brand{
  --bpi-green:var(--bp496-action,#16A374);
  --bpi-deep-green:var(--bp496-action-contrast,#128461);
  --bpi-blue:var(--bp496-brand,#2C74AB);
  --bpi-text:var(--bp496-text,#173650);
  --bpi-sub:var(--bp496-sub,#536D80);
  --bpi-border:var(--bp496-border,#D2E0E9);
  --bpi-soft:var(--bp496-surface-soft,#F1F7FA);
  box-sizing:border-box;
  overflow-x:hidden;overflow-y:auto;
  background:linear-gradient(180deg,#EAF5FA 0px,var(--bp496-app,#F2F6F9) 240px,var(--bp496-app,#F2F6F9) 100%);
  color:var(--bpi-text);
  padding:0 0 calc(105px + env(safe-area-inset-bottom,0px));
  font-family:inherit;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
#v18061ReferralScreen.bp-invite-brand::-webkit-scrollbar{display:none}
#v18061ReferralScreen.bp-invite-brand *{box-sizing:border-box}
#v18061ReferralScreen .bpi-shell{width:min(100%,540px);margin:0 auto;padding:19px 14px 18px}
#v18061ReferralScreen svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
/* 轻盈导航型抬头：复用首页的深蓝文字与绿色强调。 */
#v18061ReferralScreen .bpi-intro{padding:4px 2px 17px}
#v18061ReferralScreen .bpi-eyebrow{display:block;color:var(--bpi-deep-green);font-size:10px;letter-spacing:1.45px;font-weight:900;margin-bottom:7px}
#v18061ReferralScreen .bpi-intro h1{margin:0;color:var(--bpi-text);font-size:clamp(25px,6.1vw,31px);font-weight:850;letter-spacing:-.7px;line-height:1.13}
#v18061ReferralScreen .bpi-intro p{font-size:12px;line-height:1.45;color:var(--bpi-sub);margin:7px 0 0}
/* 用户资料卡：白底微蓝描边与首页白卡统一。 */
#v18061ReferralScreen .bpi-identity{display:flex;align-items:center;gap:11px;min-width:0;background:#fff;border:1px solid var(--bpi-border);box-shadow:0 3px 10px rgba(30,84,115,.045);border-radius:15px;padding:12px 13px;margin-bottom:13px}
#v18061ReferralScreen .bpi-user-dot{width:40px;height:40px;display:grid;place-items:center;flex:0 0 40px;border-radius:12px;color:var(--bpi-deep-green);background:#DDF5E9}
#v18061ReferralScreen .bpi-user-dot svg{fill:currentColor;stroke:none;width:20px;height:20px}
#v18061ReferralScreen .bpi-identity-text{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
#v18061ReferralScreen .bpi-identity-text>span{font-size:10px;color:#648298;font-weight:800;letter-spacing:.85px}
#v18061ReferralScreen .bpi-identity-text strong{font-size:14px;font-weight:750;overflow-wrap:anywhere;color:var(--bpi-text);line-height:1.35}
#v18061ReferralScreen .bpi-id-status{height:8px;width:8px;flex:0 0 8px;background:#16A374;border:2px solid #D9F3E7;border-radius:50%;box-shadow:0 0 0 3px #F0FAF5}
/* 佣金 Hero：使用产品既有深翡翠绿主按钮色，避免赌场荧光绿。 */
#v18061ReferralScreen .bpi-hero{position:relative;overflow:hidden;border-radius:17px;background:linear-gradient(125deg,#24B78D 0%,#16A374 47%,#118568 100%);padding:17px 19px 0;min-height:162px;color:#fff;box-shadow:0 8px 20px rgba(18,132,97,.13);margin-bottom:13px;border:1px solid rgba(9,102,76,.11)}
#v18061ReferralScreen .bpi-hero::before{content:'';position:absolute;width:188px;height:188px;border:1px solid rgba(255,255,255,.18);border-radius:50%;right:-39px;top:-103px;pointer-events:none}
#v18061ReferralScreen .bpi-hero::after{content:'';position:absolute;width:142px;height:142px;border:1px solid rgba(255,255,255,.14);border-radius:50%;right:-55px;top:-31px;pointer-events:none}
#v18061ReferralScreen .bpi-hero-top{display:flex;justify-content:space-between;align-items:center;position:relative;z-index:1}
#v18061ReferralScreen .bpi-hero-label{font-size:11px;font-weight:850;letter-spacing:1.5px;color:#DDFEF3}
#v18061ReferralScreen .bpi-hero-mark{display:grid;place-items:center;width:28px;height:28px;background:rgba(255,255,255,.16);color:#fff;border-radius:9px;font-size:19px;font-weight:800}
#v18061ReferralScreen .bpi-hero-main{display:flex;align-items:center;gap:18px;position:relative;z-index:1;margin:8px 0 15px}
#v18061ReferralScreen .bpi-hero-main strong{font-size:clamp(49px,13.4vw,64px);letter-spacing:-3px;line-height:1;font-weight:900;color:#fff;font-variant-numeric:tabular-nums;text-shadow:0 1px 0 rgba(0,0,0,.08)}
#v18061ReferralScreen .bpi-hero-desc{color:#F1FFF9;font-size:12px;line-height:1.45;font-weight:700}
#v18061ReferralScreen .bpi-hero-desc em{color:#D1FBE8;font-size:10px;font-style:normal;font-weight:600}
#v18061ReferralScreen .bpi-hero-ribbon{display:flex;gap:5px;align-items:center;height:17px;opacity:.48}
#v18061ReferralScreen .bpi-hero-ribbon span{height:4px;flex:1;border-radius:3px;background:#EEFFF7}
#v18061ReferralScreen .bpi-hero-ribbon span:nth-child(2n){opacity:.46}
/* 资金卡：白卡+柔和绿状态块，跟统一的余额/充值卡一致。 */
#v18061ReferralScreen .bpi-funds{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);align-items:center;gap:9px;background:#fff;border:1px solid var(--bpi-border);border-radius:15px;padding:16px 14px;min-height:110px;box-shadow:0 3px 10px rgba(30,84,115,.045)}
#v18061ReferralScreen .bpi-overline{display:block;font-size:10px;letter-spacing:.35px;font-weight:800;color:#68849A;line-height:1.4}
#v18061ReferralScreen .bpi-funds-amount{min-width:0}
#v18061ReferralScreen .bpi-funds-amount strong{display:block;font-size:clamp(20px,5.4vw,28px);color:var(--bpi-text);letter-spacing:-.65px;font-weight:850;margin-top:8px;white-space:nowrap}
#v18061ReferralScreen .bpi-funds-state{min-width:0}
#v18061ReferralScreen .bpi-status{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 6px;background:#E4F6ED;border:1px solid #BDE7D4;border-radius:9px;color:#137D5D;font-size:12px;font-weight:780;white-space:nowrap}
#v18061ReferralScreen .bpi-status svg{width:17px;height:17px;flex:0 0 17px}
#v18061ReferralScreen .bpi-funds-state small{display:block;color:#6B8090;font-size:10px;line-height:1.35;margin-top:8px}
/* 统计区：轻蓝底上 2×2 白色卡片，数字深蓝、图标柔绿/浅蓝。 */
#v18061ReferralScreen .bpi-section-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:23px 1px 11px}
#v18061ReferralScreen .bpi-section-head h2{margin:0;color:var(--bpi-text);font-size:18px;letter-spacing:-.25px;font-weight:850}
#v18061ReferralScreen .bpi-section-head span{color:#67869B;font-size:11px}
#v18061ReferralScreen .bpi-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#v18061ReferralScreen .bpi-stat{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:126px;padding:13px 13px 12px;gap:5px;border:1px solid var(--bpi-border);border-radius:14px;background:#fff;box-shadow:0 3px 9px rgba(30,84,115,.04)}
#v18061ReferralScreen .bpi-stat-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#E1F4EA;color:#128461;margin-bottom:5px}
#v18061ReferralScreen .bpi-stat:nth-child(2n) .bpi-stat-icon{background:#E6F2FB;color:#2C74AB}
#v18061ReferralScreen .bpi-stat-icon svg{width:19px;height:19px}
#v18061ReferralScreen .bpi-stat strong{color:var(--bpi-text);font-size:clamp(16px,4.4vw,21px);line-height:1.15;font-weight:850;white-space:nowrap}
#v18061ReferralScreen .bpi-stat>span:last-child{color:#58758A;font-size:11px;line-height:1.25;overflow-wrap:anywhere}
/* 邀请码卡：白色主体，淡蓝色复制区，绿色操作按钮。 */
#v18061ReferralScreen .bpi-link-head{margin-top:26px}
#v18061ReferralScreen .bpi-link-card{border-radius:16px;border:1px solid var(--bpi-border);background:#fff;box-shadow:0 3px 12px rgba(30,84,115,.045);padding:16px;min-width:0}
#v18061ReferralScreen .bpi-code-top{display:flex;justify-content:space-between;align-items:center;color:#68839A;font-size:10px;font-weight:850;letter-spacing:.85px}
#v18061ReferralScreen .bpi-link-glyph{display:grid;place-items:center;color:#2C74AB;background:#E5F2FA;width:32px;height:32px;border-radius:9px}
#v18061ReferralScreen .bpi-link-glyph svg{width:18px;height:18px}
#v18061ReferralScreen .bpi-link-card>strong{font-size:clamp(20px,5.9vw,29px);display:block;color:var(--bpi-text);letter-spacing:.1px;font-weight:850;margin:5px 0 3px;overflow-wrap:anywhere}
#v18061ReferralScreen .bpi-example{font-size:10px;color:#718B9E}
#v18061ReferralScreen .bpi-link-row{display:flex;align-items:center;gap:9px;min-width:0;margin-top:17px;border-radius:11px;background:#F0F7FB;border:1px solid #D8E8F1;padding:7px 7px 7px 12px;min-height:53px}
#v18061ReferralScreen .bpi-link-row code{background:transparent;color:#345C77;border:0;padding:0;min-width:0;flex:1;font-family:inherit;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#v18061ReferralScreen .bpi-link-row button{display:grid;place-items:center;width:39px;height:39px;flex:0 0 39px;background:#16A374;border:0;border-radius:9px;color:#fff;cursor:pointer}
#v18061ReferralScreen .bpi-link-row button:disabled{background:#BFD4CE;color:#F5FFFB;opacity:1;cursor:not-allowed}
#v18061ReferralScreen .bpi-link-row button svg{width:19px;height:19px}
#v18061ReferralScreen .bpi-link-note{font-size:11px;color:#658095;margin:9px 0 0;line-height:1.4}
#v18061ReferralScreen .bp-ref-v1-feedback{font-size:12px;margin-top:8px;color:#128461}
@media(max-width:350px){#v18061ReferralScreen .bpi-shell{padding-left:11px;padding-right:11px}#v18061ReferralScreen .bpi-hero{padding-left:15px;padding-right:15px}#v18061ReferralScreen .bpi-funds{padding:12px 10px;gap:7px}#v18061ReferralScreen .bpi-overline{font-size:9px}#v18061ReferralScreen .bpi-funds-amount strong{font-size:20px}#v18061ReferralScreen .bpi-status{font-size:10px;padding:7px 4px;gap:4px}#v18061ReferralScreen .bpi-stat{padding:11px 10px}#v18061ReferralScreen .bpi-stat strong{font-size:16px}}

/* Invite CTA: 跳转到通用提现页面。 */
#v18061ReferralScreen .bpi-withdraw-cta{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:44px;padding:9px 8px;border:0;border-radius:11px;background:#16A374;color:#fff;font-family:inherit;font-size:12px;line-height:1.2;font-weight:850;cursor:pointer;box-shadow:0 3px 8px rgba(22,163,116,.16)}
#v18061ReferralScreen .bpi-withdraw-cta:focus-visible{outline:3px solid #2C74AB;outline-offset:2px}
#v18061ReferralScreen .bpi-withdraw-cta svg{width:17px;height:17px;flex:0 0 17px}
#v18061ReferralScreen .bpi-withdraw-cta:active{transform:translateY(1px)}
#v18061ReferralScreen .bpi-withdraw-caption{display:block;color:#648298;font-size:10px;line-height:1.3;text-align:center;margin-top:7px}
@media(max-width:350px){#v18061ReferralScreen .bpi-withdraw-cta{font-size:11px;padding:9px 5px}}
