.header-actions .header-cta {
  white-space: nowrap;
}

.header-cta--connected {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 10.5rem;
  min-height: 40px;
  padding: 0.4375rem 1.375rem 0.4375rem 0.625rem;
}

.header-cta__chain-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: #fff;
}

.header-cta__address {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

body.fc-page .header-actions .header-cta--connected,
body.ie-page .header-actions .header-cta--connected,
body.br-page .header-actions .header-cta--connected,
body.nd-page .header-actions .header-cta--connected {
  background: #fff;
  color: #18181b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

body.fc-page .header-actions .header-cta--connected:hover,
body.ie-page .header-actions .header-cta--connected:hover,
body.br-page .header-actions .header-cta--connected,
body.nd-page .header-actions .header-cta--connected:hover {
  background: #f4f4f5;
}

.wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.wallet-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wallet-modal__overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.wallet-modal__panel {
  position: relative;
  width: min(100%, 420px);
  border-radius: 16px;
  background: #121218;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  color: #f4f4f5;
  overflow: hidden;
}

.wallet-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0.75rem;
}

.wallet-modal__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.wallet-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(244, 244, 245, 0.72);
  font-size: 1.125rem;
  cursor: pointer;
}

.wallet-modal__close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.wallet-modal__body {
  padding: 0.5rem 1.25rem 1.25rem;
}

.wallet-modal__field {
  margin-bottom: 1rem;
}

.wallet-modal__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.wallet-modal__address-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.wallet-modal__address {
  flex: 1;
  min-width: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  word-break: break-all;
}

.wallet-modal__copy {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(244, 244, 245, 0.72);
  cursor: pointer;
}

.wallet-modal__copy:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.wallet-modal__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.wallet-modal__chain-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem 0.375rem 0.375rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
}

.wallet-modal__chain-badge img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.wallet-modal__balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wallet-modal__balance-label {
  color: rgba(244, 244, 245, 0.55);
  font-size: 0.875rem;
}

.wallet-modal__balance-value {
  font-size: 1rem;
  font-weight: 600;
}

.wallet-modal__demo-note {
  margin: 0 0 1rem;
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  background: rgba(118, 69, 217, 0.15);
  color: #c4b5fd;
  font-size: 0.75rem;
  line-height: 1.5;
}

.wallet-modal__disconnect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(96, 165, 250, 0.45);
  border-radius: 12px;
  background: transparent;
  color: #60a5fa;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.wallet-modal__disconnect:hover {
  background: rgba(96, 165, 250, 0.08);
}
