/* ---------- splash & brand ---------- */
.splash { flex: 1; margin-top: -34px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; background: var(--g-brand); }
.splash-badge { background: #fff; border-radius: 28px; padding: 22px 28px; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); }
.splash-app { color: #fff; font-weight: 700; font-size: 18px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 8px; direction: ltr; }
.brand-lockup img { height: 40px; }
.brand-word { font-weight: 700; font-size: 28px; color: var(--c-text-brand); }
.brand-logo { height: 52px; display: block; }
.brand-lg.brand-lockup img { height: 56px; }
.brand-lg .brand-word { font-size: 36px; }
.brand-lg.brand-logo { height: 72px; }
.brand-sm.brand-lockup img { height: 26px; }
.brand-sm .brand-word { font-size: 20px; }
.brand-sm.brand-logo { height: 36px; }

/* ---------- guide & auth ---------- */
.guide, .auth { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 16px 24px 28px; background: #fff; }
.auth.center, .guide { align-items: center; text-align: center; }
.guide-top { align-self: stretch; display: flex; justify-content: flex-end; }
.guide-art { width: 160px; height: 160px; margin: 36px auto 12px; border-radius: 50%; background: var(--g-brand); color: #fff; display: grid; place-items: center; }
.guide-title, .auth-title { font-size: 22px; font-weight: 700; }
.guide-text, .auth-sub { font-size: 14px; color: var(--c-text-secondary); line-height: 1.6; }
.guide .btn { margin-top: auto; }
.dots { display: flex; gap: 6px; justify-content: center; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--c-border-1); transition: width .2s; }
.dots i.on { width: 18px; background: var(--c-primary); }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 36px 0 18px; }
.auth .link { align-self: center; }
.auth-foot { margin-top: auto; text-align: center; font-size: 14px; color: var(--c-text-secondary); }
.center-card { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; color: var(--c-primary); }

/* ---------- customer home ---------- */
.home-hero { margin-top: -34px; padding: 44px 16px 22px; background: var(--g-brand); color: #fff; display: flex; flex-direction: column; gap: 18px; }
.top-search { display: flex; align-items: center; gap: 10px; }
.top-search .avatar { width: 36px; height: 36px; background: rgba(255, 255, 255, .25); color: #fff; font-size: 13px; }
.search-pill { flex: 1; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 18px; background: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .92); font-size: 14px; }
.search-pill.light { background: #fff; color: var(--c-text-secondary); flex: none; }
.on-brand { color: #fff; }
.balance-label { display: flex; align-items: center; gap: 6px; font-size: 13px; opacity: .92; }
.balance-value { font-size: 28px; font-weight: 700; margin-top: 4px; }
.eye { color: #fff; display: grid; place-items: center; }
.home-body { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.tips { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; background: var(--c-primary-soft); color: var(--c-text-general); font-size: 12px; }
.tips .ic { color: var(--c-primary); }
.banner { position: relative; overflow: hidden; border-radius: 8px; height: 96px; flex: none; }
.banner-track { display: flex; height: 100%; transition: transform .4s; }
.banner-slide { flex: 0 0 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; color: #fff; }
.banner-slide.b1 { background: var(--g-brand); }
.banner-slide.b2 { background: linear-gradient(135deg, #FA9A19, #FF650C); }
.banner-slide.b3 { background: linear-gradient(135deg, #FF650C, #E6011E); }
.banner-title { font-weight: 700; font-size: 16px; }
.banner-text { font-size: 12px; opacity: .92; margin-top: 4px; }
.banner-dots { position: absolute; bottom: 8px; inset-inline: 0; display: flex; justify-content: center; gap: 4px; }
.banner-dots i { width: 6px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .5); }
.banner-dots i.on { width: 14px; background: #fff; }
.tx-strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.tx-card { flex: 0 0 140px; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 8px; background: var(--c-primary-soft); text-align: start; font-size: 13px; }
.tx-card .ic { color: var(--c-primary); }
.tx-card-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-card-date { font-size: 11px; color: var(--c-text-secondary); }
.money.in { color: var(--c-success); }
.tx-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border-bottom: 1px solid var(--c-border-2); background: #fff; text-align: start; }
.tx-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-weight: 600; font-size: 14px; }

/* ---------- cards / my headers ---------- */
.cards-head, .my-head { margin-top: -34px; padding: 50px 16px 20px; background: var(--g-brand); color: #fff; display: flex; flex-direction: column; gap: 18px; }
.user-row { display: flex; align-items: center; gap: 12px; color: #fff; text-align: start; width: 100%; }
.user-row .avatar { background: rgba(255, 255, 255, .25); color: #fff; width: 52px; height: 52px; }
.user-meta { flex: 1; display: flex; flex-direction: column; }
.user-name { font-size: 18px; font-weight: 700; }
.user-phone { font-size: 13px; opacity: .92; }
.bank-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, #3A3A3A, #686868); color: #fff; text-align: start; width: 100%; }
.bank-card-top { display: flex; justify-content: space-between; font-weight: 600; }
.bank-card-no { font-size: 20px; letter-spacing: 2px; }
.bank-card-holder { font-size: 12px; opacity: .8; }
.tag.on-card { background: rgba(255, 255, 255, .2); color: #fff; }

/* ---------- payment forms ---------- */
.party { display: flex; align-items: center; gap: 12px; }
.party-name { font-size: 16px; font-weight: 700; }
.op-line { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--c-text-general); min-height: 18px; }
.op-line .ic { color: var(--c-primary); }

/* ---------- QR & scan ---------- */
.qr-card { background: #fff; border-radius: 20px; padding: 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; border-top: 6px solid var(--c-primary); }
.qr-box { padding: 10px; border-radius: 12px; border: 1px solid var(--c-border-2); margin: 8px 0; }
.qr-name { font-size: 17px; font-weight: 700; }
.qr-actions { display: flex; gap: 28px; margin-top: 8px; }
.scan { flex: 1; margin-top: -34px; padding: 34px 20px 24px; background: #121212; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.scan-top { align-self: stretch; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; text-align: center; font-weight: 700; }
.scan-frame { position: relative; width: 240px; height: 240px; margin-top: 30px; border-radius: 16px; box-shadow: inset 0 0 0 3px var(--c-primary); overflow: hidden; }
.scan-line { position: absolute; inset-inline: 12px; height: 2px; background: var(--c-primary); box-shadow: 0 0 12px var(--c-primary); animation: scanline 2s ease-in-out infinite; }
@keyframes scanline { 0% { top: 12px; } 50% { top: 224px; } 100% { top: 12px; } }
.scan-hint { font-size: 13px; opacity: .8; }
.scan-actions { margin-top: auto; align-self: stretch; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.scan .link { color: #fff; }

/* ---------- history / search ---------- */
.detail-head { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; }
.detail-icon { width: 56px; height: 56px; border-radius: 16px; }
.detail-title { font-size: 16px; font-weight: 700; }
.chip { display: inline-flex; align-items: center; gap: 4px; }
.search-bar { grid-template-columns: 44px 1fr; gap: 4px; padding-inline-end: 12px; }
.search-bar .field-box { height: 38px; color: var(--c-text-secondary); }

/* ---------- profile / settings ---------- */
.profile-card { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.avatar-xl { position: relative; width: 72px; height: 72px; font-size: 24px; }
.avatar-cam { position: absolute; inset-inline-end: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--c-primary); color: #fff; display: grid; place-items: center; }
.about-head { display: flex; justify-content: center; padding: 24px 0 8px; }
.theme-card { display: flex; flex-direction: column; gap: 14px; }
.theme-swatches { display: flex; gap: 8px; }
.theme-swatches i { width: 28px; height: 28px; border-radius: 50%; }
.theme-preview { border: 1px solid var(--c-border-1); border-radius: 12px; overflow: hidden; }
.theme-preview-head { height: 56px; background: var(--g-brand); }
.theme-preview-body { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 12px; }
.theme-preview-body span { height: 28px; border-radius: 8px; background: var(--c-primary-soft); }

/* ---------- LyPay mini-program ---------- */
.mp-bar { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; height: 48px; padding: 0 8px; background: #fff; position: sticky; top: 0; z-index: 5; flex: none; }
.mp-title { text-align: center; font-weight: 700; }
.mp-capsule { display: flex; align-items: center; height: 30px; border: 1px solid var(--c-border-1); border-radius: 15px; padding: 0 4px; }
.mp-capsule button { width: 30px; height: 28px; display: grid; place-items: center; }
.mp-capsule i { width: 1px; height: 16px; background: var(--c-border-1); }
.mp-body { flex: 1; padding: 12px 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.mp-badge { align-self: flex-end; font-size: 11px; font-weight: 600; color: var(--c-text-secondary); border: 1px dashed var(--c-text-placeholder); border-radius: 6px; padding: 2px 8px; }
.lp-hero { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 16px; background: var(--g-brand); color: #fff; }
.lp-hero > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.lp-mark { width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; flex: none; }
.lp-title { font-size: 18px; font-weight: 700; }
.lp-sub { font-size: 12px; opacity: .92; }
.lp-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: #fff; text-align: start; width: 100%; }
.lp-pin { display: flex; flex-direction: column; min-height: 300px; }
.lp-result { padding-top: 24px; background: transparent; }

/* ---------- partner ---------- */
.p-hero { margin-top: -34px; padding: 40px 12px 56px; background: var(--g-brand); color: #fff; }
.p-top { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; }
.p-top-title { text-align: center; font-size: 18px; font-weight: 700; }
.p-balance { margin: -44px 16px 0; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .08); position: relative; }
.p-shop { display: flex; align-items: center; gap: 12px; }
.p-bal-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--c-text-secondary); }
.eye-dark { color: var(--c-text-secondary); display: grid; place-items: center; }
.p-bal-value { font-size: 26px; font-weight: 700; }
.wallet-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wallet-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; background: #fff; font-size: 13px; color: var(--c-text-secondary); }
.wallet-card strong { font-size: 17px; color: var(--c-text-main); }
.wallet-card.main { background: var(--g-brand); color: rgba(255, 255, 255, .9); }
.wallet-card.main strong { color: #fff; }

.shop-photo { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--c-primary); border: 1px dashed var(--c-primary); background: var(--c-primary-soft); }
