/* FTS Wallet V76 — simple account currency hub */
body[data-section="wallet"] .wallet-hero, body[data-section="profile"] .wallet-profile-stage .wallet-hero{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);
  gap:18px;
  align-items:stretch;
}

.wallet-balance-board{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.wallet-balance-tile{
  border:1px solid var(--line);
  background:var(--soft);
  padding:18px;
  min-height:118px;
}

.wallet-balance-tile b{
  display:block;
  font-family:var(--display);
  font-size:clamp(42px,4vw,70px);
  line-height:.88;
  margin-bottom:10px;
}

.wallet-balance-tile span{
  display:block;
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
}

.wallet-rules{
  display:grid;
  gap:8px;
  margin-top:14px;
}

.wallet-rule{
  display:flex;
  gap:10px;
  align-items:flex-start;
  border:1px solid var(--line);
  background:rgba(255,255,255,.018);
  padding:12px;
  color:var(--muted);
}

.wallet-rule strong{
  color:var(--ink);
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.16em;
  text-transform:uppercase;
  min-width:92px;
}

.wallet-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.wallet-actions .card h3{
  font-size:clamp(28px,2.5vw,42px);
}

.wallet-history{
  display:grid;
  gap:10px;
}

.wallet-event{
  display:flex;
  justify-content:space-between;
  gap:14px;
  border:1px solid var(--line);
  background:var(--soft);
  padding:12px 14px;
}

.wallet-event b{
  display:block;
}

.wallet-event span,
.wallet-event time{
  color:var(--muted);
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.top-wallet span{cursor:pointer;transition:border-color .16s ease,color .16s ease,background .16s ease;}
.top-wallet span:hover{border-color:var(--accent);color:var(--ink);}
html[data-theme="light"] .top-wallet span:hover{border-color:var(--black);}

@media(max-width:1000px){
  body[data-section="wallet"] .wallet-hero, body[data-section="profile"] .wallet-profile-stage .wallet-hero,
  .wallet-actions{grid-template-columns:1fr;}
}

@media(max-width:640px){
  .wallet-balance-board{grid-template-columns:1fr 1fr;}
  .wallet-balance-tile{padding:14px;min-height:96px;}
  .wallet-rule{display:grid;}
  .wallet-event{display:grid;}
}

/* V149 wallet mobile responsive polish */
/* Wallet mobile polish. */
@media(max-width:700px){
  .wallet-hero,.wallet-grid,.wallet-balance-board,.wallet-history-grid{grid-template-columns:1fr!important;}
  .wallet-balance-tile{min-height:118px!important;}
  .wallet-flow-strip,.budbucks-loop-strip{grid-template-columns:1fr!important;}
}


/* V200 economy foundation: gift cards + Hash Coins */
.giftcard-page .giftcard-hero{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(240px,.5fr);gap:18px;align-items:stretch;}
.giftcard-values .card h3{font-family:var(--display);font-size:clamp(42px,5vw,76px);line-height:.9;margin:.15em 0;}
[data-giftcard-redeem-form]{display:grid;gap:10px;}
.wallet-balance-tile small{display:block;margin-top:6px;color:var(--muted);font-family:var(--mono);font-size:9px;letter-spacing:.13em;text-transform:uppercase;}
@media(max-width:900px){.giftcard-page .giftcard-hero{grid-template-columns:1fr;}.giftcard-values{grid-template-columns:1fr 1fr!important;}}
@media(max-width:640px){.giftcard-values{grid-template-columns:1fr!important;}}


/* V239 gift card / wallet relationship polish */
body[data-section="giftcard"] .giftcard-hero{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(250px,.55fr);
  gap:18px;
  align-items:stretch;
}
body[data-section="giftcard"] .giftcard-hero .lead{
  max-width:920px;
}
body[data-section="giftcard"] .budbucks-balance-card{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:220px;
}
body[data-section="giftcard"] .budbucks-balance-card b{
  font-size:clamp(54px,5.4vw,92px);
}
body[data-section="giftcard"] .wallet-rule code{
  font-size:inherit;
  color:inherit;
}
body[data-section="profile"] .wallet-profile-stage .wallet-flow-strip article,
body[data-section="wallet"] .wallet-flow-strip article{
  min-height:132px;
}
@media(max-width:900px){
  body[data-section="giftcard"] .giftcard-hero{
    grid-template-columns:1fr;
  }
}
