/* 会员中心 */
.mb-page { display: flex; flex-direction: column; gap: 22px; max-width: 1280px; }

.mb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 1px solid transparent; background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff;
    border-radius: 10px; padding: 9px 18px; font-weight: 700; font-size: .85rem; cursor: pointer;
    box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .55); transition: transform .15s, box-shadow .15s, opacity .15s;
    text-decoration: none;
}
.mb-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(79, 70, 229, .6); }
.mb-btn:disabled { cursor: default; opacity: .6; transform: none; }
.mb-btn-soft { background: #eef2ff; color: #4338ca; box-shadow: none; }
.mb-btn-soft:hover:not(:disabled) { background: #e0e7ff; box-shadow: none; }
.mb-btn-line { background: #fff; color: #64748b; border-color: #e2e8f0; box-shadow: none; }
.mb-btn-line:hover:not(:disabled) { box-shadow: none; }
.mb-btn-lg { width: 100%; padding: 12px 18px; font-size: .92rem; border-radius: 12px; }

.mb-notice { padding: 12px 16px; border-radius: 12px; background: #fffbeb; color: #b45309; border: 1px solid #fde68a; font-size: .85rem; }
.mb-notice-err { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

/* 顶部概览 */
.mb-hero {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: 0;
    border-radius: 18px; color: #fff;
    background: radial-gradient(circle at 12% 0%, rgba(167, 139, 250, .45), transparent 45%),
                radial-gradient(circle at 100% 100%, rgba(56, 189, 248, .25), transparent 40%),
                linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #4c1d95 100%);
    box-shadow: 0 18px 40px -20px rgba(49, 46, 129, .7);
}
.mb-hero > div { padding: 24px 28px; }
.mb-hero > div + div { border-left: 1px solid rgba(255, 255, 255, .12); }
.mb-hero-label { font-size: .74rem; letter-spacing: .08em; color: rgba(224, 231, 255, .7); margin-bottom: 10px; }
.mb-hero-name { font-size: 1.7rem; font-weight: 800; letter-spacing: .02em;
    background: linear-gradient(90deg, #fff, #fde68a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mb-hero-sub { margin-top: 8px; font-size: .82rem; color: rgba(224, 231, 255, .85); line-height: 1.6; }
.mb-hero-money { font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.mb-hero-money span { font-size: 1rem; margin-right: 2px; opacity: .8; }
.mb-hero-btn {
    margin-top: 14px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); color: #fff;
    border-radius: 999px; padding: 6px 16px; font-size: .8rem; font-weight: 700; cursor: pointer; backdrop-filter: blur(4px);
}
.mb-hero-btn:hover { background: rgba(255, 255, 255, .2); }

.mb-meter + .mb-meter { margin-top: 12px; }
.mb-meter-top { display: flex; justify-content: space-between; font-size: .8rem; color: rgba(224, 231, 255, .85); margin-bottom: 6px; }
.mb-meter-top b { color: #fff; font-weight: 700; }
.mb-meter-top em { font-style: normal; font-weight: 500; color: rgba(224, 231, 255, .6); }
.mb-meter-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.mb-meter-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a5b4fc, #f0abfc); }

/* 区块 */
.mb-section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
.mb-section-title { font-size: 1.05rem; font-weight: 800; color: #0f172a; }
.mb-section-desc { font-size: .78rem; color: #94a3b8; margin-top: 3px; }

/* 套餐卡 */
.mb-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mb-plan {
    position: relative; display: flex; flex-direction: column;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 22px 18px 18px;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.mb-plan:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgba(15, 23, 42, .25); }
.mb-plan.is-rec {
    border: 1.5px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #6366f1, #a855f7) border-box;
    box-shadow: 0 16px 36px -20px rgba(99, 102, 241, .55);
}
.mb-plan.is-cur { border-color: #a5b4fc; background: #fafaff; }
.mb-tag {
    position: absolute; top: -10px; right: 16px; padding: 3px 10px; border-radius: 999px;
    font-size: .7rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 4px 10px -4px rgba(249, 115, 22, .7);
}
.mb-tag-cur { background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 4px 10px -4px rgba(79, 70, 229, .7); }
.mb-plan-name { font-size: 1rem; font-weight: 800; color: #0f172a; }
.mb-plan-tagline { font-size: .76rem; color: #94a3b8; margin-top: 3px; min-height: 1.1em; }
.mb-price { display: flex; align-items: baseline; gap: 2px; margin-top: 16px; color: #0f172a; }
.mb-price-cur { font-size: .95rem; font-weight: 700; }
.mb-price-num { font-size: 1.75rem; font-weight: 800; letter-spacing: -.01em; }
.mb-price-per { font-size: .78rem; color: #94a3b8; margin-left: 4px; }
.mb-plan.is-rec .mb-price { color: #4338ca; }
.mb-price-hint { font-size: .74rem; color: #94a3b8; margin-top: 2px; min-height: 1.1em; }
.mb-plan-action { margin: 16px 0 14px; }
.mb-plan-action .mb-btn { width: 100%; }
.mb-feats { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px dashed #e2e8f0; display: flex; flex-direction: column; gap: 9px; }
.mb-feats li { display: flex; gap: 8px; align-items: center; font-size: .8rem; color: #334155; line-height: 1.45; white-space: nowrap; }
.mb-feats li b { color: #0f172a; }
.mb-feats li.off { color: #cbd5e1; }
.mb-tick {
    flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .62rem; font-weight: 900; background: #eef2ff; color: #4f46e5;
}
.mb-feats li.off .mb-tick { background: #f1f5f9; color: #cbd5e1; }

.mb-custom {
    margin-top: 14px; display: flex; align-items: center; gap: 18px;
    background: #fff; border: 1px dashed #cbd5e1; border-radius: 16px; padding: 16px 20px;
}
.mb-custom-name { font-size: .95rem; font-weight: 800; color: #0f172a; display: flex; align-items: center; gap: 8px; }
.mb-custom-desc { font-size: .76rem; color: #94a3b8; margin-top: 3px; }
.mb-custom-bits { flex: 1; font-size: .78rem; color: #475569; display: flex; flex-wrap: wrap; gap: 6px 0; }
.mb-dot { color: #cbd5e1; margin: 0 8px; }
.mb-mini-tag { font-size: .68rem; font-weight: 800; color: #4338ca; background: #eef2ff; border-radius: 999px; padding: 2px 8px; }
.mb-custom .mb-btn { width: auto; flex-shrink: 0; }

/* 充值 */
.mb-topup {
    display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 18px 20px;
}
.mb-topup > .mb-btn { width: auto; min-width: 200px; margin-left: auto; }
.mb-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.mb-chip {
    display: inline-flex; align-items: baseline; gap: 2px;
    min-width: 96px; justify-content: center; padding: 12px 16px; border-radius: 12px;
    border: 1.5px solid #e2e8f0; background: #fff; color: #0f172a; font-size: 1.05rem; font-weight: 800; cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.mb-chip span { font-size: .8rem; font-weight: 700; color: #94a3b8; }
.mb-chip:hover { border-color: #c7d2fe; }
.mb-chip.on { border-color: #6366f1; background: #eef2ff; color: #4338ca; }
.mb-chip.on span { color: #6366f1; }
.mb-chip-input { cursor: text; padding: 8px 14px; }
.mb-chip-input input {
    width: 96px; border: none; outline: none; background: transparent;
    font-size: 1.05rem; font-weight: 800; color: inherit;
}
.mb-chip-input input::placeholder { font-size: .85rem; font-weight: 600; color: #94a3b8; }

/* 订单 */
.mb-orders { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; }
.mb-order { display: flex; align-items: center; gap: 16px; padding: 13px 20px; }
.mb-order + .mb-order { border-top: 1px solid #f1f5f9; }
.mb-order-main { flex: 1; min-width: 0; }
.mb-order-title { font-size: .86rem; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-order-meta { font-size: .74rem; color: #94a3b8; margin-top: 3px; }
.mb-order-amt { font-size: .92rem; font-weight: 800; color: #0f172a; }
.mb-pill { min-width: 60px; text-align: center; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.mb-pill-ok { background: #ecfdf5; color: #047857; }
.mb-pill-wait { background: #fff7ed; color: #c2410c; }
.mb-pill-off { background: #f1f5f9; color: #94a3b8; }

/* 支付弹窗 */
.mb-modal-mask {
    position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center;
    background: rgba(15, 23, 42, .5); backdrop-filter: blur(3px);
}
.mb-modal {
    position: relative; width: 400px; max-width: 92vw; background: #fff; border-radius: 20px; padding: 26px 26px 24px;
    box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .45); animation: mb-pop .18s ease-out;
}
@keyframes mb-pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.mb-modal-x {
    position: absolute; right: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%;
    border: none; background: #f1f5f9; color: #64748b; font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.mb-modal-x:hover { background: #e2e8f0; }
.mb-modal-title { font-size: 1.05rem; font-weight: 800; color: #0f172a; margin-bottom: 16px; padding-right: 30px; }
.mb-modal-sub { font-size: .76rem; color: #94a3b8; margin: 18px 0 8px; }
.mb-co { background: #f8fafc; border-radius: 14px; padding: 14px 16px; }
.mb-co-row { display: flex; justify-content: space-between; font-size: .84rem; color: #64748b; padding: 4px 0; }
.mb-co-row b { color: #0f172a; font-weight: 700; }
.mb-green { color: #059669 !important; }
.mb-co-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding-top: 10px; border-top: 1px dashed #e2e8f0; font-size: .84rem; color: #64748b; }
.mb-co-total b { font-size: 1.6rem; font-weight: 800; color: #4338ca; }
.mb-channels { display: flex; flex-direction: column; gap: 8px; }
.mb-channel {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 12px;
    border: 1.5px solid #e2e8f0; background: #fff; font-size: .9rem; font-weight: 700; color: #0f172a; cursor: pointer;
    transition: border-color .15s, background .15s;
}
.mb-channel:hover:not(:disabled) { border-color: #6366f1; background: #fafaff; }
.mb-channel:disabled { opacity: .6; cursor: default; }
.mb-channel-ico { font-size: 1.1rem; }
.mb-channel-go { margin-left: auto; color: #cbd5e1; font-size: 1.2rem; }
.mb-empty-pay { margin-top: 16px; padding: 12px; border-radius: 12px; background: #fef2f2; color: #b91c1c; font-size: .84rem; text-align: center; }
.mb-result { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.mb-result .mb-btn { margin-top: 14px; }
.mb-result-ico {
    width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; background: #eef2ff; margin-bottom: 6px;
}
.mb-result-ico.ok { background: linear-gradient(135deg, #10b981, #059669); color: #fff; font-weight: 900; box-shadow: 0 10px 24px -10px rgba(5, 150, 105, .7); }
.mb-result-ico.off { background: #f1f5f9; color: #94a3b8; font-weight: 900; }
.mb-result-title { font-size: 1rem; font-weight: 800; color: #0f172a; }
.mb-result-sub { font-size: .8rem; color: #94a3b8; }
.mb-waiting::before {
    content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%;
    background: #22c55e; animation: mb-blink 1.2s infinite;
}
@keyframes mb-blink { 50% { opacity: .25; } }
.mb-qr { padding: 12px; border-radius: 16px; border: 1px solid #e2e8f0; margin-bottom: 8px; }
.mb-qr img { display: block; width: 200px; height: 200px; }

@media (max-width: 1100px) {
    .mb-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mb-custom { flex-wrap: wrap; }
}
@media (max-width: 960px) {
    .mb-hero { grid-template-columns: 1fr; }
    .mb-hero > div + div { border-left: none; border-top: 1px solid rgba(255, 255, 255, .12); }
    .mb-topup > .mb-btn { width: 100%; margin-left: 0; }
}
@media (max-width: 640px) {
    .mb-plans { grid-template-columns: 1fr; }
}
