/* Shared wallet identity: one truthful state across desktop, mobile and menu. */
.balance-card{--wallet-ink:#602236;--wallet-gold:#c39b51;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:10px;min-width:0;padding:10px 13px;border:1px solid #bd9650;border-radius:15px 5px;background:radial-gradient(ellipse at 100% 0,#fff9e6 0,transparent 65%),linear-gradient(125deg,#fff1c8,#e9cc8e);color:var(--wallet-ink);box-shadow:inset 0 0 0 2px #fff8e787,0 4px 13px #79521b17;white-space:normal;text-align:left;flex-shrink:0;transition:background .18s,border-color .18s,box-shadow .18s}
.white-dragon-theme header .header-actions>.header-balance{display:grid;width:212px;min-width:0;min-height:80px;height:auto;margin:0;padding:10px 13px!important;gap:10px}
.balance-card:hover{background:radial-gradient(ellipse at 100% 0,#fffbed 0,transparent 65%),linear-gradient(125deg,#ffe9a9,#e5c37d);border-color:#95651e;box-shadow:inset 0 0 0 2px #fff8e78a,0 5px 17px #79521b25}
.balance-card:focus-visible{outline:3px solid #76263d;outline-offset:4px}
.balance-card .wallet-card-icon{display:flex;align-items:center;justify-content:center;width:34px;height:34px;min-width:0;border:1px solid #ad7e42;border-radius:11px 3px;background:linear-gradient(140deg,#852f46,#4e172a);color:#ffe1a0;box-shadow:inset 0 0 0 2px #ffffff08}
.balance-card .wallet-card-icon svg{width:21px;height:21px;flex-shrink:0;stroke-width:1.8;color:inherit}
.balance-card .wallet-card-copy{display:flex;align-items:flex-start;flex-direction:column;gap:2px;min-width:0;width:100%}
.balance-card .wallet-card-label{display:block;max-width:100%;font-size:9px;font-weight:650;line-height:1.5;letter-spacing:.75px;text-transform:uppercase;color:#88652f;white-space:normal;overflow-wrap:anywhere}
.balance-card .wallet-card-label:before{content:"";display:inline-block;vertical-align:middle;width:5px;height:5px;border-radius:50%;background:#b38a3f;margin-right:5px;margin-top:-1px}
.balance-card[data-wallet-state=ready] .wallet-card-label:before{background:#3f7554}
.balance-card[data-wallet-state=error] .wallet-card-label:before,.balance-card[data-wallet-state=blocked] .wallet-card-label:before{background:#a13f54}
.balance-card .wallet-card-value{display:block;max-width:100%;margin:1px 0;font-family:inherit;font-size:22px;font-weight:750;line-height:1.25;letter-spacing:-.55px;font-variant-numeric:tabular-nums lining-nums;color:var(--wallet-ink);white-space:normal;word-break:normal;overflow-wrap:normal;text-overflow:clip}
.balance-card[data-wallet-size=status] .wallet-card-value{font-size:16px;line-height:1.4;letter-spacing:-.2px}
.balance-card[data-wallet-size=wide] .wallet-card-value{font-size:20px}
.balance-card[data-wallet-size=extra] .wallet-card-value{font-size:15px;letter-spacing:-.2px}
.balance-card .wallet-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-width:0;font-size:10px;font-weight:600;line-height:1.5;color:#8a5d2d}
.balance-card .wallet-card-footer>[data-wallet-action]{display:block;min-width:0;white-space:normal}
.balance-card .wallet-card-arrow{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:18px;height:18px;border-radius:50%;background:#70243b;color:#ffe8b4}
.balance-card .wallet-card-arrow svg{width:11px;height:11px;color:inherit}
.balance-card[data-wallet-state=error],.balance-card[data-wallet-state=blocked]{border-color:#b6807e;background:linear-gradient(125deg,#fff0d6,#efd8ca)}
.wallet-menu-card{display:none}
@media(min-width:769px) and (max-width:1150px) and (pointer:fine){
 .white-dragon-theme header .header-actions>.header-balance{width:190px;padding:9px 11px!important;gap:8px;grid-template-columns:30px minmax(0,1fr)}
 .header-actions>.balance-card .wallet-card-icon{width:30px;height:30px}
 .header-actions>.balance-card .wallet-card-value{font-size:20px}
 .header-actions>.balance-card[data-wallet-size=status] .wallet-card-value{font-size:15px}
 .header-actions>.balance-card[data-wallet-size=extra] .wallet-card-value{font-size:13px}
 .header-actions .account-button .kd-header-text>strong{max-width:120px}
}
@media(min-width:769px) and (max-width:1050px) and (pointer:fine){
 header .header-inner{grid-template-columns:minmax(0,1fr);grid-template-rows:64px 94px auto}
 header .header-inner>.brand{grid-column:1;grid-row:1}
 header .header-actions{grid-column:1;grid-row:2;justify-content:flex-end}
 header .header-inner>nav{grid-column:1;grid-row:3}
 .white-dragon-theme header .header-actions>.header-balance{margin-right:auto;width:212px}
}
@media(max-width:768px), (max-width:1024px) and (pointer:coarse){
 .mobile-member-strip{grid-template-columns:minmax(0,1fr) clamp(152px,45vw,238px);gap:8px}
 .white-dragon-theme header .header-actions>.header-balance{display:none!important}
 .mobile-balance-button.balance-card{display:grid;grid-template-columns:26px minmax(0,1fr);align-content:center;align-items:center;gap:3px 7px;width:100%;min-width:0;min-height:86px;padding:9px 11px;border-color:#b9924b;background:radial-gradient(ellipse at 100% 0,#fff9e6 0,transparent 65%),linear-gradient(125deg,#fff1c8,#e9cc8e);color:var(--wallet-ink)}
 .mobile-balance-button .wallet-card-icon{grid-column:1;grid-row:1;width:26px;height:26px;border-radius:8px 3px}
 .mobile-balance-button .wallet-card-icon svg{width:17px;height:17px}
 .mobile-balance-button .wallet-card-copy{display:contents}
 .mobile-balance-button .wallet-card-label{grid-column:2;grid-row:1;font-size:9px;line-height:1.5;letter-spacing:.4px;color:#805c2b}
 .mobile-balance-button .wallet-card-label:before{width:4px;height:4px;margin-right:4px}
 .mobile-balance-button .wallet-card-value{grid-column:1/-1;grid-row:2;justify-self:start;width:100%;font-size:clamp(18px,4.2vw,23px);line-height:1.3;letter-spacing:-.45px;white-space:normal;overflow-wrap:normal;word-break:normal}
 .mobile-balance-button[data-wallet-size=status] .wallet-card-value{font-size:15px;line-height:1.4;letter-spacing:-.1px}
 .mobile-balance-button[data-wallet-size=wide] .wallet-card-value{font-size:16px}
 .mobile-balance-button[data-wallet-size=extra] .wallet-card-value{font-size:14px;letter-spacing:-.15px}
 .mobile-balance-button .wallet-card-footer{grid-column:1/-1;grid-row:3;justify-self:stretch;font-size:10px;line-height:1.5}
 .mobile-balance-button .wallet-card-arrow{width:18px;height:18px}
 header.mobile-open #desktopNav>.wallet-menu-card{display:grid;grid-column:1/-1;order:-1;grid-template-columns:36px minmax(0,1fr);gap:12px;width:100%;min-height:78px;padding:11px 14px;justify-content:stretch}
 header.mobile-open .wallet-menu-card .wallet-card-icon{width:36px;height:36px}
 header.mobile-open .wallet-menu-card .wallet-card-copy{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
 header.mobile-open .wallet-menu-card .wallet-card-value{font-size:22px}
 header.mobile-open .wallet-menu-card[data-wallet-size=status] .wallet-card-value{font-size:17px}
 header.mobile-open .wallet-menu-card[data-wallet-size=extra] .wallet-card-value{font-size:16px}
 header.mobile-open .wallet-menu-card .wallet-card-label{font-size:10px}
 header.mobile-open .wallet-menu-card .wallet-card-footer{font-size:11px}
}
@media(max-width:359px){
 .mobile-member-strip{grid-template-columns:minmax(0,1fr) 146px;gap:6px}
 .mobile-balance-button.balance-card{padding:9px 10px;gap:3px 6px}
 .mobile-balance-button .wallet-card-label{font-size:8.5px;letter-spacing:.2px}
 .mobile-balance-button .wallet-card-value{font-size:18px}
 .mobile-balance-button[data-wallet-size=wide] .wallet-card-value{font-size:15px}
 .mobile-balance-button[data-wallet-size=extra] .wallet-card-value{font-size:13px}
}
@media(prefers-reduced-motion:reduce){.balance-card{transition:none}}

@media(max-width:768px), (max-width:1024px) and (pointer:coarse){.mobile-balance-button[data-wallet-state=error],.mobile-balance-button[data-wallet-state=blocked]{border-color:#b6807e;background:linear-gradient(125deg,#fff0d6,#efd8ca)}}
