/* ═══ Balance Bar — follows brand tokens ═══ */
.theory-balance-bar {
  background: var(--hd-bg-card);
  color: var(--hd-text-primary);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  z-index: 9999;
  border-bottom: var(--hd-border);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: background var(--hd-transition), color var(--hd-transition);
}

.theory-balance-bar--top-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

.theory-balance-bar--bottom-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  border-bottom: none;
  border-top: var(--hd-border);
}

.theory-balance-bar--top-right-fixed {
  position: fixed;
  top: 80px;
  right: 20px;
  border-radius: var(--hd-radius-sm);
  box-shadow: var(--hd-shadow);
  padding: 12px 18px;
}

.theory-balance-bar--bottom-right-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  border-radius: var(--hd-radius-sm);
  box-shadow: var(--hd-shadow);
  padding: 12px 18px;
}

.theory-balance-bar__label {
  color: var(--hd-text-muted);
}

.theory-balance-bar__amount {
  font-weight: 700;
  font-size: 14px;
  color: var(--hd-gold);
  font-family: var(--hd-font-mono);
}

.theory-balance-bar__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hd-gold);
  text-decoration: none;
  font-weight: 600;
  transition: opacity var(--hd-transition);
}
.theory-balance-bar__action:hover { opacity: 0.8; }

@media (max-width: 768px) {
  .theory-balance-bar--top-fixed,
  .theory-balance-bar--bottom-fixed {
    font-size: 12px;
    padding: 8px 12px;
    gap: 8px;
  }
  .theory-balance-bar--top-right-fixed,
  .theory-balance-bar--bottom-right-fixed {
    top: 10px;
    right: 10px;
    font-size: 12px;
    padding: 10px 14px;
  }
}