.wlh-loyalty-dashboard{--wlh-accent:#0f8a8d;--wlh-ink:#0f172a;--wlh-muted:#64748b;--wlh-line:#dfe8ea;--wlh-soft:#f4fbfa;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--wlh-ink);margin:0 auto;max-width:1180px;padding:20px 0 48px}.wlh-loyalty-shell{display:grid;gap:18px}.wlh-loyalty-hero{display:flex;align-items:stretch;justify-content:space-between;gap:18px;padding:28px;border-radius:24px;background:linear-gradient(135deg,#0c6f71 0%,var(--wlh-accent) 60%,#159a97 100%);color:#fff;box-shadow:0 18px 45px rgba(15,138,141,.18)}.wlh-hero-copy{max-width:670px}.wlh-eyebrow,.wlh-kicker{display:block;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.wlh-hero-copy h1{margin:8px 0 10px;font-size:clamp(28px,4vw,42px);line-height:1.08;color:#fff}.wlh-hero-copy p{margin:0;max-width:650px;color:rgba(255,255,255,.88);font-size:15px;line-height:1.7}.wlh-level-hero-card{display:flex;align-items:center;gap:14px;min-width:250px;padding:14px 16px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.11);backdrop-filter:blur(8px);border-radius:18px;align-self:center}.wlh-level-badge-wrap{width:58px;height:58px;border-radius:16px;display:grid;place-items:center;background:rgba(255,255,255,.16);overflow:hidden;flex:none}.wlh-level-badge-wrap img{max-width:46px;max-height:46px;object-fit:contain}.wlh-level-hero-card span,.wlh-level-hero-card small{display:block;color:rgba(255,255,255,.74);font-size:12px}.wlh-level-hero-card strong{display:block;font-size:20px;line-height:1.2;margin:2px 0 3px;color:#fff}.wlh-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.wlh-stat-card{display:flex;gap:12px;min-width:0;padding:18px;border:1px solid var(--wlh-line);border-radius:17px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.04)}.wlh-stat-card>div{min-width:0}.wlh-stat-card span:not(.wlh-stat-icon){display:block;color:var(--wlh-muted);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.wlh-stat-card strong{display:block;font-size:24px;line-height:1.15;margin:5px 0;color:var(--wlh-ink);white-space:nowrap}.wlh-stat-card small{display:block;color:#83909d;font-size:11px;line-height:1.45}.wlh-stat-icon,.wlh-icon-circle,.wlh-opportunity-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:rgba(15,138,141,.10);color:var(--wlh-accent);font-weight:900;flex:none}.wlh-icon-circle{border-radius:50%;width:38px;height:38px}.wlh-stat-icon:before{font-size:18px}.wlh-icon-wallet:before{content:'◈'}.wlh-icon-spark:before{content:'✦'}.wlh-icon-redeem:before{content:'↗'}.wlh-icon-cart:before{content:'▣'}.wlh-icon-orders:before{content:'≡'}.wlh-icon-gift:before{content:'◇'}.wlh-icon-check:before{content:'✓'}.wlh-icon-clock:before{content:'◷'}.wlh-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.wlh-panel{background:#fff;border:1px solid var(--wlh-line);border-radius:20px;padding:22px;box-shadow:0 10px 30px rgba(15,23,42,.045)}.wlh-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.wlh-panel-heading h2{margin:3px 0 0;font-size:22px;line-height:1.2;color:var(--wlh-ink)}.wlh-panel-badge{width:48px;height:48px;object-fit:contain}.wlh-muted,.wlh-panel p{color:#59697b;font-size:14px;line-height:1.7}.wlh-progress-track{height:10px;border-radius:99px;background:#e6eeee;overflow:hidden;margin:18px 0 10px}.wlh-progress-track span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--wlh-accent),#30b5ae)}.wlh-progress-meta{display:flex;justify-content:space-between;gap:15px;font-size:12px;color:var(--wlh-muted)}.wlh-progress-meta strong{color:var(--wlh-accent)}.wlh-referral-panel p{margin:0 0 14px}.wlh-copy-row{display:flex;gap:8px}.wlh-copy-row input{min-width:0;flex:1;padding:12px 13px;border:1px solid var(--wlh-line);border-radius:11px;background:#f8fbfb;font-size:13px;color:#334155}.wlh-action,.wlh-link-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:11px;padding:11px 15px;background:var(--wlh-accent);color:#fff!important;font-size:13px;font-weight:800;text-decoration:none;cursor:pointer}.wlh-link,.wlh-link-button{font-size:13px;font-weight:800;text-decoration:none;color:var(--wlh-accent)}.wlh-link-button{background:#0f8a8d}.wlh-copy-btn{border:1px solid var(--wlh-line);border-radius:9px;padding:8px 11px;background:#fff;color:var(--wlh-accent);font-size:12px;font-weight:800;cursor:pointer}.wlh-level-rewards-panel{background:linear-gradient(180deg,#fff 0%,#f9fdfd 100%)}.wlh-coupon-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.wlh-coupon-card{padding:17px;border:1px solid #cfe4e3;border-radius:16px;background:#fff;position:relative;overflow:hidden}.wlh-coupon-card:before{content:'';position:absolute;inset:0 auto 0 0;width:4px;background:var(--wlh-accent)}.wlh-coupon-top{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:13px;font-weight:800}.wlh-coupon-top b{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#14824e;background:#e8f9ef;border-radius:99px;padding:5px 8px}.wlh-coupon-card.is-used .wlh-coupon-top b{color:#736f19;background:#fbf7d8}.wlh-coupon-card.is-expired .wlh-coupon-top b{color:#9a4b4b;background:#fbe8e8}.wlh-coupon-value{font-size:34px;font-weight:900;margin:12px 0 8px;color:var(--wlh-accent)}.wlh-coupon-value small{font-size:13px;font-weight:700}.wlh-coupon-code{display:flex;align-items:center;gap:7px}.wlh-coupon-code code{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;padding:9px;border-radius:9px;background:#f4f8f8;font-size:12px}.wlh-coupon-card p{font-size:12px;margin:10px 0 0;color:var(--wlh-muted)}.wlh-stat-pill{font-size:12px;font-weight:900;padding:8px 10px;border-radius:99px;color:var(--wlh-accent);background:rgba(15,138,141,.10)}.wlh-inline-list,.wlh-simple-list,.wlh-history-list{display:grid;gap:8px;margin:14px 0}.wlh-inline-list>div,.wlh-simple-list>div{display:flex;justify-content:space-between;gap:10px;padding:11px 12px;border:1px solid var(--wlh-line);border-radius:11px;background:#fbfdfd}.wlh-inline-list code{font-size:11px;color:var(--wlh-accent)}.wlh-empty-state{display:grid;gap:4px;padding:18px;border:1px dashed #c9d9da;border-radius:14px;background:#fbfdfd}.wlh-empty-state strong{font-size:14px}.wlh-empty-state span{font-size:12px;color:var(--wlh-muted)}.wlh-success-note{padding:12px 14px;border-radius:12px;background:#effaf3;color:#21613a!important;font-size:12px!important}.wlh-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.wlh-detail-grid>div{padding:14px;border:1px solid var(--wlh-line);border-radius:13px}.wlh-detail-grid span{display:block;color:var(--wlh-muted);font-size:11px;text-transform:uppercase;letter-spacing:.06em}.wlh-detail-grid strong{display:block;margin-top:5px;font-size:18px}.wlh-orders-list{margin-top:18px}.wlh-orders-list>div{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}.wlh-orders-list>div span{padding:7px 9px;border-radius:9px;background:#f2f7f7;color:#304551;font-size:12px;font-weight:700}.wlh-history-list article{display:flex;justify-content:space-between;gap:14px;padding:13px;border:1px solid var(--wlh-line);border-radius:12px}.wlh-history-list article div{display:grid;gap:3px}.wlh-history-list article span{font-size:11px;color:var(--wlh-muted)}.wlh-simple-list>div span{font-size:11px;color:#9b5c5c}.wlh-opportunity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.wlh-opportunity-card{display:flex;gap:13px;padding:16px;border:1px solid var(--wlh-line);border-radius:14px;background:#fbfdfd}.wlh-opportunity-card h3{margin:0 0 4px;font-size:15px}.wlh-opportunity-card p{margin:0;font-size:12px}.wlh-core-rewards-wrap{margin-top:14px;padding:2px}.wlh-core-rewards-wrap .wlr-myaccount-page{background:transparent!important}.wlh-core-rewards-wrap .wlr-heading-container,.wlh-core-rewards-wrap .wlr-user-details,.wlh-core-rewards-wrap .wlr-earning-options,.wlh-core-rewards-wrap .wlr-enable-email-sent-blog{display:none!important}.wlh-core-rewards-wrap .wlr-your-reward{margin:0!important}.wlh-core-rewards-wrap .wlr-user-reward-titles{border:1px solid var(--wlh-line)!important;border-radius:14px;overflow:hidden;background:#fff}.wlh-core-rewards-wrap .wlr-my-rewards-title{padding:14px 16px!important}.wlh-core-rewards-wrap .wlr-user-reward-contents{padding-top:12px!important}.wlh-core-rewards-wrap .wlr-card,.wlh-core-rewards-wrap .wlr-coupons-list,.wlh-core-rewards-wrap .wlr-rewards-content{border-radius:13px!important}.wlh-core-rewards-wrap .wlr-button,.wlh-core-rewards-wrap button{border-radius:10px!important}.wlh-activity-panel details{border:1px solid var(--wlh-line);border-radius:14px}.wlh-activity-panel summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;cursor:pointer;list-style:none}.wlh-activity-panel summary::-webkit-details-marker{display:none}.wlh-activity-panel summary>span:first-child{display:grid;gap:3px}.wlh-activity-panel summary strong{font-size:16px}.wlh-core-activity{padding:0 16px 16px;overflow:auto}.wlh-switch-row{display:flex;align-items:center;justify-content:space-between;gap:20px}.wlh-switch-row>span{display:grid;gap:3px}.wlh-switch-row strong{font-size:15px}.wlh-switch-row small{color:var(--wlh-muted);font-size:12px}.wlh-switch-row input{appearance:none;width:48px;height:28px;border-radius:99px;background:#cbd5e1;position:relative;cursor:pointer;flex:none}.wlh-switch-row input:after{content:'';position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:.2s}.wlh-switch-row input:checked{background:var(--wlh-accent)}.wlh-switch-row input:checked:after{left:23px}@media(max-width:980px){.wlh-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wlh-dashboard-grid{grid-template-columns:1fr}.wlh-coupon-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wlh-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.wlh-loyalty-dashboard{padding:12px 0 30px}.wlh-loyalty-hero{flex-direction:column;padding:22px;border-radius:18px}.wlh-level-hero-card{min-width:0;width:100%}.wlh-stats-grid{grid-template-columns:1fr}.wlh-coupon-grid,.wlh-opportunity-grid{grid-template-columns:1fr}.wlh-detail-grid{grid-template-columns:1fr}.wlh-panel{padding:17px;border-radius:16px}.wlh-copy-row{flex-direction:column}.wlh-copy-row .wlh-action{width:100%}.wlh-panel-heading{align-items:flex-start}.wlh-panel-heading h2{font-size:19px}.wlh-progress-meta{flex-direction:column;gap:4px}.wlh-history-list article{flex-direction:column}.wlh-switch-row{align-items:flex-start}.wlh-switch-row input{margin-top:2px}}

.wlh-referral-count{display:inline-flex;align-items:center;gap:8px;margin:0 0 14px;padding:7px 10px;border-radius:10px;background:#f2f8f8;color:#37545a}.wlh-referral-count strong{font-size:15px;color:var(--wlh-accent)}.wlh-referral-count span{font-size:11px;color:var(--wlh-muted)}


/* 1.9.1 point-aware redemption + programme cards + compact WPLoyalty modal */
.wlh-action-note{margin-top:14px;padding:11px 13px;border:1px solid #d7e7e8;border-radius:11px;background:#f7fbfb;color:#5f7180;font-size:12px;line-height:1.6}.wlh-threshold-note{display:grid;gap:5px;margin:16px 0;padding:14px 15px;border:1px solid #d7e7e8;border-radius:13px;background:#f7fbfb}.wlh-threshold-note strong{color:var(--wlh-accent);font-size:15px}.wlh-threshold-note span{color:#5f7180;font-size:12px;line-height:1.65}.wlh-program-cards-panel{margin-top:18px}.wlh-program-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.wlh-program-card{display:flex;gap:13px;align-items:flex-start;padding:18px;border:1px solid var(--wlh-line);border-radius:16px;background:linear-gradient(180deg,#fff 0%,#fbfefe 100%);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.wlh-program-card:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(15,23,42,.07);border-color:#b9d8d8}.wlh-program-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:rgba(15,138,141,.10);color:var(--wlh-accent);font-weight:900;font-size:17px;flex:none}.wlh-program-card h3{margin:0 0 6px;font-size:16px;color:var(--wlh-ink)}.wlh-program-card p{margin:0;color:#5c6d7d;font-size:12px;line-height:1.65}@media(max-width:980px){.wlh-program-card-grid{grid-template-columns:1fr}}
body.wlh-modal-open{overflow:hidden}

/* 1.9.3 level/influencer identity treatment */
.wlh-loyalty-dashboard{background:linear-gradient(180deg,rgba(148,206,148,.08),rgba(255,255,255,0) 280px);border-radius:28px}
.wlh-loyalty-dashboard{--wlh-level-color:var(--wlh-dashboard-color,#94CE94)}
.wlh-loyalty-dashboard[data-wlh-level-rank="0"]{background:linear-gradient(180deg,rgba(148,206,148,.14),rgba(255,255,255,0) 300px)}
.wlh-loyalty-dashboard[data-wlh-level-rank="1"]{background:linear-gradient(180deg,rgba(103,195,170,.14),rgba(255,255,255,0) 300px)}
.wlh-loyalty-dashboard[data-wlh-level-rank="2"]{background:linear-gradient(180deg,rgba(67,192,188,.14),rgba(255,255,255,0) 300px)}
.wlh-loyalty-dashboard[data-wlh-level-rank="3"]{background:linear-gradient(180deg,rgba(10,147,157,.14),rgba(255,255,255,0) 300px)}
.wlh-loyalty-dashboard[data-wlh-level-rank="4"]{background:linear-gradient(180deg,rgba(10,100,124,.16),rgba(255,255,255,0) 300px)}
.wlh-loyalty-dashboard.wlh-is-influencer{background:linear-gradient(180deg,rgba(113,129,82,.18),rgba(255,255,255,0) 330px)}
.wlh-loyalty-dashboard .wlh-loyalty-hero{background:linear-gradient(135deg,var(--wlh-dashboard-color,#0f8a8d),color-mix(in srgb,var(--wlh-dashboard-color,#0f8a8d) 78%,#ffffff))}
.wlh-identity-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.wlh-recognition-badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:7px 11px;font-size:11px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.wlh-level4-recognition{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3);color:#fff}
.wlh-influencer-badge{background:#f3d77a;color:#4a3600;border:1px solid rgba(74,54,0,.18);box-shadow:0 3px 12px rgba(0,0,0,.08)}
.wlh-influencer-badge span{font-size:15px;color:#9b6b00}
.wlh-influencer-program-panel{border-color:rgba(113,129,82,.32);background:linear-gradient(145deg,#fff,#f6f8f0)}
.wlh-influencer-program-panel.is-active{border-color:#718152;box-shadow:0 12px 34px rgba(113,129,82,.14)}
.wlh-influencer-program-panel h2{display:flex;align-items:center;gap:7px}
.wlh-crown{color:#c99b22;font-size:24px;line-height:1}
.wlh-influencer-pill{display:inline-flex;align-items:center;gap:6px;padding:8px 11px;border-radius:999px;background:#f7e6a5;color:#695000;font-size:11px;font-weight:900}
.wlh-influencer-code-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0;padding:12px 14px;border:1px solid #dbe3cd;border-radius:13px;background:#fbfcf8}
.wlh-influencer-code-row>span{font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:#718152}
.wlh-influencer-code-row>div{display:flex;align-items:center;gap:8px}
.wlh-influencer-code-row code{padding:8px 10px;border-radius:8px;background:#eef2e5;color:#4d5d31;font-weight:900}
.wlh-influencer-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.wlh-influencer-benefits span{display:grid;gap:3px;padding:13px;border-radius:12px;background:#f3f6ec;color:#66734e;font-size:11px}
.wlh-influencer-benefits strong{font-size:20px;color:#718152}
.wlh-influencer-qualify-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px;border-radius:13px;background:#f4f7ed;border:1px solid #dce5cf}
.wlh-influencer-qualify-row>strong{font-size:22px;color:#718152}
.wlh-influencer-qualify-row>span{font-size:12px;color:#64748b;margin-right:auto}
.wlh-influencer-progress{display:grid;gap:9px;padding:14px;border:1px solid #dce5cf;border-radius:13px;background:#f7f9f3}
.wlh-influencer-progress>div:first-child{display:flex;align-items:baseline;gap:6px}
.wlh-influencer-progress strong{font-size:22px;color:#718152}
.wlh-influencer-progress span{font-size:12px;color:#64748b}
.wlh-influencer-progress .wlh-progress-track{margin:0;background:#e2e8d8}
.wlh-influencer-progress .wlh-progress-track span{background:#718152}
.wlh-is-influencer .wlh-stat-icon,.wlh-is-influencer .wlh-icon-circle,.wlh-is-influencer .wlh-opportunity-icon{background:rgba(113,129,82,.12);color:#718152}
.wlh-is-influencer .wlh-progress-track span{background:#718152}
@media(max-width:720px){
  .wlh-influencer-benefits{grid-template-columns:1fr}
  .wlh-influencer-code-row{align-items:flex-start;flex-direction:column}
  .wlh-influencer-code-row>div{width:100%}
  .wlh-influencer-code-row code{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
}


/* 1.9.4 full-width progress/referral cards + level-aware dashboard frame */
.wlh-loyalty-dashboard{border:3px solid var(--wlh-dashboard-color,#94CE94);border-radius:24px;overflow:hidden;box-sizing:border-box;padding-left:18px;padding-right:18px;}
.wlh-dashboard-grid-top{grid-template-columns:1fr!important;}
.wlh-dashboard-grid-top>.wlh-panel{width:100%;box-sizing:border-box;}
.wlh-level-panel,.wlh-referral-panel{grid-column:1 / -1;}
.wlh-referral-panel .wlh-copy-row{align-items:stretch;width:100%;}
.wlh-referral-panel .wlh-copy-row input{width:100%;min-width:0;flex:1 1 auto;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.wlh-referral-panel .wlh-copy-row .wlh-copy-btn{flex:0 0 auto;min-width:112px;white-space:nowrap;padding:11px 15px;color:#fff!important;background:var(--wlh-accent);border-color:var(--wlh-accent);}
.wlh-referral-panel .wlh-copy-row .wlh-copy-btn:hover,.wlh-referral-panel .wlh-copy-row .wlh-copy-btn:focus{color:#fff!important;background:#0b7779;border-color:#0b7779;}
@media(max-width:640px){
  .wlh-loyalty-dashboard{padding-left:9px;padding-right:9px;border-radius:24px;}
  .wlh-dashboard-grid-top{gap:14px;}
  .wlh-referral-panel .wlh-copy-row{display:grid;grid-template-columns:1fr;}
  .wlh-referral-panel .wlh-copy-row .wlh-copy-btn{width:100%;min-width:0;}
  .wlh-referral-panel .wlh-copy-row input{text-overflow:clip;font-size:12px;}
}
