.wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Pills above card (mobile only) ── */
.pillsOuter {
  display: none;
  gap: 6px;
}

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

@media (max-width: 650px) {
  .top {
    margin-bottom: 0;
  }
}

.label {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.tag {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}

.network {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

/* ── Network buttons ── */
.networkPills {
  display: flex;
  align-items: center;
  gap: 5px;
}

.networkBtn {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  transition: all 0.2s;
  letter-spacing: 0.4px;
}

.networkBtn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.13);
}

.networkBtnActive {
  background: rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
}

/* ── Pills inside card (desktop only) ── */
.pillsInner {
  display: flex;
  gap: 6px;
}

.pill {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
  border: none;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  transition: all 0.2s;
}

.pill:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.13);
}

/* ── Select positions ── */
.selectTop {
  display: none;
}

.selectMid {
  display: flex;
  flex-shrink: 0;
}

.mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.input {
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 64px;
  font-weight: 700;
  color: var(--text-primary);
  width: 100%;
  min-width: 0;
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.12);
}

.display {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
}

.int {
  color: var(--text-primary);
  font-size: 64px;
}

.dec {
  color: var(--text-secondary);
  font-size: 36px;
}

.bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.usd {
  font-size: 14px;
  color: var(--text-secondary);
}

.neg {
  color: var(--error);
}

.balance {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.max {
  background: none;
  border: none;
  color: var(--interactive);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-sans);
  padding: 0;
}

.max:hover {
  text-decoration: underline;
}

/* ── Mobile ── */
@media (max-width: 650px) {
  .card {
    padding: 16px;
  }

  .input {
    font-size: 36px;
  }

  .int {
    font-size: 36px;
  }

  .dec {
    font-size: 22px;
  }

  .pillsOuter {
    display: flex;
  }

  .pillsInner {
    display: none;
  }

  .selectTop {
    display: flex;
  }

  .selectMid {
    display: none;
  }
}