/* Shared customer-page theme. Loaded after legacy styles. */
:root{--brand:#c81024;--brand-dark:#8e0b1c;--brand-soft:#fff0f2;--brand-border:#efdce0;--brand-gradient:linear-gradient(135deg,#e5293c,#c81024 55%,#8e0b1c);--yellow:var(--brand);--yellow-deep:var(--brand-dark);--gold:var(--brand);--gold-hi:#f36a79;--gold-deep:var(--brand-dark);--gold-ink:#fff;--shadow:0 10px 28px rgba(67,18,29,.08)}
body,.app-shell{background:#f8f6f7;color:#271e22}
.topbar,body[data-active="team"] .topbar,body[data-active="my"] .topbar{background:var(--brand-gradient);box-shadow:0 5px 18px #8e0b1c24}
.topbar .icon-btn{color:#fff}.topbar h1{font-size:20px}
.panel,.list,.table-wrap,.info-panel,.purchase-card,.team-level-overview,.team-members,.profile-menu,.transaction-history-card{border:1px solid var(--brand-border);border-radius:17px;background:#fff;box-shadow:var(--shadow)}
.btn{border-radius:12px;touch-action:manipulation}
.btn-primary,.product-card .btn,.amount-choice.active,.tab.active,.team-tab.active{background:var(--brand-gradient)!important;color:#fff!important;border-color:var(--brand-dark)!important;box-shadow:0 7px 17px #a90d2029;text-shadow:none;animation:none}
.btn-primary:hover,.product-card .btn:hover{background:var(--brand-dark)!important}
.panel-title svg,.list-row>svg,.stat strong,.level-card b,.price,.info-panel h2 svg,.info-item>svg,.info-contact strong,.purchase-notice svg{color:var(--brand)}
.level-card,.amount-choice,.copy-row,.radio-row,.team-tab{background:#fff8f9;border-color:var(--brand-border)}
.amount-card{background:linear-gradient(125deg,#49101e,#94162a);border-radius:18px}.amount-card:after{border-color:#e64055;background:transparent}.amount-card span{color:#f3dce2}
.input-wrap{border-color:#e7d9de;border-radius:12px}.input-wrap input,.input-wrap select{min-width:0}.input-wrap:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px #c8102414}
.radio-row input{accent-color:var(--brand)}
.team-overview,.info-hero,.company-page .info-hero{background:linear-gradient(145deg,#fff,#fff0f2);border-color:var(--brand-border);box-shadow:var(--shadow)}
.team-stat,.team-level-stat,.team-level-heading,.team-level-metrics>div,.team-member,.info-item,.support-link{border-color:var(--brand-border)}
.team-stat span,.team-level-metrics span,.team-level-heading span,.team-member small,.info-hero p,.info-item span,.info-contact,.support-link small,.info-notice,.purchase-product-head span,.purchase-details dt{color:#78666f}
.team-stat strong,.team-level-metrics strong,.purchase-product-head strong,.purchase-details dd{color:var(--brand)!important}
.team-empty{color:#8b7780}.team-empty-icon,.member-avatar,.support-hero-icon,.support-link-icon,.support-link-icon.channel{background:var(--brand-soft);color:var(--brand)}
.profile-gold-card{color:#fff;background:linear-gradient(135deg,#e32940 0%,#bb1029 50%,#700c20 100%);border-color:#a60e25;box-shadow:0 14px 30px #700c2030}
.profile-identity img,.company-page .info-hero img{border-color:#fff;mix-blend-mode:normal}.profile-identity>div{min-width:0}.profile-user-name{max-width:100%}
.vip-badge{background:#ffffff26;color:#fff;box-shadow:none;border:1px solid #ffffff40}
.profile-user-details{background:#ffffff12;border-color:#ffffff30}.profile-user-details span{color:#ffe2e7}.profile-user-details b{overflow-wrap:anywhere}.profile-totals{border-color:#ffffff35}
.profile-menu-row{border-color:#f2e5e9}.profile-menu-row:hover{background:#fff6f8}.profile-menu-row>svg{color:#b48b98}.profile-menu-row.sign-out strong{color:var(--brand)}
.profile-menu-row .profile-menu-icon{background:var(--brand-soft)!important;color:var(--brand)!important}
.info-hero h2{color:#701329}.company-page .info-panel{border-top-color:var(--brand)}
.purchase-product-head,.purchase-product-head img,.purchase-details,.purchase-details div{border-color:var(--brand-border)}
.purchase-product-head h2{color:#35232b}.purchase-details,.purchase-notice{background:#fff3f5}.purchase-notice{color:#794251}.btn-light{background:#f5f0f2;color:#65515b;border-color:#e7d9de}
.transaction-history-icon.recharge,.transaction-history-icon.withdrawal{background:var(--brand-soft);color:var(--brand);box-shadow:none}
.transaction-history-title strong,.transaction-amount-breakdown b{color:#35232b}.transaction-history-main>p,.transaction-history-meta,.transaction-amount-breakdown,.history-empty p,.collection-empty p{color:#78666f}
.transaction-history-meta svg{color:var(--brand)}.status,.status.pending,.transaction-history-card .status.pending{background:#f4e7ed;color:#85324e}.status.success,.status.active,.status.paid{background:#dcfce7;color:#166534}.status.failed,.status.rejected,.status.blocked{background:#fee2e2;color:#991b1b}
.history-empty,.collection-empty{box-shadow:var(--shadow)}.collection-footer{color:#794251}.collection-card .product-title{border-color:var(--brand-border)}
.stat{border-color:var(--brand-border)}th{background:#fff0f2}.segmented a.active{background:var(--brand-gradient);color:#fff;box-shadow:none}
.bottom-nav{border-top:1px solid #f0e3e7;box-shadow:0 -5px 22px #47121d0d;padding-bottom:env(safe-area-inset-bottom);height:calc(76px + env(safe-area-inset-bottom))}.app-shell{padding-bottom:calc(90px + env(safe-area-inset-bottom))}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
@media(max-width:600px){
.container{padding:16px}.panel{padding:18px}.topbar{height:52px;padding:0 10px;grid-template-columns:44px minmax(0,1fr) 44px}.topbar h1{font-size:17px;line-height:1.2}.topbar .icon-btn{width:44px;height:44px;padding:10px}.topbar .icon-btn svg{width:24px;height:24px}.topbar .topbar-logo{width:28px;height:28px;padding:3px}
.container input,.container select,.container textarea{font-size:16px}.container .btn{min-height:46px}.copy-row{gap:6px;padding:7px}.copy-row .btn{font-size:12px;padding:0 12px;flex-shrink:0}
.profile-gold-card{min-height:0;padding:24px 20px}.profile-gold-card h2{font-size:34px;overflow-wrap:anywhere}.profile-totals{flex-wrap:wrap}.profile-user-details div{gap:10px}
.transaction-history-card{padding:14px;gap:10px}.transaction-history-title{flex-wrap:wrap;gap:6px}.transaction-amount-breakdown{flex-wrap:wrap;gap:6px 14px}
.purchase-product-head>div{min-width:0}.purchase-product-head h2{overflow-wrap:anywhere}.purchase-details dd{overflow-wrap:anywhere}.list-row>div{min-width:0}.list-row strong,.list-row small{overflow-wrap:anywhere}
}
@media(max-width:360px){.container{padding:12px}.panel{padding:15px}.team-tabs{gap:6px}.purchase-product-head img{width:86px;height:80px}.purchase-actions{grid-template-columns:1fr}.level-card{padding:14px 4px}.profile-identity{gap:10px}.profile-identity img{width:60px;height:60px}}
@media(prefers-reduced-motion:reduce){.profile-glow,.team-empty-icon{animation:none}}.topbar h1{color:#fff}.topbar,.hero,.brand-avatar,.amount-card{border-color:#e9bdc6}.brand-avatar{box-shadow:0 4px 12px #8e0b1c20}.segmented{background:#f2e8ec;border-color:var(--brand-border);box-shadow:none}.segmented a{color:#70515f}.bottom-nav{background:#fff}.avatar{background:var(--brand-dark);color:#fff}.profile-card{background:linear-gradient(135deg,#ffe8ed,#fff)}
.product-buy-limit{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px 12px;margin:0 0 12px;padding:10px 11px;border:1px solid #f0dce1;border-radius:9px;background:#fff5f7;color:#78525e;font-size:12px}.product-buy-limit b{color:#a50e25}.product-locked .product-image>img{filter:blur(2px);opacity:.65;user-select:none}.product-card .btn:disabled,.product-card .btn:disabled:hover{background:linear-gradient(135deg,#b8a1a8,#8b717a)!important;color:#fff!important;box-shadow:none;cursor:not-allowed;transform:none}.product-card .btn:disabled svg{width:16px;height:16px}

.product-image{position:relative;min-width:0;overflow:hidden;border-radius:10px;background:#fff}
.product-card .product-image>img{display:block;width:100%;height:155px;object-fit:cover;border:1px solid #f0e1e2;border-radius:10px;box-shadow:none}
.product-image-lock{position:absolute;inset:0;display:grid;place-items:center;color:#fff;background:rgba(55,12,24,.08)}
.product-image-lock svg{width:48px;height:48px;padding:10px;background:rgba(117,12,33,.88);border:1px solid rgba(255,255,255,.75);border-radius:50%;box-shadow:0 4px 14px #39071330}
@media(max-width:600px){.product-card .product-image>img{height:125px}}/* Compact home header, matching the customer-page top bar. */
.home-head{position:sticky;top:0;z-index:20;min-height:52px;padding:6px 12px;gap:12px;background:var(--brand-gradient);color:#fff;border-bottom:1px solid #ffffff26;box-shadow:0 4px 14px #8e0b1c24}
.home-head .home-brand{min-width:0;gap:8px;align-items:center}
.home-head .home-brand>div{min-width:0}
.home-head .home-brand .brand-logo{width:30px;height:30px;flex:0 0 30px;border:1px solid #ffffff70;border-radius:7px!important;object-fit:cover!important}
.home-head .home-brand b{line-height:18px}.home-head .home-brand b:after{font-size:15px;color:#fff;letter-spacing:.04em}
.home-head .home-brand small{display:block;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#ffe6eb;font-size:11px;line-height:15px}
.home-head .balance-pill{flex-shrink:0;padding:6px 10px;border:1px solid #ffffff45;border-radius:10px;background:#ffffff18;color:#fff;font-size:13px;line-height:20px;box-shadow:none}
@media(max-width:360px){.home-head{padding-left:10px;padding-right:10px;gap:8px}.home-head .home-brand small{max-width:125px}}
/* Full-width home banner without a header or text overlay. */
.home-hero{width:100%;min-height:0;margin:0 0 12px;border:0;border-radius:0 0 10px 10px;box-shadow:none;overflow:hidden;background:#650a10}
.home-hero>img{display:block;width:100%;height:auto;object-fit:contain;object-position:center;filter:none}
.home-hero:after{display:none}
