/* Spoofey — shared SMS / Call capability button.
   One look everywhere it appears: the number browser and "My numbers" on the
   call page, the dialer + SMS modals, and the admin numbers table.

   .cap-btn.is-on   capability enabled  — lit
   .cap-btn.is-off  capability disabled — dimmed (still legible, same footprint)

   Add data-interactive (admin) to make it a real toggle button; without it the
   pill is a non-clickable status indicator. Padding and border width are
   identical in every state, so toggling never shifts layout. */

.cap-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 12px/1 'Bricolage Grotesque', system-ui, sans-serif;
  letter-spacing: .02em;
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid var(--glass-brd, rgba(37, 99, 235, .16));
  background: transparent;
  color: var(--muted, #9A8CB8);
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease, filter .15s ease;
}

.cap-btn svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.cap-btn.is-on {
  color: #fff;
  background: linear-gradient(135deg, var(--electric, #2563EB), #1D4ED8);
  border-color: transparent;
}

.cap-btn.is-off {
  color: var(--muted, #9A8CB8);
  background: transparent;
  opacity: .5;
}

.cap-btn:not([data-interactive]) {
  cursor: default;
}

.cap-btn[data-interactive] {
  cursor: pointer;
}

@media (hover: hover) {
  .cap-btn[data-interactive]:hover {
    filter: brightness(1.08);
    border-color: rgba(37, 99, 235, .45);
  }
}

.cap-btn[data-interactive]:active {
  transform: scale(.96);
}

.cap-btn[disabled] {
  cursor: not-allowed;
  opacity: .4;
}
