/**
 * VM balance chip — panel topbar + landing nav (load with panel-sidebar.css or alone on index).
 */
.vm-top-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--panel-text, var(--text, #fafafa));
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.12),
    rgba(34, 197, 94, 0.08)
  );
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 8px;
  padding: 4px 10px 4px 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  margin-right: 4px;
  box-sizing: border-box;
  line-height: 1.2;
}

.vm-top-pill:hover {
  border-color: rgba(251, 191, 36, 0.45);
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.18),
    rgba(34, 197, 94, 0.12)
  );
  transform: translateY(-1px);
}

.vm-top-pill-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.35);
  color: #fbbf24;
  flex-shrink: 0;
}

.vm-top-pill-ico svg {
  width: 11px;
  height: 11px;
  display: block;
}

.vm-top-pill-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.15;
  text-align: left;
}

.vm-top-pill-lbl {
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--panel-dim, var(--dim, #888));
}

.vm-top-pill-val {
  font-size: 12px;
  font-weight: 600;
  color: #fef3c7;
}

.vm-top-pill--privacy .vm-top-pill-val {
  filter: blur(7px);
  opacity: 0.75;
  user-select: none;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.vm-top-pill--privacy:hover .vm-top-pill-val,
.vm-top-pill--privacy:focus-visible .vm-top-pill-val {
  filter: none;
  opacity: 1;
  user-select: auto;
}

/* Landing nav: sits next to Syne / DM Sans UI */
.vm-top-pill--nav {
  margin-right: 6px;
}

@media (max-width: 520px) {
  .vm-top-pill--nav.vm-top-pill {
    padding: 4px 8px 4px 6px;
    margin-right: 4px;
  }

  .vm-top-pill--nav .vm-top-pill-val {
    font-size: 11px;
  }
}

@media (max-width: 400px) {
  .vm-top-pill--nav .vm-top-pill-val {
    display: none;
  }

  .vm-top-pill--nav .vm-top-pill-lbl {
    font-size: 9px;
    letter-spacing: 0.08em;
  }
}
