.altin-wallet-toggle {
  min-height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255,196,0,.62);
  border-radius: 9px;
  color: #fff8df;
  background: #171714;
  font: 900 11px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.altin-wallet-toggle:hover, .altin-wallet-toggle:focus-visible { color: #ffc400; border-color: #ffc400; outline: 2px solid rgba(255,196,0,.25); outline-offset: 2px; }
.altin-wallet-toggle b { min-width: 23px; height: 23px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; color: #090909; background: #ffc400; font-size: 11px; }
body.altin-wallet-open { overflow: hidden; }
.altin-wallet-overlay { position: fixed; inset: 0; z-index: 1010; }
.altin-wallet-scrim { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0,0,0,.72); opacity: 0; transition: opacity 180ms ease; cursor: default; }
.altin-wallet-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(500px,100%);
  height: 100%;
  overflow-y: auto;
  color: #fff8df;
  background: radial-gradient(circle at 80% 4%, rgba(255,196,0,.13), transparent 22rem), #0b0b0a;
  border-left: 1px solid rgba(255,196,0,.55);
  box-shadow: -18px 0 60px rgba(0,0,0,.52);
  transform: translateX(102%);
  transition: transform 190ms ease;
}
.altin-wallet-overlay.is-open .altin-wallet-scrim { opacity: 1; }
.altin-wallet-overlay.is-open .altin-wallet-drawer { transform: translateX(0); }
.altin-wallet-drawer > header { min-height: 88px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.altin-wallet-drawer > header span { color: #ffc400; font-size: 10px; font-weight: 950; letter-spacing: .13em; }
.altin-wallet-drawer > header h2 { margin: 5px 0 0; font-size: 26px; line-height: 1; }
#altin-wallet-close { width: 42px; height: 42px; border: 1px solid #4a463d; border-radius: 50%; color: #fff8df; background: #191917; font-size: 26px; cursor: pointer; }
#altin-wallet-close:hover, #altin-wallet-close:focus-visible { color: #ffc400; border-color: #ffc400; }
.altin-wallet-loading, .altin-wallet-error { margin: 18px 20px 0; padding: 13px 15px; border-radius: 10px; font-size: 13px; }
.altin-wallet-loading { color: #bbb4a0; border: 1px solid rgba(255,255,255,.1); }
.altin-wallet-error { color: #ffb09d; border: 1px solid #e94b28; background: #28120d; }
.altin-wallet-empty { min-height: calc(100vh - 89px); padding: 54px 32px; display: grid; place-items: center; align-content: center; text-align: center; }
.altin-wallet-empty > span { font-size: 58px; filter: drop-shadow(0 8px 20px rgba(255,196,0,.22)); }
.altin-wallet-empty strong { margin-top: 16px; font-size: 22px; }
.altin-wallet-empty p { max-width: 350px; margin: 10px 0 0; color: #aaa492; font-size: 14px; line-height: 1.6; }
.altin-wallet-content { padding: 20px; }
.altin-wallet-balance-card { padding: 24px; border: 1px solid rgba(255,196,0,.52); border-radius: 16px; background: linear-gradient(145deg, rgba(255,196,0,.16), transparent 70%), #171714; }
.altin-wallet-balance-card > span { color: #ffc400; font-size: 10px; font-weight: 950; letter-spacing: .13em; }
.altin-wallet-balance-card > div { margin: 9px 0 7px; display: flex; align-items: baseline; gap: 9px; }
.altin-wallet-balance-card strong { color: #ffc400; font-size: clamp(48px,12vw,70px); line-height: .9; }
.altin-wallet-balance-card b { font-size: 14px; letter-spacing: .08em; }
.altin-wallet-balance-card small { color: #aaa492; font-size: 12px; }
.altin-wallet-history { margin-top: 26px; }
.altin-wallet-history h3 { margin: 0 0 12px; font-size: 18px; }
#altin-wallet-list { display: grid; gap: 9px; }
.altin-wallet-transaction { padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: #171715; }
.altin-wallet-transaction strong, .altin-wallet-transaction span, .altin-wallet-transaction small { display: block; }
.altin-wallet-transaction strong { font-size: 14px; }
.altin-wallet-transaction span { margin-top: 4px; color: #ffc400; font-size: 11px; font-weight: 850; }
.altin-wallet-transaction small { margin-top: 4px; color: #8f8a7c; font-size: 10px; line-height: 1.4; }
.altin-wallet-transaction > b { flex: 0 0 auto; color: #ffc400; font-size: 17px; }
.altin-wallet-transaction > b.is-negative { color: #ff7958; }
.altin-wallet-no-history { padding: 34px 20px; text-align: center; border: 1px dashed #48443b; border-radius: 14px; }
.altin-wallet-no-history span, .altin-wallet-no-history strong { display: block; }
.altin-wallet-no-history span { font-size: 34px; }
.altin-wallet-no-history strong { margin-top: 10px; }
.altin-wallet-no-history p { margin: 7px 0 0; color: #918b7b; font-size: 12px; line-height: 1.5; }

@media (max-width: 760px) {
  .altin-wallet-drawer { width: 100%; }
  .altin-wallet-toggle { min-width: 42px; padding: 0 9px; }
  .altin-wallet-toggle-label { display: none; }
}

@media (max-width: 640px) {
  .topbar .menu-link { min-width: 38px; padding-inline: 9px; font-size: 0; }
  .topbar .menu-link > span { font-size: 17px; }
  .menu-topbar { flex-wrap: wrap; }
  .menu-topbar nav { width: 100%; justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  .altin-wallet-scrim, .altin-wallet-drawer { transition: none; }
}
