/* BR Credits — member wallet + the credits line on a deal page. Theme tokens with fallbacks. */
.br-wallet { --_ink: var(--br-ink, #0b1220); --_muted: var(--br-muted, #6b7280); --_line: var(--br-line, #e6e9f0); --_card: var(--br-card, #fff); --_surface: var(--br-surface, #f3f5f9); --_primary: var(--br-primary, #1E5BFF); --_deep: var(--br-deep, #0A2A8A); --_accent: var(--br-accent, #F2B134); --_r: var(--br-r, 14px); color: var(--_ink); display: grid; gap: 18px; max-width: 980px; margin: 0 auto; }
.br-wallet h4 { margin: 0 0 6px; font-size: 1rem; }
.br-wallet-top { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 18px; align-items: stretch; }
.br-wallet-card { position: relative; overflow: hidden; border-radius: 20px; padding: 22px 24px; min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #2f6bff 0%, var(--_deep) 55%, #061a5c 100%); box-shadow: 0 18px 40px -18px rgba(10, 42, 138, .7); }
.br-wallet-card::before { content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; border: 34px solid rgba(242, 177, 52, .22); }
.br-wallet-card::after { content: ""; position: absolute; right: 26px; bottom: -90px; width: 190px; height: 190px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.br-wallet-card > * { position: relative; z-index: 1; }
.br-wallet-card-head, .br-wallet-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .82rem; }
.br-wallet-brand { letter-spacing: .14em; text-transform: uppercase; font-weight: 800; } .br-wallet-brand b { color: var(--_accent); }
.br-wallet-tier { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-weight: 700; }
.br-wallet-balance small { display: block; opacity: .8; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.br-wallet-balance strong { display: block; font-size: clamp(2.2rem, 6vw, 3.1rem); line-height: 1.05; font-weight: 800; font-variant-numeric: tabular-nums; }
.br-wallet-card-foot { opacity: .92; } .br-wallet-x { padding: 3px 9px; border-radius: 999px; background: var(--_accent); color: #1a1300; font-weight: 800; }
.br-wallet-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.br-wallet-stats > div { background: var(--_card); border: 1px solid var(--_line); border-radius: var(--_r); padding: 14px 16px; display: grid; gap: 2px; align-content: center; }
.br-wallet-stats span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--_muted); font-weight: 700; }
.br-wallet-stats b { font-size: 1.45rem; font-variant-numeric: tabular-nums; } .br-wallet-stats small { color: var(--_muted); font-size: .78rem; }
.br-wallet-actions { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.br-wallet-action { background: var(--_card); border: 1px solid var(--_line); border-radius: var(--_r); padding: 18px; display: grid; gap: 10px; align-content: start; margin: 0; }
.br-wallet-action.primary { border-color: var(--_primary); background: linear-gradient(180deg, rgba(30, 91, 255, .06), var(--_card) 60%); }
.br-wallet-action h4 em { font-style: normal; font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--_accent); color: #1a1300; margin-left: 6px; vertical-align: middle; }
.br-wallet-action p { margin: 0; color: var(--_muted); font-size: .92rem; } .br-wallet-action p b { color: var(--_ink); }
.br-wallet-action input[type=email] { font: inherit; font-size: .92rem; padding: 9px 12px; border: 1px solid var(--_line); border-radius: 10px; background: var(--_card); color: var(--_ink); width: 100%; box-sizing: border-box; }
.br-wallet-action button[disabled], .br-wallet-action input[disabled] { opacity: .5; cursor: not-allowed; }
.br-wallet-action .br-btn { justify-self: start; }
.br-wallet-inreview { color: #92400e !important; font-weight: 700; }
.br-wallet-how, .br-wallet-history, .br-wallet-guest { background: var(--_card); border: 1px solid var(--_line); border-radius: var(--_r); padding: 18px; }
.br-wallet-how ol { list-style: none; counter-reset: s; margin: 10px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.br-wallet-how li { counter-increment: s; background: var(--_surface); border-radius: 12px; padding: 12px 12px 12px 44px; position: relative; display: grid; gap: 2px; }
.br-wallet-how li::before { content: counter(s); position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--_deep); color: #fff; font-size: .78rem; font-weight: 800; display: grid; place-items: center; }
.br-wallet-how li b { font-size: .9rem; } .br-wallet-how li span { font-size: .82rem; color: var(--_muted); }
.br-wallet-history table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.br-wallet-history th { text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--_muted); padding: 8px 10px; border-bottom: 1px solid var(--_line); }
.br-wallet-history td { padding: 10px; border-bottom: 1px solid var(--_line); } .br-wallet-history .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.br-wallet-state { font-size: .74rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: var(--_surface); color: var(--_muted); }
.s-available .br-wallet-state, .s-paid .br-wallet-state, .s-spent .br-wallet-state { background: #dcfce7; color: #166534; } .s-pending .br-wallet-state, .s-requested .br-wallet-state, .s-applying .br-wallet-state { background: #fef3c7; color: #92400e; } .s-void .br-wallet-state { background: #fee2e2; color: #991b1b; } .s-void .num { text-decoration: line-through; color: var(--_muted); }
.br-wallet-empty { color: var(--_muted); margin: 0; }
.br-wallet-note { margin: 0; padding: 12px 16px; border-radius: 12px; font-weight: 600; } .br-wallet-note.ok { background: #dcfce7; color: #166534; } .br-wallet-note.bad { background: #fee2e2; color: #991b1b; }
.br-wallet-terms { font-size: .86rem; color: var(--_muted); } .br-wallet-terms summary { cursor: pointer; font-weight: 700; color: var(--_ink); } .br-wallet-terms p { margin: 8px 0 0; }
.br-credits-line { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: linear-gradient(90deg, #fff8e6, #fff); border: 1px solid #f6dfae; font-size: .9rem; color: #5b4300; } .br-credits-coin { color: #b7791f; font-weight: 800; }
@media (max-width: 820px) { .br-wallet-top, .br-wallet-actions { grid-template-columns: 1fr; } .br-wallet-how ol { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .br-wallet-how ol, .br-wallet-stats { grid-template-columns: 1fr; } .br-wallet-history th:first-child, .br-wallet-history td:first-child { display: none; } }

/* top-bar balance pill */
.br-credits-pill { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 5px; border-radius: 999px; background: linear-gradient(135deg, #0A2A8A, #1E5BFF); color: #fff !important; text-decoration: none !important; font-size: .88rem; line-height: 1; box-shadow: 0 6px 16px -8px rgba(10, 42, 138, .8); transition: transform .15s ease, box-shadow .15s ease; white-space: nowrap; }
.br-credits-pill:hover, .br-credits-pill:focus-visible { transform: translateY(-1px); box-shadow: 0 10px 20px -8px rgba(10, 42, 138, .9); }
.br-credits-pill-coin { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .62rem; font-weight: 900; letter-spacing: .02em; color: #3b2a00; background: radial-gradient(circle at 30% 30%, #ffe9a8, #F2B134 60%, #c98a12); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); }
.br-credits-pill-amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.br-credits-pill-label { opacity: .8; font-weight: 600; font-size: .78rem; }
.br-credits-pill-dot { position: absolute; top: 3px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #F2B134; box-shadow: 0 0 0 2px #1E5BFF; }
.cllacc-credits .cllacc-meta, .cllacc-credits [class*="meta"] { color: #b7791f; font-weight: 700; }
@media (max-width: 720px) { .br-credits-pill-label { display: none; } .br-credits-pill { padding-right: 11px; } }
