/* 22 · 预付卡余额与到期 ——「暖棕卡包」：玫瑰金 / 叠放卡片 / 到期环 / 钱包质感 */
.gl12[data-page="prepaid-balance-check"] {
    --a1: #a45b3c;
    --a1-deep: #7a3c26;
    --a1-soft: #f9ece4;
    --a2: #9a7b2f;
    --a2-soft: #f8f1dd;
    --font-display: var(--gl-serif);
    --font-num: var(--gl-mono);
    --page-bg: radial-gradient(1000px 420px at 86% -8%, #f5e6d8 0, transparent 60%), #faf7f2;
}
:root[data-theme="dark"] .gl12[data-page="prepaid-balance-check"] {
    --a1: #e6a988;
    --a1-deep: #f2c3a8;
    --a1-soft: rgba(230, 169, 136, .14);
    --a2: #e8c977;
    --a2-soft: rgba(232, 201, 119, .13);
    --page-bg: radial-gradient(1000px 420px at 86% -8%, rgba(130, 75, 45, .22) 0, transparent 60%), #14100d;
}

.pb-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr); gap: 32px; padding: 28px 0 26px; align-items: start; }
.pb-hero-copy { padding-top: 12px; }
.pb-hero .gl-h1 { font-size: clamp(33px, 4.2vw, 48px); letter-spacing: -.035em; }
.pb-hero .gl-h1 em { font-size: .72em; color: var(--a1); }
.pb-hero .gl-sub { max-width: 47ch; }
.pb-hero .gl-value { border-radius: 6px; }
.pb-hero-wallet { position: relative; height: 92px; margin-top: 26px; }
.pb-hero-wallet span {
    position: absolute; width: 150px; height: 88px; border-radius: 14px;
    background: linear-gradient(135deg, var(--a1), var(--a2)); opacity: .85;
    box-shadow: var(--gl-shadow); transform: rotate(-8deg);
}
.pb-hero-wallet span:nth-child(2) { left: 42px; top: 8px; opacity: .6; transform: rotate(2deg); }
.pb-hero-wallet span:nth-child(3) { left: 84px; top: 16px; opacity: .38; transform: rotate(10deg); }
:root[data-theme="dark"] .pb-hero-wallet span { opacity: .5; }

.pb-console { background: var(--gl-card); border: 1px solid var(--gl-line); border-radius: 20px; padding: 22px; box-shadow: var(--gl-shadow-2); }
.pb-console-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.pb-console-h b { font-size: 18px; font-weight: 800; }
.pb-console-h span { font-size: 12px; color: var(--gl-mute); }
.pb-console .gl-ta { min-height: 108px; background: var(--gl-card-2); }
.pb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 13px; }
.pb-grid .gl-input { font-family: var(--font-num); }
.pb-console-actions { margin-top: 14px; }
.pb-console-actions .gl-btn-main { flex: 1 1 150px; }
.pb-console .gl-msg { border-top: 1px dashed var(--gl-line); padding-top: 10px; margin-top: 13px; }

.pb-kpis { margin-bottom: 18px; }
.pb-wallet { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.pb-card {
    position: relative; border-radius: 18px; padding: 18px; min-height: 178px; color: #fff;
    background: linear-gradient(135deg, var(--a1) 0%, var(--a1-deep) 58%, #6b4a2a 100%);
    box-shadow: 0 12px 28px rgba(120, 62, 36, .22); overflow: hidden;
}
.pb-card:nth-child(3n+2) { background: linear-gradient(135deg, #8d6a2f 0%, #735226 55%, #4b3a21 100%); }
.pb-card:nth-child(3n+3) { background: linear-gradient(135deg, #466f6a 0%, #2f5551 55%, #213c3c 100%); }
.pb-card::after { content: ''; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); }
.pb-card-chip { width: 34px; height: 25px; border-radius: 6px; background: linear-gradient(135deg, #f3d9a6, #c79f56); opacity: .9; margin-bottom: 12px; }
.pb-card h3 { margin: 0; font-size: 16px; font-weight: 800; }
.pb-card .type { font-size: 11.5px; opacity: .78; }
.pb-card .big { font: 800 32px var(--font-num); display: block; margin: 8px 0 2px; letter-spacing: -.03em; }
.pb-card .big small { font-size: 13px; font-weight: 600; }
.pb-card .rows { display: grid; gap: 3px; font-size: 12px; opacity: .92; }
.pb-card .rows div { display: flex; justify-content: space-between; gap: 8px; }
.pb-card .flag { position: absolute; right: 14px; top: 14px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.2); padding: 3px 9px; border-radius: 99px; }
.pb-final { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--gl-line); }
.pb-batch { min-height: 66px; }
.pb-batch-actions { margin-top: 12px; }
#pbTable td.num { font-variant-numeric: tabular-nums; }

@media (max-width: 980px) {
    .pb-hero { grid-template-columns: 1fr; gap: 20px; }
    .pb-hero-copy { padding-top: 0; }
    .pb-hero-wallet { display: none; }
    .pb-console { max-width: 720px; }
}
@media (max-width: 600px) {
    .pb-grid { grid-template-columns: 1fr; }
    .pb-hero .gl-h1 { font-size: 31px; }
}
