.app-topbar {
  gap: 12px;
  flex-wrap: wrap;
}

.app-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.segmented {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  min-width: 210px;
  overflow: hidden;
}

.segmented__slider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.25);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.3);
  transition: transform 200ms ease;
  transform: translateX(0%);
}

.segmented[data-active="validators"] .segmented__slider {
  transform: translateX(100%);
}

.segmented__btn {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  cursor: pointer;
}

.segmented__btn[aria-selected="true"] {
  color: #e0f2fe;
}

.app-view {
  min-height: 0;
}

.wallet-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.wallet-gate-card {
  width: min(360px, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.wallet-gate-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.wallet-gate-card p {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}

.wallet-gate-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.wallet-gate-actions .tf-button {
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  width: min(220px, 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wallet-gate-actions .btn-primary {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(37, 99, 235, 0.25);
  color: #e0f2fe;
}

.wallet-gate-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .app-topbar {
    align-items: flex-start;
  }

  .segmented {
    width: 100%;
  }

  .app-controls {
    width: 100%;
    justify-content: space-between;
  }
}
